Bug 24263 - Can't unset coherent_mode via xrandr with KMS enabled
Summary: Can't unset coherent_mode via xrandr with KMS enabled
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-01 13:30 UTC by Adam K Kirchhoff
Modified: 2009-12-08 12:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg log with KMS enabled. (45.91 KB, text/plain)
2009-10-01 13:30 UTC, Adam K Kirchhoff
no flags Details
fix (3.64 KB, patch)
2009-12-08 09:54 UTC, Alex Deucher
no flags Details | Splinter Review

Description Adam K Kirchhoff 2009-10-01 13:30:30 UTC
Created attachment 29985 [details]
Xorg log with KMS enabled.

I have a Westinghouse LCD and an x1900.  When I use them together, I have to run 'xrandr --output DVI-0 --set coherent_mode 0' to get the LCD to stop blanking.  It starts happening every 10 seconds and increases to the point where it is constantly blanking. 

However, if I run that command with KMS enabled, I get:

X Error of failed request:  BadName (named color or f
  Major opcode of failed request:  147 (RANDR)
  Minor opcode of failed request:  11 (RRQueryOutputP
  Serial number of failed request:  27
  Current serial number in output stream:  27

The output of 'xrandr --props' is:

Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 8192 x 8192
DVI-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
	EDID_DATA:
		00ffffffffffff005c85405100000000
		25110103e8261e782e40b5a259499724
		125054bfee008180714f010101010101
		010101010101302a009851002a403070
		1300782d1100001e000000fd00384c1e
		520e000a202020202020000000ff000a
		202020202020202020202020000000fc
		004c313932384e560a20202020200074
	load detection: 1 (0x00000001)	range:  (1,0)
	coherent: 1 (0x00000000)	range:  (1,0)
   1280x1024      60.0*+
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
S-video disconnected (normal left inverted right x axis y axis)
	load detection: 1 (0x00000001)	range:  (1,0)
DVI-1 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 390mm x 290mm
	EDID_DATA:
		00ffffffffffff005a6309e701010101
		0f0e01031d281ec0eacc58a054479925
		0f484cffff80a94f81996159714fc14f
		c940d140e140a659403062b0324040c0
		130086221100001e000000ff00343245
		3034313530303538360a000000fd0032
		b41e6e1a000a202020202020000000fc
		0047323230660a20202020202020003a
	load detection: 1 (0x00000001)	range:  (1,0)
	coherent: 1 (0x00000001)	range:  (1,0)
   1280x1024_75.00   74.9*+
   1600x1200      85.0 +   75.0  
   1920x1440      60.0  
   1856x1392      60.0  
   1792x1344      75.0  
   1280x1024      85.0     75.0  
   1152x864       75.0  
   1024x768       85.0     75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        87.8     70.1  

I can run 'xrandr --output DVI-0 --set mode 0' without any errors, and it does change the value for coherent to 0, but it doesn't let the monitor work.
Comment 1 Alex Deucher 2009-10-02 07:51:02 UTC
Does:
xrandr --output DVI-0 --set coherent 0
work?
Comment 2 Adam K Kirchhoff 2009-10-02 08:20:43 UTC
Bah...  Sorry I mistyped in my original report.  Where I said:

I can run 'xrandr --output DVI-0 --set mode 0' without any errors, and it does
change the value for coherent to 0, but it doesn't let the monitor work.

I should have said:

I can run 'xrandr --output DVI-0 --set coherent 0' without any errors, and it does
change the value for coherent to 0, but it doesn't let the monitor work.
Comment 3 Adam K Kirchhoff 2009-12-08 04:26:20 UTC
FYI, this is still not working as of 2.6.32 and xf86-video-ati from master git as of yesterday afternoon (12/07/09).
Comment 4 Alex Deucher 2009-12-08 09:54:20 UTC
Created attachment 31845 [details] [review]
fix

This patch should fix it. Sent to Dave today.
Comment 5 Adam K Kirchhoff 2009-12-08 12:39:57 UTC
That patch fixes the inability to set coherent when using KMS.


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.