LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-11-2016, 07:10 AM   #1
claytonjohnroby
LQ Newbie
 
Registered: Oct 2006
Posts: 23

Rep: Reputation: 0
xrandr --delmode badaccess attempt to access private resource denied


I wanted to add some higher resolution modes to my laptop.

I am hoping that someone can advise how to add some modes using xrandr so that I can improve the resolution of my display.

I also need to know how to remove some mode lines that I have added.

Here is the story of my efforts to date.

After some research I found that cvt could be used to generate mode lines for xrandr.

https://superuser.com/questions/7167...tion-in-debian

Code:
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
I added the modes that cvt showed me.

Code:
root@johnlaptop:/home/jclayton# xrandr --newmode "5464x3072_60.00"  1454.50  5464 5936 6544 7624  3072 3075 3085 3180 -hsync +vsync

root@johnlaptop:/home/jclayton# cvt 2732 1536
# 2736x1536 59.94 Hz (CVT) hsync: 95.43 kHz; pclk: 355.75 MHz
Modeline "2736x1536_60.00"  355.75  2736 2936 3232 3728  1536 1539 1549 1592 -hsync +vsync
root@johnlaptop:/home/jclayton# xrandr --newmode "2736x1536_60.00"  355.75  2736 2936 3232 3728  1536 1539 1549 1592 -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.

https://bugs.launchpad.net/ubuntu/+s...ls/+bug/364091

http://bugs.mandrivalinux.com.narkiv...elmode-options

This last one contains :


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#




Code:
root@johnlaptop:/home/jclayton# lsmod
Module                  Size  Used by
rt2800pci              12921  0 
rt2800mmio             13206  1 rt2800pci
rt2800lib              72379  2 rt2800pci,rt2800mmio
rt2x00pci              12472  1 rt2800pci
rt2x00mmio             12545  2 rt2800pci,rt2800mmio
rt2x00lib              41387  5 rt2x00pci,rt2800lib,rt2800pci,rt2800mmio,rt2x00mmio
eeprom_93cx6           12561  1 rt2800pci
crc_ccitt              12331  1 rt2800lib
ipt_MASQUERADE         12530  1 
xt_LOG                 17011  1 
xt_conntrack           12601  1 
iptable_filter         12488  1 
nf_nat_ftp             12420  0 
iptable_nat            12574  1 
nf_nat_ipv4            12800  1 iptable_nat
nf_nat                 17863  4 nf_nat_ftp,ipt_MASQUERADE,nf_nat_ipv4,iptable_nat
nf_conntrack_irc       12395  0 
nf_conntrack_ftp       12599  1 nf_nat_ftp
nf_conntrack_ipv4      18040  2 
nf_defrag_ipv4         12443  1 nf_conntrack_ipv4
nf_conntrack           73472  9 nf_nat_ftp,ipt_MASQUERADE,nf_nat,nf_nat_ipv4,xt_conntrack,nf_conntrack_ftp,nf_conntrack_irc,iptable_nat,nf_conntrack_ipv4
ip_tables              16974  2 iptable_filter,iptable_nat
x_tables               18136  5 ip_tables,ipt_MASQUERADE,xt_conntrack,xt_LOG,iptable_filter
cpufreq_conservative    13872  0 
cpufreq_userspace      12477  0 
cpufreq_powersave      12422  0 
cpufreq_stats          12694  0 
bnep                   17184  2 
binfmt_misc            12733  1 
nfsd                  236959  2 
auth_rpcgss            45765  1 nfsd
oid_registry           12387  1 auth_rpcgss
nfs_acl                12463  1 nfsd
nfs                   168022  0 
lockd                  73443  2 nfs,nfsd
fscache                44782  1 nfs
sunrpc                211341  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
tun                    25948  3 
ctr                    12807  1 
ccm                    17361  1 
arc4                   12480  2 
brcmsmac              490722  0 
cordic                 12336  1 brcmsmac
brcmutil               12941  1 brcmsmac
b43                   362085  0 
mac80211              425546  5 b43,brcmsmac,rt2x00lib,rt2x00pci,rt2800lib
cfg80211              354137  4 b43,brcmsmac,mac80211,rt2x00lib
ssb                    51408  1 b43
rng_core               12645  1 b43
pcmcia                 44245  2 b43,ssb
hp_wmi                 13046  0 
sparse_keymap          12730  1 hp_wmi
ecb                    12649  1 
pcmcia_core            18024  1 pcmcia
iTCO_wdt               12727  0 
iTCO_vendor_support    12585  1 iTCO_wdt
btusb                  25417  0 
bluetooth             335968  21 bnep,btusb
6lowpan_iphc           16548  1 bluetooth
rfkill                 18387  6 cfg80211,hp_wmi,bluetooth
uvcvideo               69805  0 
videobuf2_vmalloc      12720  1 uvcvideo
videobuf2_memops       12471  1 videobuf2_vmalloc
videobuf2_core         39059  1 uvcvideo
v4l2_common            12867  1 videobuf2_core
videodev              107701  3 uvcvideo,v4l2_common,videobuf2_core
media                  17842  2 uvcvideo,videodev
i915                  762655  2 
snd_hda_codec_hdmi     44414  1 
drm_kms_helper         44450  1 i915
drm                   207686  4 i915,drm_kms_helper
i2c_algo_bit           12647  1 i915
bcma                   36446  2 b43,brcmsmac
i2c_i801               16845  0 
snd_hda_codec_idt      48266  1 
i2c_core               36838  7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,v4l2_common,videodev
snd_hda_codec_generic    58021  1 snd_hda_codec_idt
rtsx_pci_ms            16802  0 
memstick               13432  1 rtsx_pci_ms
x86_pkg_temp_thermal    12839  0 
snd_hda_intel          26023  6 
intel_powerclamp       17006  0 
snd_hda_controller     26262  1 snd_hda_intel
intel_rapl             17172  0 
snd_hda_codec          93797  5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
coretemp               12708  0 
snd_hwdep              12906  1 snd_hda_codec
crc32_pclmul           12809  0 
snd_pcm_oss            44124  0 
pcspkr                 12531  0 
snd_mixer_oss          21822  1 snd_pcm_oss
evdev                  17136  21 
joydev                 16847  0 
snd_pcm                78128  5 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
serio_raw              12737  0 
snd_timer              26105  1 snd_pcm
mei_me                 17653  0 
snd                    55101  22 snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_mixer_oss
mei                    61632  1 mei_me
ac                     12627  0 
battery                13164  0 
soundcore              12890  2 snd,snd_hda_codec
wmi                    17147  1 hp_wmi
shpchp                 30673  0 
lpc_ich                16616  0 
video                  17763  1 i915
button                 12824  1 i915
processor              27590  0 
kvm                   330368  0 
loop                   21987  0 
firewire_sbp2          17533  0 
firewire_core          51113  1 firewire_sbp2
crc_itu_t              12331  1 firewire_core
fuse                   77496  1 
parport_pc             26004  0 
ppdev                  16686  0 
lp                     12766  0 
parport                35213  3 lp,ppdev,parport_pc
autofs4                34865  2 
ext4                  442597  2 
crc16                  12327  2 ext4,bluetooth
mbcache                17027  1 ext4
jbd2                   72964  1 ext4
dm_mod                 83026  0 
sg                     25573  0 
sd_mod                 43684  4 
crc_t10dif             12399  1 sd_mod
crct10dif_generic      12517  1 
sr_mod                 21568  0 
crct10dif_common       12340  2 crct10dif_generic,crc_t10dif
cdrom                  46828  1 sr_mod
rtsx_pci_sdmmc         20985  0 
mmc_core               91803  3 b43,ssb,rtsx_pci_sdmmc
ahci                   29134  3 
libahci                22574  1 ahci
crc32c_intel           12659  0 
thermal                17343  0 
psmouse                93505  0 
libata                161908  2 ahci,libahci
scsi_mod              164132  5 sg,libata,sd_mod,sr_mod,firewire_sbp2
thermal_sys            27122  5 video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal
rtsx_pci               36879  2 rtsx_pci_ms,rtsx_pci_sdmmc
mfd_core               12537  2 lpc_ich,rtsx_pci
r8169                  58875  0 
mii                    12595  1 r8169
ehci_pci               12464  0 
ehci_hcd               64933  1 ehci_pci
usbcore               171098  4 btusb,uvcvideo,ehci_hcd,ehci_pci
usb_common             12408  1 usbcore
root@johnlaptop:/home/jclayton#


Code:
root@johnlaptop:/home/jclayton# uname -a
Linux johnlaptop 3.16.0-4-686-pae #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) i686 GNU/Linux
root@johnlaptop:/home/jclayton#
 
Old 11-11-2016, 11:50 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What makes you think your monitor can do 5464x3072_60.00
 
Old 11-12-2016, 02:29 AM   #3
claytonjohnroby
LQ Newbie
 
Registered: Oct 2006
Posts: 23

Original Poster
Rep: Reputation: 0
I am hoping that

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192

Means that I can have something a bit larger than what I have.
 
Old 11-12-2016, 08:21 AM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,003
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
You can only go as high as your monitor supports. What's the max resolution your monitor ACTUALLY supports?
 
Old 11-12-2016, 09:05 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by claytonjohnroby View Post
improve the resolution of my display.
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.

Last edited by ondoho; 11-12-2016 at 09:07 AM.
 
  


Reply

Tags
display, modeline, monitor, resolutions, xrandr


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache getting (13) Permisison Denied Access to /index.html denied imkornhulio Linux - Server 1 03-12-2015 12:31 PM
[SOLVED] perssion denied when creating private/pub key paird with ssh Jany Linux - Newbie 7 02-20-2013 05:20 PM
The error was 'BadAccess (attempt to access private resource denied)'. kaz2100 Linux - General 0 09-02-2010 06:17 AM
radeon and dual head, to xrandr or not to xrandr, that's the question i92guboj Linux - Desktop 1 06-17-2009 05:48 AM
X error - private resource denied? cs-cam Linux - Software 1 05-28-2005 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration