Bug 326776 - wrong xrandr backend
Summary: wrong xrandr backend
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 1.0.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Fiestas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 11:33 UTC by maxim.suraev
Modified: 2013-11-13 17:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maxim.suraev 2013-10-28 11:33:39 UTC
When I start "kcmshell4 kscreen" I got warning:
"This backend is only for XRandR 1.1, your version is:  1 . 3" while I have libxrandr2 version 1.4.0
kscreen should properly detect xrandr version and choose appropriate backend automatically.

Reproducible: Always
Comment 1 Daniel Vrátil 2013-10-29 21:54:53 UTC
Please enable KSRandr and KSRandr1.1 in kdebugdialog and run "kscreen-console bug", then paste it's output here.

Looks like libkscreen fails to load the XRandR backend for xrandr > 1.1, so it fallsback to xrandr1.1 backend, which of course fails too.
Comment 2 maxim.suraev 2013-10-29 23:07:24 UTC
kscreen-console bug
START 
kscreen-console(29960)/KSRandr11 XRandRX11Helper::XRandRX11Helper: Detected XRandR 1.4
kscreen-console(29960)/KSRandr11 XRandRX11Helper::XRandRX11Helper: Event Base:  89
kscreen-console(29960)/KSRandr11 XRandRX11Helper::XRandRX11Helper: Event Error:  147
This backend is only for XRandR 1.1, your version is:  1 . 3 
kscreen-console(29960)/KSRandr XRandRX11Helper::XRandRX11Helper: Detected XRandR 1.4
kscreen-console(29960)/KSRandr XRandRX11Helper::XRandRX11Helper: Event Base:  89
kscreen-console(29960)/KSRandr XRandRX11Helper::XRandRX11Helper: Event Error:  147
Config::current() took 9 milliseconds 

========================xrandr --verbose========================== 

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (0x49) normal (normal left inverted right x axis y axis) 282mm x 165mm
	Identifier: 0x43
	Timestamp:  83944764
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       0
	CRTCs:      0 1 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	EDID: 
		00ffffffffffff000dae431300000000
		34150104a51c10780293ada9534c9625
		114f5300000001010101010101010101
		010101010101363680a0703820402e1e
		24001aa510000018242480a070382040
		2e1e24001aa510000018000000fe0043
		4d4e0a202020202020202020000000fe
		004e3133334853452d4541310a2000cd
	BACKLIGHT: 25 
		range: (0, 100)
	Backlight: 25 
		range: (0, 100)
	scaling mode: Full aspect 
		supported: NoneFullCenterFull aspect
	Broadcast RGB: Automatic 
		supported: AutomaticFullLimited 16:235
	audio: auto 
		supported: force-dvioffautoon
  1920x1080 (0x49)  138.8MHz -HSync -VSync *current +preferred
        h: width  1920 start 1966 end 1996 total 2080 skew    0 clock   66.7KHz
        v: height 1080 start 1082 end 1086 total 1112           clock   60.0Hz
  1920x1080 (0xaf)  138.5MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock   66.6KHz
        v: height 1080 start 1083 end 1088 total 1111           clock   59.9Hz
  1920x1080 (0xb0)   92.5MHz -HSync -VSync
        h: width  1920 start 1966 end 1996 total 2080 skew    0 clock   44.5KHz
        v: height 1080 start 1082 end 1086 total 1112           clock   40.0Hz
  1680x1050 (0xb1)  146.2MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock   65.3KHz
        v: height 1050 start 1053 end 1059 total 1089           clock   60.0Hz
  1680x1050 (0xb2)  119.0MHz +HSync -VSync
        h: width  1680 start 1728 end 1760 total 1840 skew    0 clock   64.7KHz
        v: height 1050 start 1053 end 1059 total 1080           clock   59.9Hz
  1600x1024 (0xb3)  103.1MHz +HSync +VSync
        h: width  1600 start 1600 end 1656 total 1664 skew    0 clock   62.0KHz
        v: height 1024 start 1024 end 1029 total 1030           clock   60.2Hz
  1400x1050 (0xb4)  122.0MHz +HSync +VSync
        h: width  1400 start 1488 end 1640 total 1880 skew    0 clock   64.9KHz
        v: height 1050 start 1052 end 1064 total 1082           clock   60.0Hz
  1280x1024 (0xb5)  108.0MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
  1440x900 (0xb6)  106.5MHz -HSync +VSync
        h: width  1440 start 1520 end 1672 total 1904 skew    0 clock   55.9KHz
        v: height  900 start  903 end  909 total  934           clock   59.9Hz
  1280x960 (0xb7)  108.0MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock   60.0KHz
        v: height  960 start  961 end  964 total 1000           clock   60.0Hz
  1360x768 (0xb8)   84.8MHz -HSync +VSync
        h: width  1360 start 1432 end 1568 total 1776 skew    0 clock   47.7KHz
        v: height  768 start  771 end  781 total  798           clock   59.8Hz
  1360x768 (0xb9)   72.0MHz +HSync -VSync
        h: width  1360 start 1408 end 1440 total 1520 skew    0 clock   47.4KHz
        v: height  768 start  771 end  781 total  790           clock   60.0Hz
  1152x864 (0xba)   81.6MHz -HSync +VSync
        h: width  1152 start 1216 end 1336 total 1520 skew    0 clock   53.7KHz
        v: height  864 start  865 end  868 total  895           clock   60.0Hz
  1024x768 (0xbb)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0xbc)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  800x600 (0xbd)   36.0MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
        v: height  600 start  601 end  603 total  625           clock   56.2Hz
  640x480 (0xbe)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   59.9Hz
