xgl doesn't support xrandr

Bug #164125 reported by Oben Sonne
6
Affects Status Importance Assigned to Milestone
Xgl server
New
Undecided
Unassigned
linux-restricted-modules-2.6.24 (Ubuntu)
Won't Fix
Wishlist
Unassigned
xserver-xgl (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

When I run xrandr [-q] on the command line, it shows me an X BadRequest error:

$ xrandr -q
X Error of failed request: BadRequest (invalid request code or no such operation)
  Major opcode of failed request: 151 (RANDR)
  Minor opcode of failed request: 6 ()
  Serial number of failed request: 9
  Current serial number in output stream: 9

But changing screen resolution with
$ xrandr -s ..x..
works and shows no error.

System information:

Ubuntu Gutsy

$ xrandr -v
Server reports RandR version 1.2

Using xserver-xgl (package version 1:1.1.99.1~git20070727-0ubuntu3) and compiz enabled.

All X related software on my system is from the official Ubuntu repositories and up to date.

Revision history for this message
Jonathan Hitchcock (vhata) wrote :
Download full text (4.4 KiB)

I'm using a Lenovo R61i Thinkpad, and I have the same problem.

$ cat /etc/issue
Ubuntu 7.10 \n \l

$ xrandr
X Error of failed request: BadRequest (invalid request code or no such operation)
  Major opcode of failed request: 151 (RANDR)
  Minor opcode of failed request: 6 ()
  Serial number of failed request: 9
  Current serial number in output stream: 9

$ dpkg -l xserver*
ii xserver-xgl 1:1.1.99.1~git20070727-0ubuntu3 GL-based X server
ii xserver-xorg 1:7.2-5ubuntu13 the X.Org X server
...

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)

$ glxinfo
name of display: :1.0
display: :1 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_EXT_texture_from_pixmap
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (2.1 Mesa 7.0.1)
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging,
    GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_shadow, GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
    GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle,
    GL_ARB_transpose_matrix, GL_ARB_vertex_program, GL_ARB_window_pos,
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_clip_volume_hint, GL_EXT_copy_texture, GL_EXT_draw_range_elements,
    GL_EXT_fog_coord, GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset,
    GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_E...

Read more...

Revision history for this message
Eric Christiansen (ericmartinchristiansen+sites) wrote :

I have the same problem:

eric@emc:~$ xrandr
X Error of failed request: BadRequest (invalid request code or no such operation)
  Major opcode of failed request: 151 (RANDR)
  Minor opcode of failed request: 6 ()
  Serial number of failed request: 9
  Current serial number in output stream: 9

I'm running 32bit Gutsy + fglrx + xgl + compiz.

Revision history for this message
Bryce Harrington (bryce) wrote : Re: fglrx doesn't support xrandr

This may be because ATI has not implemented xrandr 1.2 in fglrx. xrandr 1.0options like -s and -v should work fine but others will not. I suspect -q requires some 1.2 functionality. I'm reassigning this bug accordingly.

Jonathan, since you're using -intel hardware, your issue is not identical, but probably is broken for the same reason - xgl probably doesn't support xrandr 1.2 commands. Please file a new bug about this against xserver-xgl.

Timo Aaltonen (tjaalton)
Changed in linux-restricted-modules-2.6.24:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
David Kovar (kowy) wrote :

Hi,
I'm not sure if it is only fglrx problem, because I have nvidia card (with nvidia 1.0.9639 driver, which should has xrandr support) and have completely the same problem (xrandr -s works but other parameters causes BadRequest error).

kowy@kowy-white:~$ dpkg -l nvidia*
ii nvidia-glx 1:1.0.9639+2.6 NVIDIA binary XFree86 4.x/X.Org driver

Revision history for this message
Chris Halse Rogers (raof) wrote :

nVidia don't support XRandR 1.2, just 1.1. The 1.2 commands aren't expected to work on nVidia, and they appear to have no intention of implementing it.

Revision history for this message
Bryce Harrington (bryce) wrote : Re: fglrx+xgl doesn't support xrandr

Chris, I notice several people are reporting using this with xgl. Does Xgl support xrandr 1.2? If not, then perhaps this bug is actually an Xgl wishlist bug?

Revision history for this message
David Kovar (kowy) wrote :

Dear Chris,
I don't know which RandR version nVidia support (I didn't find it), but based on readme for 1.0.9639 version, nvidia driver should run xrandr -q and xrandr -o and in my case if finish in error state same as described by Christian. And on the other hand -o and -q are 1.1 commands. So I guess this error is not a nvidia or a fglrx problem.

Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote :

I have the same experience as kowy. 'xrandr -q' worked for me in gutsy, but not hardy.

Revision history for this message
jerzy (jpiter) wrote :

I have some different problem but it's close to the topic. Namely I got R61i equiped with X3100 Intel graphicks card. xrandr -q works in my case but shows only LVCD and VGA as output doesn't show TV-OUT port as available. The laptop has one.

Revision history for this message
Bryce Harrington (bryce) wrote :

For those using Xgl, please uninstall it and re-test xrandr 1.2 commands. As I understand it, Xgl may not support xrandr 1.2. If that resolves it, then this is an Xgl bug, not an fglrx one.

Changed in linux-restricted-modules-2.6.24:
status: Confirmed → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

Closing xrandr component - it's either a driver or server issue, not the xrandr package.

Changed in xrandr:
status: New → Invalid
Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote : Re: [fglrx] fglrx+xgl doesn't support xrandr

I had this same problem but with the nvidia driver and removing xserver-xgl fixed the problem.

Revision history for this message
David Kovar (kowy) wrote :

Bryce: thank you. Uninstallation of xserver-xgl works for me also.

Revision history for this message
Rene Horn (the-rhorn) wrote :

Yes, I can confirm that this has to do with Xgl and not with fglrx. I also have an Intel GMA 965, and Xrandr works just fine when I disable Xgl.

Either this bug needs to be changed in its heading or a new one needs to be filed against Xgl.

Revision history for this message
Rene Horn (the-rhorn) wrote :

I just decided to go ahead and make the changes myself.

description: updated
Revision history for this message
Chris Halse Rogers (raof) wrote :

Correct. The Xgl package in the archives doesn't support XRandr1.2, although it claimed to. Pulling in a new upstream git snapshot would bring in xrandr1.2 support. However, Xgl currently won't build in Intrepid, will need an old snapshot of mesa to be included in its source package before it will build, and is worse than useless for almost all Intrepid users. Thus I've asked for its removal in bug 262491, and am marking this as "wontfix".

Changed in xrandr:
status: Invalid → Won't Fix
Bryce Harrington (bryce)
Changed in linux-restricted-modules-2.6.24 (Ubuntu):
status: Incomplete → Confirmed
Changed in linux-restricted-modules-2.6.24 (Ubuntu):
status: Confirmed → Won't Fix
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.