Logout after switch user causes black screen and disables keyboard and mouse

Bug #585685 reported by NoOp
58
This bug affects 11 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-173 (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Lucid by Igor Wojnicki
nvidia-graphics-drivers-96 (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Lucid by Igor Wojnicki

Bug Description

[Copycat - A blackscreen can also appear due to a bug in the ATI driver - workaround involving gnome-screensaver. (goto bug #546578)]

Steps to reproduce:
1. While logged in as user A, System|Log Out <username>|Switch User
2. Login to user B, ensure all is working properly and logout from user B.
- screen goes black
- keyboard no longer works
- mouse no longer works

100% reproduceable.

However, I can:
1. ssh -X into the machine w/o issue. I can bring up gui's from the affected machine (i.e., gnome-system-log, vino-preferences, etc).
2. remote login to the machine via VNC and get a screen; however I then get multiple tserver instances & have to kill it. Remote login to the machine using NX w/o issue.
3. reboot the machine from the remote ssh.

Attempts to resolve:

1. Ensured that the problem exists with enhanced graphics turned off (System|Preferences|Appearance|Visual Effects|None)
2. Ensured that the problem wasn't related to gnome-screensaver as per similar reports (purged gnome-screensaver, installed gnome-screensaver 2.30.0-0ubuntu2 etc).

Workaround:
Remove nvidia-96 and reboot. All switching between users then works properly. Reinstall nvidia-96 and the problem occurs.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nvidia-96 96.43.17-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Tue May 25 19:53:36 2010
DkmsStatus:
 vboxdrv, 3.2.0, 2.6.32-22-generic, i686: installed
 vboxnetadp, 3.2.0, 2.6.32-22-generic, i686: installed
 nvidia-96, 96.43.17, 2.6.32-21-generic, i686: installed
 nvidia-96, 96.43.17, 2.6.32-22-generic, i686: installed
 vboxnetflt, 3.2.0, 2.6.32-22-generic, i686: installed
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic root=UUID=c606c2a7-1fb1-403f-9b90-52f5f150340b ro quiet splash
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nvidia-graphics-drivers-96
dmi.bios.date: 09/29/2004
dmi.bios.vendor: Intel Corp.
dmi.bios.version: BF86510A.86A.0069.P21.0409290100
dmi.board.name: D865GBF
dmi.board.vendor: Intel Corporation
dmi.board.version: AAC25843-408
dmi.chassis.type: 2
dmi.modalias: dmi:bvnIntelCorp.:bvrBF86510A.86A.0069.P21.0409290100:bd09/29/2004:svn:pn:pvr:rvnIntelCorporation:rnD865GBF:rvrAAC25843-408:cvn:ct2:cvr:
glxinfo: Error: [Errno 2] No such file or directory
system:
 distro: Ubuntu
 codename: lucid
 architecture: i686
 kernel: 2.6.32-22-generic

Revision history for this message
NoOp (glgxg) wrote :
Revision history for this message
NoOp (glgxg) wrote :

Issue has been duplicated on a mirror machine with the same hardware/software. On that machine I have only the default nvidia /etc/X11/xorg.conf:

$ cat xorg.conf

Section "Screen"
 Identifier "Default Screen"
 DefaultDepth 24
 Option "AddARGBGLXVisuals" "True"
EndSection

Section "Module"
 Load "glx"
EndSection

Section "Device"
 Identifier "Default Device"
 Driver "nvidia"
 Option "NoLogo" "True"
EndSection

Revision history for this message
Stefan Pappalardo (sjuk) wrote :

Hi NoOp, thanx for your hint (https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/546578/comments/96).

It's the same for me. I switched to the vesa driver and the issue was gone. Then I switched back to the nvidia driver and the issue is back again. Look at https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/546578/comments/95 for more details.

Revision history for this message
Toni Förster (stonerl) wrote :

I'm not sure if this is an nvidia bug. I'm using an ATI Raedon and have the same problem. Standard-installation standard gfx-driver.

Revision history for this message
francesco bat (nerobat2004) wrote :

I also have this problem !
I have driver nvidia 96 but i don't think that the cause is this !
Bye
Francesco bat

Revision history for this message
NoOp (glgxg) wrote :

@francesco: Do you still have the problem if you remove the nvidia driver? Please test per the original post & see if you can recreate. Thanks.

Revision history for this message
PatG (patrick-grimm) wrote :

Duplicated on Kubuntu 10.04. Running KDM with either KDE or fluxbox results in blank screen on logout (exit) from X session. SSH from another computer reveals that Xorg is at 100% cpu. Kill xorg followed by sudo /etc/init.d/kdm restart from ssh will get you back up and running. Removing nvidia proprietary drivers (version 96 in this case with an older 440MX AGP card) eliminates the issue.

Revision history for this message
NoOp (glgxg) wrote :

Thanks very much for the confirmation PatG. So we can possibly rule out GDM being the cause & 96 as the issue. I just reproduced on a gnome machine (again) and top is showing xorg at 99.5%. However, in my case, I can't seem to kill Xorg (even using 'sudo su'). Starting & stopping gdm makes no difference either. Tried from the main user account & the test account.

Revision history for this message
NoOp (glgxg) wrote : Re: [Bug 585685] Re: Logout after switch user causes black screen and disables keyboard and mouse

On 06/08/2010 01:08 PM, NoOp wrote:
> Thanks very much for the confirmation PatG. So we can possibly rule out
> GDM being the cause & 96 as the issue.
Sorry should be '& confirm 96 as the issue.'

Revision history for this message
PatG (patrick-grimm) wrote :

I would say that this brings Nvidia 96 driver to the top of the list as the likely culprit. I do not have to do any user switching at all. Just a logout from the intitial session (kde or fluxbox), passing control back to KDM will cause the issue. Xorg.log does not contain any indication of what the issue is (at least at normal debugging levels).

To clarify the Xorg shutdown step I did it through top using SIGKILL 9, Default SIGTERM 15 would not take it out. I assume that sudo kill -9 <pid> would work equally well.

I have another 10.04 system running the Nvidia 195.36.24 drivers and there are no issues.

Revision history for this message
PatG (patrick-grimm) wrote :

Well, I just went to shut that system down and the bug is back. Currently running the Nouveau driver. This time there is no high CPU use. I did not have to kill Xorg but I did sudo /etc/init.d/kdm restart to get my screen back. So it is some issue with the logout transition. I can help test more tomorrow if needed. I will check back here after work.

Revision history for this message
PatG (patrick-grimm) wrote :

OK, I removed the Nouveau driver as well and X now starts with the NV driver. I can freely login/logout and switch between KDE/fluxbox with no black screen lockups. So this once more appears to be a video driver issue.

To recreate on my system.

1. Boot into X running either Nvidia 96 series or Nouveau driver with KDM.
2. Login
3. Logout/KDE or Exit/Fluxbox -> return to KDM login screen
4. Login
5. Attempt logout/exit and you get black screen lockup

Revision history for this message
NoOp (glgxg) wrote :

On 06/08/2010 10:50 PM, PatG wrote:
...
> To clarify the Xorg shutdown step I did it through top using SIGKILL 9,
> Default SIGTERM 15 would not take it out. I assume that sudo kill -9
> <pid> would work equally well.
...

Thanks for that.

ssh'd into the test machine:
1204 root 20 0 62816 42m 9028 R 95.5 5.7 1:17.59 Xorg
$ sudo kill -9 1204

Works. As soon as I kill Xorg the gdm login screen pops back up and I
can log back in as the original user.

Again, on my gdm systems:
Steps to reproduce:
1. While logged in as user A, System|Log Out <username>|Switch User
2. Login to user B, ensure all is working properly and logout from user B.
- screen goes black
- keyboard no longer works
- mouse no longer works

100% reproducible w/nvidia-96 driver installed. Per your last entry,
I'll try with nouveau as well (removing nvidia-96), but I seem to recall
that I'd tried nouveau previously and all worked... I'll test again.
Thanks again for testing Pat.

Revision history for this message
NoOp (glgxg) wrote :

On 06/09/2010 04:28 PM, PatG wrote:
> OK, I removed the Nouveau driver as well and X now starts with the NV
> driver. I can freely login/logout and switch between KDE/fluxbox with no
> black screen lockups. So this once more appears to be a video driver
> issue.
>
> To recreate on my system.
>
> 1. Boot into X running either Nvidia 96 series or Nouveau driver with KDM.
> 2. Login
> 3. Logout/KDE or Exit/Fluxbox -> return to KDM login screen
> 4. Login
> 5. Attempt logout/exit and you get black screen lockup
>

Works for me with nouveau w/nvidia-96 & all nvidia* purged (gnome).

$ apt-cache policy xserver-xorg-video-nouveau
xserver-xorg-video-nouveau:
  Installed: 1:0.0.15+git20100219+9b4118d-0ubuntu5
  Candidate: 1:0.0.15+git20100219+9b4118d-0ubuntu5
  Version table:
 *** 1:0.0.15+git20100219+9b4118d-0ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
NoOp (glgxg) wrote :

On 06/08/2010 10:59 PM, PatG wrote:
> Well, I just went to shut that system down and the bug is back.
> Currently running the Nouveau driver. This time there is no high CPU
> use. I did not have to kill Xorg but I did sudo /etc/init.d/kdm restart
> to get my screen back. So it is some issue with the logout transition. I
> can help test more tomorrow if needed. I will check back here after
> work.
>

This may be due to an existing /etc/X11/xorg.conf file. For me if I
removed nvidia-96 and rebooted, I only got a black screen. I had to ssh
into the machine and mv it and then restart gdm. The nouveau driver
wouldn't kick in until I did. My xorg.conf was as mentioned in comment #2.

Try the noveau driver with no xorg.conf (after purging nvidia*) & see if
you still get the same problem.

Revision history for this message
Igor Wojnicki (wojnicki) wrote :

I can confirm that this bug affects also nvidia-driver-173. No problems with noveau though.

Changed in nvidia-graphics-drivers-173 (Ubuntu):
status: New → Confirmed
Revision history for this message
Igor Wojnicki (wojnicki) wrote :

I made it a duplicate since bug #573101 was reported earlier.

Revision history for this message
NoOp (glgxg) wrote :

You do realize that bug #573101 is nvidia-173 related and *not* nvidia-96? Further, there are no '96 drivers in nvidia-graphics-drivers and nvidia-96 does not (yet) work in Maverick 10.10. This bug report is filed in the proper package and is nvidia-96 specific.

Revision history for this message
Igor Wojnicki (wojnicki) wrote :

@NoOp bug #573101 is both 96 and 173 related, there is a package with 96 drivers both for lucid (http://packages.ubuntu.com/lucid/nvidia-96) and maverick (http://packages.ubuntu.com/maverick/nvidia-96), and maverick package's changlog indicate that a patch has been added to cure hangups which are the symptoms. I didn't realize though that 96 does not work in Maverick as you indicated (by the way this report regards lucid not maverick) and I didn't test if 96 from maverick works with lucid. Sorry for that.

Bottom line. Does 96 from maverick work in lucid preventing the hangup?

Revision history for this message
NoOp (glgxg) wrote :

On 09/14/2010 10:31 AM, Igor Wojnicki wrote:
> @NoOp bug #573101 is both 96 and 173 related, there is a package with 96
> drivers both for lucid (http://packages.ubuntu.com/lucid/nvidia-96) and
> maverick (http://packages.ubuntu.com/maverick/nvidia-96), and maverick
> package's changlog indicate that a patch has been added to cure hangups
> which are the symptoms. I didn't realize though that 96 does not work in
> Maverick as you indicated (by the way this report regards lucid not
> maverick) and I didn't test if 96 from maverick works with lucid. Sorry
> for that.
>
> Bottom line. Does 96 from maverick work in lucid preventing the hangup?
>

96 doesn't work in Maverick at all at this time due to incompatibility
issues with X server 1.9, so there is no way to test. See:
<https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-96/+bug/616394>
and
<https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/626974>

My reference to Maverick was from your
<https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/573101/comments/12>

Revision history for this message
NoOp (glgxg) wrote :

On 09/14/2010 10:31 AM, Igor Wojnicki wrote:
...
> Bottom line. Does 96 from maverick work in lucid preventing the hangup?

I'll test with 96.43.18-0ubuntu1 today.

Revision history for this message
NoOp (glgxg) wrote :

@Igor: 96.43.18-0ubuntu1 on lucid 10.04 resolves the issue for me. I can switch between users, logout between users, and all works.

Remarking this as a duplicate of 573101 -thanks. I'll add my confirmation comment on that bug as well.

MarcelD (marcel-dykstra)
Changed in nvidia-graphics-drivers-96 (Ubuntu):
status: New → Confirmed
MarcelD (marcel-dykstra)
description: updated
MarcelD (marcel-dykstra)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.