Unable to change the refresh rate to 60hz with xrandr
9,441
Your xrandr -q output shows that you have 1920x1080_59.90 resolution available
You can use this to set the new resolution
xrandr --output default --mode 1920x1080_59.90
Also, if you are creating newmode using
xrandr --newmode "1920x1080_59.90" 172.51 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
You also need to add this mode using
xrandr --addmode default 1920x1080_59.90
And then set the new resolution using
xrandr --output default --mode 1920x1080_59.90
Related videos on Youtube
Author by
Joe
Updated on September 18, 2022Comments
-
Joe over 1 year
My monitor supports 1920×1080 @ 60hz (LG W2486L) and graphic card (GeForce 9400 GT) using Ubuntu 12.04.
When I type
xrandr -q
I get this:xrandr -q xrandr: Failed to get size of gamma for output default Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080 default connected 1920x1080+0+0 0mm x 0mm 1920x1080 50.0* 1920x1080_59.90 59.9 1920x1080_60.00 60.0
Right now the refresh rate is on 50 and hurt my eyes real bad. So I'm trying to change it to 60hz:
xrandr --output default --mode 1920x1080_60.00 xrandr: Failed to get size of gamma for output default
What I can do? I tried
gtf 1920 1080 60.0 # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync xrandr --newmode "1920x1080_60.00" 172.51 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync xrandr: Failed to get size of gamma for output default X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 153 (RANDR) Minor opcode of failed request: 16 (RRCreateMode) Serial number of failed request: 19 Current serial number in output stream: 19 xrandr --output default --mode 1920x1080_60.00 xrandr: Failed to get size of gamma for output default
Someone have the solution for this? I can't work on the PC like that, 50Hz is very low and can't look at the screen more than 5 mins.
Thank you!
-
Admin about 11 yearsAny reason why you had
clk 172.51
instead of172.8
as was calculated from GTF in your xrandr command? -
Admin about 11 yearsi don't know...
-
Admin almost 7 yearsJust a commnent... Don't understand why this EOL Ubuntu 12.04 abandoned question got bumped to the home page when OP hasn't signed on in 4+ years (2 days after this question was posted) and therefore unlikely to confirm or deny any answers posted. Who exactly is the
community
thatbumped to home page
10 minutes ago? -
Admin over 6 yearsJanuary 15, 2018 and this question from 2013 just got bumped by the robot again.
-
Admin over 4 yearsAug 8, 2019 and robot bumped to home page again...
-
-
Joe about 11 yearswell after i reboot the pc, xrandr -q results change to: 1920x1080 50.0* 1680x1050 51.0 52.0 1600x1024 53.0 1440x900 54.0 and it make no sense, i should have 1920x1080 with 60hz
-
s.m about 11 yearsyou have to write scripts to make it persistent on reboot
-
Joe about 11 yearshow can i do it?
-
s.m about 11 yearsput all the codes given above in a file and create a script, For example :Create xrandr.sh #!/bin/bash xrandr --newmode "1920x1080_59.90" 172.51 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync xrandr --addmode default 1920x1080_59.90 xrandr --output default --mode 1920x1080_59.90 Then make this script to autorun on startup
-
s.m about 11 yearsYou can even add this line Modeline "1920x1080_59.90" 172.51 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync in the Monitor section of xorg.conf file in /etc/X11