View difference between Paste ID: X7eFqK3W and jC9ifB0i
SHOW: | | - or go back to the newest paste.
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
82+
greg@moneypit ~/src $ xrandr --verbose
83-
Can't open display HDMI-1
83+
84
DVI-1 disconnected primary (normal left inverted right x axis y axis)
85-
greg@moneypit ~/src $ xrandr --display 0x93 --auto
85+
        Identifier: 0x90
86-
Can't open display 0x93
86+
        Timestamp:  116119361
87
        Subpixel:   horizontal rgb
88
        Gamma:      1.0:1.0:1.0
89
        Brightness: 1.0
90
        Clones:    
91
        CRTCs:      0 1 2 3 4 5
92
        Transform:  1.000000 0.000000 0.000000
93
                    0.000000 1.000000 0.000000
94
                    0.000000 0.000000 1.000000
95
                   filter: 
96
        EDID: 
97
                00ffffffffffff00232f9b0400000000
98
                28150103a53c2278226fb1a7554c9e25
99
                0c505400000001010101010101010101
100
                010101010101565e00a0a0a029503020
101
                350055502100001a000000fc00445541
102
                4c2d4456490a20202020000000fc000a
103
                202020202020202020202020000000fc
104
                000a2020202020202020202020200012
105
        load detection: 1 
106
                range: (0, 1)
107
        dither: off 
108
                supported: off, on
109
        audio: auto 
110
                supported: off, on, auto
111
        underscan vborder: 0 
112
                range: (0, 128)
113
        underscan hborder: 0 
114
                range: (0, 128)
115
        underscan: off 
116
                supported: off, on, auto
117
        coherent: 1 
118
                range: (0, 1)
119
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
120
        Identifier: 0x92
121
        Timestamp:  116119361
122
        Subpixel:   horizontal rgb
123
        Clones:    
124
        CRTCs:      0 1 2 3 4 5
125
        Transform:  1.000000 0.000000 0.000000
126
                    0.000000 1.000000 0.000000
127
                    0.000000 0.000000 1.000000
128
                   filter: 
129
        dither: off 
130
                supported: off, on
131
        audio: auto 
132
                supported: off, on, auto
133
        underscan vborder: 0 
134
                range: (0, 128)
135
        underscan hborder: 0 
136
                range: (0, 128)
137
        underscan: off 
138
                supported: off, on, auto
139
        coherent: 1 
140
                range: (0, 1)
141
HDMI-1 connected 1280x1024+0+0 (0x97) normal (normal left inverted right x axis y axis) 338mm x 270mm
142
        Identifier: 0x93
143
        Timestamp:  116119361
144
        Subpixel:   horizontal rgb
145
        Gamma:      1.0:1.0:1.0
146
        Brightness: 1.0
147
        Clones:    
148
        CRTC:       1
149
        CRTCs:      0 1 2 3 4 5
150
        Transform:  1.000000 0.000000 0.000000
151
                    0.000000 1.000000 0.000000
152
                    0.000000 0.000000 1.000000
153
                   filter: 
154
        EDID: 
155
                00ffffffffffff0010ac054035544b42
156
                280e010380221b78eec5c6a3574a9c23
157
                124f54a54b00714f8180010101010101
158
                010101010101302a009851002a403070
159
                1300520e1100001e000000ff00593432
160
                3939344132424b54350a000000fc0044
161
                454c4c20313730344650540a000000fd
162
                00384c1e510e000a20202020202000e7
163
        dither: off 
164
                supported: off, on
165
        audio: auto 
166
                supported: off, on, auto
167
        underscan vborder: 0 
168
                range: (0, 128)
169
        underscan hborder: 0 
170
                range: (0, 128)
171
        underscan: off 
172
                supported: off, on, auto
173
        coherent: 1 
174
                range: (0, 1)
175
  1280x1024 (0x97)  108.0MHz +HSync +VSync *current +preferred
176
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
177
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
178
  1280x1024 (0x98)  135.0MHz +HSync +VSync
179
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock   80.0KHz
180
        v: height 1024 start 1025 end 1028 total 1066           clock   75.0Hz
181
  1152x864 (0x99)  108.0MHz +HSync +VSync
182
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock   67.5KHz
183
        v: height  864 start  865 end  868 total  900           clock   75.0Hz
184
  1024x768 (0x9a)   78.8MHz +HSync +VSync
185
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock   60.1KHz
186
        v: height  768 start  769 end  772 total  800           clock   75.1Hz
