Bug 10369 - xrandr "--delmode" options don't work
Summary: xrandr "--delmode" options don't work
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Keith Packard
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 19:10 UTC by xuji
Modified: 2018-12-13 22:18 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description xuji 2007-03-21 19:10:16 UTC
The xrandr options "--delmode --addmode --rmmode" don't work with following info given:

[root@x-915gm at]# xrandr --delmode LVDS 0x69
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  156 (RANDR)
  Minor opcode of failed request:  19 ()
  Serial number of failed request:  16
  Current serial number in output stream:  17
Comment 1 Gordon Jin 2007-08-21 00:10:28 UTC
This issue still exists with the latest code.
Comment 2 Keith Packard 2007-08-21 00:33:44 UTC
Modes created and managed by the X server cannot be deleted by the user. Only user-created modes may be deleted.
Comment 3 WuNian 2007-08-21 22:14:01 UTC
If use user-defined mode, the --newmode --addmode and --delmode work correctly, but --rmmod still can not work. Below is my commands:

[root@x-cl8 mycase]# xrandr --newmode mymode 65.0 1024 1048 1184 1344 768 771 777 806
[root@x-cl8 mycase]# xrandr --addmode VGA 0x8f
[root@x-cl8 mycase]# xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 2048 x 1050
VGA connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
   1024x768       60.0*+   70.1     60.0* 
   1280x960       60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3  
   640x480        75.0     72.8     75.0     60.0  
   720x400        70.1  
   mymode         60.0    //added user-defined mode to output VGA
LVDS connected (normal left inverted right x axis y axis)
   1600x1024      60.0  


[root@x-cl8 mycase]# xrandr --delmode VGA 0x8f
[root@x-cl8 mycase]# xrandr --rmmode 0x8f
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  156 (RANDR)
  Minor opcode of failed request:  17 ()
  Serial number of failed request:  16
  Current serial number in output stream:  17

Comment 4 pkozlov 2016-08-03 08:08:25 UTC
Keith Packard, I have a similar issue. I can't delete mode managed by the X server even by root with sudo.

I have the following issue. I have macbook pro 2015 retina with highest possible resolution in macOS = 1920x1200. But I have the following in linux:

Screen 0: minimum 8 x 8, current 5760 x 1200, maximum 32767 x 32767
eDP1 connected 1920x1200+3840+0 (normal left inverted right x axis y axis) 330mm x 210mm
   1920x1200     59.88 +  60.00* 
   2880x1800     59.99 +
   2560x1600     60.00  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   1600x1200     60.00  
   1680x1050     60.00  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      60.00  
   1400x900      60.00  
   1280x960      60.00  
   1280x800      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  

The only custom resolution here is 1920x1200 - it didn't appear automatically for some reason. 2880x1800 has correct proportions (16x10) (and even works on 15.4'' display), but too high - not comfortable to work (and interesting that macOS can't use it).

Most of other resolutions look buggy with black corners (1920x1440 is not 16x10, it is 4x3). I want to remove them once and for all - sometimes laptop turns on 2880x1800 automatically when I am attaching second/third monitor - this is very confusing. I want to 1920x1200 to be default and hightest possible.

It looks like a bug - but I have no idea where - xrandr? X server? xf86-video-intel? kernel?

That's what I see from Xorg.0.log:

