unable to rotate display left or right

Bug #765850 reported by Sindre Fjogstad on 2011-04-19
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: xorg

After upgrading from kubuntu 10.10 to 11.04 alpha2 I am no longer able to rotate my display to the left or right.

lsb_release -a reports the following:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Natty (development branch)
Release: 11.04
Codename: natty

nvidia-driver information:
version: 270.41.04

xorg information:
Server version number: 11.0
sever version: 1.10.0.902 (11000902)
nv-controll version 1.26

xrandr -0 left fails with the following error message:
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: 0x4b0
  Serial number of failed request: 14
  Current serial number in output stream: 14

xrandr -q returns the following information:
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1200, current 1920 x 1200, maximum 3840 x 1200
default connected 1920x1200+0+0 (normal left inverted right) 0mm x 0mm
   3840x1200 50.0 51.0
   1920x1200 51.0*

nvidia-settings crashed on rotation with the following information:
The program 'nvidia-settings' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 381 error_code 2 request_code 154 minor_code 2)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xorg 1:7.6+4ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86 Kernel Module 270.41.03 Sat Apr 9 00:04:57 PDT 2011
 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
Architecture: i386
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: kwin
Date: Tue Apr 19 14:00:20 2011
DistUpgraded: Log time: 2011-04-19 12:08:02.990631
DistroCodename: natty
DistroVariant: kubuntu
DkmsStatus:
 nvidia-current, 270.41.03, 2.6.35-28-generic-pae, i686: installed
 nvidia-current, 270.41.03, 2.6.38-8-generic-pae, i686: installed
GraphicsCard:
 nVidia Corporation GT216 [Quadro FX 880M] [10de:0a3c] (rev a2) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:2145]
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
JockeyStatus:
 ERROR:root:Could not find any typelib for AppIndicator
 xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, In use)
MachineType: LENOVO 4389AC1
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-2.6.38-8-generic-pae root=UUID=bbfe2d9d-abcc-45b0-917e-a5b6a61e2013 ro quiet splash vt.handoff=7
Renderer: Unknown
SourcePackage: xorg
UpgradeStatus: Upgraded to natty on 2011-04-19 (0 days ago)
dmi.bios.date: 06/07/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6NET61WW (1.24 )
dmi.board.name: 4389AC1
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6NET61WW(1.24):bd06/07/2010:svnLENOVO:pn4389AC1:pvrThinkPadW510:rvnLENOVO:rn4389AC1:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 4389AC1
dmi.product.version: ThinkPad W510
dmi.sys.vendor: LENOVO
nvidia-installer.log: Error: [Errno 2] No such file or directory: '/var/log/nvidia-installer.log'
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu1
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

Sindre Fjogstad (sind) wrote :
bugbot (bugbot) on 2011-04-21
affects: xorg (Ubuntu) → nvidia-graphics-drivers-180 (Ubuntu)
Timo Aaltonen (tjaalton) on 2011-04-26
affects: nvidia-graphics-drivers-180 (Ubuntu) → nvidia-graphics-drivers (Ubuntu)
Sindre Fjogstad (sind) wrote :
Download full text (4.1 KiB)

The following is ltrace output.

ltrace xrandr -o left
__libc_start_main(0x804bc40, 3, 0xbfe1ed24, 0x80511c0, 0x8051220 <unfinished ...>
strcmp("--rate", "-o") = -1
strcmp("--refresh", "-o") = -1
strcmp("--version", "-o") = -1
strcmp("--screen", "-o") = -1
strcmp("--query", "-o") = -1
strtol(0xbfe20368, 0xbfe1ebd4, 10, 0xb783ac85, 5) = 0
strcmp("normal", "left") = 1
strcmp("left", "left") = 0
XOpenDisplay(NULL) = 0x09382008
XRRQueryExtension(0x9382008, 0xbfe1ebec, 0xbfe1ebe8, 0xb783ac85, 5) = 1
XRRQueryVersion(0x9382008, 0xbfe1ebdc, 0xbfe1ebd8, 0xb783ac85, 5) = 1
XRRGetScreenInfo(0x9382008, 637, 0xbfe1ebd8, 0xb783ac85, 5) = 0x938f6b8
XRRConfigCurrentConfiguration(0x938f6b8, 0xbfe1ebfa, 0xbfe1ebd8, 0xb783ac85, 5) = 29
XRRConfigSizes(0x938f6b8, 0xbfe1ebf4, 0xbfe1ebd8, 0xb783ac85, 5) = 0x938f6e4
XRRConfigCurrentRate(0x938f6b8, 0xbfe1ebf4, 0xbfe1ebd8, 0xb783ac85, 5) ...

Read more...

Sindre Fjogstad (sind) wrote :
Download full text (6.9 KiB)

Disregard previous comment, I had removed the xorg xonf file to debug and forgotten to add rotate in xorg.conf.

The following is the correct output of ltrace:
ltrace xrandr -o left
__libc_start_main(0x804bc40, 3, 0xbfd74354, 0x80511c0, 0x8051220 <unfinished ...>
strcmp("--rate", "-o") = -1
strcmp("--refresh", "-o") = -1
strcmp("--version", "-o") = -1
strcmp("--screen", "-o") = -1
strcmp("--query", "-o") = -1
strtol(0xbfd7539f, 0xbfd74204, 10, 0xb77cbc85, 5) = 0
strcmp("normal", "left") = 1
strcmp("left", "left") = 0 ...

Read more...

Sindre Fjogstad (sind) wrote :

This bug is caused by a xorg commit in December which was reverted in the 1.7 branch [1] but not in the 1.9-branch of xorg-xserver.

A bug [2] is filed on the xorg bug tracker but it has no responses, except from the reporter that confirms that a revert of the commit fixes the situation.

[1] http://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.7-branch&id=d77ffa9
[2] https://bugs.freedesktop.org/show_bug.cgi?id=35399

Just uploaded a patch to the aforementioned bug that would work. I have packaged it up on my system and I now have my three screens (2 nVidia cards) with rotation working again. Of course I have to launch compiz on each, but that's another story.

Favux (favux-is) wrote :

I can confirm the same problem as Sindre.

~$ xrandr -o right
X Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 154 (RANDR)
  Minor opcode of failed request: 2 (RRSetScreenConfig)
  Serial number of failed request: 14
  Current serial number in output stream: 14

Favux (favux-is) wrote :

I have tested the xorg-server packages (xorg-server - 2:1.10.1-1ubuntu3?) in proposed. They have fixed cw and ccw rotation for the proprietary n-vidia driver.

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

Other bug subscribers

Remote bug watches

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