shutdown and restart broken if hal/dbus is active

markus.hoenicka at markus.hoenicka at
Mon Feb 27 23:09:09 CET 2012


I've upgraded my box lately. My system is now:

FreeBSD wombat.mininet 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3
07:46:30 UTC 2012
root at  amd64

While most things have improved, including a couple of nice
refinements of XFCE, the restart and shutdown buttons of the logout
dialog are now grayed out as long as hal and dbus are active. This is
a regression compared to my previous FreeBSD 8.1 setup.

If hal and dbus are not available, logout uses sudo instead
which works alright for me. However, some applications like xfburn
require hal and dbus. I've followed the instructions displayed by the
xfce4 port makefile to change the
/usr/local/etc/PolicyKit/PolicyKit.conf config file which now reads:

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
    <match user="root">
        <return result="yes"/>
    <define_admin_auth group="wheel"/>
    <match action="org.freedesktop.hal.power-management.reboot">
      <return result="yes"/>
    <match action="org.freedesktop.hal.power-management.shutdown">
      <return result="yes"/>

As this did not help, I've also followed the instructions found in the
XFCE FAQ ( which asks me to edit
/usr/local/etc/dbus-1/system.d/hal.conf. This file now looks like

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"

[...system defaults unchanged here...]

  <policy group="operator">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>


I'm member of the operator group:

[markus at wombat ~]$ pw groupshow operator

This doesn't help either.

Is there a way to force XFCE to use sudo (which obviously works)
instead of hal/dbus (which is apparently broken)? Is there a way to
fix the broken hal/dbus behaviour with regard to XFCE? I haven't
noticed any odd behaviour of hal/dbus with regard to other
applications like xfburn.


Markus Hoenicka
AQ score 38

More information about the Xfce mailing list