View Full Version : [XFCE] Shutdown and Reboot in XFCE4: disabled again
varnie
October 27th, 2010, 05:11
Good day.
I've been happy with FreeBSD 8.1 Release and XFCE4 until tomorrow when I performed ports upgrade. This procedure went Okay but it caused XFCE4 buttons/options 'Reboot', 'Shut down' became disabled somehow.
Please note I have PolicyKit.conf already setup correctly, hald, dbus enabled in /etc/rc.conf and this scenario worked for me before.
Are there any notable changes in configurations/port upgrades I am not aware of which might help me?
Please help. I have already seen "How to Shutdown and reboot in XFCE4" (http://forums.freebsd.org/showthread.php?t=16916) thread but nothing helped me.
varnie
October 27th, 2010, 08:30
Oops, i just figured out that HALD has not been started during boot time.
But I sure have it in /etc/rc.conf:
hald_enable="YES"
dbus_enable="YES"
When FreeBSD is booting I see 'hald started', 'dbus started' messages as usually.
Why it doesn't start then? I tried to start HALD manually and it worked, i.e. the XFCE4 buttons 'shutdown', 'reboot' became enabled.
Any advices on how to start HALD automatically and what's wrong with my approach?
updated:
Not fully sure, but I guess my problem is the same as the one, presented in this, 2 days-old, bug report (http://www.freebsd.org/cgi/query-pr.cgi?pr=151725&cat=).
SirDice
October 27th, 2010, 14:00
updated:
not fully sure, but i guess my problem is the same as the one, presented in this, 2 days-olded, bug report (http://www.freebsd.org/cgi/query-pr.cgi?pr=151725&cat=).
Have a look at the version of dbus that's installed:
pkg_info -Ex dbus
If it's version 1.2.24_2 then it's not the same problem as the PR.
varnie
October 27th, 2010, 14:35
On this moment I have dbus-1.4.0 version, so I need to downgrade it.
Trying to downgrade currently...
wblock@
October 27th, 2010, 14:59
On this moment I have dbus-1.4.0 version, so I need to downgrade it.
Tried to downgrade but I cannot see dbus-1.2.24_2 version on anonimous SVN (I am using portdowngrade utility). How to perform this correctly?
dbus-1.4.0 is working fine here. Sounds like it works for you also, but the permissions are broken. Or maybe settings in /usr/local/etc/PolicyKit/PolicyKit.conf.
SirDice
October 27th, 2010, 15:07
Try adding to /etc/rc.conf:
hald_flags="--verbose=yes --use-syslog"
And restart hald and then dbus. Check /var/log/messages for any errors.
DutchDaemon
October 27th, 2010, 17:37
The dbus upgrade gave me some grief as well: auto-mounting of USB drives didn't work (though I think reboot/shutdown still worked). Ran an upward/downward-recursive rebuild/reinstall of dbus, which fixed it. Sounds like a possible candidate for an entry in /usr/ports/UPDATING.
varnie
October 28th, 2010, 04:51
As for dbus-1.4.0: sometimes it works, sometimes it does not.
I downgraded it to the previous version, and thus fixed this problem. Fingers crossed...
DutchDaemon
October 28th, 2010, 13:45
Yeah, my USB stick/disk auto-mounting didn't work again yesterday. Hit and miss.
formateur_fou
October 29th, 2010, 22:14
After upgrading to dbus-1.4.0 I removed dbus from /etc/rc.conf as it looks like it is automatically started by hald.
It seems ok after a few reboots: my keyboard and my mouse keep working with slim and dbus processes remain present.
lumiwa
October 31st, 2010, 00:55
After upgrading to dbus-1.4.0 I removed dbus from /etc/rc.conf as it looks like it is automatically started by hald.
It seems ok after a few reboots: my keyboard and my mouse keep working with slim and dbus processes remain present.
I did the same as you and it works. Thank you.
One question more: do you get a message when you start FreeBSD:
/etc/rc:WARNING: $dbus_enable is not set properly
Thanks.
formateur_fou
November 1st, 2010, 23:19
I did the same as you and it works. Thank you.
One question more: do you get a message when you start FreeBSD:
/etc/rc:WARNING: $dbus_enable is not set properly
Thanks.
Yes I have this message too, and usb sticks don't automount properly anymore if I let hald start dbus.
So, I switched back to my previous /etc/rc.conf with dbus and hald both enabled. Until a solution is found, I start hald manually when it fails, which is only once in a while.
varnie
November 9th, 2010, 19:33
good news, there were some updates in hal, so now everything works fine. I just upgraded to hal-0.5.14_10 and dbus-1.4.0 and it seems these updates have fixed the bug! There is a conversation regarding that bug here (http://www.freebsd.org/cgi/query-pr.cgi?pr=151725&cat=) if one cares.
noz
November 9th, 2010, 20:20
I didn't have trouble with shutdown/reboot, but I did have auto-mounting problems. For me, it's still broken after the hal-0.5.14_10 update. Is it the same for anyone else?
DutchDaemon
November 9th, 2010, 23:50
Automounting of USB sticks was hit and miss in the past couple of days (more miss than hit). I just managed to automount a USB stick successfully after the hald update of today. We'll see.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.