Wrong resolution at unlock screen

Bug #1760068 reported by Kev Bowring on 2018-03-30
58
This bug affects 10 people
Affects Status Importance Assigned to Milestone
light-locker (Ubuntu)
Undecided
Unassigned
nvidia-graphics-drivers-340 (Ubuntu)
Undecided
Unassigned

Bug Description

After coming out of suspend - the unlock screen is at 640x480 resolution.

Expect to see unlock screen at 1920x1080 resolution.

Using nvidia-340.

Previously tested using nouveau driver where resolution at unlock screen was correct.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: light-locker 1.8.0-1ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-13.14-generic 4.15.10
Uname: Linux 4.15.0-13-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.20.9-0ubuntu2
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Mar 30 11:31:20 2018
InstallationDate: Installed on 2017-09-02 (209 days ago)
InstallationMedia: Xubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170902)
SourcePackage: light-locker
UpgradeStatus: No upgrade log present (probably fresh install)

Kev Bowring (flocculant) wrote :
Sean Davis (bluesabre) wrote :

Doesn't seem to affect Intel graphics.

Card-1: Intel Haswell-ULT Integrated Graphics Controller
Card-2: NVIDIA GK107M [GeForce GT 745M]
Display Server: x11 (X.Org 1.19.6 )
drivers: modesetting,nouveau (unloaded: fbdev,vesa)
Resolution: 1920x1080@60.00hz
OpenGL: renderer: Mesa DRI Intel Haswell Mobile
version: 4.5 Mesa 18.0.0-rc5

Kev Bowring (flocculant) wrote :

doesn't affect nouveau either

Sean Davis (bluesabre) wrote :

Unable to confirm for nvidia-340, but also not sure it's fully installed. Installed via Software & Updates, and it says it's installed, but nvidia-settings has two tabs and this is inxi's output. If this is correct output, it seems to be working on nvidia-340 here.

$ inxi -G
Graphics: Card-1: Intel Haswell-ULT Integrated Graphics Controller
           Card-2: NVIDIA GK107M [GeForce GT 745M]
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting,nouveau (unloaded: nvidia,fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: N/A version: N/A

Sean Davis (bluesabre) wrote :

Also no luck getting nvidia-driver-390 installed to test.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in light-locker (Ubuntu):
status: New → Confirmed
Hélio Nunes (dedalu-dedalu) wrote :

Me too. Xubuntu 18.04, fresh install.

It happens after resume from suspend and when I switch users (dm-tool switch-to-greeter). For the first user the resolution is correct:

user_a$ inxi -G
Graphics: Card: NVIDIA GT215M [GeForce GT 335M]
           Display Server: x11 (X.Org 1.19.6 ) driver: nvidia Resolution: 1600x900@59.98hz
           OpenGL: renderer: GeForce GT 335M/PCIe/SSE2 version: 3.3.0 NVIDIA 340.106

user_a$ xrandr --query
Screen 0: minimum 8 x 8, current 1600 x 900, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected 1600x900+0+0 (normal left inverted right x axis y axis) 345mm x 194mm
   1600x900 59.98*+
HDMI-0 disconnected (normal left inverted right x axis y axis)

But for the second user:

user_b$ inxi -G
Graphics: Card: NVIDIA GT215M [GeForce GT 335M]
           Display Server: x11 (X.Org 1.19.6 ) driver: nvidia
           Resolution: 640x480@73.00hz
           OpenGL: renderer: N/A version: N/A

user_b$ xrandr --query
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 640 x 480, maximum 640 x 480
default connected 640x480+0+0 0mm x 0mm
   640x480 73.00*

Note: user_b screen resolution is fine if he is the only one using the system. The problem happens only when he is the second.

Thanks.

This is a duplicate of bug 1757202.

It affects me too... I have an ATI Mobility Radeon HD 5470. And it has nothing to do with 2 users at the same time, because it happens to me with a single user logged in.

Thiago, this bug may be caused by having two Xorg instances (the user session and the unlock screen which runs in another VT) accessing the graphics driver. And up until now, only the nvidia driver was reported to be part of the problem.

Please check the logs files in /var/log/lightdm for any hints.

Most likely not a bug in light-locker.

Changed in light-locker (Ubuntu):
status: Confirmed → Incomplete
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: New → Confirmed

A new version of nvidia-graphics-drivers-340 is available in -updates.

Please check if it resolves the bug.

https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/340.107-0ubuntu0.18.04.1

Changed in light-locker (Ubuntu):
status: Incomplete → Invalid
Hélio Nunes (dedalu-dedalu) wrote :

I'm using the 340.107 and the problem persists.

As I told in #7, a second X user is affected too, not only the unlock screen. That's the big problem with this bug: it is not only an aesthetic problem.

I confirm that all works as intended with the nouveau driver.

I did not found any error messages in the /var/log/lightdm/ files.

Where and what should I look to contribute more?

Thanks.

Well, as mentioned in comment #10, this bug is not limited to the unlock screen (which happens to be a second Xorg instance if you use light-locker).

Does the workaround in bug 1757202 fix the issue for you?

Hélio Nunes (dedalu-dedalu) wrote :

Thank you, Theo!

Based on that workaround, I have added

Section "Files"
        ModulePath "/usr/lib/nvidia-340/xorg"
        ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
        ModulePath "/usr/lib/xorg/modules"
EndSection

to the xorg.conf and it's working!

Thanks!

Joshua Hartwell (joshuad) wrote :

That work around did not work for me.

This bug also affects my TTY displays.

Xubuntu 18.04
NVIDIA GeForce GTX 750Ti
64-bit Intel i5-8400

Joshua Hartwell (joshuad) wrote :

Nevermind, the full solution from the link did in fact work for me. Using nvidia-driver-390.

I am copy/pasting the solution here for any other users:

1. Create an xorg.conf file for your nVidia device. All you have to do for this is to launch the command:

sudo nvidia-xconfig

This will create a file /etc/X11/xorg.conf.

2. Edit the created file /etc/X11/xorg.conf and add at the end the lines:

Section "Files"
 ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
 ModulePath "/usr/lib/xorg/modules"
EndSection

3. Save and restart the X server. Now, for the first and second user you should have the nvidia driver in use, with the correct resolution and fast rendering. You can check it using the command:

--- Note by JoshuaD: I did not try anything below this line -----

glxgears -info |grep NVIDIA

which should return the nvidia opengl version.

Note, there is also a problem of slow scrolling in the virtual console (Ctrl-Alt-F1). To solve this, edit /etc/default/grub and set the GRUB_CMDLINE_LINUX variable as:

GRUB_CMDLINE_LINUX="video=vesafb:mtrr:3,ywrap"

then do:

sudo update-grub

and reboot. Now, the scrolling speed in the virtual console should be very fast.

Hélio Nunes (dedalu-dedalu) wrote :

It's almost the same workaround for all nvidia versions: you must inform where is the nvidia_drv and libglx.

For nvidia-340, you must add:

Section "Files"
        ModulePath "/usr/lib/nvidia-340/xorg"
        ...
EndSection

Other versions will need other path.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers