Hello, everyone!

I have a power management issue with my Asus R2Hv laptop/tablet running on of
the first OpenBSD snapshots tagged as 5.0.

When I plug its power cord off, it dumps the core. As it has only USB
keyboard, I can only switch it off with a power button. When I do "halt -p",
the system doesn't power off automaticly. Instead it writes

        syncing disks... done

and the cursor blinks instantly on a new line.

If I start it with power cord unplugged and plug it in after I see the login
prompt, I can freely plug and unplug the cord later.

Battery statistic is always faulty.

I collected dmesg, header file of acpidump and apm output. Any other useful
info I can provide?

Thanks in advance.

apm output of a fully charged device with battery connected, booted on power
supply:

 $ apm
Battery state: CRITICAL, 0% remaining, unknown life estimate
A/C adapter state: not connected
Performance adjustment mode: cool running (600 MHz)
 $ apm -ablmP
2
0
unknown
0
2

apm output after booting on battery, (initially fully charged, seconds after
login prompt shown)):

 $ apm
Battery state: CRITICAL, 0% remaining, unknown life estimate
A/C adapter state: not connected
Performance adjustment mode: cool running (600 MHz)
ddc@r2hv:~ $ apm -ablmP
2
0
unknown
0
2

apm output after pluging power cord in (exectly after previous result):

 $ apm       
Battery state: CRITICAL, 0% remaining, unknown life estimate
A/C adapter state: connected
Performance adjustment mode: cool running (600 MHz)
ddc@r2hv:~ $ apm -ablmP
2
0
unknown
1
2

dmesg:

OpenBSD 5.0 (GENERIC) #39: Mon Aug  8 14:53:43 MDT 2011
    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.00GHz ("GenuineIntel" 686-class) 1 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 1324675072 (1263MB)
