You can also just simply close the laptop lid to suspend, provided configured accordingly.
Or, re-configure the power button to enter S3 instead of S5 (System shuts down cleanly and powers off). Suspend by power button might be inconvenient, the system needs to be shut down by command (
poweroff(8)) or by PolicyKit/ConsoleKit in this case.
It might be possible to use the Fn + Backspace keys to put the machine to sleep (with
acpi_ibm(4) loaded). The function is supported by sysctl oid
hw.acpi.sleep_button_state: S3 on my machine.
devd(8) running in foreground mode does give feedback on "Suspend" "Resume" when the keys are pressed, I have to investigate.
Suspend on lid close:
Rich (BB code):
hw.acpi.lid_switch_state=S3
Suspend on power button (S5 default, see
sysctl -a | grep hw.acpi):
Rich (BB code):
hw.acpi.power_button_state=S3
The settings can be permanently saved in
/etc/sysctl.conf.
Some models may require a drm-kmod driver for these settings to work. On a ThinkPad E15 AMD without the drm-kmod driver installed, the machine doesn't resume from suspend when the lid was closed (I havent tried power button suspend).