xrandr --delmode badaccess attempt to access private resource denied
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@johnlaptop:/home/jclayton# cv
cvlc cvs cvs-switchroot cvt cvtenc
root@johnlaptop:/home/jclayton# man cvt
root@johnlaptop:/home/jclayton# xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.03*+
1360x768 59.80 59.96
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
root@johnlaptop:/home/jclayton# cvt 5464 3072
# 5464x3072 59.99 Hz (CVT) hsync: 190.78 kHz; pclk: 1454.50 MHz
Modeline "5464x3072_60.00" 1454.50 5464 5936 6544 7624 3072 3075 3085 3180 -hsync +vsync
For some reason it added the mode lines to the DPI device.
Code:
root@johnlaptop:/home/jclayton# xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.03*+
1360x768 59.80 59.96
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
5464x3072_60.00 (0xed) 1454.500MHz
h: width 5464 start 5936 end 6544 total 7624 skew 0 clock 190.78KHz
v: height 3072 start 3075 end 3085 total 3180 clock 59.99Hz
2736x1536_60.00 (0xf0) 355.750MHz
h: width 2736 start 2936 end 3232 total 3728 skew 0 clock 95.43KHz
v: height 1536 start 1539 end 1549 total 1592 clock 59.94Hz
I did not realise this at first.
I tried adding the modes to LVDS1.
Code:
root@johnlaptop:/home/jclayton# xrandr --addmode LVDS1 "2736x1536_60.00"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 29
Current serial number in output stream: 30
root@johnlaptop:/home/jclayton# xrandr --addmode LVDS1 "5464x3072_60.00"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 29
Current serial number in output stream: 30
I then had another look and saw that the modes had been added to a different device.
Code:
root@johnlaptop:/home/jclayton# xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.03*+
1360x768 59.80 59.96
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
5464x3072_60.00 (0xed) 1454.500MHz
h: width 5464 start 5936 end 6544 total 7624 skew 0 clock 190.78KHz
v: height 3072 start 3075 end 3085 total 3180 clock 59.99Hz
2736x1536_60.00 (0xf0) 355.750MHz
h: width 2736 start 2936 end 3232 total 3728 skew 0 clock 95.43KHz
v: height 1536 start 1539 end 1549 total 1592 clock 59.94Hz
I then tried to remove the unwanted modes that I had just created.
Code:
root@johnlaptop:/home/jclayton# xrandr --delmode DP1 "5464x3072_60.00"
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 19 (RRDeleteOutputMode)
Serial number of failed request: 29
Current serial number in output stream: 30
After searching I found various bug reports that resulted in the observation that xrandr --delmode cannot get rid of xserver managed modes.
Comment #1 from Ahmad Samir (triage team) <***@mandriva.org> 2010-06-20 13:26:39 CEST ---
This is not a bug according to upstream: https://bugs.freedesktop.org/show_bug.cgi?id=10369#c2 :
“Modes created and managed by the X server cannot be deleted by the user. Only
user-created modes may be deleted.”
But the modes that I am trying to delete are the ones that I just created.
Here are a few details of my system.
Code:
root@johnlaptop:/home/jclayton# lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 Network controller: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
root@johnlaptop:/home/jclayton#
you know you cannot improve the resolution of your physical display? it has exactly one native resolution, and usually linux defaults to that.
if it doesn't, the problem is more likely with your GPU driver/module.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.