How to measure battery life performance on Linux operating system?
How to measure battery life performance on Linux operating system?
Download Version 1.0.9, extract bltk.1.0.9.tar.gz and get the file bltk.1.0.9.tar. Copy bltk.1.0.9.tar to /home.
Click Start -> System -> Terminal and run the command below.
[username@username-host ~]#tar -xvf bltk.1.0.9.tar
[username@username-host ~]#cd bltk
[username@username-host bltk]#make
[username@username-host bltk]#cp bin/* /bin/
[username@username-host bltk]#cp lib/libxse.so /usr/lib/ ; ln -s /usr/lib/libxse.so /usr/lib/libxse.so.0
Test Environment
- Close all applications before testing.
- Remove all external devices (e.g.USB Mouse, Keyboard, LAN wire).
- Launch Mozilla Firefox application, confirm all the terms and close it.
- Switch off the wireless.
- Fully charge the battery.
- Turn off the screen saver.
- Follow the steps below to stop command crond.
[username@username-host ~]#systemctl stop crond.service - Close battery warning message.
- [username@username-host ~]#sudo killall upowerd
- Right click the battery icon at the right corner, select Battery Monitor Settings. On left side, choose the Advanced Settings.
- Click Configure Notifications button.
- For the options below, please uncheck Play a sound and Show a message in a popup.
- Low Power
- Battery at warning level
- Battery at critical level
- Performing a suspension job
- Click OK after finishing all setting.
- Go back to Battery Monitor Settings, select the Energy Saving on the left side.
- Switch to On Low Battery tab and uncheck Display Brightness, Dim Display, Screen Energy Saving, Suspend Session.
- [username@username-host ~]#sudo killall upowerd
- Turn off all networks.
[username@username-host ~]# sudo systemctl stop NetworkManager.service (Beware of case) - Set the brightness as minimal level.
- Press Fn + F5/F6 to set the brightness as minimal level.
Start Testing
[username@username-host ~]#cd bltk
[username@username-host bltk]#sudo bltk –R
If your AC adaptor is connected, it is suggested that you plug it off. Be sure not to do any processing on your computer. The test would continue and your computer will automatically power off. Plug on the AC adaptor and restart the computer.
Test Report
After back to desktop, click Start>System>Terminal and run the command below.
[username@username-host ~]#cd bltk
[username@username-host bltk]# ./bltk_report reader.results
The system would create reporter file as “Report.txt” under /home/”username”/bltk/reader.results.