Test Case: React on sleep/suspend button/key Categories: Desktop, KDE, sleep/suspend button Requirements: KDE Installation, a machine supporting ACPI S4 (s2disk, check lshal for "power_management.can_hibernate= true"), a machine with a sleep/suspend button or key Depends On: Test Case 01 (Suspend to Disk) Action: ============================ Start KDE as normal user, check if KPowersave is running (check for the KPowersave icon in the taskbar, or "ps aux | grep KPowersave"). Remove all external/removable (USB,PCMCIA, Cardreader ...) storage devices from the machine (or unmount them). Check if s2disk is supported by KPowersave, click with right mouse button and check if "Suspend to Disk" is listed in the applet menu. Start on a console: 'lshal -m'. Press the sleep/suspend button/key. If the machine goes successfully to "Suspend to Disk" and is shut down resume the machine (usually via the power button). Login to the desktop session. Expected Results: ============================ With default KPowersave settings this should happen after pressing the button: - Screen should get locked - machine goes to suspend to disk and shutdown --> wakeup the machine - after resume the screen should be locked - after some seconds the login should be automatically displayed - after login there should be no error message/dialog If the machine don't react to the key/button: - check the output of 'lshal -m' for "ButtonPressed = sleep" or "= suspend" - if there is no such output KPowersave don't support the sleep/suspend :button