Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- greg@moneypit ~/src $ cat /etc/X11/xinit/xinitrc.d/05-xrandr_gmt_hacks
- #!/bin/sh
- /usr/bin/xrandr --setprovideroutputsource 1 0
- greg@moneypit ~/src $ cat /etc/X11/xorg.conf
- Section "ServerFlags"
- Option "DontZap" "False"
- Option "BlankTime" "30"
- Option "StandbyTime" "31"
- Option "SuspendTime" "60"
- Option "OffTime" "120"
- EndSection
- Section "Device"
- Identifier "new"
- Driver "radeon"
- Option "Monitor-DVI-1" "DUAL-DVI"
- Option "Monitor-HDMI-1" "DELL 1704FPT"
- BusID "PCI:4:0:0"
- EndSection
- Section "Screen"
- Identifier "new"
- Device "new"
- EndSection
- Section "Screen"
- Identifier "old"
- Device "old"
- EndSection
- Section "Device"
- Identifier "old"
- Driver "radeon"
- BusID "PCI:3:0:0"
- Option "Monitor-DVI-1-0" "y"
- EndSection
- Section "Monitor"
- Identifier "DUAL-DVI"
- Option "DPMS" "True"
- ModeLine "2560x1440_96" 400.00 2560 2608 2640 2744 1440 1443 1448 1512 +hsync +vsync
- Option "PreferredMode" "2560x1440_96"
- Option "Primary" "True"
- EndSection
- Section "Monitor"
- Identifier "DELL 1704FPT"
- Option "DPMS" "True"
- Option "Enable" "False"
- EndSection
- Section "Monitor"
- Identifier "y"
- Option "DPMS" "True"
- Option "Enable" "False"
- EndSection
- greg@moneypit ~/src $ xrandr -q
- Screen 0: minimum 320 x 200, current 5520 x 1440, maximum 16384 x 16384
- DVI-1 disconnected primary (normal left inverted right x axis y axis)
- DisplayPort-1 disconnected (normal left inverted right x axis y axis)
- HDMI-1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
- 1280x1024 60.0*+ 75.0
- 1152x864 75.0
- 1024x768 75.1 60.0
- 800x600 75.0 60.3
- 640x480 75.0 60.0
- 720x400 70.1
- DisplayPort-1-0 disconnected (normal left inverted right x axis y axis)
- HDMI-1-0 disconnected (normal left inverted right x axis y axis)
- DVI-1-0 connected 1680x1050+3840+195 (normal left inverted right x axis y axis) 433mm x 270mm
- 1680x1050 59.9*+
- 2560x1440_96 (0x95) 400.0MHz
- h: width 2560 start 2608 end 2640 total 2744 skew 0 clock 145.8KHz
- v: height 1440 start 1443 end 1448 total 1512 clock 96.4Hz
- 2560x1440 (0x96) 241.5MHz
- h: width 2560 start 2608 end 2640 total 2720 skew 0 clock 88.8KHz
- v: height 1440 start 1443 end 1448 total 1481 clock 60.0Hz
- greg@moneypit ~/src $ xrandr --verbose
- Screen 0: minimum 320 x 200, current 5520 x 1440, maximum 16384 x 16384
- DVI-1 disconnected primary (normal left inverted right x axis y axis)
- Identifier: 0x90
- Timestamp: 116119361
- Subpixel: horizontal rgb
- Gamma: 1.0:1.0:1.0
- Brightness: 1.0
- Clones:
- CRTCs: 0 1 2 3 4 5
- Transform: 1.000000 0.000000 0.000000
- 0.000000 1.000000 0.000000
- 0.000000 0.000000 1.000000
- filter:
- EDID:
- 00ffffffffffff00232f9b0400000000
- 28150103a53c2278226fb1a7554c9e25
- 0c505400000001010101010101010101
- 010101010101565e00a0a0a029503020
- 350055502100001a000000fc00445541
- 4c2d4456490a20202020000000fc000a
- 202020202020202020202020000000fc
- 000a2020202020202020202020200012
- load detection: 1
- range: (0, 1)
- dither: off
- supported: off, on
- audio: auto
- supported: off, on, auto
- underscan vborder: 0
- range: (0, 128)
- underscan hborder: 0
- range: (0, 128)
- underscan: off
- supported: off, on, auto
- coherent: 1
- range: (0, 1)
- DisplayPort-1 disconnected (normal left inverted right x axis y axis)
- Identifier: 0x92
- Timestamp: 116119361
- Subpixel: horizontal rgb
- Clones:
- CRTCs: 0 1 2 3 4 5
- Transform: 1.000000 0.000000 0.000000
- 0.000000 1.000000 0.000000
- 0.000000 0.000000 1.000000
- filter:
- dither: off
- supported: off, on
- audio: auto
- supported: off, on, auto
- underscan vborder: 0
- range: (0, 128)
- underscan hborder: 0
- range: (0, 128)
- underscan: off
- supported: off, on, auto
- coherent: 1
- range: (0, 1)
- HDMI-1 connected 1280x1024+0+0 (0x97) normal (normal left inverted right x axis y axis) 338mm x 270mm
- Identifier: 0x93
- Timestamp: 116119361
- Subpixel: horizontal rgb
- Gamma: 1.0:1.0:1.0
- Brightness: 1.0
- Clones:
- CRTC: 1
- CRTCs: 0 1 2 3 4 5
- Transform: 1.000000 0.000000 0.000000
- 0.000000 1.000000 0.000000
- 0.000000 0.000000 1.000000
- filter:
- EDID:
- 00ffffffffffff0010ac054035544b42
- 280e010380221b78eec5c6a3574a9c23
- 124f54a54b00714f8180010101010101
- 010101010101302a009851002a403070
- 1300520e1100001e000000ff00593432
- 3939344132424b54350a000000fc0044
- 454c4c20313730344650540a000000fd
- 00384c1e510e000a20202020202000e7
- dither: off
- supported: off, on
- audio: auto
- supported: off, on, auto
- underscan vborder: 0
- range: (0, 128)
- underscan hborder: 0
- range: (0, 128)
- underscan: off
- supported: off, on, auto
- coherent: 1
- range: (0, 1)
- 1280x1024 (0x97) 108.0MHz +HSync +VSync *current +preferred
- 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
- 1280x1024 (0x98) 135.0MHz +HSync +VSync
- h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 80.0KHz
- v: height 1024 start 1025 end 1028 total 1066 clock 75.0Hz
- 1152x864 (0x99) 108.0MHz +HSync +VSync
- h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.5KHz
- v: height 864 start 865 end 868 total 900 clock 75.0Hz
- 1024x768 (0x9a) 78.8MHz +HSync +VSync
- h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.1KHz
- v: height 768 start 769 end 772 total 800 clock 75.1Hz
- 1024x768 (0x9b) 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 (0x9c) 49.5MHz +HSync +VSync
- h: width 800 start 816 end 896 total 1056 skew 0 clock 46.9KHz
- v: height 600 start 601 end 604 total 625 clock 75.0Hz
- 800x600 (0x9d) 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
- 640x480 (0x9e) 31.5MHz -HSync -VSync
- h: width 640 start 656 end 720 total 840 skew 0 clock 37.5KHz
- v: height 480 start 481 end 484 total 500 clock 75.0Hz
- 640x480 (0x9f) 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 60.0Hz
- 720x400 (0xa0) 28.3MHz -HSync +VSync
- h: width 720 start 738 end 846 total 900 skew 0 clock 31.5KHz
- v: height 400 start 412 end 414 total 449 clock 70.1Hz
- DisplayPort-1-0 disconnected (normal left inverted right x axis y axis)
- Identifier: 0x55
- Timestamp: 96523279
- Subpixel: horizontal rgb
- Clones:
- CRTCs: 6 7 8 9 10 11
- Transform: 1.000000 0.000000 0.000000
- 0.000000 1.000000 0.000000
- 0.000000 0.000000 1.000000
- filter:
- dither: off
- supported: off, on
- audio: auto
- supported: off, on, auto
- underscan vborder: 0
- range: (0, 128)
- underscan hborder: 0
- range: (0, 128)
- underscan: off
- supported: off, on, auto
- coherent: 1
- range: (0, 1)
- HDMI-1-0 disconnected (normal left inverted right x axis y axis)
- Identifier: 0x56
- Timestamp: 96523279
- Subpixel: horizontal rgb
- Clones:
- CRTCs: 6 7 8 9 10 11
- Transform: 1.000000 0.000000 0.000000
- 0.000000 1.000000 0.000000
- 0.000000 0.000000 1.000000
- filter:
- dither: off
- supported: off, on
- audio: auto
- supported: off, on, auto
- underscan vborder: 0
- range: (0, 128)
- underscan hborder: 0
- range: (0, 128)
- underscan: off
- supported: off, on, auto
- coherent: 1
- range: (0, 1)
- DVI-1-0 connected 1680x1050+3840+195 (0x5a) normal (normal left inverted right x axis y axis) 433mm x 270mm
- Identifier: 0x57
- Timestamp: 96523279
- Subpixel: horizontal rgb
- Gamma: 1.0:1.0:1.0
- Brightness: 1.0
- Clones:
- CRTC: 6
- CRTCs: 6 7 8 9 10 11
- Transform: 1.000000 0.000000 0.000000
- 0.000000 1.000000 0.000000
- 0.000000 0.000000 1.000000
- filter:
- dither: off
- supported: off, on
- audio: auto
- supported: off, on, auto
- underscan vborder: 0
- range: (0, 128)
- underscan hborder: 0
- range: (0, 128)
- underscan: off
- supported: off, on, auto
- coherent: 1
- range: (0, 1)
- 1680x1050 (0x5a) 119.0MHz +HSync -VSync *current +preferred
- 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
- 2560x1440_96 (0x95) 400.0MHz
- h: width 2560 start 2608 end 2640 total 2744 skew 0 clock 145.8KHz
- v: height 1440 start 1443 end 1448 total 1512 clock 96.4Hz
- 2560x1440 (0x96) 241.5MHz
- h: width 2560 start 2608 end 2640 total 2720 skew 0 clock 88.8KHz
- v: height 1440 start 1443 end 1448 total 1481 clock 60.0Hz
- greg@moneypit ~/src $ xrandr --output HDMI-1 --auto
- xrandr: cannot find output 0x58
- greg@moneypit ~/src $ xrandr --output 0x93 --auto
- xrandr: cannot find output 0x58
- greg@moneypit ~/src $ gdb `which xrandr`
- GNU gdb (Gentoo 7.7.1 p1) 7.7.1
- Copyright (C) 2014 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "x86_64-pc-linux-gnu".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <http://bugs.gentoo.org/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from /usr/bin/xrandr...Reading symbols from /usr/lib64/debug//usr/bin/xrandr.debug...done.
- done.
- (gdb) set args --output HDMI-1 --auto
- (gdb) break main
- Breakpoint 1 at 0x401f30: file /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c, line 2474.
- (gdb) run
- Starting program: /usr/bin/xrandr --output HDMI-1 --auto
- warning: Could not load shared library symbols for linux-vdso.so.1.
- Do you need "set solib-search-path" or "set sysroot"?
- warning: the debug information found in "/usr/lib64/debug//lib64/libm-2.19.so.debug" does not match "/lib64/libm.so.6" (CRC mismatch).
- warning: the debug information found in "/usr/lib64/debug/lib64/libm-2.19.so.debug" does not match "/lib64/libm.so.6" (CRC mismatch).
- Breakpoint 1, main (argc=4, argv=0x7fffffffd198) at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:2474
- 2474 {
- (gdb) break exit
- Breakpoint 2 at 0x7ffff723f878: file exit.c, line 103.
- (gdb) cont
- Continuing.
- /usr/bin/xrandr: cannot find output 0x58
- Breakpoint 2, __GI_exit (status=status@entry=1) at exit.c:103
- 103 {
- (gdb) bt
- #0 __GI_exit (status=status@entry=1) at exit.c:103
- #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
- #2 0x0000000000404065 in mark_changing_crtcs () at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:1862
- #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
- (gdb) up
- #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
- 167 exit (1);
- (gdb)
- #2 0x0000000000404065 in mark_changing_crtcs () at /usr/src/debug/x11-apps/xrandr-1.4.1/xrandr-1.4.1/xrandr.c:1862
- 1862 if (!output) fatal ("cannot find output 0x%lx\n",
- (gdb) list mark_changing_crtcs
- 1847 static void
- 1848 mark_changing_crtcs (void)
- 1849 {
- 1850 int c;
- 1851
- 1852 for (c = 0; c < num_crtcs; c++)
- 1853 {
- 1854 crtc_t *crtc = &crtcs[c];
- 1855 int o;
- 1856 output_t *output;
- (gdb)
- 1857
- 1858 /* walk old output list (to catch disables) */
- 1859 for (o = 0; o < crtc->crtc_info->noutput; o++)
- 1860 {
- 1861 output = find_output_by_xid (crtc->crtc_info->outputs[o]);
- 1862 if (!output) fatal ("cannot find output 0x%lx\n",
- 1863 crtc->crtc_info->outputs[o]);
- 1864 if (output->changes)
- 1865 crtc->changing = True;
- 1866 }
- (gdb)
- 1867 /* walk new output list */
- 1868 for (o = 0; o < crtc->noutput; o++)
- 1869 {
- 1870 output = crtc->outputs[o];
- 1871 if (output->changes)
- 1872 crtc->changing = True;
- 1873 }
- 1874 }
- 1875 }
- 1876
- (gdb) print o
- $1 = 0
- (gdb) print *crtc
- $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,
- 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 = {
- transform = {matrix = {{65536, 0, 0}, {0, 65536, 0}, {0, 0, 65536}}}, filter = 0x620810 "", nparams = 0, params = 0x620830}}
- (gdb) print *crtc->crtc_info
- $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}
- (gdb) print crtc->crtc_info->outputs[0]
- $4 = 88
- (gdb) print (void*) crtc->crtc_info->outputs[0]
- $5 = (void *) 0x58
- (gdb) cont
- Continuing.
- [Inferior 1 (process 5110) exited with code 01]
- (gdb) q
- greg@moneypit ~/src $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement