Tarvaln
Senior member
Solution:
I had to add a "sleep" command to my monitor script that was being run on login. Using Startup and Sessions under XFCE I made a startup script that points to "~.home/#####/.screenlayout/default.sh". "#####" is the user name.
default.sh contains:
#!/bin/sh
sleep 1
xrandr --output DVI-0 --mode 1024x768 --pos 0x0 --rotate normal --output HDMI-0 --mode 1280x720 --pos 1024x0 --rotate normal --set underscan on --set "underscan hborder" 25 --set "underscan vborder" 15
It's silly but, that Xrandr command needs a one second delay to be able to process that "--pos" command on login properly.
I had to add a "sleep" command to my monitor script that was being run on login. Using Startup and Sessions under XFCE I made a startup script that points to "~.home/#####/.screenlayout/default.sh". "#####" is the user name.
default.sh contains:
#!/bin/sh
sleep 1
xrandr --output DVI-0 --mode 1024x768 --pos 0x0 --rotate normal --output HDMI-0 --mode 1280x720 --pos 1024x0 --rotate normal --set underscan on --set "underscan hborder" 25 --set "underscan vborder" 15
It's silly but, that Xrandr command needs a one second delay to be able to process that "--pos" command on login properly.
I'm having an issues getting part of a xrandr command to work on log in. I'm using Debain 'Jessie' and XFCE.
xrandr --output DVI-0 --mode 1024x768 --pos 0x0 --rotate normal --output HDMI-0 --mode 1280x720 --pos 1024x0 --rotate normal --set underscan on --set "underscan hborder" 25 --set "underscan vborder" 15
The underscan part of the command works fine, but the pos commands don't do anything on login. The whole command will work if I use it in terminal though.
Things I've tried:
Using Startup and Session:
Making a startup script with the command. (The underscan part works but the pos does not.)
Making a default.sh file with the command using ARandR and using that as part of the startup script.
I have no idea why the pos part of this command won't work on login but will work after login.
Any suggestions would be appreciated. Thanks!
Last edited: