You are not logged in.

#1 2017-06-11 12:15:00

simplisticways
Member
Registered: 2015-12-03
Posts: 49

[Solved] Resolution sometimes messed up, works after logout and login.

Hi fellas!

My install is quite fresh and everything seems to work quite well now. But there something that annoys me is that the resolution is not right sometimes when I boot my computer. The problem will be fixed when I logout and login again.

After the grub menu usually the resolution is bad. But after that the login section in my login page (lightdm) has either bad resolution or the right one. If its bad then I login and logout to fix it. This is becoming tedious.
I am using sometimes xfce and i3wm but I think its unrelating to this problem.

My built is.
GPU: Nvidia GTX1070
CPU: AMD Ryzen 5 1600X
Kernel:  4.11.2-1-ARCH 4.11.2-1-ARCH
Xorg-server: 1.19.3
Nvidia: 381.22-2

And using hdmi.

giving more time for bootup seems to be the cure.. as it hasnt being occured after that..

Last edited by simplisticways (2017-07-26 14:30:47)

Offline

#2 2017-06-11 13:10:11

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [Solved] Resolution sometimes messed up, works after logout and login.

The bad resolution at boot before Xorg starts is normal. Nvidia basically ignored the text console stuff in Linux and only made a driver for Xorg stuff. When lightdm starts, the bad resolution for that is not normal. This happening for you is a bug somewhere.

You should log in when the resolution is bad and save the output of this command here:

xrandr --verbose

And save the contents of the X log file, which should be the following file-name when using lightdm (check the file date/time to see if it is a new file or not):

/var/log/Xorg.0.log

Then also do the same when the resolution is good. There should be interesting differences when comparing the files. Perhaps share everything here.

Offline

#3 2017-06-12 17:51:56

simplisticways
Member
Registered: 2015-12-03
Posts: 49

Re: [Solved] Resolution sometimes messed up, works after logout and login.

Logs had quite many lines.

So I used pastebin.


Bad resolution

xrandr --verbose

https://pastebin.com/VGABqkYP

Xorg.o.log

https://pastebin.com/F2KJH5xz



Good resolution

xrandr --verbose

https://pastebin.com/kPe4Zs0m

Xorg.o.log

https://pastebin.com/h2Rz6vVJ

Offline

#4 2017-06-12 20:26:31

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: [Solved] Resolution sometimes messed up, works after logout and login.

In the bad case you're down to the VESA driver (which however correctly identifies the nvidia chip) - nvidia is not matched as autoconfigured driver, the problem seems the absence of /dev/dri/card0 - try to delay the lightdm start a bit and/or see https://wiki.archlinux.org/index.php/GR … ramebuffer

Offline

#5 2017-06-25 16:43:01

simplisticways
Member
Registered: 2015-12-03
Posts: 49

Re: [Solved] Resolution sometimes messed up, works after logout and login.

How do u delay lightdm? Is it even possible?

Offline

#6 2017-06-26 05:48:22

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: [Solved] Resolution sometimes messed up, works after logout and login.

Edit the /usr/lib/systemd/system/lightdm.service and make it sth. like

'ExecStart=/bin/sh -c '/usr/bin/sleep 2; /usr/bin/lightdm'

Offline

#7 2017-07-05 17:59:45

simplisticways
Member
Registered: 2015-12-03
Posts: 49

Re: [Solved] Resolution sometimes messed up, works after logout and login.

seth wrote:

Edit the /usr/lib/systemd/system/lightdm.service and make it sth. like

'ExecStart=/bin/sh -c '/usr/bin/sleep 2; /usr/bin/lightdm'

So it slows it down for like 2 seconds?

Offline

#8 2017-07-05 19:27:40

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: [Solved] Resolution sometimes messed up, works after logout and login.

That's the idea, yes. You want to know whether this is "just" a timing issue and the dri init is just too late for the X11 server launch.
You could ultimately go for https://lists.fedoraproject.org/piperma … 60917.html

Offline

Board footer

Powered by FluxBB