You are not logged in.

#1 2014-04-29 02:49:51

jesus franco
From: PA, USA
Registered: 2005-05-17
Posts: 68

KDE multi display XRANDR problems.

Just switched to KDE and it seems KDE handles xrandr commands differently from Gnome. Under gnome I was able to run a certain command at log in and it fixed my panning and tracking issues. That same command on KDE actually causes more problems than it fixes. For one it spans my desktop on two of my displays. Almost treating it as if it was one massive 3840x1080 monitor, even though the KDE System Settings displays the 3 monitors independently.

I'd like all 3 monitors to have their own wallpaper and for KWIN to maximize a window into just that monitor instead of maximizing it and spanning two of my 3 displays.

Under Gnome all I had to run was the following on my xprofile

xrandr --setprovideroutputsource modesetting NVIDIA-0 &
xrandr --auto &
xrandr --output HDMI-0 --panning 1920x1080+0+0/1920x1080+0+0 --output DVI-I-1 --panning 3840x1080+1920+0/1920x1080+1920+0 --output HDMI-1-2 --right-of DVI-I-1 &

Under KDE however that causes DVI-I-1 and HDMI-1-2 to merge and be treated as a single display. So I changed the panning to

xrandr --output HDMI-0 --panning 1920x1080+0+0/1920x1080+0+0 --output DVI-I-1 --primary --panning 19200x1080+1920+0/1920x1080+1920+0 --output HDMI-1-2 --pos 3840x1080 &

That unfortunately causes other undesirable issues. Now the 3rd monitor HDMI-1-2 has a black desktop (that can't be changed) and DVI-I-1 is having tracking/panning issues.

Here is my xorg.conf

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    Option "DamageEvents" "1"
    BusID "PCI:1:0:0"

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"

Section "Device"
    Identifier "intel"
    Driver "modesetting"

Section "Screen"
    Identifier "intel"
    Device "intel"

Here is a quick video of the panning/tracking issue
Video here on Google Drive Viewer

So my question is this, what commands or changes to my Xorg.conf do I need to do in order to actually resolve this issue for good. Any help or suggesting would greatly be appreciated.

Last edited by jesus franco (2014-04-29 04:03:24)


#2 2014-04-30 13:10:10

From: USA
Registered: 2014-03-09
Posts: 22

Re: KDE multi display XRANDR problems.

The first thing i would do is go to ~/.kde4/share/config and delete any files with "randr" in their name. I've had frequent problems with KDE and the nvidia driver trying to do different things and deleting those files and never using the KDE randr utilities was my solution.

I'm also using an nvidia card and onboard intel to drive three monitors, but my setup is very different than yours. In order to get my cursor to move freely across all three displays, get KDE to put my desktop on the middle monitor, and not pan, I added the following to the nvidia device section:

Option "ConstrainCursor" "0"
Option "nvidiaXineramaInfoOverride" "1920x1080+1280+0, 1212x678+3200+0, 1280x1024+0+0"

Obviously your xinerama info would be different, but mine is listing the middle, right, then left displays in that order. For reference here are my xrandr commands:

xrandr --setprovideroutputsource 1 0
xrandr --output VGA-1-0 --off
xrandr --output VGA-1-0 --left-of DVI-I-1 --mode 1280x1024 --gamma 1.2:1.2:1.2
xrandr --output DVI-I-1 --primary --mode 1920x1080
xrandr --output HDMI-0 --right-of DVI-I-1 --mode 1280x720 --set BorderDimensions 4 --set Border 38,14,30,28 --gamma .9:.9:.9
xrandr --fb 4412x1080

This is for a 1280x1024 display on the right, a 1920x1080 display in the middle, and a 1280x720 TV with overscan problems on the right.


Board footer

Powered by FluxBB