PDA

View Full Version : [ubuntu] Black screen when I try to lock the screen - dual monitors w/ separate X server



RawwrBag
November 3rd, 2011, 11:29 PM
I have two monitors. Yes, this is probably a bad idea, since configuring two or more displays in Linux is like pulling teeth. However, I had a fairly good setup going in 11.04. Now I'm hitting problems with 11.10.

I have a large and small monitor. The smaller monitor is rotated 90 degrees so I need to use a separate X server configuration in order use RandRRotation. Unity doesn't really support two X servers (only one has the top bar and such) but I don't really care, since I use the second monitor for a fullscreen VM.

The problem with 11.10 is that the screen won't lock. It fades to black, except the cursor is still visible. It looks like I can still interact with my windows, though I cannot see them. This does work on a single monitor in 11.10, and it worked fine with both monitors in 11.4. I'm assuming this is because the screensaver has changed. Is there any way I can get the old lock screen back? If not, what logs should I look at to see what is going on with my current screensaver (if that's the problem)?

Here is my xorg.conf:


nvidia-settings: X configuration file generated by nvidia-settings
nvidia-settings: version 280.13 (buildd@yellow) Fri Aug 5 12:31:28 UTC 2011

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DELL U3011"
HorizSync 29.0 - 113.0
VertRefresh 49.0 - 86.0
Option "DPMS"
# HorizSync source: edid, VertRefresh source: edid
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "DELL 2007FP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
Option "RandRRotation" "true"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
# generated from default
EndSection

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro FX 3450/4000 SDI"
BusID "PCI:7:0:0"
Screen 0
Option "NoLogo" "True"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro FX 3450/4000 SDI"
BusID "PCI:7:0:0"
Screen 1
Option "NoLogo" "True"
EndSection

gsmanners
November 3rd, 2011, 11:56 PM
Sounds like this (only, the bug reporter was using twinview): https://bugs.launchpad.net/ubuntu/+source/unity/+bug/813343

RawwrBag
November 4th, 2011, 12:49 AM
Good find. Not quite, though. My monitors both work as I'd like them to. The only problem is that I cannot lock my desktop (ctrl-alt-L, or from the gear menu in the top right). It hangs at a black screen if I try this.

gsmanners
November 4th, 2011, 12:58 AM
I don't think 11.10 comes with a screensaver by default. You have to install something like xscreensaver from the repo.

RawwrBag
November 4th, 2011, 01:51 AM
Right... So remember in 11.4 how it used screensaver "blank screen" as the default? And if you had a different selected screensaver and you went to lock the screen, it would launch the screensaver instead of the blank lock screen? I used the Matrix one and it would pop up when I hit ctrl-alt-l.

So they replaced "blank screen" screensaver for the lock screen with something new. Any way I can get the old functionality back?