[4.0] apmd on toshiba satellite A30

2006-11-06 Thread atstake atstake

I am running OBSD 4.0-release (i386) on Toshiba Satellite A30.
I started apmd and here's my ps output

root 10023  0.0  0.1   240   316 ??  Ss 5:57AM0:00.00 apmd

But when I do apm it says

Battery state: unknown, 0% remaining, unknown life estimate
A/C adapter state: not known
Performance adjustment mode: manual (3200 MHz)

Also, halt -p doesn't work and I need to hard-shutdown. I got powerdown=YES
in /etc/rc.shutdown.

Here's my dmesg -

OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) 4 CPU 3.20GHz (GenuineIntel
686-class) 3.21 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 468676608 (457692K)
avail mem = 419454976 (409624K)
using 4256 buffers containing 23535616 bytes (22984K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(4a) BIOS, date 04/07/05, BIOS32 rev. 0 @
0xfd700, SMBIOS rev. 2.31 @ 0xd6010 (31 entries)
bios0: TOSHIBA Satellite A30
pcibios0 at bios0: rev 2.1 @ 0xfd700/0x900
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf00/224 (12 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x1002 product 0x434c
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xf000 0xd/0x6000! 0xd6000/0x800! 0xd8000/0x1000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ATI RS300_133 Host rev 0x02
ppb0 at pci0 dev 1 function 0 ATI Radeon IGP 9100 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 ATI Radeon Mobility IGP 9100 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ohci0 at pci0 dev 19 function 0 ATI SB200 USB rev 0x01: irq 11,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 19 function 1 ATI SB200 USB rev 0x01: irq 11,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ehci0 at pci0 dev 19 function 2 ATI SB200 USB2 rev 0x01: irq 11
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: ATI EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 6 ports with 6 removable, self powered
piixpm0 at pci0 dev 20 function 0 ATI SB200 SMBus rev 0x17: SMI
iic0 at piixpm0
pciide0 at pci0 dev 20 function 1 ATI IXP200 IDE rev 0x00: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: HITACHI_DK23FA-60
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TOSHIBA, DVD-ROM SD-R6112, 1031 SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pcib0 at pci0 dev 20 function 3 ATI SB200 PCI-ISA rev 0x00
ppb1 at pci0 dev 20 function 4 ATI SB200 PCI-PCI rev 0x00
pci2 at ppb1 bus 2
TI TSB43AB21 FireWire rev 0x00 at pci2 dev 0 function 0 not configured
ath0 at pci2 dev 2 function 0 Atheros AR5212 rev 0x01: irq 11
ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, WOR4W, address 00:90:96:72:4d:f1
rl0 at pci2 dev 3 function 0 Realtek 8139 rev 0x10: irq 11, address
00:02:3f:d3:3a:7b
rlphy0 at rl0 phy 0: RTL internal PHY
cbb0 at pci2 dev 4 function 0 ENE CB-1410 CardBus rev 0x01: irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
auixp0 at pci0 dev 20 function 5 ATI IXP200 AC97 rev 0x00: irq 11
auixp0: soft resetting aclink
auixp0: not up; resetting aclink hardware
auixp0: not up; resetting aclink hardware
auixp0: aclink hardware reset successful
ATI IXP200 Modem rev 0x01 at pci0 dev 20 function 6 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask ef75 netmask ef75 ttymask fff7
pctr: user-level cycle counter enabled
ath1 at cardbus0 dev 0 function 0 Atheros Communications, Inc.,
AR5001--, Wireless LAN Reference Card: irq 11
ath1: AR5213 7.9 phy 4.5 rf2112a 5.6: RF radio not supported
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
ac97: codec id 0x414c4740 (Avance Logic ALC202)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Realtek 3D
audio0 at auixp0
ath0: device timeout



Re: [4.0] apmd on toshiba satellite A30

2006-11-06 Thread Wijnand Wiersma

2006/11/6, atstake atstake [EMAIL PROTECTED]:

I am running OBSD 4.0-release (i386) on Toshiba Satellite A30.
I started apmd and here's my ps output

root 10023  0.0  0.1   240   316 ??  Ss 5:57AM0:00.00 apmd

But when I do apm it says

Battery state: unknown, 0% remaining, unknown life estimate
A/C adapter state: not known
Performance adjustment mode: manual (3200 MHz)

Also, halt -p doesn't work and I need to hard-shutdown. I got powerdown=YES
in /etc/rc.shutdown.


I have the same thing, but I try to help with acpi testing.
http://undeadly.org/cgi?action=articlesid=20061012191523

Running -CURRENT with apmd -f /dev/acpi (and some other flags) I get
at least information about the A/C adapter and sometimes a percentage
of the battery state. It is not working ok yet (percentage is wrong),
but it is more then one month ago. Things are improving and if you
like to see more improvements: help with testing at least.

Wijnand