Lenovo laptop with second HDMI display

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Lenovo laptop with second HDMI display

Postby p.la » 2018-07-10 14:03

I'm using XFCE desktop and made a script to use after debian installation for automatically expanding desktop to second monitor after boot :
cat <<-"EOF" > /usr/local/bin/display
#!/bin/bash
sleep 3
xrandr --listproviders \
&& xrandr --setprovideroutputsource 1 0 \
&& xrandr --output DP-1-1 --right-of LVDS-1
EOF
chmod +x /usr/local/bin/display && chmod 755 /usr/local/bin/display
mkdir -p "$HOME"/.config/autostart
cat <<-"EOF" > "$HOME"/.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 .
Just switching from Xubuntu to debian stretch and I was wondering if there is some more reliable way to do this ?
p.la
 
Posts: 1
Joined: 2018-06-28 16:26

Return to Hardware

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable