You are not logged in.

#1 2009-04-25 05:23:04

blueSpirit
Member
From: Munich
Registered: 2009-04-25
Posts: 3
Website

org.freedesktop.hal.power-management.reboot returns no

Hallo,

I'm a new Xfce4 user, and when I reboot as non-root, I get the message

org.freedesktop.hal.power-management.reboot returns no

When asking google, one solution would be to change in /usr/share/PolicyKit/policy/org.freedesktop.hal.power-management.policy

  <action id="org.freedesktop.hal.power-management.reboot">
    <description>Reboot the system</description>
    <message>System policy prevents rebooting the system</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

to

  <action id="org.freedesktop.hal.power-management.reboot">
    <description>Reboot the system</description>
    <message>System policy prevents rebooting the system</message>
    <defaults>
      <allow_any>yes</allow_any>
    </defaults>
  </action>

But this is only a workaround - what is the meening of "active" and "inactive" in this context, and how can I get "active" to be able to reboot?

Thx, Charly

Offline

#2 2009-04-26 07:52:28

jleach
Member
Registered: 2008-07-24
Posts: 27

Re: org.freedesktop.hal.power-management.reboot returns no

In this case, "active" and "inactive" refer to the status of the current ConsoleKit session.

Do 'ck-list-sessions' command from a console to see the sessions, you should see a "Active = TRUE"

If however you see no output, then your Xfce session isn't registered with ConsoleKit. This usually happens to people that are using 'startx' to load X (using GDM/KDM should automatically register the ConsoleKit session). Try editing your .xinitrc and change it from 'exec startxfce4' to 'exec ck-launch-session startxfce4'

Offline

#3 2009-04-26 20:30:24

superchango
Member
From: Tenochtitlan
Registered: 2009-01-22
Posts: 133

Re: org.freedesktop.hal.power-management.reboot returns no

Thanks jleach, your solution works very well with Fluxbox & Slim:

exec ck-launch-session startfluxbox

Gnome-power manager and Network-manager start OK in fluxbox session.


"Yo creo que los muertos son tiernos. ¿Nos besamos?"

Offline

Board footer

Powered by FluxBB