How can I change screen resolution via the shell?
by Rhyader from LinuxQuestions.org on (#56JMF)
More video problems...
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".


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".