Description of problem: When I am on my xfce desktop, it is impossible for me to directly shutdown or restart the computer using the right buttons. When I try to shutdown or restart the computer from the xfce desktop, I am only logout. However, it is possible to shutdown or restart at the login screen (lightdm login prompt). The suspend and hibernate buttons works correctly. Version-Release number of selected component (if applicable): Xfce 4.10 with Mageia Cauldron How reproducible: every time I want to restart or shutdown the computer from the xfce desktop. Steps to Reproduce: 1. Mageia 3 minimal install (only Configuration et console utils programs ) 2. urpmi task-xfce from the command line 3. Possible workaround : Use lxdm (with the lxpolkit package) instead of lightdm fix the problem From the command line with a fresh installation : urpmi lxdm lxpolkit lightdm-gtk-greeter hunspell-fr lib64lapack3 gnome-packagekit-common task-xfce
I am sorry because I forget to mention that i am using a Mageia 3 beta 2 media to do fresh installation.
CC: (none) => fundawang, jani.valimaa
No more news ? One question. Is it possible to choose between lxdm and lightdm and don't see lightdm as suggest package ? For the moment, I am obliged to use --no-suggests before urpmi task-xfce in order to avoid the installation of lightdm .
Haven't had time to investigate this yet. I'll try to find some time before mga3 release. :) Currently we prefer lightdm with Xfce. That's why it's suggested. You can use urpmi with '--skip lightdm' if you don't want lightdm, but want other suggested pkgs.
(In reply to Olivier Mondoloni from comment #2) > No more news ? I can reproduce this issue and seems like it's fixed in latest lightdm and/or lightdm-gtk-greeter release. I've no time to hunt correct patches from upstream to lightdm and/or lightdm-gtk-greeter so I guess I'm going to update both to their latest versions, even they're tagged as unstable releases and we're pretty close to mga3 release. I've used latest versions locally without any issues so far and IMHO this nasty bug should be fixed.
Thank you to have take time to look at this problem and to find a solution.
Installed Xfce + lightdm today to one computer and all worked without any issues OOTB. So I think this needs more digging and I will not update lightdm + greeter blindly to their latest versions, yet. If we can't find the real issue and the fix for it, we probably should add this issue to errata for mga3 and suggest to use another dm for workaround.
What do you mean by OOTB ? What the command line are you using to install xfce ? I am ok for waiting and find what's wrong.
OOTB = Out Of The Box. Used latest x86_64 boot-nonfree.iso for Cauldron and graphical install. Selected task-xfce-minimal from individual package selection.
Seems like reboot/shutdown isn't working if loginctl shows session for lightdm user after login. Dunno yet why session for lightdm user isn't always closed. One can test this by looking if cmd 'loginctl' shows session for lightdm user. If yes, reboot/shutdown works only as logout. If there's no session, reboot/shutdown should work. One can also terminate session for lightdm user with cmd 'loginctl terminate-session <session id>' (session id can be found from loginctl cmd output) and after that reboot/shutdown should work as expected.
(In reply to Jani Välimaa from comment #9) > Seems like reboot/shutdown isn't working if loginctl shows session for > lightdm user after login. Dunno yet why session for lightdm user isn't > always closed. > Noticed another weird thing. Lxpolkit should have asked authorization to reboot/shutdown as there's another session running. Cancelling this authorization acts like logout.
I try loginctl terminate-session cmd and I have the same behaviour as yours. When I terminate lightdm session, shutdown and reboot buttons works as expected. I have also do a test with the couple lxpolkit with lightdm. I also noticed the ask for an authorization to reboot/shutdown the computer.
The last update of the lightdm package (1.4.1) doesn't fix the problem. It's a pity !
I've narrowed down the problem a bit and seems like it's caused by the GTK3 version of lightdm-gtk-greeter. Dunno why, though. :( I'll push later tonight lightdm-gtk-greeter with patches to build it with GTK2. Please test if it fixes your problem.
I made a test with the 1.3.1 version 6.mga3 revision of the lightdm-gtk-greeter package and now shutdown and rebooting from a xfce session works. Thank you for your work.
Actually I've found the proper solution for this. We need a patch [1] from upstream git to our systemd pkg. This patch adds session class option support to pam_systemd.so. After applying this patch we can pass class=greeter option to pam_systemd.so module in pam config of lightdm-greeter => greeter sessions are filtered out and it should be possible to reboot/shutdown the machine even if the session for lightdm user is there. I've tested this locally for GTK2 and GTK3 greeter and it seems to be working. However, I'm not going to rebuild lightdm-gtk-greeter with GTK3 again for mga3. I'll add pkgs for both GTK2 and GTK3 greeter for mga4. I've asked coling to apply the patch to our systemd. [1] http://cgit.freedesktop.org/systemd/systemd/commit/?id=485507b8c031e0c75f43c4b4fce5a0082a812fbb
Created attachment 3682 [details] Root password to shutdown the computer Sorry to say that there is another problem. The first time I relaunch my system no passwd has been asking to me to shutdown or reboot the computer but now I faced to this window. This happend on a fresh Mageia 3 beta 4 Xfce install.
(In reply to Olivier Mondoloni from comment #16) > Created attachment 3682 [details] > Root password to shutdown the computer > > Sorry to say that there is another problem. > The first time I relaunch my system no passwd has been asking to me to > shutdown or reboot the computer but now I faced to this window. > This happend on a fresh Mageia 3 beta 4 Xfce install. "Fixed" lightdm-gtk-greeter was pushed only after beta4 was released. So you need to update to get the "fixed" ligthdm-gtk-greeter. However, when the patched systemd is available, I'll push lightdm with proper fix mentioned in comment 15. Just wait until this new lightdm is available.
Excuse-me, when I say a fresh Mageia 3 beta 4 install, I mean a fresh Mageia 3 beta 4 with an system update after.
Tonight, I update my XFCE Mageia 3 system and now all problems with shutdown and reboot are gone. Thank you.
I'm closing this as FIXED then. Feel free to reopen if needed.
Status: NEW => RESOLVEDResolution: (none) => FIXED