Latest working kernel version: None Earliest failing kernel version: All 2.6.* Distribution: Fedora 9 Hardware Environment: Acer Netbook Aspire One Software Environment: Fedora 9 Problem Description: Event format acpi generates for /proc/acpi/event is different from that for generic netlink interface. Here are i got: From /proc/acpi/event, i got the following events when i suspend and resume Acer's Aspire One: battery BAT1 00000080 00000000 battery BAT1 00000081 00000000 ac_adapter ACAD 00000080 00000001 battery BAT1 00000080 00000000 But from generic netlink socket, i got the following events when i suspend and resume Acer's Aspire One: battery PNP0C0A:00 00000080 00000000 battery PNP0C0A:00 00000081 00000000 ac_adapter ACPI0003:00 00000080 00000001 battery PNP0C0A:00 00000080 00000000 Such inconsistent event format will make acpid or hald confused Steps to reproduce: 1. Run a program using ACPI generic netlink interface to get acpi events, you can use the first attached program (gcc acpi-event-listen.c -o acpi-event-listen). 2. Run acpi_listen to get acpi events in the sametime in another console. 3. pm-suspend 4. Press 'Fn' or 'power button' to resume it. 5. Compare events from acpi-event-listen and acpi_listen.
Created attachment 18714 [details] A program acpi-event-listen.c A program acpi-event-listen.c, you can make it using the command: gcc acpi-event-listen.c -o acpi-event-listen acpi-event-listen uses acpi generic netlink interface to get acpi events.
Created attachment 18715 [details] A patch to fix this bug This patch fixed this bug, it has been sent to linux-acpi@vger.kernel.org, this bug just is for tracking its status.
no, this is not a bug. >From /proc/acpi/event, i got the following events when i suspend and >resume Acer's Aspire One: >battery BAT1 00000080 00000000 >... BAT1 is gotten from BIOS, which is arbitrary and even meaningless sometimes. >But from generic netlink socket, i got the following events when i suspend >and resume Acer's Aspire One: >battery PNP0C0A:00 00000080 00000000 >... Exporting ACPI events via netlink is part of ACPI sysfs conversion task. and instead of the pnp_id, the bus_id in sysfs is unique for every ACPI device. these changes are made to get rid of the old procfs I/F. Yi, thanks for your effort on this.
Reject this INVALID bug.
(In reply to comment #3) > no, this is not a bug. > > >From /proc/acpi/event, i got the following events when i suspend and > >resume Acer's Aspire One: > >battery BAT1 00000080 00000000 > >... > BAT1 is gotten from BIOS, which is arbitrary and even meaningless sometimes. Do you mean events from /proc/acpi/event may be meaningless sometimes? But acpid and hal worked well in the past. > > >But from generic netlink socket, i got the following events when i suspend > >and resume Acer's Aspire One: > >battery PNP0C0A:00 00000080 00000000 > >... > Exporting ACPI events via netlink is part of ACPI sysfs conversion task. > and instead of the pnp_id, the bus_id in sysfs is unique for every ACPI > device. > > these changes are made to get rid of the old procfs I/F. > Yi, thanks for your effort on this. >