Bug 2759 - "MonitorLayout CRT" and 1600x1200 disables xv
Summary: "MonitorLayout CRT" and 1600x1200 disables xv
Status: RESOLVED DUPLICATE of bug 5623
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 6.8.2
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-17 12:22 UTC by kiltharan
Modified: 2006-04-13 00:53 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
The Xorg Logfile (58.01 KB, text/plain)
2005-03-23 12:16 UTC, kiltharan
no flags Details
The xorg configuration file (5.50 KB, text/plain)
2005-03-23 12:16 UTC, kiltharan
no flags Details
xorg logfile with Monitorlayout CRT deaktivated (commented) (39.44 KB, text/plain)
2005-03-23 12:27 UTC, kiltharan
no flags Details

Description kiltharan 2005-03-17 12:22:29 UTC
When 'Option "MonitorLayout" "CRT"' is commented (not used), xorg refuses to   
set the resolution to 1600x1200, even though the correct modeline is specified   
and only one resolution is defined below the screen section. I just get a max.   
resolution of 1280x1024.    
Uncommenting 'Option "MonitorLayout" "CRT"' does the trick, I do get my desired   
resolution/refresh rate, however, no scalable video playback is possible,  
especially not using xv any more.   
xine, mplayer, vlc, does not matter. With mplayer, playback through x11 works,  
but does not scale. Commenting MonitorLayout again and all videoplayback is 
fine, but the resolution ...  
This behaviour is new to 6.8.x and did not exist with 6.7.0.   
   
Monitor is an NEC1375x, which is correctly detected asides the HorizSync value,   
however, albeit CRT, it has an DVI-D input, which is connetcted to the analog   
output of the Radeon 8500LE and this may explain the need for MonitorLayerout   
CRT
Comment 1 Alex Deucher 2005-03-21 07:46:10 UTC
Depending on which crtc is sourced to the output the overlay might be assigned
to the other one.  you can switch the overlay crtc using the XV_SWITCH_CRTC Xv
attribute using a tool like xvattr.  Could you also attach your log and config?
Comment 2 kiltharan 2005-03-23 12:16:02 UTC
Created attachment 2194 [details]
The Xorg Logfile
Comment 3 kiltharan 2005-03-23 12:16:37 UTC
Created attachment 2195 [details]
The xorg configuration file
Comment 4 kiltharan 2005-03-23 12:21:27 UTC
Hello,   
   
first, thanks for taking on this. Now I had a chance to test with an radeon 
9700 card, which shows the same behaviour. The attached logs are from that 9700 
card. However, I will gladly be providing the other settings for the radeon8500 
as well, if helpful.     
Without that CRT option, I only get 1280x1024 and all modelines are ignored,   
but videoplayback is fine, with Option CRT the playbackwindow remains black    
when using xv, but resolution and refreshrate are as desired.    
    
According to your comment, I am not sure I understand what you are saying, but 
below ist some xvattr info 
 
The output of xvattr (without options):   
Found Xv 2.2   
Adaptor: 0   
Name: ATI Radeon Video Overlay   
 Port: 61   
  Name: XV_SET_DEFAULTS   
   Flags: XvSettable   
   Min value: 0   
   Max value: 1   
  Name: XV_AUTOPAINT_COLORKEY   
   Flags: XvGettable XvSettable   
   Min value: 0   
   Max value: 1   
   Current value: 1   
  Name: XV_COLORKEY   
   Flags: XvGettable XvSettable   
   Min value: 0   
   Max value: -1   
   Current value: 30   
  Name: XV_DOUBLE_BUFFER   
   Flags: XvGettable XvSettable   
   Min value: 0   
   Max value: 1   
   Current value: 1   
  Name: XV_BRIGHTNESS   
   Flags: XvGettable XvSettable   
   Min value: -1000   
   Max value: 1000   
   Current value: 0   
  Name: XV_CONTRAST   
   Flags: XvGettable XvSettable   
   Min value: -1000   
   Max value: 1000   
   Current value: 0   
  Name: XV_SATURATION   
   Flags: XvGettable XvSettable   
   Min value: -1000   
   Max value: 1000   
   Current value: 0   
  Name: XV_COLOR   
   Flags: XvGettable XvSettable   
   Min value: -1000   
   Max value: 1000   
   Current value: 0   
  Name: XV_HUE   
   Flags: XvGettable XvSettable   
   Min value: -1000   
   Max value: 1000   
   Current value: 0   
  Name: XV_RED_INTENSITY   
   Flags: XvGettable XvSettable   
   Min value: -1000   
   Max value: 1000   
   Current value: 0   
  Name: XV_GREEN_INTENSITY   
   Flags: XvGettable XvSettable   
   Min value: -1000   
   Max value: 1000   
   Current value: 0   
  Name: XV_BLUE_INTENSITY   
   Flags: XvGettable XvSettable   
   Min value: -1000   
   Max value: 1000   
   Current value: 0   
   
   Name: XV_SWITCHCRT   
   Flags: XvGettable XvSettable   
   Min value: 0   
   Max value: 1   
   Current value: 0   
  Name: XV_GAMMA   
   Flags: XvGettable XvSettable   
   Min value: 100   
   Max value: 10000   
   Current value: 1000   
  Name: XV_COLORSPACE   
   Flags: XvGettable XvSettable   
   Min value: 0   
   Max value: 1   
   Current value: 0   
   
