Xrandr

為什麼這些 xrandr 命令不起作用?

  • May 16, 2016

我想知道我做錯了什麼。似乎影片卡通過監視器和解析度自行切換它,所以我想消除這些選項,只留下我使用的選項。如您所見,它沒有奏效。

rt@mach:~$ xrandr --rmmode HDMI1 1280x1024
usage: xrandr [options]
 where options are:
 -display <display> or -d <display>
 -help
 -o <normal,inverted,left,right,0,1,2,3>
           or --orientation <normal,inverted,left,right,0,1,2,3>
 -q        or --query
 -s <size>/<width>x<height> or --size <size>/<width>x<height>
 -r <rate> or --rate <rate> or --refresh <rate>
 -v        or --version
 -x        (reflect in x)
 -y        (reflect in y)
 --screen <screen>
 --verbose
 --current
 --dryrun
 --nograb
 --prop or --properties
 --fb <width>x<height>
 --fbmm <width>x<height>
 --dpi <dpi>/<output>
 --output <output>
 --auto
 --mode <mode>
 --preferred
 --pos <x>x<y>
 --rate <rate> or --refresh <rate>
 --reflect normal,x,y,xy
 --rotate normal,inverted,left,right
 --left-of <output>
 --right-of <output>
 --above <output>
 --below <output>
 --same-as <output>
 --set <property> <value>
 --scale <x>x<y>
 --transform <a>,<b>,<c>,<d>,<e>,<f>,<g>,<h>,<i>
 --off
 --crtc <crtc>
 --panning <w>x<h>[+<x>+<y>[/<track:w>x<h>+<x>+<y>[/<border:l>/<t>/<r>/<b>]]]
 --gamma <r>:<g>:<b>
 --primary
 --noprimary
 --newmode <name> <clock MHz>
       <hdisp> <hsync-start> <hsync-end> <htotal>
       <vdisp> <vsync-start> <vsync-end> <vtotal>
       [+HSync] [-HSync] [+VSync] [-VSync]
 --rmmode <name>
 --addmode <output> <name>
 --delmode <output> <name>

.

rt@mach:~$ xrandr --delmode HDMI1 1280x1024
X Error of failed request:  BadAccess (attempt to access private resource denied)
 Major opcode of failed request:  150 (RANDR)
 Minor opcode of failed request:  19 (RRDeleteOutputMode)
 Serial number of failed request:  29
 Current serial number in output stream:  30

.

root@mach:/home/rt# xrandr --delmode HDMI1 1280x1024
X Error of failed request:  BadAccess (attempt to access private resource denied)
 Major opcode of failed request:  150 (RANDR)
 Minor opcode of failed request:  19 (RRDeleteOutputMode)
 Serial number of failed request:  29
 Current serial number in output stream:  30

.

root@mach:/home/rt# xrandr --rmmode HDMI1 1280x1024
usage: xrandr [options]
 where options are:
 -display <display> or -d <display>
 -help
 -o <normal,inverted,left,right,0,1,2,3>
           or --orientation <normal,inverted,left,right,0,1,2,3>
 -q        or --query
 -s <size>/<width>x<height> or --size <size>/<width>x<height>
 -r <rate> or --rate <rate> or --refresh <rate>
 -v        or --version
 -x        (reflect in x)
 -y        (reflect in y)
 --screen <screen>
 --verbose
 --current
 --dryrun
 --nograb
 --prop or --properties
 --fb <width>x<height>
 --fbmm <width>x<height>
 --dpi <dpi>/<output>
 --output <output>
 --auto
 --mode <mode>
 --preferred
 --pos <x>x<y>
 --rate <rate> or --refresh <rate>
 --reflect normal,x,y,xy
 --rotate normal,inverted,left,right
 --left-of <output>
 --right-of <output>
 --above <output>
 --below <output>
 --same-as <output>
 --set <property> <value>
 --scale <x>x<y>
 --transform <a>,<b>,<c>,<d>,<e>,<f>,<g>,<h>,<i>
 --off
 --crtc <crtc>
 --panning <w>x<h>[+<x>+<y>[/<track:w>x<h>+<x>+<y>[/<border:l>/<t>/<r>/<b>]]]
 --gamma <r>:<g>:<b>
 --primary
 --noprimary
 --newmode <name> <clock MHz>
       <hdisp> <hsync-start> <hsync-end> <htotal>
       <vdisp> <vsync-start> <vsync-end> <vtotal>
       [+HSync] [-HSync] [+VSync] [-VSync]
 --rmmode <name>
 --addmode <output> <name>
 --delmode <output> <name>

我認為您在這裡遇到的是針對 Ubuntu 送出的這個錯誤。標題:xrandr 錯誤與 delmode - Ubuntu “x11-xserver-utils” 包錯誤錯誤 #364091

此問題似乎已在更高版本中得到修復。

摘抄

POJAR GEO (geoubuntu) wrote on 2011-06-29:
    #27 This problem is solved with latest ubuntu 11.04.

引用自:https://unix.stackexchange.com/questions/98385