[ale] xfce4-power-manager works only as root

Ted W. ted at techmachine.net
Wed Aug 24 01:21:32 EDT 2011


On 08/23/2011 04:11 PM, David A. De Graaf wrote:
> On Tue, Aug 23, 2011 at 12:12:30AM -0400, Ted W. wrote:
>> Hello from someone new to ALE, (really enjoyed the Drupal presentation)
>>
>> I'll try to make this brief. I have installed Slackware 13.37 on an old
>> IBM laptop (new to me). I've installed Fluxbox as the window manager and
>> am attempting to use the xfce4-power-manager to try and manage the
>> battery consumption a bit. The trouble is that the drop-down menus to
>> change the options for things such as the lid button action and critical
>> battery action are grayed out unless I run the application as root.
>> Based on my searches I've determined it's likely an issue with policy
>> kit or maybe hal but I'm unfamiliar with where to go from there. Any
>> solutions or ideas to get me going in the right direction would be
>> greatly appreciated.
>
> I struggled with getting Fedora 15 and xfce4 to work properly, and
> after many days of Googling came upon an obscure solution.
> Add this line to your ~/.xinitrc file:
>    ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4
> and then use startx instead of startxfce4 to initiate X.
>
> I don't understand how or why this works.  The need to do it is
> clearly a bug (BZ 722703).
>
> This has a side benefit of somehow persuading that massive pile of poo
> called  "pam"  that I should actually be allowed to edit my NetworkManager
> connections and to edit my PowerManager settings.
>
> It also magically restores the Hibernate and Suspend 'buttons' to the
> PowerManager applet, and restores the Shutdown, Suspend, and Hibernate
> buttons to the Logout icon, all of which were either absent or greyed out.
>
> It also restores the proper definition of the DISPLAY variable in root
> windows, allowing gui config programs (system-config-*) to work.
>
>
> One other thing.  Once you have the Suspend button restored, you'll
> probably want to have suspend actually work.  On my Asus N10 netbook,
> pm-suspend started properly, but ended with a hung netbook, with the
> CAPSLOCK LED flashing.  Only a power-cycle would recover it.
>
> This was eventually traced to presence of VirtualBox-4.1.
> Upon downgrading to VirtualBox-4.0, suspend is working correctly.
>

Sorry to reply again so soon. Shortly after sending the last reply I 
read that I needed to have my user in the "power" group and the article 
suggested rebooted afterward. The OP stated that he believed hal or 
consolekit had to be restarted after the group membership was modified.

Thanks again for the assistance, I look forward to (hopefully) making it 
out to SPSU this Thursday to see everyone again.

-- 
Ted W. < Ted at Techmachine.net >
Registered GNU/Linux user #413569


More information about the Ale mailing list