Re: No more xfce power manager. Alternatives?

Javier Vasquez <[email protected]> Tue, 23 Dec 2014 09:51:40 -0600
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <CALUrRGdXYQGc0CdrsqNuOXq7yTO102vWmMWiAobnNmY_cNnwNA@mail.gmail.com>
On Tue, Dec 23, 2014 at 6:08 AM, Time for some thrilling heroics.
<[email protected]> 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.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net