suspend button is seen by hal, but machine doesn't suspend

Ian Lynagh igloo at earth.li
Sun Jul 5 03:52:41 PDT 2009


Hi all,

I'm having some problems making my suspend button etc work, and I was wondering if anyone could help me please?

If I run "lshal -m" and press "Fn-F3" (suspend) then I get:
    01:12:05.152: platform_i8042_i8042_KBD_port_logicaldev_input condition ButtonPressed = sleep

If I close the lid then I get:
    01:11:24.966: computer_logicaldev_input_2 property button.state.value = true
    01:11:24.968: computer_logicaldev_input_2 condition ButtonPressed = lid

If I open the lid then I get:
    01:11:32.388: computer_logicaldev_input_2 property button.state.value = false
    01:11:32.391: computer_logicaldev_input_2 condition ButtonPressed = lid
    01:11:32.394: platform_i8042_i8042_KBD_port_logicaldev_input condition ButtonPressed = wake-up


If I run:
    sudo s2ram -f -a 3
then the machine suspends, and if I run
    sudo s2disk
then it hibernates.


Can anyone tell me how I can make pressing "Fn-F3" run "s2ram -f -a 3",
and closing the lid run "s2disk", please?

Is hal the right place to be trying to do this?


Thanks
Ian



More information about the hal mailing list