Monday, December 29, 2014

Change screen resolution in Fedora

You can use xrandr to set specific resolutions.
  1. First generate a modeline. This is very easy using cvt. For example, to create a mode for 1920x1080 you would run
    cvt 1920 1080 60 -r
    
    The 60 corresponds to a 60Hz refresh rate (a common refresh rate for modern monitors). The -r means to enable reduced blanking, which is useful for LCD monitors.
  2. Add the new mode to your mode list using xrandr. Copy the output of cvt (except the word "Modeline") and paste it after xrandr --newmode
    xrandr --newmode "1920x1080R"  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync
    
  3. Add the new mode to the proper connector. If the monitor is connected to the first HDMI port on your video card, the command would be
    xrandr --addmode HDMI1 1920x1080R
    
    A list of valid connector names is given in the output of running xrandr with no arguments.
  4. Enable the new mode. Sometimes the new mode is automatically enabled after step three. If not, you can enable it by opening "Settings" and clicking on "Displays", or through xrandr
    xrandr --output HDMI1 --mode 1920x1080R

No comments:

Post a Comment

About

Blogger templates