Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
allow xfce4-battery-plugin to shut down/suspend the machine
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
printf
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2010
Posts: 123

PostPosted: Tue Oct 15, 2013 1:35 pm    Post subject: allow xfce4-battery-plugin to shut down/suspend the machine Reply with quote

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
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 887
Location: Germany

PostPosted: Wed Oct 16, 2013 5:39 am    Post subject: Reply with quote

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
View user's profile Send private message
printf
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2010
Posts: 123

PostPosted: Wed Oct 16, 2013 8:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 887
Location: Germany

PostPosted: Thu Oct 17, 2013 6:26 am    Post subject: Reply with quote

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
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 535

PostPosted: Thu Oct 24, 2013 12:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum