SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Current: xfce4-power-manager 1.4.4 and upower 0.9.23.
The xfce-power-manager does not work. All it does is showing a dumb systray icon with a "Display battery levels for attached devices" tooltip.
In the /var/log/messages file I see a lot of these messages:
Code:
Jun 10 11:30:40 riposo dbus[1973]: [system] Activated service 'org.freedesktop.UPower' failed: Launch helper exited with unknown return code 127
The output of a "xfce4-power-manager --debug" is attached below. In there I see the same "Launch helper exited" messages for xfce4-power-manager as well as libupower-glib.
I would rebuild pkg "upower" from currents source it is in the "a" or reinstall it you may have a broken link. with out it it will not set up the devices.
make sure you have power checked in your users groups
Last edited by Drakeo; 06-10-2015 at 05:11 AM.
Reason: power
@Drakeo: Upower was rebuilt as part of the Apr 21 update, so another rebuild should not be necessary. Anyway, I will do a rebuild.
Code:
root@riposo:~/works# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),7(lp),10(wheel),11(floppy),17(audio),18(video),19(cdrom),86(netdev),93(scanner),199(vfat)
root@riposo:~/works#
Code:
burdi01@riposo:~$ id
uid=1000(burdi01) gid=100(users) groups=100(users),7(lp),11(floppy),17(audio),18(video),19(cdrom),83(plugdev),84(power),86(netdev),93(scanner),199(vfat)
burdi01@riposo:~$
@ReaperX7: On a freshly started system I ran "xfce4-power-manager --quit" and then scripted your command for root. I had to replace the "&&"s to get a meaningful output. I then rebooted the system, quit the powermanager again and scripted your command for user "burdi01". The outputs are attached.
As an aside: The commands were run on my desktop, so no battery and backlight. On my laptop the results are comparable.
Just to be sure I cloned my Slackware Current Multilib to my laptop once again. Repeating the commands indeed gave the same errors/warnings. However, it dawned upon me that the systray icon is not as dumb as I thought: it is "just" missing the Hibernate/Suspend options as well as the Power Information and the Help/About/Quit ones I saw previously. There is no battery percentage (even when there is a battery). But on my laptop it now includes a working brightness applet.
So we have two problems here:
1) Batteries not being detected;
2) No Hibernate/Suspend.
Ad 1: I assume that is what the errors/warnings are about.
Ad 2: I vaguely remember having read something about the hibernate/suspend options being moved from upower to somewhere else. To me it looks like that is what is the case here. I will need to do some digging to find out what that "somewhere else" was again ...
Actually Start > Log Out > {Suspend,Hibernate} does not work either.
But the systray icon still does not indicate the battery percentage and the Hibernate/Suspend options are still missing from it. However, the Suspend option from the Start > Log Out dialog now works on the laptop -- but not on my desktop.
The screen brightness applet from the systray as well as the keyboard Fn+F{7,8} still work on the laptop -- but not on my desktop.
I had a look at newer versions: for upower there is a 0.99.3 version, but running with that version caused missing symbols. For as far as I can see there is no newer version of the xfce4-power-manager.
I actually have started asking this since we now have OpenRC available (thanks to Aaditya Bagga's excellent work) and people might be using it.
This step might pass and you still may not have the shutdown, reboot, suspend, hibernate buttons available.
There is a fix, and mostly it's somewhat due to Consolekit being a bit behind things. I've had this before too.
In my repository (listed below) is a build script package for ConsoleKit2-0.9.2. I would suggest trying it out if all else fails. There are some warnings shown about consolekit and xfce4-power-manager that look all to familiar.
I do not even have ConsoleKit installed. The package is mentioned in the 14.1 PACKAGES.TXT file, but not in the 14.1 CHANGES_AND_HINTS.TXT file. As a long time Current user I use the latter file to synchronize my Current installation upon every Stable release. So that it is understandable that I do not have it.
Anyway, installing the ConsoleKit 0.4.5 package nor your ConsoleKit2 0.9.2 one does not have any discernable effects other than removing the consolekit proxy message from the --dump output.
First with ConsoleKit 0.4.5 and afterwards with your ConsoleKit2 0.9.2 I rebuilt the upower 0.9.23 and xfce4-power-manager 1.4.4 *) and installed them.
There were no visible differences as compared to yesterday's round.
*) The configure --help did not give options to include ConsoleKit support and the user functions for halt. I assume these are picked up automatically when present at build/run time.
I retained ConsoleKit 0.4.5 because without it (or ConsoleKit2 0.9.2) Start > Log Out > Shut Down does not work (Suspend does though).
I rebuilt xfce4-power-manager 1.2.0 from xfce 4.10 using the slackbuild I amended for Parted Magic some weeks ago. Problem solved.
Thank you for your support.
Edit Jun 15, 2015: Google searches for and implementations of xfce4-power-manager 1.4.4 as found in other [live] distributions show the same deficiencies as I saw. So things are not related to pecularities in my installation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.