<div dir="ltr"><div><div>OK, it kind of works with fake Xinerama library inserted via LD_PRELOAD. <br><br> cat ~/.fakexinerama<br># 2 screens:<br>2<br># VGA display<br>0 0 1920 1200<br># External LCD screen "HDMI1":<br>1920 0 1920 1200<br><br> ghc -e "Graphics.X11.openDisplay [] >>= Graphics.X11.Xinerama.getScreenInfo"<br>[Rectangle {rect_x = 0, rect_y = 0, rect_width = 1920, rect_height = 1200},Rectangle {rect_x = 1920, rect_y = 0, rect_width = 1920, rect_height = 1200}<br><br></div><div><br>Would be good if this ugly hack was unnecessary.<br><br></div>Cheers,<br></div>Yuriy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 6, 2016 at 5:14 PM, Yuriy Halytskyy <span dir="ltr"><<a href="mailto:yuriy.halytskyy@gmail.com" target="_blank">yuriy.halytskyy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am trying to use xmonad on a laptop connected to two monitors, via VGA and HDMI outputs. Laptop screen is disabled and both external monitors configured using xrandr:<br><br>xrandr --output LVDS1 --off<br>xrandr --output HDMI-0 --right-of VGA1<br>xrandr --output VGA1 --right-of LVDS1<br><br><br><br> But mod+{w,e,r} does not work and the only way to have windows on one of my screens is to move floating window. Xinerama shows only right monitor:<br>ghc -e "Graphics.X11.openDisplay [] >>= Graphics.X11.Xinerama.getScreenInfo"<br><div>[Rectangle {rect_x = 1920, rect_y = 0, rect_width = 1920, rect_height = 1200}]<br><br></div><div>Is it possible to somehow overwrite getScreenInfo for xmonad or configure Xinerama propertly? <br></div><div><br>nvidia-setting can only see one screen and one display.<br>xrandr output shows one huge 3840 x 1200 display and all screens:<br><br>Screen 0: minimum 8 x 8, current 3840 x 1200, maximum 16384 x 16384<br>LVDS-0 disconnected primary (normal left inverted right x axis y axis)<br>DP-0 disconnected (normal left inverted right x axis y axis)<br>DP-1 disconnected (normal left inverted right x axis y axis)<br>HDMI-0 connected 1920x1200+1920+0 (normal left inverted right x axis y axis) 518mm x 324mm<br> 1920x1200 60.0*+<br> 1920x1080 60.0 <br> 1680x1050 60.0 <br> 1600x1200 60.0 <br> 1280x1024 60.0 <br> 1280x960 60.0 <br> 1024x768 60.0 <br> 800x600 60.3 <br> 640x480 59.9 <br>DP-2 disconnected (normal left inverted right x axis y axis)<br>DP-3 disconnected (normal left inverted right x axis y axis)<br>LVDS1 connected<br> 1600x900 60.0 + 40.0 <br> 1440x900 59.9 <br> 1360x768 59.8 60.0 <br> 1152x864 60.0 <br> 1024x768 60.0 <br> 800x600 60.3 56.2 <br> 640x480 59.9 <br>VGA1 connected 1920x1200+0+0 518mm x 324mm<br> 1920x1200 60.0*+<br> 1920x1080 60.0 <br> 1680x1050 60.0 <br> 1600x900 60.0 <br> 1280x1024 60.0 <br> 1440x900 59.9 <br> 1280x800 59.8 <br> 1280x720 60.0 <br> 1024x768 60.0 <br> 800x600 60.3 56.2 <br> 640x480 60.0 <br>VIRTUAL1 disconnected<br> 1024x768 (0x2ce) 65.0MHz<br> h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz<br> v: height 768 start 771 end 777 total 806 clock 60.0Hz<br> 800x600 (0x2cf) 40.0MHz<br> h: width 800 start 840 end 968 total 1056 skew 0 clock 37.9KHz<br> v: height 600 start 601 end 605 total 628 clock 60.3Hz<br> 640x480 (0x2d0) 25.2MHz<br> h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz<br> v: height 480 start 490 end 492 total 525 clock 59.9Hz<br> 1920x1200 (0x2c8) 154.0MHz<br> h: width 1920 start 1968 end 2000 total 2080 skew 0 clock 74.0KHz<br> v: height 1200 start 1203 end 1209 total 1235 clock 60.0Hz<br> 1680x1050 (0x2ca) 146.2MHz<br> h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.3KHz<br> v: height 1050 start 1053 end 1059 total 1089 clock 60.0Hz<br> 1280x1024 (0x2cc) 108.0MHz<br> h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 64.0KHz<br> v: height 1024 start 1025 end 1028 total 1066 clock 60.0Hz<br><br><br></div><div>Cheers,<br></div><div>Yuriy<br></div></div>
</blockquote></div><br></div>