VGA1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x44
	Timestamp:  83944764
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
HDMI1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x45
	Timestamp:  83944764
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Broadcast RGB: Automatic 
		supported: AutomaticFullLimited 16:235
	audio: auto 
		supported: force-dvioffautoon
DP1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x46
	Timestamp:  83944764
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Broadcast RGB: Automatic 
		supported: AutomaticFullLimited 16:235
	audio: auto 
		supported: force-dvioffautoon
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x47
	Timestamp:  83944764
	Subpixel:   no subpixels
	Clones:    
	CRTCs:      3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
 

========================Outputs=================================== 

KScreen version:  1.0.1 
Screen: 
	maxSize: QSize(32767, 32767) 
	minSize: QSize(320, 200) 
	currentSize: QSize(1920, 1080) 

-----------------------------------------------------
 
Id:  68 
Name:  "VGA1" 
Type:  "Unknown" 
Connected:  false 

-----------------------------------------------------
 
Id:  69 
Name:  "HDMI1" 
Type:  "Unknown" 
Connected:  false 

-----------------------------------------------------
 
Id:  70 
Name:  "DP1" 
Type:  "Unknown" 
Connected:  false 

-----------------------------------------------------
 
Id:  71 
Name:  "VIRTUAL1" 
Type:  "Unknown" 
Connected:  false 

-----------------------------------------------------
 
Id:  67 
Name:  "eDP1" 
Type:  "Panel (Laptop)" 
Connected:  true 
Enabled:  true 
Primary:  true 
Rotation:  1 
Pos:  QPoint(0,0) 
Size:  QSize(1920, 1080) 
Clones:  None 
Mode:  "73" 
Preferred Mode:  "73" 
Preferred modes:  ("73") 
Modes:  
	 "179"    "1600x1024"   QSize(1600, 1024)   60.1691 
	 "190"    "640x480"   QSize(640, 480)   59.9405 
	 "180"    "1400x1050"   QSize(1400, 1050)   59.9756 
	 "181"    "1280x1024"   QSize(1280, 1024)   60.0197 
	 "182"    "1440x900"   QSize(1440, 900)   59.8874 
	 "183"    "1280x960"   QSize(1280, 960)   60 
	 "184"    "1360x768"   QSize(1360, 768)   59.799 
	 "185"    "1360x768"   QSize(1360, 768)   59.96 
	 "73"    "1920x1080"   QSize(1920, 1080)   60.001 
	 "175"    "1920x1080"   QSize(1920, 1080)   59.9339 
	 "186"    "1152x864"   QSize(1152, 864)   59.9971 
	 "176"    "1920x1080"   QSize(1920, 1080)   40.0007 
	 "187"    "1024x768"   QSize(1024, 768)   60.0038 
	 "177"    "1680x1050"   QSize(1680, 1050)   59.9543 
	 "188"    "800x600"   QSize(800, 600)   60.3165 
	 "178"    "1680x1050"   QSize(1680, 1050)   59.8833 
	 "189"    "800x600"   QSize(800, 600)   56.25 
