Linux Tutorial Blog

Your regular Linux tutorial source!

Solution: Resetting your screen resolution with xrandr

rechosen | 28 February, 2007 21:29

I recently discovered a very useful tool: xrandr. This command allows you to reset your screen resolution, which comes in very handy when some buggy app changes you screen resolution and doesn't set it back. It saves logging out and in again or even having to use Ctrl + Alt + Backspace!

To set your screen resolution back to normal, use xrandr like this:

[rechosen@localhost ~]$ xrandr -s 0

The "-s" option allows you to specify the size, and the "0" parameter tells xrandr to reset the screen to its default size. You can also specify a resolution, like this:

[rechosen@localhost ~]$ xrandr -s 800x600

If you want to check which modes are currently available for your screen, run xrandr with the -q option:

[rechosen@localhost ~]$ xrandr -q

Comments

refresh rates

Frederik Hertzum | 03/07/2007, 02:05

You can also specify a specific refresh rate when using the -s switch. The format is xrandr -s x@. For example this command will switch to 800x600 using 75Hz: xrandr -s 800x600@75

Add comment

(optional, will not be published)
(optional)

<><