SUSE / openSUSEThis Forum is for the discussion of Suse 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.
I got a new monitor. After connecting it, it worked and I was offered higher resolution choices in the GUI settings dialog. I choose the highest one. It looked great. I said to accept this choice. It worked. Until the next time I booted. Now every time suse tries to go into graphical mode the screen is completely unreadable. I can use control-alt-F1 or control-alt-F2 to get a plain command line, but I cannot use anything GUI. Also, I CAN log on as root in either the GUI mode or text. How can I reset the screen resolution for "rhyader"? Can I do it from the command line as rhyader? Can I do it in the GUI as root?
xrandr does not work. It says "can't open display".
How can I reset the screen resolution for "rhyader"? Can I do it from the command line as rhyader?
Yes, try to blindly type in the xrandr command:
Code:
xrandr --output HDMI-2 --mode 1024x768
replace output and mode values with what is appropriate.
Otherwise, you can log into command line (not root) and try to remove configuration files until you hit the correct one.
Or, you can boot with 'nomodeset' (please do a web search onhow to do that), fix what you need to fix, and boot normally again.
To Pan64:
If you hit control-alt-F1 or control-alt-F2 you can escape the GUI. But in this mode xrandr does not seem to work correctly. It says "can't open display".
To ondoho:
I will try some xrandr commands, but I get the impression that that program won't work in non-graphical mode. And no, I cannot type blindly. How would I bring up a terminal window? And if I could I could't see it anyway.
I don't think it sounds like a good idea to randomly remove files when I don't know what I'm doing. I tried editing an .xml file to replace resolution numbers but that did not work.
nomodeset is another foreign word to me. Looks like more hours of research to find out what that is and what I need to fix and how to fix it. Not enough time for that today.
OR... here's an idea... maybe should I just create a new user? That would take less time than trying to fix this. I should be able to do that if I log on as root.
Xrandr only works from within a running X session that has already opened a "display". To apply xrandr as a session starts up, create a file in /etc/X11/xinit/xinitrc.d/ and put in it the xrandr command you wish to run.
Your DE or WM has apparently saved a configuration in some fashion that is incompatible with your new display. First thing to try is to delete all content from ~/.cache/ from a login from e.g. Ctrl-Alt-F3. If it doesn't help, then the incompatible setting is probably somewhere in ~/.config/. You could delete the entire content of that directory just as tried with ~/.cache/, but it would delete most custom settings. This would be similar to creating a new user, without the hassle of creating a new user, but not deleting any Thunderbird, Palemoon or Firefox settings, or settings of certain other apps, so should be less painful than trying to migrate to the new user if the new user works as expected.
If you hit control-alt-F1 or control-alt-F2 you can escape the GUI. But in this mode xrandr does not seem to work correctly. It says "can't open display".
Aha, so that still works! Good!
You can run xrandr like this:
Code:
DISPLAY=:0 xrandr .........
Assuming the Xorg session is still running when you do that.
If you hit control-alt-F1 or control-alt-F2 you can escape the GUI. But in this mode xrandr does not seem to work correctly. It says "can't open display".
It does work correctly. Without knowing the DISPLAY you want to use xrandr cannot do anything. It is also reported, (=can't open display).
Additionally X has an authentication system, so "from outside" no one has access to it (that means only the allowed user can use it), for example root (and any other user) has no any permission to display anything or manipulate/configure it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.