Where is default display resolution stored if not in xrog.conf?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Rep:
Where is default display resolution stored if not in xrog.conf?
For some reason, when I start xfce, it starts up in a lower resolution of 1680x1050. I can switch to 2048x1152, and that works fine, but if I remote into the box via tightvnc (or any other vnc client), the vnc window is only 1680x1050. Something is 1) causing the default resolution to be 1680x1050 at startup, and 2) telling vnc clients that the display is still at 1680x1050 even when it is not.
There is no resolution specified in xorg.conf. Where is this default resolution of 1680x1050 stored? I'm assuming it is stored somewhere because it didn't used to do this. I'm not sure what I did, but a week or two ago this started. Prior to that, xfce would always come up at 2048x1152.
I had the same problem a month or so ago. I ran a program that switched the display to 1024x768, and this setting was stored somewhere such that when I restarted, the display would come up as 1024x768. After resetting it to 2048x1152, any vnc clients that connected would be told that the display was 1024x768, regardless of the fact that I had changed it.
So - where is the resolution stored, since it seems it is no longer stored in xorg.conf?
As far as I know, relevant configuration is stored in /etc/X11/xorg.conf.d and in /etc/X11/xorg.conf if any. If configuration does not specify a resolution, the system will try to guess a proper one automatically.
I don't know if complex desktop environments have their own capabilities to switch resolution or how they would do so, sorry.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Original Poster
Rep:
Quote:
Originally Posted by allend
Perhaps the default resolution of 1680x1050 is coming from the EDID in your monitor. Does 'xrandr --verbose' give any clues?
Interesting enough, xrandr shows that it is set to 1680x1050, even though the display is actually at 2048x1152 - I know, I looked at it to be sure.
How can this be? Why does xrandr think it is in 1680x1050, when it is in fact sitting at 2048x1152?
So I played with it a bit, and I am not getting consistent results. I can't identify why it sometimes starts at a lower resolution, and sometimes a higher. It is related to the resolution I was in when I last ran x, but not always. I need to play with this some more to see if I can identify a reproducible pattern.
The fix for now is to run xrandr at x startup to force the resolution. This works. Seems a kluge but gets the job done.
I don't even have a xorg.conf file on my machine and the xorg.conf.d directory is empty so apparently these are no longer needed for many installations. However can't you still create/edit xorg.conf and specify your preferred display resolution? I'm not an experienced user so I might be wrong but if memory serves I had to do that in Slackware 12.1.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.