xfce4-session and the grey suspend button

J.R. Oldroyd fbsd at opal.com
Mon Oct 17 11:32:03 UTC 2016


Back in the days of FreeBSD-8.x, life was good: xfce's Suspend button
was active and my system suspended and resumed just fine.

But in the dark days of FreeBSD-9.x and then also 10.x and now even
on 11.0, too, that Suspend button has been greyed out.  Life has been
really tough!

So I looked into this and see that xfce4-session supports suspend
in three ways:

	- systemd
	- upower
	- consolekit

Systemd is a Linux thing, I guess.

Now, while I do have sysutils/upower installed, it doesn't seem to
support the required org.freedesktop.upower.suspend (at least
according to pkaction(1)).  Perhaps it may have done so before when
this previously worked.

Finally, xfce's ConsoleKit support wants to use both
org.freedesktop.ConsoleKit.Manager.CanSuspend and
org.freedesktop.ConsoleKit.Manager.Suspend, both of which are also
not found here, either.

However, I have found that I have
org.freedesktop.Hal.Device.SystemPowerManagement.Suspend and this
does work to suspend the system!

So, my question to those more familiar with this than me: what would
be the correct way forward here?  Fix upower?  Fix ConsoleKit to
support the methods xfce is using?  Or add Hal support to xfce?
Or something else entirely?

Or... might there be a simple config problem here that I just need
to know about?

Thanks,
	-jr


More information about the freebsd-xfce mailing list