Bug 5362

Summary: No AC Adapter Event from MSI 510C
Product: ACPI Reporter: Gurkan Vural (gurkan.vural)
Component: Power-OtherAssignee: Vladimir Lebedev (vladimir.p.lebedev)
Status: CLOSED DUPLICATE    
Severity: normal CC: acpi-bugzilla
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.14-rc1-mm1 Subsystem:
Regression: --- Bisected commit-id:
Attachments: dmesg output after boot with ec_burst=0
some acpi debug after plugging ac adapter
dsdt
Bus/device events are added to ac./battery notification.

Description Gurkan Vural 2005-10-04 11:51:00 UTC
Most recent kernel where this bug did not occur: N/A
Distribution: Gentoo
Hardware Environment: MSI 510C
Software Environment:
Problem Description: No battery or ac event can be received from
/proc/acpi/event. However their status are updated correctly in
/proc/acpi/ac_adapter/ADP1/state and /proc/acpi/battery/BAT1/state.

Steps to reproduce:
Comment 1 Gurkan Vural 2005-10-04 11:55:09 UTC
Below is simple /proc/acpi/battery/BAT1/state and
/proc/acpi/ac_adapter/ADP1/state outputs:

/proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            1105 mA
remaining capacity:      1516 mAh
present voltage:         14831 mV

/proc/acpi/ac_adapter/ADP1/state
state:                   off-line

and after plugging AC adapter:

/proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charging
present rate:            2582 mA
remaining capacity:      1478 mAh
present voltage:         15538 mV

/proc/acpi/battery/BAT1/state
state:                   on-line
Comment 2 Gurkan Vural 2005-10-04 11:58:46 UTC
Created attachment 6219 [details]
dmesg output after boot with ec_burst=0
Comment 3 Gurkan Vural 2005-10-04 12:02:42 UTC
Created attachment 6220 [details]
some acpi debug after plugging ac adapter
Comment 4 Gurkan Vural 2005-10-04 12:14:48 UTC
Created attachment 6221 [details]
dsdt
Comment 5 Len Brown 2005-10-06 21:20:03 UTC
is this a regression, or have older kernels behaved the same way?
Comment 6 Gurkan Vural 2005-10-06 23:51:20 UTC
I think the problem is in dsdt. It notifies ac adapter events as 0x00 not 0x80.
Also battery notification value is different from the kernel code
drivers/acpi/battery.c.
Comment 7 Vladimir Lebedev 2005-12-02 02:22:47 UTC
Created attachment 6748 [details]
Bus/device events are added to ac./battery notification.

Please try this patch, send the results of ac/battery plugging/unplugging and
dmesg output.
Comment 8 Vladimir Lebedev 2005-12-23 05:40:00 UTC

*** This bug has been marked as a duplicate of 3241 ***