187
  1024x768 (0x9b)   65.0MHz -HSync -VSync
188
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
189
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
190
  800x600 (0x9c)   49.5MHz +HSync +VSync
191
        h: width   800 start  816 end  896 total 1056 skew    0 clock   46.9KHz
192
        v: height  600 start  601 end  604 total  625           clock   75.0Hz
193
  800x600 (0x9d)   40.0MHz +HSync +VSync
194
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
195
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
196
  640x480 (0x9e)   31.5MHz -HSync -VSync
197
        h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
198
        v: height  480 start  481 end  484 total  500           clock   75.0Hz
199
  640x480 (0x9f)   25.2MHz -HSync -VSync
200
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
201
        v: height  480 start  490 end  492 total  525           clock   60.0Hz
202
  720x400 (0xa0)   28.3MHz -HSync +VSync
203
        h: width   720 start  738 end  846 total  900 skew    0 clock   31.5KHz
204
        v: height  400 start  412 end  414 total  449           clock   70.1Hz
205
DisplayPort-1-0 disconnected (normal left inverted right x axis y axis)
206
        Identifier: 0x55
207
        Timestamp:  96523279
208
        Subpixel:   horizontal rgb
209
        Clones:    
210
        CRTCs:      6 7 8 9 10 11
211
        Transform:  1.000000 0.000000 0.000000
212
                    0.000000 1.000000 0.000000
213
                    0.000000 0.000000 1.000000
214
                   filter: 
215
        dither: off 
216
                supported: off, on
217
        audio: auto 
218
                supported: off, on, auto
219
        underscan vborder: 0 
220
                range: (0, 128)
221
        underscan hborder: 0 
222
                range: (0, 128)
223
        underscan: off 
224
                supported: off, on, auto
225
        coherent: 1 
226
                range: (0, 1)
227
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
228
        Identifier: 0x56
229
        Timestamp:  96523279
230
        Subpixel:   horizontal rgb
231
        Clones:    
232
        CRTCs:      6 7 8 9 10 11
233
        Transform:  1.000000 0.000000 0.000000
234
                    0.000000 1.000000 0.000000
235
                    0.000000 0.000000 1.000000
236
                   filter: 
237
        dither: off 
238
                supported: off, on
239
        audio: auto 
240
                supported: off, on, auto
241
        underscan vborder: 0 
242
                range: (0, 128)
243
        underscan hborder: 0 
244
                range: (0, 128)
245
        underscan: off 
246
                supported: off, on, auto
247
        coherent: 1 
248
                range: (0, 1)
249
DVI-1-0 connected 1680x1050+3840+195 (0x5a) normal (normal left inverted right x axis y axis) 433mm x 270mm
250
        Identifier: 0x57
251
        Timestamp:  96523279
252
        Subpixel:   horizontal rgb
253
        Gamma:      1.0:1.0:1.0
254
        Brightness: 1.0
255
        Clones:    
256
        CRTC:       6
257
        CRTCs:      6 7 8 9 10 11
258
        Transform:  1.000000 0.000000 0.000000
259
                    0.000000 1.000000 0.000000
260
                    0.000000 0.000000 1.000000
261
                   filter: 
262
        dither: off 
263
                supported: off, on
264
        audio: auto 
265
                supported: off, on, auto
266
        underscan vborder: 0 
267
                range: (0, 128)
268
        underscan hborder: 0 
269
                range: (0, 128)
270
        underscan: off 
271
                supported: off, on, auto
272
        coherent: 1 
273
                range: (0, 1)
274
  1680x1050 (0x5a)  119.0MHz +HSync -VSync *current +preferred
275
        h: width  1680 start 1728 end 1760 total 1840 skew    0 clock   64.7KHz
276
        v: height 1050 start 1053 end 1059 total 1080           clock   59.9Hz
277
  2560x1440_96 (0x95)  400.0MHz
278
        h: width  2560 start 2608 end 2640 total 2744 skew    0 clock  145.8KHz
279
        v: height 1440 start 1443 end 1448 total 1512           clock   96.4Hz
280
  2560x1440 (0x96)  241.5MHz
281
        h: width  2560 start 2608 end 2640 total 2720 skew    0 clock   88.8KHz
282
        v: height 1440 start 1443 end 1448 total 1481           clock   60.0Hz
