Using acpi_listen, I noticed that closing and reopening my laptop's lid several times generates just one initial "lid close" event and nothing more. My laptop is a Sony VAIO VGN-FS215S.
please attach the acpidump of your laptop. please run "grep . /sys/firmware/acpi/interrupts/*" both before and after closing/opening the lid.
Created attachment 39482 [details] acpidump output
Created attachment 39492 [details] Interrupts: Laptop freshly booted
Created attachment 39502 [details] Interrupts: Lid closed for the 1st time
Created attachment 39512 [details] Interrupts: Lid reopened for the 1st time
Created attachment 39522 [details] Interrupts: Lid closed for the 2nd time
Created attachment 39532 [details] Interrupts: Lid reopened for the 2nd time
Created attachment 39552 [details] acpidump output (binary format)
is it possible to attach the regular output from acpidump without converting it to binary format? eg. # acpidump > acpidump.out
Created attachment 40082 [details] acpidump output
please kill acpid and run "cat /proc/acpi/event", do you get the same output as acpi_listen?
(In reply to comment #11) > please kill acpid and run "cat /proc/acpi/event", do you get the same output > as > acpi_listen? No, all lid close event are reported correctly. $ cat /proc/acpi/event button/lid LID0 00000080 00000001 button/lid LID0 00000080 00000002 button/lid LID0 00000080 00000003 button/lid LID0 00000080 00000004
(In reply to comment #12) > (In reply to comment #11) > > please kill acpid and run "cat /proc/acpi/event", do you get the same > output as > > acpi_listen? > > No, all lid close event are reported correctly. > > $ cat /proc/acpi/event > button/lid LID0 00000080 00000001 > button/lid LID0 00000080 00000002 > button/lid LID0 00000080 00000003 > button/lid LID0 00000080 00000004 Mhh, it seems that something is broken wrt netlink notification. With CONFIG_ACPI_PROC_EVENT=y acpid uses /proc/acpi/event and acpi_listen reports all close events. With CONFIG_ACPI_PROC_EVENT=n or starting acpid with the --netlink argument, not all events are reported.
(In reply to comment #13) > (In reply to comment #12) > > (In reply to comment #11) > > > please kill acpid and run "cat /proc/acpi/event", do you get the same > output as > > > acpi_listen? > > > > No, all lid close event are reported correctly. > > > > $ cat /proc/acpi/event > > button/lid LID0 00000080 00000001 > > button/lid LID0 00000080 00000002 > > button/lid LID0 00000080 00000003 > > button/lid LID0 00000080 00000004 > > Mhh, it seems that something is broken wrt netlink notification. > With CONFIG_ACPI_PROC_EVENT=y acpid uses /proc/acpi/event and acpi_listen > reports all close events. > With CONFIG_ACPI_PROC_EVENT=n or starting acpid with the --netlink argument, > not all events are reported. that's because some events (power button, lid, brightness switching, etc) go to input layer, rather than netlink. Anyway, it's great that kernel bugzilla is back. can you please verify if the problem still exists in the latest upstream kernel?
bug closed as there is no response from the bug reporter. please feel free to reopen it if the problem still exists in the latest upstream kernel.