Advertisement
gmturner

gmt_xrandr_provider_problem

May 25th, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. greg@moneypit ~/src $ cat /etc/X11/xinit/xinitrc.d/05-xrandr_gmt_hacks
  2. #!/bin/sh
  3.  
  4. /usr/bin/xrandr --setprovideroutputsource 1 0
  5.  
  6. greg@moneypit ~/src $ cat /etc/X11/xorg.conf
  7. Section "ServerFlags"
  8. Option "DontZap" "False"
  9. Option "BlankTime" "30"
  10. Option "StandbyTime" "31"
  11. Option "SuspendTime" "60"
  12. Option "OffTime" "120"
  13. EndSection
  14.  
  15. Section "Device"
  16. Identifier "new"
  17. Driver "radeon"
  18. Option "Monitor-DVI-1" "DUAL-DVI"
  19. Option "Monitor-HDMI-1" "DELL 1704FPT"
  20. BusID "PCI:4:0:0"
  21. EndSection
  22.  
  23. Section "Screen"
  24. Identifier "new"
  25. Device "new"
  26. EndSection
  27.  
  28. Section "Screen"
  29. Identifier "old"
  30. Device "old"
  31. EndSection
  32.  
  33. Section "Device"
  34. Identifier "old"
  35. Driver "radeon"
  36. BusID "PCI:3:0:0"
  37. Option "Monitor-DVI-1-0" "y"
  38. EndSection
  39.  
  40. Section "Monitor"
  41. Identifier "DUAL-DVI"
  42. Option "DPMS" "True"
  43. ModeLine "2560x1440_96" 400.00 2560 2608 2640 2744 1440 1443 1448 1512 +hsync +vsync
  44. Option "PreferredMode" "2560x1440_96"
  45. Option "Primary" "True"
  46. EndSection
  47.  
  48. Section "Monitor"
  49. Identifier "DELL 1704FPT"
  50. Option "DPMS" "True"
  51. Option "Enable" "False"
  52. EndSection
  53.  
  54. Section "Monitor"
  55. Identifier "y"
  56. Option "DPMS" "True"
  57. Option "Enable" "False"
  58. EndSection
  59.  
  60. greg@moneypit ~/src $ xrandr -q
  61. Screen 0: minimum 320 x 200, current 5520 x 1440, maximum 16384 x 16384
  62. DVI-1 disconnected primary (normal left inverted right x axis y axis)
  63. DisplayPort-1 disconnected (normal left inverted right x axis y axis)
  64. HDMI-1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
  65. 1280x1024 60.0*+ 75.0
  66. 1152x864 75.0
  67. 1024x768 75.1 60.0
  68. 800x600 75.0 60.3
  69. 640x480 75.0 60.0
  70. 720x400 70.1
  71. DisplayPort-1-0 disconnected (normal left inverted right x axis y axis)
  72. HDMI-1-0 disconnected (normal left inverted right x axis y axis)
  73. DVI-1-0 connected 1680x1050+3840+195 (normal left inverted right x axis y axis) 433mm x 270mm
  74. 1680x1050 59.9*+
  75. 2560x1440_96 (0x95) 400.0MHz
  76. h: width 2560 start 2608 end 2640 total 2744 skew 0 clock 145.8KHz
  77. v: height 1440 start 1443 end 1448 total 1512 clock 96.4Hz
  78. 2560x1440 (0x96) 241.5MHz
  79. h: width 2560 start 2608 end 2640 total 2720 skew 0 clock 88.8KHz
  80. v: height 1440 start 1443 end 1448 total 1481 clock 60.0Hz
  81.  
  82. greg@moneypit ~/src $ xrandr --display HDMI-1 --auto
  83. Can't open display HDMI-1
  84.  
  85. greg@moneypit ~/src $ xrandr --display 0x93 --auto
  86. Can't open display 0x93
  87.  
  88. greg@moneypit ~/src $ gdb `which xrandr`
  89. GNU gdb (Gentoo 7.7.1 p1) 7.7.1
  90. Copyright (C) 2014 Free Software Foundation, Inc.
  91. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  92. This is free software: you are free to change and redistribute it.
  93. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  94. and "show warranty" for details.
  95. This GDB was configured as "x86_64-pc-linux-gnu".
  96. Type "show configuration" for configuration details.
  97. For bug reporting instructions, please see:
  98. <http://bugs.gentoo.org/>.
  99. Find the GDB manual and other documentation resources online at:
  100. <http://www.gnu.org/software/gdb/documentation/>.
  101. For help, type "help".
  102. Type "apropos word" to search for commands related to "word"...
  103. Reading symbols from /usr/bin/xrandr...Reading symbols from /usr/lib64/debug//usr/bin/xrandr.debug...done.
  104. done.
  105. (gdb) set args --output HDMI-1 --auto
  106. (gdb) break main
  107. Breakpoint 1 at 0x401f30: file /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c, line 2474.
  108. (gdb) run
  109. Starting program: /usr/bin/xrandr --output HDMI-1 --auto
  110. warning: Could not load shared library symbols for linux-vdso.so.1.
  111. Do you need "set solib-search-path" or "set sysroot"?
  112. warning: the debug information found in "/usr/lib64/debug//lib64/libm-2.19.so.debug" does not match "/lib64/libm.so.6" (CRC mismatch).
  113.  
  114. warning: the debug information found in "/usr/lib64/debug/lib64/libm-2.19.so.debug" does not match "/lib64/libm.so.6" (CRC mismatch).
  115.  
  116.  
  117. Breakpoint 1, main (argc=4, argv=0x7fffffffd198) at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:2474
  118. 2474 {
  119. (gdb) break exit
  120. Breakpoint 2 at 0x7ffff723f878: file exit.c, line 103.
  121. (gdb) cont
  122. Continuing.
  123. /usr/bin/xrandr: cannot find output 0x58
  124.  
  125. Breakpoint 2, __GI_exit (status=status@entry=1) at exit.c:103
  126. 103 {
  127. (gdb) bt
  128. #0 __GI_exit (status=status@entry=1) at exit.c:103
  129. #1 0x0000000000407aa0 in fatal (format=format@entry=0x40a065 "cannot find output 0x%lx\n") at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:167
  130. #2 0x0000000000404065 in mark_changing_crtcs () at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:1862
  131. #3 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:3271
  132. (gdb) up
  133. #1 0x0000000000407aa0 in fatal (format=format@entry=0x40a065 "cannot find output 0x%lx\n") at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:167
  134. 167 exit (1);
  135. (gdb)
  136. #2 0x0000000000404065 in mark_changing_crtcs () at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:1862
  137. 1862 if (!output) fatal ("cannot find output 0x%lx\n",
  138. (gdb) list mark_changing_crtcs
  139. 1847 static void
  140. 1848 mark_changing_crtcs (void)
  141. 1849 {
  142. 1850 int c;
  143. 1851
  144. 1852 for (c = 0; c < num_crtcs; c++)
  145. 1853 {
  146. 1854 crtc_t *crtc = &crtcs[c];
  147. 1855 int o;
  148. 1856 output_t *output;
  149. (gdb)
  150. 1857
  151. 1858 /* walk old output list (to catch disables) */
  152. 1859 for (o = 0; o < crtc->crtc_info->noutput; o++)
  153. 1860 {
  154. 1861 output = find_output_by_xid (crtc->crtc_info->outputs[o]);
  155. 1862 if (!output) fatal ("cannot find output 0x%lx\n",
  156. 1863 crtc->crtc_info->outputs[o]);
  157. 1864 if (output->changes)
  158. 1865 crtc->changing = True;
  159. 1866 }
  160. (gdb)
  161. 1867 /* walk new output list */
  162. 1868 for (o = 0; o < crtc->noutput; o++)
  163. 1869 {
  164. 1870 output = crtc->outputs[o];
  165. 1871 if (output->changes)
  166. 1872 crtc->changing = True;
  167. 1873 }
  168. 1874 }
  169. 1875 }
  170. 1876
  171. (gdb) print o
  172. $1 = 0
  173. (gdb) print *crtc
  174. $2 = {crtc = {kind = (name_xid | name_index), string = 0x0, xid = 79, index = 6}, changing = 0, crtc_info = 0x61f1c0, mode_info = 0x61e3d0, panning_info = 0x0, x = 3840, y = 195, rotation = 1,
  175. outputs = 0x6207f0, noutput = 1, current_transform = {transform = {matrix = {{65536, 0, 0}, {0, 65536, 0}, {0, 0, 65536}}}, filter = 0x61f270 "", nparams = 0, params = 0x61f290}, pending_transform = {
  176. transform = {matrix = {{65536, 0, 0}, {0, 65536, 0}, {0, 0, 65536}}}, filter = 0x620810 "", nparams = 0, params = 0x620830}}
  177. (gdb) print *crtc->crtc_info
  178. $3 = {timestamp = 96523279, x = 3840, y = 195, width = 1680, height = 1050, mode = 90, rotation = 1, noutput = 1, outputs = 0x61f200, rotations = 63, npossible = 4, possible = 0x61f208}
  179. (gdb) print crtc->crtc_info->outputs[0]
  180. $4 = 88
  181. (gdb) print (void*) crtc->crtc_info->outputs[0]
  182. $5 = (void *) 0x58
  183. (gdb) cont
  184. Continuing.
  185. [Inferior 1 (process 5110) exited with code 01]
  186. (gdb) q
  187. greg@moneypit ~/src $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement