Sheridan Hutchinson wrote:
Michael Biebl wrote:
What's the hald output for FN+F12? What does powersaved -v31 -f /var/run/acpid.socket say?lshal -m captures the following for FN+F12: 15:29:48.212: computer_logicaldev_input_3 condition ButtonPressed = hibernate 15:29:48.215: computer condition ButtonPressed = hibernate This compares to the 3 lines captured for FN+F4: 15:30:50.355: computer_logicaldev_input_3 condition ButtonPressed = sleep 15:30:50.355: computer condition ButtonPressed = sleep 15:30:50.384: platform_i8042_i8042_KBD_port_logicaldev_input condition ButtonPressed = sleep
Do you also get the ButtonPressed = sleep|hibernate events if you use the hal packages from unstable or only with my packages where I enabled the --enable-acpi-ibm configure switch?
Powersaved in debug mode says the following for FN+F12: Apr 20 15:31:35 localhost powersaved[10707]: DIAG (handleHWEventRequest:158) ACPI Event: 'ibm/hotkey HKEY 00000080 0000100c' Apr 20 15:31:35 localhost powersaved[10707]: Debug (handleHWEventRequest:170) type: ibm/hotkey, dev_name: HKEY, port: 00000080, count: 0000100c Apr 20 15:31:35 localhost powersaved[10707]: DIAG (handleHWEventRequest:241) unknown HW event, using [other]. type 'ibm/hotkey' dev_name 'HKEY' port '00000080' count '0000100c' Apr 20 15:31:35 localhost powersaved[10707]: Info (registerEvent:48) registering event no.'30' Apr 20 15:31:35 localhost powersaved[10707]: Info (executeInternalAction:264) Executing internal action: ignore Apr 20 15:31:35 localhost powersaved[10707]: Info (continueEvent:240) Internal action ignore executed Apr 20 15:31:35 localhost powersaved[10707]: Info (checkScriptReturn:168) SCRIPT returned: Name: 'ignore', Return value: 0, Comment: 'internal action successfull: ignore' Apr 20 15:31:35 localhost powersaved[10707]: Info (checkScriptReturn:187) SCRIPT Event other finished successfully
I've dug into the code, and the real problem is within powersaved.It doesn't rely on hal for the button press events but reads from the acpi socket directly. That's why any attempt to address the issue within hal has failed so far and why the button press events are not correctly mapped.
Imho the only sane option is for powersaved, to use hal for button press events. I have forwarded this issue to the upstream developers and wait for their comments.
Thanks for helping to debug this problem! Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

