Changing Ubuntu resolution from the command line….
Posted on October 18, 2010
Filed Under General, Tutorials |
Now this should be an easy feat. Right? No.
So, what happened was that my test “server” died one night. I started it, but couldn’t remote login to the desktop for some reason. Connected the server to a monitor, but the signal was wrong. I had changed it to better suit my VNC needs.
So off to googling about changing the resolution from the command line…
1. edit xorg.conf - Fail. At least in ubuntu 10.04 there’s no xorg.conf file as standard
2. generate xorg.conf file - Fail. It only affects gdm. And even with failsafe session, the resolution changes once you log in. Aaargh!!!
3. reconfigure xorg package - Fail. Nothing happens when you use dpkg-reconfigure. No TUI interface. nothing. Just another shell line. Great usability design this is.
4. Rename all gnome related .gnome-something files and directories in your profile to get rid of the session settings - Fail. its the ~/.config/ - directory that’s the key. Now who has decided to own “.config” in your home dir. “I’m so important I’ll just make my configs apper under .config/” Idiots
Ok I got a wee bit angry, but here’s the pretty solution I had to dig out the hard way:
edit .config/monitors.xml and change the resolution. Then kill Xorg / gdm from the command line and you’re good to go.
Comments
Leave a Reply