Test Case: Battery warning levels Categories: Desktop, KDE, Battery Requirements: KDE Installation, a laptop with a battery Depends On: Test Case #16 Action: ============================ Start KDE as normal user, check if KPowersave is running (check for the KPowersave icon in the taskbar, or "ps aux | grep KPowersave"). Be sure that Test Case #16 fulfilled on your machine. Configure KPowersave: - click on the applet icon with right mouse button, select 'Configure KPowersave ...' - select the 'General Settings' tab in the dialog - select the 'Battery' page in the toolbox of this dialog (if not already open) - to speed up the testing: - check your current battery charge level (in percentag, e.g. via the KPowersave info dialog) or via lshal - set useful levels for the: Warning, Low and Critical level (e.g. 98, 95 and 93 if you have a full battery) - close the dialog with 'OK' Start on a console: 'lshal -m'. Remove the AC plug so that the battery is discharging. Click with the left mouse button on the KPowersave applet icon in the task bar to open the 'KPowersave Information Dialog' Observe the info dialog and the applet icon. Hint: To speed up the first test case you could set the brightness level to maximum and you should produce CPU load (e.g. call 'cat /dev/zero > /dev/null') to increase the power consumption. Expected Results: ============================ With the decreasing battery this should happen: For all warning levels: - a pop-up should come up and should tell that the new state is reached (incl. the remaining time) - if the 'Warning level' get reached: - the applet icon should change to a orange blinking background and the green part should change to orange (as the battery icon in the info dialog, while it isn't blinking there) - the info dialog should should change 'Battery state:' from 'ok' to 'Warning' - if the 'Low level' get reached: - the applet icon should change to a red blinking background and the orange part should change to red (as the battery icon in the info dialog, while it isn't blinking there) - the info dialog should should change 'Battery state:' from 'ok' to 'Low' - the brightness should reduce to lowest level to save battery capacity - if the 'Critical level' get reached: - the applet icon should be the same as in the low level - the info dialog should should change 'Battery state:' from 'ok' to 'Critical' - the pop-up should contain a warning that the user should plugin the AC, otherwise the machine go to shutdown in 30 sec - if the user didn't attach the AC plug to the machine shout logout of the user session and go to shutdown completely (NOTE: this work atm only under KDE3) If you plugin the AC plug again to the machine the battery icon should go back to green, without blinking background. The battery state should change to 'ok'.