View previous topic :: View next topic |
Author |
Message |
printf Tux's lil' helper
Joined: 02 Dec 2010 Posts: 123
|
Posted: Tue Oct 15, 2013 1:35 pm Post subject: allow xfce4-battery-plugin to shut down/suspend the machine |
|
|
currently using xfce4/slim/xdm with ConsoleKit/PolicyKit/udev (according to this thread: https://forums.gentoo.org/viewtopic-t-858965.html).
i would like to be able to set a shutdown command for the battery plugin, when charge is at 5% and or something else at 10%, but the least hackiest way.
i searched around and some suggested modifying the core policies which affect all users, some suggested sending messages directly to dbus, some said to use sudo to execute shutdown (-h now)/halt/etc.
currently the log out->shutdown/reboot/etc buttons work fine from the xfce panel, is there a way to use the same mechanic here? |
|
Back to top |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 887 Location: Germany
|
Posted: Wed Oct 16, 2013 5:39 am Post subject: |
|
|
Install xfce4-power-manager, go to Application Menu → Settings → Power Manager
Choose "On Battery"
Enjoy. _________________ Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest |
|
Back to top |
|
|
printf Tux's lil' helper
Joined: 02 Dec 2010 Posts: 123
|
Posted: Wed Oct 16, 2013 8:36 pm Post subject: |
|
|
but that needs CONFIG_TIMER_STATS (at least according to emerge)
do i really need that?
i dont really want to enable kernel debugging if not neccessary |
|
Back to top |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 887 Location: Germany
|
Posted: Thu Oct 17, 2013 6:26 am Post subject: |
|
|
Don't know if it is needed. Probably, though, if emerge tells you so.
What's the problem with it? It's one option to enable, it's not as if you need all the kernel debugging stuff there is in order to activate it. _________________ Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest |
|
Back to top |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Thu Oct 24, 2013 12:29 pm Post subject: |
|
|
Clad in Sky wrote: | Install xfce4-power-manager, go to Application Menu → Settings → Power Manager
Choose "On Battery"
Enjoy. |
In my experience, half the power manager is broken and doesn't do anything. Not only on Gentoo, but also on Mint. Dimming for example doesn't work, switching off the monitor overlaps with xscreensaver and also tends to fail, etc. |
|
Back to top |
|
|
|