LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2014, 08:17 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Rep: Reputation: Disabled
making XFCE shut down computer for low battery


I've come across a limitation in the XFCE battery monitor. It has options for what do when the battery is critical, and "shut down" is not an option. I thought of selecting "run command in terminal" and entering "sudo halt," but that can't work if I'm not there to enter the password. Is there no way to make the battery monitor shut the system down?

Last edited by newbiesforever; 05-10-2014 at 08:19 PM.
 
Old 05-10-2014, 08:39 PM   #2
Automatic
Member
 
Registered: Mar 2013
Posts: 42

Rep: Reputation: Disabled
Check to see if your laptop sends events when battery discharges, it does, it's super easy, if not, I couldn't find anything on Google, sorry.

https://wiki.archlinux.org/index.php/acpid
https://wiki.archlinux.org/index.php/acpi
https://wiki.archlinux.org/index.php/Laptop#ACPI

Or, you could always just edit the sudoers file (`EDITOR=editorOfChoice visudo` in terminal as root) to make sudo not ask for a password to halt, that may or may not work, depending on your permission (If you want to give the user the right to shutdown).

Last edited by Automatic; 05-10-2014 at 08:41 PM.
 
Old 05-11-2014, 10:41 AM   #3
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
What version are you using? Mine gives me options to hibernate and shutdown. There may be an issue about the xfce-session manager connecting to dbus, since the latter handles privileged syscalls. Do you use a display manager or startx manually?
 
Old 05-11-2014, 07:35 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DJ Shaji View Post
What version are you using? Mine gives me options to hibernate and shutdown. There may be an issue about the xfce-session manager connecting to dbus, since the latter handles privileged syscalls. Do you use a display manager or startx manually?
Ehh...apparently Xfce 4.8 with battery monitor version 1.0.5. Yes, I use a display manager--KDE Trinity's. (I stopped using Trinity, but kept its login manager.)
 
Old 05-12-2014, 01:07 PM   #5
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Use XFCE's power manager directly. To configure it run "xfce4-power-manager-settings" and to make sure it runs at startup open "Session" settings and on the "Autostart" tab make sure the check box next to "Power Manager" is ticked.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Low battery notification with no DE 2ck Linux - Software 2 09-01-2012 06:44 PM
Low battery warning business_kid Linux - Laptop and Netbook 1 07-18-2012 01:45 PM
xfce will not shut down for user walterbyrd Linux - Software 5 07-11-2005 01:40 PM
low battery life d4nr Linux - General 2 08-05-2004 04:49 AM
Low battery logout in Fedora fcp101 Linux - Software 0 07-23-2004 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration