LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   How to make Display Managers Recognize Multi-Monitor Settings (http://www.linuxquestions.org/questions/showthread.php?t=4175448953)

cwwgateway 02-06-2013 07:47 PM

How to make Display Managers Recognize Multi-Monitor Settings
 
I have two monitors, my built in laptop one (my laptop is a Dell XPS 15 L502x) and my external monitor (a ViewSonic VX2453mh-LED). The external monitor is connected through my miniDisplay Port to an HDMI port on the monitor. Here is the output of xrandr:
Code:

Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192
LVDS1 connected 1366x768+1920+0 (normal left inverted right x axis y axis) 344mm x 194mm
  1366x768      60.1*+
  1360x768      59.8    60.0 
  1024x768      60.0 
  800x600        60.3    56.2 
  640x480        59.9 
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 520mm x 290mm
  1920x1080      60.0*+
  1600x1200      60.0 
  1680x1050      60.0 
  1400x1050      60.0 
  1280x1024      75.0    60.0 
  1440x900      59.9 
  1280x960      60.0 
  1152x864      75.0 
  1024x768      75.1    70.1    60.0 
  832x624        74.6 
  800x600        72.2    75.0    60.3    56.2 
  640x480        72.8    75.0    66.7    60.0 
  720x400        70.1 
DP1 disconnected (normal left inverted right x axis y axis)

I use Debian Wheezy Xfce, and I have added the following command to my session and startup list:
Code:

xrandr --output HDMI1 --left-of LVDS1
This works fine for the desktop, but the display manager I'm using, LightDM, clones the screens and doesn't use the correct resolution (I assume because the command is run after login). I have tried both KDM and MDM also, and both do the same thing. My guess is that I have to run the command before the display manager loads, but I don't know how to do this.

foodown 02-07-2013 02:37 PM

Place the command into your ~/.xinitrc file, before the other stuff already in there.

cwwgateway 02-07-2013 06:36 PM

Thanks, but this doesn't seem to change anything. There also didn't seem to be anything in that file originally. There is also an "xinitrc" file in /etc/X11/xinit/xinitrc, but adding the command to that file also doesn't seem to cahnge anything (I've done 2 reboots so far).


All times are GMT -5. The time now is 07:00 PM.