English
Ask Your Question
3

How do I change my monitor's resolution?

asked 2012-01-25 20:08:11 +0000

David_LeBlanc gravatar image

updated 2014-09-28 13:45:16 +0000

mether gravatar image

I have problems to change resolution. I tryed via editing the file /etc/default/grub and adding this line GRUB_GFXMODE="1280x1024x32" But it doesn't change.The KrandTry crashes after it stars to load, i didn't found the Xorg since my fedora is Verne, and some of the main solutions i found are quite old. Note: My monitor supports that resolution.

xrandr output is:

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096 VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0* 800x600 60.3 56.2
848x480 60.0
640x480 59.9

edit retag flag offensive close merge delete

Comments

What graphics card do you have ?

bodhi.zazen ( 2012-01-25 21:43:48 +0000 )edit

What is the output of xrandr?

skytux ( 2012-01-26 12:11:41 +0000 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2012-01-26 17:13:52 +0000

updated 2012-02-01 07:34:06 +0000

Create a file in /etc/X11/xorg.conf.d/

40-monitor.conf

Section "Monitor"
  Identifier  "VGA1"
  Option      "PreferredMode" "1280x1024"
EndSection

Restart your X system.

If it doesn't work try creating the next two files in the same path, and restarting again:

30-graphic.conf

Section "Device"
    Identifier      "Intel Integrated"
    Driver          "intel"
EndSection

50-screen.conf

Section "Screen"
    Identifier      "Default Screen"
    DefaultDepth  24
    SubSection "Display"
            Depth          24
            Modes         "1280x1024"  "1024x768"   "640x480"
    EndSubSection
EndSection

Undetected resolution

If your monitor supports a resolution, but it's not published correctly, you can add it manually.

Look at the following link (section Adding undetected resolution) https://wiki.archlinux.org/index.php/Xrandr

Once you get it working make the changes persistent in a file inside /etc/X11/xorg.conf.d/


Persistent new modeline

After you added the new resolution for your monitor, you must save it. Execute:

cvt 1280 1024

You will get something as:

1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz

Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

The interesting bit is the modeline. Copy it and paste in a file: /etc/X11/xorg.conf.d/40-monitor.conf

Section "Monitor"
  Identifier  "VGA1"
  Modeline    "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
  Option      "PreferredMode" "1280x1024_60.00"
EndSection

Restart X11 and there you go...


If the above doesn't make persistent your new configuration try adding the xrandr magic in a file read by xorg, by example gdm or kdm configuration:

gdm

edit /etc/gdm/Init/default

add the xrandr commands after

PATH=/usr/bin:$PATH

OLD_IFS=$IFS

xrandr --newmode ...
xrandr --addmode YOURMONITOR YOURNEWMODE
xrandr --output YOURMONITOR --mode NEWMODE

kdm

You can add the xrandr lines in /etc/kde/kdm/Xsetup or in /etc/kde/kdm/Xsession but with full path:

/usr/bin/xrandr --newmode ...
/usr/bin/xrandr --addmode YOURMONITOR YOURNEWMODE
/usr/bin/xrandr --output YOURMONITOR --mode NEWMODE

If someone knows why saving the modeline in the xorg config doesn't get it applied, please let me know, I'm pretty curious (and the xorg webpage seems down at the moment)...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2012-01-25 20:08:11 +0000

Seen: 63,111 times

Last updated: Feb 02 '12