Ken Moffat wrote:
In the past I have used lxdm with xfce on this particular machine :
got it working once (7.6), failed to get it working in 7.7 and went
back to startx.  But now that I have sorted out a working sddm theme
on other boxes, I thought I would give this another try.

In general, xfce works ok (I still prefer icewm, if only for its
CPU and network activity windows on the taskbar, but xfce is almost
as good : it tells me how much network i/o is happening, angd gives
me four columns for the four CPUs - with icewm I can spot when I am
downloading or uploading (e.g. rsuync backups), and also I can see
the red for memory pressure, but I can probably learn the modern
ways).

I have already installed pm-utils, a sudo "rule" to let me suspend
to RAM, and xbindkeys to invoke that from a suitable keyboard key.
And my sddm theme - with ConsoleKit etc - lets me do all of those,
or in the desktop I can suspend by hitting the designated key.

But in the xfce 'Log Out' dialog there are : Log Out, Restart,
Shut Down, Suspend, Hibernate, Cancel options.  All except Log Out
and Cancel are greyed out ("grayed out" for Americans).  It would be
nice to enable them - with the possible exception of hibernate, for
which I would have to do a bit more config in grub and the kernel.

This is not a showstopper for me, but if I can see the icons on the
Log Out dialog it would be nice to make them work.

Please note that I do NOT have PAM installed.

My first attempt was to change xfce.desktop in /usr/share/xsessions
from Exec=startxfce4 to
Exec=ck-launch-session dbus-launch --exit-with-session startxfce4
but that changed nothing - xfce4 still starts, but only Log Out and
Cancel work on the Log Out dialog.

Then I started finding google hits which suggested that I needed
some pkla files.  I've put a couple of files into
/etc/polkit-1/localauthority/50-local.d/ but they appear to have no
effect.

First is consolekit.pkla for Restart and Shut Down :

[Local restart]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local shutdown]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=no
ResultActive=yes

Arguably, that might be a bit too loose, if it worked - non-human
users, if hacked, might be able to reboot or suspend the system.
But I can probably live with that, and anyway it doesn't work.

Second is upower.pkla for Suspend and Hibernate

[Local Users]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate
ResultAny=yes
ResultInactive=no
ResultActive=yes

Again, this does not seem to work.  Any clues, pretty please ?

I've run into this too. At one time I did have it working, but I don't remember the details. This is one of those issues I rant about periodically. It's set up like a system in the 1990's where multiple 'seats' log into a remote X server. That's something pretty rare today.

In any case take a look at polkit. The rules there say something about the wheel group. You might want to create that group and add yourself. I don't know if that is enough, but it's another thing to try.

I once tried to trace this via dbus messages and looking at the code, but it is really complicated. Generally I've decided to give up and follow the book using PAM.

I'm in the middle of checking Xorg right now for 7.8 and I'll try xfce after that.

  -- Bruce


--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to