http://bugzilla.kernel.org/show_bug.cgi?id=12035





------- Comment #3 from [EMAIL PROTECTED]  2008-11-17 15:08 -------
(In reply to comment #1)
> From the problemd description it seems that there exists the ACPI event when 
> AC
> adapter is pluged. The problem is that there is no ACPI event when AC adapter
> is unplugged.
>    Will you please enable the CONFIG_ACPI_DEBUG in kernel configuration and do
> the following test?
>    a. echo 0x030004 >  /sys/module/acpi/parameters/debug_layer ; echo 0x1F >
> /sys/module/acpi/parameters/debug_level
>    b. kill the process which is using the /proc/acpi/event(use the command of
> "lsof /proc/acpi/event" to get the process ID).
>    c. cat /proc/acpi/event >event_log and don't press CTRL+C until the step d
> is finished
>    d. plug/unplug the AC adapter three times
> 
>    After the test, please attach the output of dmesg, event_log
>    Thanks.
> 
> 
event_log output: http://wklej.org/id/19147/
dmesg output: http://wklej.org/id/19148/
debug_level: http://wklej.org/id/19149/ (should ACPI_LV_EVENTS be enable?)

I have started up test on 2.6.28-rc5.

(In reply to comment #2)
> Created an attachment (id=18883)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=18883&action=view) [details]
> patch: update AC status in sysfs I/F
> 
> (In reply to comment #0)
> > Exept it value of /sys/class/power_supply/ACAD/online is still "1", but 
> > value
> > of /proc/acpi/ac_adapter/ACAD/state is "off-line".
> AC status in sysfs I/F is not updates in time.
> please try this patch to see if this problem is fixed
> 
Compilation with this patch on kernels 2.6.28-rc5 and 2.6.27-r5 have failed.
I forgot add, that this error appears only, when the event doesn't appear (I'am
sorry).

  CC      drivers/acpi/thermal.o
  CC      drivers/acpi/power.o
  CC      drivers/acpi/system.o
  CC      drivers/acpi/event.o
  CC      drivers/acpi/debug.o
  CC      drivers/acpi/numa.o
  CC      drivers/acpi/cm_sbs.o
  LD      drivers/acpi/built-in.o
  CC [M]  drivers/acpi/ac.o
drivers/acpi/ac.c: In function ‘get_ac_property’:
drivers/acpi/ac.c:107: warning: ISO C90 forbids mixed declarations and code
drivers/acpi/ac.c:111: error: implicit declaration of function
‘acpi_ac_get_state’
drivers/acpi/ac.c: At top level:
drivers/acpi/ac.c:128: error: static declaration of ‘acpi_ac_get_state’
follows non-static declaration
drivers/acpi/ac.c:111: error: previous implicit declaration of
‘acpi_ac_get_state’ was here
make[2]: *** [drivers/acpi/ac.o] Błąd 1
make[1]: *** [drivers/acpi] Błąd 2
make: *** [drivers] Błąd 2



-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to