activating and deactivating outputs sometimes doesn't work

Bug #176858 reported by Rafał Rzepecki
4
Affects Status Importance Assigned to Milestone
Python-XRandR
New
Undecided
Unassigned

Bug Description

I've been trying to write a simple output-state cycling utility (to bind to switch outputs hotkey) using python-xrandr.

Alas, sometimes it would just throw BadMatch X errors and won't work. I can't seem to pinpoint when exactly that happens, although it is after a few cycles. To try it, run the attached script several times with at least two outputs connected.

Revision history for this message
Rafał Rzepecki (divided-mind) wrote :
Revision history for this message
Dr D J Clark (djc-online) wrote :
Download full text (7.8 KiB)

I have also encountered this with both Intel and ATI cards

djc@blado:~$ pyxrandr
XRandR 1.2
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1200
          359mm x 287mm
Crtcs: 2
Sizes @ Refresh Rates:
  [0] 1280 x 1024 @ [60]
  [1] 1024 x 768 @ [75, 60]
  [2] 800 x 600 @ [75, 60]
  [3] 640 x 480 @ [75, 60]
  [4] 720 x 400 @ [70]
Rotations: normal right inverted left
Outputs:
  VGA-0 (not connected)
  S-video (not connected)
  DVI-0 (359mm x 287mm)
    Modes:
      [0] 1280 x 1024 @ 60 *
      [1] 1280 x 1024 @ 59 (preferred)
      [2] 1024 x 768 @ 75
      [3] 1024 x 768 @ 60
      [4] 800 x 600 @ 75
      [5] 800 x 600 @ 60
      [6] 640 x 480 @ 75
      [7] 640 x 480 @ 60
      [8] 720 x 400 @ 70
    Rotations: normal right inverted left
djc@blado:~$ pyxrandr
XRandR 1.2
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1200
          359mm x 287mm
Crtcs: 2
Sizes @ Refresh Rates:
  [0] 1280 x 1024 @ [60]
  [1] 1024 x 768 @ [75, 60]
  [2] 800 x 600 @ [75, 60]
  [3] 640 x 480 @ [75, 60]
  [4] 720 x 400 @ [70]
Rotations: normal right inverted left
Outputs:
  VGA-0 (0mm x 0mm)
    Modes:
      [0] 1280 x 800 @ 59 (preferred)
      [1] 1280 x 768 @ 60
      [2] 1024 x 768 @ 60
      [3] 800 x 600 @ 60
      [4] 640 x 480 @ 59
    Rotations: normal
  S-video (not connected)
  DVI-0 (359mm x 287mm)
    Modes:
      [0] 1280 x 1024 @ 60 *
      [1] 1280 x 1024 @ 59 (preferred)
      [2] 1024 x 768 @ 75
      [3] 1024 x 768 @ 60
      [4] 800 x 600 @ 75
      [5] 800 x 600 @ 60
      [6] 640 x 480 @ 75
      [7] 640 x 480 @ 60
      [8] 720 x 400 @ 70
    Rotations: normal right inverted left
djc@blado:~$ pyxrandr
XRandR 1.2
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1200
          359mm x 287mm
Crtcs: 2
Sizes @ Refresh Rates:
  [0] 1280 x 1024 @ [60]
  [1] 1024 x 768 @ [75, 60]
  [2] 800 x 600 @ [75, 60]
  [3] 640 x 480 @ [75, 60]
  [4] 720 x 400 @ [70]
Rotations: normal right inverted left
Outputs:
  VGA-0 (0mm x 0mm)
    Modes:
      [0] 1280 x 800 @ 59 (preferred)
      [1] 1280 x 768 @ 60
      [2] 1024 x 768 @ 60
      [3] 800 x 600 @ 60
      [4] 640 x 480 @ 59
    Rotations: normal
  S-video (not connected)
  DVI-0 (359mm x 287mm)
    Modes:
      [0] 1280 x 1024 @ 60 *
      [1] 1280 x 1024 @ 59 (preferred)
      [2] 1024 x 768 @ 75
      [3] 1024 x 768 @ 60
      [4] 800 x 600 @ 75
      [5] 800 x 600 @ 60
      [6] 640 x 480 @ 75
      [7] 640 x 480 @ 60
      [8] 720 x 400 @ 70
    Rotations: normal right inverted left
djc@blado:~$ pyxrandr --output VGA-0 --preferred
XRandR 1.2
djc@blado:~$ pyxrandr --output VGA-0 --off
XRandR 1.2
djc@blado:~$ pyxrandr --output VGA-0 --preferred
XRandR 1.2
djc@blado:~$ pyxrandr --output DVI-0 --off
XRandR 1.2
X Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 155 (RANDR)
  Minor opcode of failed request: 7 ()
  Serial number of failed request: 17
  Current serial number in output stream: 18
djc@blado:~$

djc@Twingo:~$ pyxrandr
XRandR 1.2
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 2624 x 1968
          304mm x 228mm
Crtcs: 2
Sizes @ Refr...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.