Bug 710958

Summary: XRandR rotate left/right produces error
Product: [Fedora] Fedora Reporter: Jason Nelson <jason.nelson>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: ajax, mcepl, xgl-maint
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: [cat:others]
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-19 17:37:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
xorg.conf
none
xorg.log
none
proposed patch for failing xrandr none

Description Jason Nelson 2011-06-06 00:34:22 UTC
Description of problem:

Attempting to do an xrandr -o left will cause an X error.

Version-Release number of selected component (if applicable):

Fedora 15
xorg-x11-server-Xorg-1.10.2-1.fc15.x86_64

How reproducible:

Everytime

Steps to Reproduce:
1. DISPLAY=:0 xrandr -o left
2.
3.
  
Actual results:

X Error of failed request:  BadValue (integer parameter out of range for operation)
    Major opcode of failed request:  154 (RANDR)
    Minor opcode of failed request:  2 (RRSetScreenConfig)
    Value in failed request:  0x780
    Serial number of failed request:  14
    Current serial number in output stream:  14

Expected results:

Screen rotates left (counter clockwise)


Additional info:

This is fixed in patch 5427 at freedesktop.org:

http://patchwork.freedesktop.org/patch/5427/

This is a request to have this patch included in the next build.

Also of note, xrandr -o inverted works fine.

Comment 1 Matěj Cepl 2011-06-06 15:39:34 UTC
Thanks for the bug report.  We have reviewed the information you have provided above, and there is some additional information we require that will be helpful in our diagnosis of this issue.

Please attach

* your X server config file (/etc/X11/xorg.conf, if available), and
* X server log file (/var/log/Xorg.*.log)

to the bug report as individual uncompressed file attachments using the bugzilla file attachment link above.

We will review this issue again once you've had a chance to attach this information.

Thanks in advance.

Comment 2 Jason Nelson 2011-06-10 14:51:04 UTC
Created attachment 504136 [details]
xorg.conf

Comment 3 Jason Nelson 2011-06-10 14:55:39 UTC
Created attachment 504137 [details]
xorg.log

Comment 4 Jason Nelson 2011-06-10 14:57:05 UTC
Sorry for the late response.  It's a work box, and I only work Fri-Sun.

Also, the Major opcode of failed request should be 153, as I just retested:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  153 (RANDR)
  Minor opcode of failed request:  2 (RRSetScreenConfig)
  Value in failed request:  0x834
  Serial number of failed request:  14
  Current serial number in output stream:  14

Thanks

Comment 5 oncaphillis 2011-06-13 14:13:49 UTC
Created attachment 504460 [details]
proposed patch for failing xrandr

It's a bug in the upstream code of x11-xorg-server which exists since the late Fedora 14 and also in Fedora 15. For me the attached patch works and it would be nice if it could be inserted into the binary distribution until the Xorg team patches the xorg server.

Comment 6 Jason Nelson 2011-07-19 17:33:41 UTC
Just updated to new version of Xorg, along with everything else.  Bug still persists:

[splat@TRS80 release]$ xrandr -o left                                                                                                                                                                          
X Error of failed request:  BadMatch (invalid parameter attributes)                                                                                                                                            
  Major opcode of failed request:  152 (RANDR)
  Minor opcode of failed request:  2 (RRSetScreenConfig)                                                                                                                                                       
  Serial number of failed request:  14                                                                                                                                                                         
  Current serial number in output stream:  14

At least the error is slightly different this time around.

Comment 7 Jason Nelson 2011-07-19 17:37:42 UTC
Nevermind, forgot to enable xrandr rotation.  I can confirm this is resolved now.