|
From: Javier V. <j.e...@gm...> - 2014-12-23 15:51:49
|
On Tue, Dec 23, 2014 at 6:08 AM, Time for some thrilling heroics.
<fs...@fi...> wrote:
> ...
>
> What are people using for power management & to keep an eye on battery
> status these days? (Is there some necessary, and completely obvious,
> package that I should be installing to make other battery monitors work?)
I'm not sure what others are using, but for monitoring, I only use
conky. I can read with it battery, temperature and others.
For suspending and such, I have menu entries in fluxbox. Withot
systemd my main entries were:
! [exec] (Suspend-Disk) {urxvt -pe -tabbed -e sudo local_s2disk.sh}
! [exec] (Suspend-Mem) {urxvt -pe -tabbed -e sudo local_s2ram.sh}
! [exec] (Reboot) {sudo shutdown -r now "Sutdown:
Rebooting now..."}
! [exec] (Shutdown) {sudo shutdown -h now "Shutdown:
Shuting down now..."}
% cat /usr/bin/local_s2ram.sh
#!/bin/env sh
echo "Suspending to RAM NOW..."
sync
swapoff -a
swapon -a
echo 'mem' > /sys/power/state
% cat /sr/bin/local_s2disk.sh
#!/bin/env sh
echo "Suspending to Disk NOW..."
sync
swapoff -a
swapon -a
telinit run ntp stop
echo 'disk' > /sys/power/state
telinit run ntp start
Telinit is a init system from sourceMage GNU/Linux. Now with systemd
on Arch and similar:
[exec] (Disk) {systemctl hibernate}
[exec] (Both) {systemctl hybrid-sleep}
[exec] (Mem) {systemctl suspend}
[exec] (Reboot) {systemctl reboot}
[exec] (PowerOff) {systemctl poweroff}
Though honestly I don't see the hybrid very useful so far...
For power savings settings, well there are many ways without using
laptop-mode and such any more. Most configs can be set with systemctl
directly and a init personal setting at boot plus udev...
Others might have other alternatives though, :-)
--
Javier.
|