FreeBSD10.2 xfce4.12 shutdown and reboot button grey out.

MC bio photo By MC   1 min. reading   View Comments

env info

FreeBSD: 10.2 xfce: 4.12

LIKELIHOOD 0: look out xfce4-session message

pkg info -D xfce4-session

xfce4-session-4.12.1_2: Always: To be able to shutdown or reboot your system, you’ll have to add .rules files in /usr/local/etc/polkit-1/rules.d directory. Which looks like this (replace PUTYOURGROUPHERE by your group):

polkit.addRule(function (action, subject) { if (action.id == “org.freedesktop.consolekit.system.restart” || action.id == “org.freedesktop.consolekit.system.stop” && subject.isInGroup(“PUTYOURGROUPHERE”)) { return polkit.Result.YES; } });

For those who have working suspend/resume:

polkit.addRule(function (action, subject) { if (action.id == “org.freedesktop.consolekit.system.suspend” && subject.isInGroup(“PUTYOURGROUPHERE”)) { return polkit.Result.YES; } });

if this does not work out, just keep on reading LIKELIHOOD1.

LIKELIHOOD 1: file/dir permission

make sure the user polkitd could read its configure folder. this happend on FreeBSD 10.2.

and here is the RP

solution:
sudo chown -R polkitd /usr/local/etc/polkit-1

LIKELIHOOD 2: dbus

you must make sure dbus and hald services started.

solution:

vim /etc/rc.conf

dbus_enable="YES"
hald_enable="YES"

Xfce4 - shutdown as normal user

Okay, good luck.

Leave A Comment