FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart?

Polytropon freebsd at
Wed Dec 28 21:01:27 UTC 2016

On Wed, 28 Dec 2016 21:02:17 +0100, Bernt Hansson wrote:
> On 2016-12-28 17:39, Polytropon wrote:
> > On Wed, 28 Dec 2016 03:16:40 +0100, Bernt Hansson wrote:
> >> On 2016-12-27 05:02, David Christensen wrote:
> >>> How do I enable GUI Shutdown and Restart capabilities in both XDM and
> >>> XFCE?
> >> You need to write some policykit/consolekit rules, can't find them now,
> >> and you ned HAL.
> > Really? Isn't HAL obsoleted yet? As far as I know, it's not
> > even part of the default packages anymore... but you're correct
> > regarding the strange *kit XML rules.
> It was a long time ago that i did this. Well HAL is in ports, so i guess 
> it's
> not obsolete yet. I did try both versions, mine and yours and it worked 
> then.

At least the Gnome FAQ lists it as a requirement (so it must
be installed additionally, and enabled in rc.conf). But X does
not require it, or have it built into the default package.
I've been running desktop systems without HAL and DBus for
years, without any problems.

> Nowadays i don't care much about it since i don't have a laptop,

Personally, I find it much more convenient to press the power
button to have the system perform a proper shutdown, or assign
a key combination for a typical shutdown command (for example.
on my Sun keyboard: Ctrl+Alt+Moon). All this works without
having to deal with XML files buried inside the /usr/local
subtree. :-)

> do have 
> an arduino

You probably don't use it as a desktop computer, but you
could use it to "press" the power buttin. :-)

> and will get a 3d-printer tomorrow (2016-12-29)

Use it to 3D-print yourself a HAL-9000. :-)

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list