You are not logged in.
I have 3 monitors, 2 LG IPS 23" and 1 older Viewsonic 22".
I use xmonad and with the two LG monitors in twinview, Xmonad treats them separately and correctly assigns a workspace to each monitor which is exactly what I want.
However, If I add in the third screen as a separate X screen then Xmonad treats the two 23" LG monitors as one big display and stretches everything over them and doesn't run anything on the separate X screen (I guess I'll have to run a separate Xmonad session on it.)
Any ideas as I really want to be able to utilise 3 monitors?
As I use 2 nvidia GPU's xrandr is NOT an option and I don't want to use xinerama due to lag issues (I know this won't allow me to move windows between the separate X screens, that is an acceptable sacrifice.)
Here are my configs:
> cat .xmonad/xmonad.hs ~
--------------------------------
--------- Import Stuff ---------
--------------------------------
import XMonad
import qualified XMonad.StackSet as W
import qualified Data.Map as M
import System.IO
import Data.Ratio ((%))
-- Utilities
import XMonad.Util.Run (spawnPipe)
import XMonad.Util.EZConfig
import XMonad.Util.CustomKeys
-- Hooks
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.UrgencyHook
-- Layout
import XMonad.Layout.IM
import XMonad.Layout.Reflect
import XMonad.Layout.NoBorders
import XMonad.Layout.ResizableTile
import XMonad.Layout.PerWorkspace
import XMonad.Layout.ThreeColumns
import XMonad.Layout.Spacing
--------------------------------
-------- Custom Config ---------
--------------------------------
statusBarCmd= "/usr/bin/xmobar /home/llawwehttam/.xmobarrc"
-- Workspaces
myWorkspaces = ["1 sys","2 comms","3 web","4 misc","5 vm's","6 docs","7 video","8 ssh","9 minimise"]
myLayout = spacing 1 $ ( tiled ||| Mirror tiled ||| ThreeCol 1 (3/100) (1/3) ||| ThreeColMid 1 (3/100) (7/11) ||| Full )
where
-- default tiling algorithm partitions the screen into two panes
tiled = Tall nmaster delta ratio
-- The default number of windows in the master pane
nmaster = 1
-- Default proportion of screen occupied by master pane
ratio = 1/2
-- Percent of screen to increment by when resizing panes
delta = 3/100
myManage = composeAll
[ className =? "File Operation Progress" --> doFloat
, resource =? "desktop_window" --> doIgnore
, className =? "xfce4-notifyd" --> doIgnore
, className =? "Shotwell" --> doShift "5:graphic"
, className =? "Gimp" --> doShift "5:graphic"
, className =? "Totem" --> doShift "7:media"
, isFullscreen --> doFullFloat
]
myLogHook dest = dynamicLogWithPP defaultPP { ppOutput = hPutStrLn dest
,ppVisible = wrap "(" ")"
}
myKeys =
[ ((mod4Mask, xK_m), spawn "dmenu_run")
]
--newKeys x = M.union (keys defaultConfig x) (M.fromList (myKeys x))
--------------------------------
-------- Main Function ---------
--------------------------------
main = do
xmproc <- spawnPipe statusBarCmd
spawn "xcompmgr -cCf -r 0 -D 2 &"
xmonad $ defaultConfig
{
terminal = "urxvt"
, manageHook = manageDocks <+> myManage <+> manageHook defaultConfig
, focusFollowsMouse = False
, layoutHook = avoidStruts $ layoutHook defaultConfig { layoutHook = myLayout }
, logHook = myLogHook xmproc
, modMask = mod4Mask
, workspaces = myWorkspaces
, borderWidth = 1
, normalBorderColor = "#555555"
, focusedBorderColor = "#ffffff"
}
`additionalKeys` myKeysXorg.conf (Just the 2 23" LG panels working fine):
> cat xorg.conf /etc/X11
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 295.40 (buildmeister@swio-display-x86-rhel47-06.nvidia.com) Thu Apr 5 22:40:34 PDT 2012
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "LG Electronics IPS235"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8800 GT"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: nvidia-auto-select +1920+0"
SubSection "Display"
Depth 24
EndSubSection
EndSectionMy attempt at getting all 3 monitors working (causes problem described above):
> cat xorg.conf /etc/X11
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 295.40 (buildmeister@swio-display-x86-rhel47-06.nvidia.com) Thu Apr 5 22:40:34 PDT 2012
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 1920 0
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "LG Electronics IPS235"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "ViewSonic VX2260WM"
HorizSync 24.0 - 82.0
VertRefresh 50.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8800 GT"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 220"
BusID "PCI:2:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: nvidia-auto-select +1920+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSectionYes Xmonad is compiled with Xinerama support and this is proved as it works fine with the 2 monitors.
Offline
You could try setting the Meta-Modes for your Screens [Screen-0] manually:
Option "metamodes" "DFP-0: 1920x1080 +0+0, DFP-1: 1920x1080 +1920+0; DFP-0:1920x1080 +0+0" Offline
You could try setting the Meta-Modes for your Screens [Screen-0] manually:
Option "metamodes" "DFP-0: 1920x1080 +0+0, DFP-1: 1920x1080 +1920+0; DFP-0:1920x1080 +0+0"
Nope, no difference at all. Thanks anyway.
EDIT: Just tried with xinerama connecting the separate x screen and the two in twin-view and I get the same problem behaviour, ie stretching across the twin-view which only happens when the additional screen is connected.
EDIT2: I can see myself having to wait until Xrandr supports multiple GPU's.
EDIT: Until I can get this fixed I'm running my extra screen from my laptop and using synergy to move control between machines.
It's not idea but it will do until I have time to work out how to fix this.
Last edited by llawwehttam (2012-04-25 10:00:03)
Offline