xvattr -a XV_SWITCH_CRTC  
Found Xv 2.2  
X Error of failed request:  BadMatch (invalid parameter attributes)  
  Major opcode of failed request:  141 (XVideo)  
  Minor opcode of failed request:  14 ()  
  Serial number of failed request:  11  
  Current serial number in output stream:  11  
 
And the output of xvinfo: 
 
 X-Video Extension version 2.2 
screen #0 
  Adaptor #0: "ATI Radeon Video Overlay" 
    number of ports: 1 
    port base: 61 
    operations supported: PutImage 
    supported visuals: 
      depth 24, visualID 0x23 
      depth 24, visualID 0x24 
      depth 24, visualID 0x25 
      depth 24, visualID 0x26 
      depth 24, visualID 0x27 
      depth 24, visualID 0x28 
      depth 24, visualID 0x29 
      depth 24, visualID 0x2a 
    number of attributes: 15 
      "XV_SET_DEFAULTS" (range 0 to 1) 
              client settable attribute 
      "XV_AUTOPAINT_COLORKEY" (range 0 to 1) 
              client settable attribute 
              client gettable attribute (current value is 1) 
      "XV_COLORKEY" (range 0 to -1) 
              client settable attribute 
              client gettable attribute (current value is 30) 
      "XV_DOUBLE_BUFFER" (range 0 to 1) 
              client settable attribute 
              client gettable attribute (current value is 1) 
      "XV_BRIGHTNESS" (range -1000 to 1000) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_CONTRAST" (range -1000 to 1000) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_SATURATION" (range -1000 to 1000) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_COLOR" (range -1000 to 1000) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_HUE" (range -1000 to 1000) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_RED_INTENSITY" (range -1000 to 1000) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_GREEN_INTENSITY" (range -1000 to 1000) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_BLUE_INTENSITY" (range -1000 to 1000) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_SWITCHCRT" (range 0 to 1) 
              client settable attribute 
              client gettable attribute (current value is 0) 
      "XV_GAMMA" (range 100 to 10000) 
              client settable attribute 
              client gettable attribute (current value is 1000) 
      "XV_COLORSPACE" (range 0 to 1) 
              client settable attribute 
              client gettable attribute (current value is 0) 
    maximum XvImage size: 2048 x 2048 
    Number of image formats: 4 
      id: 0x32595559 (YUY2) 
        guid: 59555932-0000-0010-8000-00aa00389b71 
        bits per pixel: 16 
        number of planes: 1 
        type: YUV (packed) 
      id: 0x59565955 (UYVY) 
        guid: 55595659-0000-0010-8000-00aa00389b71 
        bits per pixel: 16 
        number of planes: 1 
        type: YUV (packed) 
      id: 0x32315659 (YV12) 
        guid: 59563132-0000-0010-8000-00aa00389b71 
        bits per pixel: 12 
        number of planes: 3 
        type: YUV (planar) 
      id: 0x30323449 (I420) 
        guid: 49343230-0000-0010-8000-00aa00389b71 
        bits per pixel: 12 
        number of planes: 3 
        type: YUV (planar) 
 
Comment 5 kiltharan 2005-03-23 12:27:20 UTC
Created attachment 2196 [details]
xorg logfile with Monitorlayout CRT deaktivated (commented)
Comment 6 kiltharan 2005-03-23 12:29:46 UTC
Addition: When running without Minotorlayout CRT and therefore working 
videoplayback, the output of xvattr does not vary too much.  
 
xvattr -a XV_SWITCH_CRTC 
Found Xv 2.2 
X Error of failed request:  BadMatch (invalid parameter attributes) 
  Major opcode of failed request:  141 (XVideo) 
  Minor opcode of failed request:  14 () 
  Serial number of failed request:  11 
  Current serial number in output stream:  11 
 
Comment 7 T. Hood 2005-09-26 07:04:37 UTC
With "MonitorLayout CRT" and 1280x1024 dimension, does xv work?
Comment 8 Michel Dänzer 2005-11-08 07:11:01 UTC
(In reply to comment #4)
>    
>    Name: XV_SWITCHCRT   
>    Flags: XvGettable XvSettable   
>    Min value: 0   
>    Max value: 1   
>    Current value: 0   

[...]
  
> xvattr -a XV_SWITCH_CRTC  
> Found Xv 2.2  
> X Error of failed request:  BadMatch (invalid parameter attributes)  

As you can see above, the name of the attribute is XV_SWITCHCRT.
Comment 9 Michel Dänzer 2006-04-13 17:53:41 UTC

*** This bug has been marked as a duplicate of 5623 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.