avail mem = 1292951552 (1233MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/16/07, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.3 @ 0xf92f0 (36 entries)
bios0: vendor American Megatrends Inc. version "208" date 10/16/2007
bios0: ASUSTeK Computer Inc. R2H
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET SSDT
acpi0: wakeup devices LAN0(S4) P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
EUSB(S3) MC97(S4) AZAL(S3) PWRB(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 99MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus 1 (P0P1)
acpiprt3 at acpi0: bus 2 (P0P4)
acpiprt4 at acpi0: bus -1 (P0P5)
acpiprt5 at acpi0: bus -1 (P0P6)
acpiprt6 at acpi0: bus -1 (P0P7)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature is 105 degC
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
bios0: ROM list: 0xc0000/0xea00!
cpu0: Enhanced SpeedStep 1098 MHz: speeds: 1000, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x04
vga1 at pci0 dev 2 function 0 "Intel 82915GM Video" rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0 at vga1: apic 1 int 16
drm0 at inteldrm0
"Intel 82915GM Video" rev 0x04 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801FB HD Audio" rev 0x04: msi
azalia0: codecs: Analog Devices/0x1986
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x04: apic 1 int 16
pci1 at ppb0 bus 2
re0 at pci1 dev 0 function 0 "Realtek 8101E" rev 0x01: RTL8101E (0x3400), apic 
1 int 16, address 00:1d:60:38:96:0e
rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x04: apic 1 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x04: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x04: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x04: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x04: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd4
pci2 at ppb1 bus 1
sdhc0 at pci2 dev 1 function 0 "Ricoh 5C822 SD/MMC" rev 0x19: apic 1 int 17
sdmmc0 at sdhc0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x04: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801FB IDE" rev 0x04: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK8009GAH>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
ugen0 at uhub0 port 1 "Syntek USB2.0" rev 2.00/0.05 addr 2
umass0 at uhub0 port 2 configuration 1 interface 0 "Sunplus Innovation 
Technology USB to Serial-ATA bridge" rev 2.00/3.30 addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
cd0 at scsibus0 targ 1 lun 0: <ASUS, SDRW-08D2S-U, C102> SCSI0 5/cdrom 
removable serial.1bcf0c31016400000005
zyd0 at uhub0 port 6 configuration 1 interface 0 "ASUS USB2.0 WLAN" rev 
2.00/48.02 addr 4
uhub5 at uhub0 port 7 "Standard Microsystems product 0x2502" rev 2.00/0.01 addr 
5
ugen1 at uhub5 port 1 "AuthenTec Fingerprint Sensor" rev 1.10/c.10 addr 6
uhidev0 at uhub5 port 2 configuration 1 interface 0 "PANJIT PANJIT TouchSet 
Digitizer" rev 1.10/1.03 addr 7
uhidev0: iclass 3/0, 2 report ids
uhts0 at uhidev0 reportid 1
wsmouse1 at uhts0 mux 0
ums0 at uhidev0 reportid 2: 0 button
wsmouse2 at ums0 mux 0
uhidev1 at uhub2 port 2 configuration 1 interface 0 " USB Keyboard" rev 
1.10/1.10 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub2 port 2 configuration 1 interface 1 " USB Keyboard" rev 
1.10/1.10 addr 2
uhidev2: iclass 3/0, 2 report ids
uhid0 at uhidev2 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=3, output=0, feature=0
ugen2 at uhub4 port 2 "ASUS product 0x1712" rev 2.00/19.15 addr 2
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (c5d3c6285744d3f2.a) swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
zyd0: HMAC ZD1211B, FW 47.25, RF AL2230, PA 0, address 00:1d:60:62:59:ef

The acpidump output:

RSD PTR: Checksum=236, OEMID=ACPIAM, RsdtAddress=0x4efc0000


RSDT: Length=64, Revision=1, Checksum=213,
        OEMID=_ASUS_, OEM Table ID=Notebook, OEM Revision=0x10000716,
        Creator ID=MSFT, Creator Revision=0x97


        Entries={ 0x4efc0200, 0x4efc0390, 0x4efc03f0, 0x4efc0430, 0x4efcf040, 
0x4efc9110, 0x4efc9150 }


        DSDT=0x4efc05b0
        INT_MODEL=APIC
        SCI_INT=9
        SMI_CMD=0xb2, ACPI_ENABLE=0xe1, ACPI_DISABLE=0x1e, S4BIOS_REQ=0x0
        PM1a_EVT_BLK=0x800-0x803
        PM1a_CNT_BLK=0x804-0x805
        PM2_CNT_BLK=0x820-0x820
        PM2_TMR_BLK=0x808-0x80b
        PM2_GPE0_BLK=0x828-0x82f
        P_LVL2_LAT=10ms, P_LVL3_LAT=100ms
        FLUSH_SIZE=1024, FLUSH_STRIDE=16
        DUTY_OFFSET=1, DUTY_WIDTH=3
        DAY_ALRM=13, MON_ALRM=0, CENTURY=0
        Flags={WBINVD,PROC_C1,PWR_BUTTON,SLP_BUTTON,RTC_S4}


DSDT: Length=35667, Revision=1, Checksum=91,
        OEMID=0AAAA, OEM Table ID=0AAAA000, OEM Revision=0x0,
        Creator ID=INTL, Creator Revision=0x2002026


APIC: Length=84, Revision=1, Checksum=144,
        OEMID=A_M_I_, OEM Table ID=OEMAPIC, OEM Revision=0x10000716,
        Creator ID=MSFT, Creator Revision=0x97


MCFG: Length=60, Revision=1, Checksum=183,
        OEMID=A_M_I_, OEM Table ID=OEMMCFG, OEM Revision=0x10000716,
        Creator ID=MSFT, Creator Revision=0x97


SLIC: Length=374, Revision=1, Checksum=89,
        OEMID=_ASUS_, OEM Table ID=Notebook, OEM Revision=0x10000716,
        Creator ID=MSFT, Creator Revision=0x97


OEMB: Length=64, Revision=1, Checksum=65,
        OEMID=A_M_I_, OEM Table ID=AMI_OEM, OEM Revision=0x10000716,
        Creator ID=MSFT, Creator Revision=0x97


HPET: Length=56, Revision=1, Checksum=174,
        OEMID=A_M_I_, OEM Table ID=OEMHPET, OEM Revision=0x10000716,
        Creator ID=MSFT, Creator Revision=0x97


SSDT: Length=2889, Revision=1, Checksum=59,
        OEMID=AMI, OEM Table ID=CPU1PM, OEM Revision=0x1,
        Creator ID=INTL, Creator Revision=0x2002026

--
Dmitrij D. Czarkoff

Reply via email to