From numerous web and forum searches, there is a lot of traffic on the subject but no definitive solutions.
However, I've made a bit of progress on the subject and I think I need to report observations if only to encourage a fix for everyone.
Situation:
There was similarities and his solution didn't work for me. I didn't have any hardening enabled with install (confirmed by reviewing /etc/sysctl.conf. However, there were little nuggest of usefulness and gave me ideas on things to try to fix.
That forum post talked about using
It was weird to discover that for
Dump of
I also experimented, as suggested in forum post, with how
If I login via
If I changed ~/.xinitrc from handbook recommended:
...to this as suggested in the forum...
... and do a
Dump of
Something has changed upstream. Now the task at hand seems to be to figure out what the heck the did and implement a repeatable install process.
Suggestions welcomed on how to get
However, I've made a bit of progress on the subject and I think I need to report observations if only to encourage a fix for everyone.
Situation:
- AMD Bulldozer running
Virtualbox 6.1.6
. - Install latest
FreeBSD-12.1
w/freebsd-update
completed. - Followed instructions from Handbook and FreeBSDFoundation How-To for installing
xorg
andxfce
. - Includes change of /etc/rc.conf with
dbus_enable="YES"
- Ensured there was a shutdown.rules file (discussed in other posts) and had correct ownership/permissions (
polkitd:wheel
and0664
) - Ensured user was in correct groups as recommended in links above.
- installed
slim
w/ recommend change to /etc/rc.conf
xfce
desktop. However, only option available was to logout. No matter what I did, I was unable to enable the shutdown or restart buttons on the dialog. Another web search and I tripped over this thread from user w5plt who described his problems in 2018.There was similarities and his solution didn't work for me. I didn't have any hardening enabled with install (confirmed by reviewing /etc/sysctl.conf. However, there were little nuggest of usefulness and gave me ideas on things to try to fix.
That forum post talked about using
xfce4-power-manager
to diagnosis the problem.It was weird to discover that for
FreeBSD-12.1
the xfce4-power-manager
application isn't installed as part of the meta-pkg for xfce
. I did a manual install of the package.Dump of
xfce4-power-manager
:
Code:
user@machine:~ % xfce4-power-manager --no-daemon --dump
---------------------------------------------------
Xfce power manager version 1.6.6
With policykit support
Without network manager support
---------------------------------------------------
Can suspend: False
Can hibernate: False
Authorized to suspend: False
Authorized to hibernate: False
Authorized to shutdown: False
Has battery: False
Has brightness panel: False
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: True
I also experimented, as suggested in forum post, with how
xfce4
was started.If I login via
slim
, regardless of the contents of ~/.xinitrc, there is no change. Shutdown and Restart are still disabled. Logging out there are a pile of error messages on tty0
. Again, this is a stock install.If I changed ~/.xinitrc from handbook recommended:
Code:
. /usr/local/etc/xdg/xfce4/xinitrc
Code:
exec /usr/local/bin/startxfce4 --with-ck-launch
... and do a
startx
, I get shutdown and reboot enabled.Dump of
xfce4-power-manager
at the time showed:
Code:
user@machine:~ % xfce4-power-manager --no-daemon --dump
---------------------------------------------------
Xfce power manager version 1.6.6
With policykit support
Without network manager support
---------------------------------------------------
Can suspend: False
Can hibernate: False
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Has battery: False
Has brightness panel: False
Has power button: True
Has hibernate button: False
Has sleep button: True
Has battery button: True
Has LID: True
Something has changed upstream. Now the task at hand seems to be to figure out what the heck the did and implement a repeatable install process.
Suggestions welcomed on how to get
xfce
to play nice.