[  1149.899] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20160229
[  1149.899] (--) intel(0): Integrated Graphics Chipset: Intel(R) Iris(TM) Pro Graphics 5200
...
[  1149.900] (II) intel(0): Output eDP1 using monitor section MacBookLCD0
[  1149.900] (**) intel(0): Option "PreferredMode" "1920x1200"
[  1149.906] (--) intel(0): Found backlight control interface acpi_video0 (type 'firmware') for output eDP1
...
[  1149.907] (II) intel(0): Supported detailed timing:
[  1149.907] (II) intel(0): clock: 337.8 MHz   Image Size:  331 x 207 mm
[  1149.907] (II) intel(0): h_active: 2880  h_sync: 2928  h_sync_end 2960 h_blank_end 3040 h_border: 0
[  1149.907] (II) intel(0): v_active: 1800  v_sync: 1803  v_sync_end 1809 v_blanking: 1852 v_border: 0
[  1149.907] (II) intel(0): Monitor name: Color LCD
[  1149.907] (II) intel(0): EDID (in hex):
[  1149.907] (II) intel(0):     00ffffffffffff0006102ea000000000
[  1149.907] (II) intel(0):     04190104a5211578026fb1a7554c9e25
[  1149.907] (II) intel(0):     0c505400000001010101010101010101
[  1149.907] (II) intel(0):     010101010101ef8340a0b00834703020
[  1149.907] (II) intel(0):     36004bcf1000001a000000fc00436f6c
[  1149.907] (II) intel(0):     6f72204c43440a202020000000100000
[  1149.907] (II) intel(0):     00000000000000000000000000000010
[  1149.907] (II) intel(0):     000000000000000000000000000000d0
[  1149.907] (II) intel(0): EDID vendor "APP", prod id 41006
[  1149.907] (II) intel(0): Printing DDC gathered Modelines:
[  1149.907] (II) intel(0): Modeline "2880x1800"x0.0  337.75  2880 2928 2960 3040  1800 1803 1809 1852 +hsync -vsync (111.1 kHz eP)
[  1149.907] (II) intel(0): Not using default mode "320x240" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "512x384" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "640x480" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "640x512" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "800x600" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "896x672" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "928x696" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "960x720" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "700x525" (doublescan mode not supported)
[  1149.907] (II) intel(0): Not using default mode "1024x768" (doublescan mode not supported)
[  1149.907] (II) intel(0): Printing probed modes for output eDP1
[  1149.907] (II) intel(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz UP)
[  1149.907] (II) intel(0): Modeline "2880x1800"x60.0  337.75  2880 2928 2960 3040  1800 1803 1809 1852 +hsync -vsync (111.1 kHz eP)
[  1149.907] (II) intel(0): Modeline "2560x1600"x60.0  348.16  2560 2752 3032 3504  1600 1601 1604 1656 -hsync +vsync (99.4 kHz)
[  1149.907] (II) intel(0): Modeline "2048x1536"x60.0  266.95  2048 2200 2424 2800  1536 1537 1540 1589 -hsync +vsync (95.3 kHz d)
[  1149.907] (II) intel(0): Modeline "1920x1440"x60.0  234.00  1920 2048 2256 2600  1440 1441 1444 1500 -hsync +vsync (90.0 kHz d)
[  1149.907] (II) intel(0): Modeline "1856x1392"x60.0  218.30  1856 1952 2176 2528  1392 1393 1396 1439 -hsync +vsync (86.4 kHz d)
[  1149.907] (II) intel(0): Modeline "1792x1344"x60.0  204.80  1792 1920 2120 2448  1344 1345 1348 1394 -hsync +vsync (83.7 kHz d)
[  1149.907] (II) intel(0): Modeline "1920x1200"x60.0  193.16  1920 2048 2256 2592  1200 1201 1204 1242 -hsync +vsync (74.5 kHz)
[  1149.907] (II) intel(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz d)
[  1149.907] (II) intel(0): Modeline "1680x1050"x60.0  147.14  1680 1784 1968 2256  1050 1051 1054 1087 -hsync +vsync (65.2 kHz)
[  1149.907] (II) intel(0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[  1149.907] (II) intel(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[  1149.907] (II) intel(0): Modeline "1440x900"x60.0  106.47  1440 1520 1672 1904  900 901 904 932 -hsync +vsync (55.9 kHz)
[  1149.907] (II) intel(0): Modeline "1400x900"x60.0  104.23  1400 1480 1632 1864  900 901 904 932 -hsync +vsync (55.9 kHz)
[  1149.907] (II) intel(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[  1149.907] (II) intel(0): Modeline "1280x800"x60.0   83.46  1280 1344 1480 1680  800 801 804 828 -hsync +vsync (49.7 kHz)
[  1149.907] (II) intel(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[  1149.907] (II) intel(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[  1149.907] (II) intel(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[  1149.907] (II) intel(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)


I can create a bug in another project - but don't know where. Ideally I want to ignore these wrong autodetection and configure anything manually. I tried to add
  Option  "PreferredMode" "1920x1200"
to the Monitor section and 
   Option      "UseEDID" "false"
   Option      "UseEDIDFreqs" "false" 
to the Device section. Nothing helped.

xorg-server-1.18.3, kernel 4.6.2, intel driver 2.99.917_p20160704.
Comment 5 GitLab Migration User 2018-12-13 22:18:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/353.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.