You are not logged in.
Pages: 1
I'm using XFCE desktop in debian stretch . I'm trying to automatically expand desktop to second monitor after boot .
I placed "display" sh in /usr/local/bin/display to get the second monitor to setup :
#!/bin/bash
sleep 3
xrandr --listproviders \
&& xrandr --setprovideroutputsource 1 0 \
&& xrandr --output DP-1-1 --right-of LVDS-1
And "display.desktop" file in ~/.config/autostart/display.desktop :
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=display
Comment=
Exec=/usr/local/bin/display
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false
EOF
This works reasonably well , all though occasionally it mirrors the desktop instead of expanding .
I was wondering if there is some more reliable way to do this ?
Last edited by p.la (2018-07-10 20:19:43)
Offline
Hello and welcome.
You could use udev to monitor for display changes and then xrandr to act on those changes. I have successfully used this script in the past.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Seems to be related to the monitors standby mode when cold booting , so no problem .
Thanks for the link , very useful info . I'll probably make something along those lines anyway .
Offline
Pages: 1
[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 522.89 KiB (Peak: 523.73 KiB) ]