Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-09-24 20:35:36

chronics
Member
Registered: 2017-09-24
Posts: 4

xfce user switching not working

I know xfce does not have native user switching but since moving to it from gnome I am unable to get switch users workers. I have tried gdm and lightdm, xscreensaver new login button does not do anything, same with gnome-screensaver switch user. dm-tool switch-to-greeter just gives an error: Not running inside a display manager, XDG_SEAT_PATH not defined . Setting the xdg path still gives an error, there does not seem to be anything particularly useful in syslog,lightdm,xsession or xorg logs.I do have a feeling it may be due to a dual monitor (one display port) setup and nvidia drivers, has anyone been able to get using switching working with nvidia drivers?

debian buster
xfce 4.12
nvidia 375.82

Offline

#2 2017-09-24 23:23:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: xfce user switching not working

Hello and welcome.

I don't have nvidia cards or dual monitors, but a couple of pointers that might be helpful:

xscreensaver new login button does not do anything

By default, xscreensaver runs "gdmflexiserver" which doesn't exist anymore. There is more information and workaround options documented in the here that you could try.

dm-tool switch-to-greeter just gives an error: Not running inside a display manager, XDG_SEAT_PATH not defined .

"dm-tool" needs to be run from within an X session (and I believe with lightdm running as well). Are you running it from within your Xfce session (as opposed to running it from a virtual console) and is lightdm running?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2017-09-25 00:06:50

chronics
Member
Registered: 2017-09-24
Posts: 4

Re: xfce user switching not working

Thanks for the reply Toz, yes, I tried creating an Xresources file for xscreensaver but it produced the same error as when running dm-tool directly, I was running dm-tool from within a console in xfce. I do think its an nvidia driver issue as I switched to xfce at the same time i installed the card so probably getting the two mixed up. As switching users doesnt work with either lightdm or gdm not really sure what else to try at this point.

Offline

#4 2017-09-25 01:31:56

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: xfce user switching not working

How are you starting Xfce? Are you using a DM (lightdm) or via startx? If manually via startx, what does your ~/.xinitrc look like?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2017-09-26 06:02:55

chronics
Member
Registered: 2017-09-24
Posts: 4

Re: xfce user switching not working

I'm starting xfce through gdm, I changed from lightdm due to debian bug #868087. I tried installing xfswitch-plugin but made no difference. I see in xsession-error logs mousepad: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. for all open apps, this happens after I attempt to switch user and the screen goes blank.

Offline

#6 2017-09-26 10:18:08

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: xfce user switching not working

chronics wrote:

I see in xsession-error logs mousepad: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. for all open apps

Your x server is crashing. Look at your Xorg logs and in the journal, there should be something there.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2017-09-26 22:14:56

chronics
Member
Registered: 2017-09-24
Posts: 4

Re: xfce user switching not working

I checked and Xorg log does not update, interstingly journalctl shows some critical errors, below is a snippet, the first two lines are me running journalctl before attempting to switch users through the menu option. It looks like its just showing X restarting but nothing on why the user switching isnt working.

Sep 26 22:39:46 burma sudo[28084]: christopher : TTY=pts/0 ; PWD=/home/christopher ; USER=root ; COMMAND=/bin/journalctl
Sep 26 22:39:46 burma sudo[28084]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 26 22:40:15 burma gdm-launch-environment][28099]: pam_unix(gdm-launch-environment:session): session opened for user Debian-gdm by (uid=0)
Sep 26 22:40:15 burma systemd[1]: Started Session c9 of user Debian-gdm.
Sep 26 22:40:15 burma systemd-logind[587]: New session c9 of user Debian-gdm.
Sep 26 22:40:16 burma udev-acl[28118]: g_slice_set_config: assertion 'sys_page_size == 0' failed
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[1710]: (II) systemd-logind: got pause for 13:65
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[1710]: (II) systemd-logind: got pause for 13:75
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[1710]: (II) systemd-logind: got pause for 13:66
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[1710]: (II) systemd-logind: got pause for 13:64
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[1710]: (II) systemd-logind: got pause for 13:74
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[1710]: (II) systemd-logind: got pause for 13:67
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: _XSERVTransMakeAllCOTSServerListeners: server already running
Sep 26 22:40:16 burma udev-acl[28120]: g_slice_set_config: assertion 'sys_page_size == 0' failed
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: _XSERVTransMakeAllCOTSServerListeners: server already running
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: (--) Log file renamed from "/var/lib/gdm3/.local/share/xorg/Xorg.pid-28119.log" to "/var/lib/gdm3/.local/share/xorg/Xorg.2.log"
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: X.Org X Server 1.19.3
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: Release Date: 2017-03-15
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: X Protocol Version 11, Revision 0
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: Build Operating System: Linux 4.9.0-3-amd64 x86_64 Debian
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: (II) systemd-logind: took control of session /org/freedesktop/login1/session/c9
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: (II) xfree86: Adding drm device (/dev/dri/card0)
Sep 26 22:40:16 burma unknown[28121]: g_slice_set_config: assertion 'sys_page_size == 0' failed
Sep 26 22:40:16 burma dbus[605]: [system] Rejected send message, 2 matched rules; type="error", sender=":1.0" (uid=0 pid=587 comm="/lib/systemd/systemd-logind ") interface="(unset)" member="(unset)" error name="
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 14 paused 1
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: (EE) Error systemd-logind returned paused fd for drm node
Sep 26 22:40:16 burma /usr/lib/gdm3/gdm-x-session[28116]: (II) systemd-logind: releasing fd for 226:0
Sep 26 22:40:16 burma dbus[605]: [system] Rejected send message, 2 matched rules; type="error", sender=":1.0" (uid=0 pid=587 comm="/lib/systemd/systemd-logind ") interface="(unset)" member="(unset)" err
Sep 26 22:40:16 burma dbus[605]: [system] Rejected send message, 2 matched rules; type="error", sender=":1.0" (uid=0 pid=587 comm="/lib/systemd/systemd-logind ") interface="(unset)" member="(unset)" error name="
Sep 26 22:40:16 burma dbus[605]: [system] Rejected send message, 2 matched rules; type="error", sender=":1.0" (uid=0 pid=587 comm="/lib/systemd/systemd-logind ") interface="(unset)" member="(unset)" error name="
Sep 26 22:40:16 burma gnome-session[28130]: gnome-session-binary[28130]: CRITICAL: gsm_manager_set_phase: assertion 'GSM_IS_MANAGER (manager)' failed
Sep 26 22:40:16 burma gnome-session-binary[28130]: CRITICAL: gsm_manager_set_phase: assertion 'GSM_IS_MANAGER (manager)' failed
Sep 26 22:40:17 burma systemd-logind[587]: Removed session c9.
Sep 26 22:40:17 burma gdm3: GdmDisplay: display lasted 1.312942 seconds
Sep 26 22:40:17 burma gdm3: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors
Sep 26 22:40:17 burma gdm3: Child process -28116 was already dead.


So it looks like something is going wrong with X, I cannot tell though whether that is the new session for the new user failing. I did notice my DISPLAY environment variable is DISPLAY=:1.0 , although it doesnt show in syslog, in the xsession-errors I see:

dbus-update-activation-environment: setting DISPLAY=:0
/usr/bin/startxfce4: X server already running on display :0
xfce4-session-Message: SSH authentication agent is already running

And as with my previous post the fatal IO errors are on :0.0

This makes me wonder is the user switching happening on display :0.0 while X is showing :1.0 ?

I'm not an expert on this so all the help is really appreciated.

Offline

Board footer

Powered by FluxBB