283
284
greg@moneypit ~/src $ xrandr --output HDMI-1 --auto
285
xrandr: cannot find output 0x58
286
287
greg@moneypit ~/src $ xrandr --output 0x93 --auto
288
xrandr: cannot find output 0x58
289
290
greg@moneypit ~/src $ gdb `which xrandr`
291
GNU gdb (Gentoo 7.7.1 p1) 7.7.1
292
Copyright (C) 2014 Free Software Foundation, Inc.
293
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
294
This is free software: you are free to change and redistribute it.
295
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
296
and "show warranty" for details.
297
This GDB was configured as "x86_64-pc-linux-gnu".
298
Type "show configuration" for configuration details.
299
For bug reporting instructions, please see:
300
<http://bugs.gentoo.org/>.
301
Find the GDB manual and other documentation resources online at:
302
<http://www.gnu.org/software/gdb/documentation/>.
303
For help, type "help".
304
Type "apropos word" to search for commands related to "word"...
305
Reading symbols from /usr/bin/xrandr...Reading symbols from /usr/lib64/debug//usr/bin/xrandr.debug...done.
306
done.
307
(gdb) set args --output HDMI-1 --auto
308
(gdb) break main
309
Breakpoint 1 at 0x401f30: file /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c, line 2474.
310
(gdb) run
311
Starting program: /usr/bin/xrandr --output HDMI-1 --auto
312
warning: Could not load shared library symbols for linux-vdso.so.1.
313
Do you need "set solib-search-path" or "set sysroot"?
314
warning: the debug information found in "/usr/lib64/debug//lib64/libm-2.19.so.debug" does not match "/lib64/libm.so.6" (CRC mismatch).
315
316
warning: the debug information found in "/usr/lib64/debug/lib64/libm-2.19.so.debug" does not match "/lib64/libm.so.6" (CRC mismatch).
317
318
319
Breakpoint 1, main (argc=4, argv=0x7fffffffd198) at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:2474
320
2474    {
321
(gdb) break exit
322
Breakpoint 2 at 0x7ffff723f878: file exit.c, line 103.
323
(gdb) cont
324
Continuing.
325
/usr/bin/xrandr: cannot find output 0x58
326
327
Breakpoint 2, __GI_exit (status=status@entry=1) at exit.c:103
328
103     {
329
(gdb) bt
330
#0  __GI_exit (status=status@entry=1) at exit.c:103
331
#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
332
#2  0x0000000000404065 in mark_changing_crtcs () at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:1862
333
#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
334
(gdb) up
335
#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
336
167         exit (1);
337
(gdb) 
338
#2  0x0000000000404065 in mark_changing_crtcs () at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:1862
339
1862                if (!output) fatal ("cannot find output 0x%lx\n",
340
(gdb) list mark_changing_crtcs 
341
1847    static void
342
1848    mark_changing_crtcs (void)
343
1849    {
344
1850        int c;
345
1851
346
1852        for (c = 0; c < num_crtcs; c++)
347
1853        {
348
1854            crtc_t      *crtc = &crtcs[c];
349
1855            int         o;
350
1856            output_t    *output;
351
(gdb) 
352
1857
353
1858            /* walk old output list (to catch disables) */
354
1859            for (o = 0; o < crtc->crtc_info->noutput; o++)
355
1860            {
356
1861                output = find_output_by_xid (crtc->crtc_info->outputs[o]);
357
1862                if (!output) fatal ("cannot find output 0x%lx\n",
358
1863                                    crtc->crtc_info->outputs[o]);
359
1864                if (output->changes)
360
1865                    crtc->changing = True;
361
1866            }
362
(gdb) 
363
1867            /* walk new output list */
364
1868            for (o = 0; o < crtc->noutput; o++)
365
1869            {
366
1870                output = crtc->outputs[o];
367
1871                if (output->changes)
368
1872                    crtc->changing = True;
369
1873            }
370
1874        }
371
1875    }
372
1876
373
(gdb) print o
374
$1 = 0
375
(gdb) print *crtc
376
$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, 
377
  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 = {
378
    transform = {matrix = {{65536, 0, 0}, {0, 65536, 0}, {0, 0, 65536}}}, filter = 0x620810 "", nparams = 0, params = 0x620830}}
379
(gdb) print *crtc->crtc_info
380
$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}
381
(gdb) print crtc->crtc_info->outputs[0]
382
$4 = 88
383
(gdb) print (void*) crtc->crtc_info->outputs[0]
384
$5 = (void *) 0x58
385
(gdb) cont
386
Continuing.
387
[Inferior 1 (process 5110) exited with code 01]
388
(gdb) q
389
greg@moneypit ~/src $