EDID Info:  
	Device ID:  "xrandr-unknown" 
	Name:  "" 
	Vendor:  "" 
	Serial:  "" 
	EISA ID:  "N133HSE-EA1" 
	Hash:  "e4c60c052c579303ac024f21f1683d98" 
	Width:  28 
	Height:  16 
	Gamma:  2 
	Red:  QQuaternion(scalar:1, vector:(0.662109, 0.324219, 0)) 
	Green:  QQuaternion(scalar:1, vector:(0.296875, 0.588867, 0)) 
	Blue:  QQuaternion(scalar:1, vector:(0.146484, 0.0683594, 0)) 
	White:  QQuaternion(scalar:1, vector:(0.311523, 0.325195, 0)) 

========================Configurations============================ 

Configs in:  "/home/god/.kde/share/apps/kscreen/" 
Number of files:  2 

"95011c2107f40fd3dc3aa61736635237" 
"[
 {
  "enabled" : true,
  "id" : "e4c60c052c579303ac024f21f1683d98",
  "metadata" :   {
   "fullname" : "xrandr-unknown",
   "name" : "eDP1"
  },
  "mode" :   {
   "refresh" : 60.001,
   "size" :    {
    "height" : 1080,
    "width" : 1920
   }
  },
  "pos" :   {
   "x" : 0,
   "y" : 0
  },
  "primary" : true,
  "rotation" : 1
 }
]" 

"c699a86bbdfb06c97c60868e3780b51d" 
"[
 {
  "enabled" : true,
  "id" : "e4c60c052c579303ac024f21f1683d98",
  "metadata" :   {
   "fullname" : "xrandr-unknown",
   "name" : "eDP1"
  },
  "mode" :   {
   "refresh" : 60.001,
   "size" :    {
    "height" : 1080,
    "width" : 1920
   }
  },
  "pos" :   {
   "x" : 0,
   "y" : 0
  },
  "primary" : true,
  "rotation" : 1
 },
 {
  "enabled" : true,
  "id" : "072615eab0d782724a314fa6be5fdfc1",
  "metadata" :   {
   "fullname" : "xrandr-Acer Technologies-B203H-LFE0C0014072",
   "name" : "VGA1"
  },
  "mode" :   {
   "refresh" : 59.946,
   "size" :    {
    "height" : 900,
    "width" : 1600
   }
  },
  "pos" :   {
   "x" : 1920,
   "y" : 0
  },
  "primary" : false,
  "rotation" : 1
 }
]"
Comment 3 Alex Fiestas 2013-11-13 17:12:35 UTC
Git commit 0b2c560bbde00630ef1091e76d07bf7153848d9a by Àlex Fiestas.
Committed on 13/11/2013 at 17:10.
Pushed by afiestas into branch 'master'.

Change qWarning for qDebug (it is really not a warning anymore)

XRandR 1.1 backend is only for environents with 1.1 XRandR, for
anything else what we really want is the "XRandR" backend.

This warning is more of a debug message for developers, so it is
better if we switch from qWarning to qDebug.
FIXED-IN: 1.0.2

M  +1    -1    backends/xrandr1.1/xrandr11.cpp

http://commits.kde.org/libkscreen/0b2c560bbde00630ef1091e76d07bf7153848d9a