[LightDM] display-setup-script not having desired effect
Michael Aldridge
michael.aldridge at utdallas.edu
Sat Jul 2 01:20:20 UTC 2016
Greetings,
I am trying to figure out why my display setup and session setup scripts
aren't having an effect. I run a lab where users are free to choose any
one of several different sessions, so we configure the displays from
lightdm. I am trying to troubleshoot why my script is no longer
configuring the screens. I have provided below the script and the
config file that is in use and greatly appreciate any suggestions for
how to troubleshoot this issue.
screen script:
#!/bin/sh
for i in 1 2; do read -r mon$i x$i y$i; done <<EOF
$(xrandr | awk '/^Screen /{ next; }; /connected/{ disp=$1; next; }; /+/{
match($0, "[0-9]+x[0-9]+( |*)\+",ret); sub("x", " ", ret[0]); print disp
" " ret[0] }' 2>/dev/null)
EOF
[ -z "$mon2" ] && xrandr --output "$mon1" --auto --primary && exit
if [ "$x1" -gt "$x2" ]; then
xrandr --output "$mon1" --auto --primary
xrandr --output "$mon2" --auto --pos "${x1}x$(( y1 - y2 ))"
else
xrandr --output "$mon2" --auto --primary
xrandr --output "$mon1" --auto --pos "${x2}x$(( y2 - y1 ))"
fi
local lightdm config file:
# This overrides the default configuration of lightdm
[SeatDefaults]
# Set the greeter
greeter-session=lightdm-webkit-greeter
display-setup-script=/usr/local/bin/fixScreens
session-setup-script=/usr/local/bin/fixScreens
Once again any suggestions are appreciated here.
--Michael
--
Michael Aldridge
Network Administrator
Collegium V Honors College
The University of Texas at Dallas
More information about the LightDM
mailing list