Bug 18474 - After commit 72aaf9bd switching users gets stuck
Summary: After commit 72aaf9bd switching users gets stuck
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/radeonhd (show other bugs)
Version: 7.3 (2007.09)
Hardware: Other All
: medium normal
Assignee: Luc Verhaegen
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-10 15:10 UTC by Aljaž Prusnik
Modified: 2008-11-16 11:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg.log (41.64 KB, text/x-log)
2008-11-10 15:10 UTC, Aljaž Prusnik
no flags Details
the failed session (36.88 KB, text/x-log)
2008-11-11 07:56 UTC, Aljaž Prusnik
no flags Details
the working session (39.58 KB, text/x-log)
2008-11-11 08:05 UTC, Aljaž Prusnik
no flags Details
xorg log of the second user after the fix (37.41 KB, text/x-log)
2008-11-11 21:58 UTC, Aljaž Prusnik
no flags Details
xorg log of the second user after the 2nd fix (40.31 KB, text/x-log)
2008-11-16 06:17 UTC, Aljaž Prusnik
no flags Details

Description Aljaž Prusnik 2008-11-10 15:10:36 UTC
Created attachment 20196 [details]
xorg.log

I have noticed this behaviour and thought gnome and debian are to blame, but second guessing led me to try the history of the driver, especially so, because during the switch I see monitor messaging me about switching off.

The case is that I try to switch to other user in gnome and it always returns me to the current user's login window. One commit earlier, I could get the plain login screen for the other user but this one fails to switch to other terminal, I guess.

The Xorg log is attached.
Comment 1 Egbert Eich 2008-11-11 04:19:02 UTC
Aljaž, I'm not sure what you are talking about, as I'm not familiar how these things are done under gnome. I'm not sure what you mean by 'current/other user's login screen'. For me a login screen (I assume you are referring to gdm) is for all users. You can select a user and enter a password.
Comment 2 Aljaž Prusnik 2008-11-11 05:14:30 UTC
Ok, a little description. Gnome has the option of having concurrent logged in user, each using different VT above 7. That is done using either fast-switch-user applet or when the session is locked in gnome and you want to continue with the session (unlock it), then you can either return to your own session or choose the option "Switch" whereby you can change the user and then log-in. It is a similar service as under Windows XP (there also exists this fast-user-switch thing).

As I am a heavy user of this functionality (I have multiple users logged in the same machine all the time) I notice the anomalies that most of the users probably don't. 

There was already a bug here regarding blackouts that was successfully solved (see bug #13853) and here happened again using concurrent users.

What I deducted from what happens during the user switch is, that the monitor between the command and a new log-in window returns a message that it is going to sleep. That is something that didn't happen before when switching users. So I deduct that when a user says "switch user", the terminal won't switch and stays on the same VT and because this behaviour happens between this and previous commit, there has to be this code that does the difference.
Comment 3 Egbert Eich 2008-11-11 05:36:15 UTC
OK, so a new Xserver is started for each user, I assume.
The second server needs to be started with a different display.
So please check if a file /var/log/Xorg.1.log exists. If it does, please remove it, perform the test again and after you have returned to the original server please attach it here.
Thanks!
Comment 4 Aljaž Prusnik 2008-11-11 07:56:46 UTC
Created attachment 20215 [details]
the failed session
Comment 5 Aljaž Prusnik 2008-11-11 07:57:33 UTC
I see it's DRI that fails...
Comment 6 Aljaž Prusnik 2008-11-11 08:05:53 UTC
Created attachment 20216 [details]
the working session

This is the commit that works, although I see DRI failed here, too. But anyhow, the session still works.
Comment 7 Egbert Eich 2008-11-11 12:16:19 UTC
Fixed.
Check commit: 53dd35cb766138c879c926a8374380174e876d35

Thanks for your input!
Comment 8 Aljaž Prusnik 2008-11-11 21:58:22 UTC
Created attachment 20238 [details]
xorg log of the second user after the fix

Unfortunatelly it may solve one problem but creates another. Now, the screen goes to sleep when second user logs in and the log produces was 103MB big! In the attachment I erased the repeating lines and left only three of them but can still upload the zipped version if you need it (it's about 47KB).
Comment 9 Aljaž Prusnik 2008-11-11 21:59:10 UTC
see comment under the new attachment
Comment 10 Egbert Eich 2008-11-16 04:54:29 UTC
Argh! OK, thanks for the follow up!
Should be fixed with commit:
4d65e4c6d96c725dafb5fa8a6fc5a252fee4c260
now :)
Comment 11 Aljaž Prusnik 2008-11-16 06:17:16 UTC
Created attachment 20337 [details]
xorg log of the second user after the 2nd fix

Now, the login succeeds but DRI is not enabled. Then, if I log off the second user, it goes ok, but if I switch from the second user back to the first, X freezes and I have to restart it via ssh. Attached is the Xorg log of the second user when trying to switch back to some other user. Switching back doesn't switch the terminal but stays on the second user, the windows are frozen, the keyboard does not respond (not even num-lock).

If it is not the same stuff from the bug, tell me, for now I'll reopen this one, again.
Comment 12 Aljaž Prusnik 2008-11-16 06:17:53 UTC
See the comment of the previous attachment
Comment 13 Egbert Eich 2008-11-16 10:07:06 UTC
OK, fixed that one, too.
Commit:
c2dfeafe7bcf330a2688f6715840188cf37a312b
Comment 14 Aljaž Prusnik 2008-11-16 11:01:38 UTC
Now it seems to work - the switching. But I am still curious, why does it not start DRI?:

(II) [drm] DRM interface version 1.0
(EE) [drm] Could not set DRM device bus ID.
(EE) RADEONHD(0): [dri] DRIScreenInit failed.  Disabling DRI.
(II) RADEONHD(0): Using MMIO Command Submission for acceleration.

Anyway, thanx for the fix, but until DRM starts on the other user as well, I will have to either switch off DRI or switch to XAA because it's not possible to work under DRI/EXA combination (slow drawing & listing pages, etc).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.