Using lightdm 1.26.0 on Debian 11 and xfce4 4.16 environment. After several days of struggle I managed to get Lightdm to change monitor resolutions in advance of logging on. Some points:
-
If an external shell script is used, it must be:
- Located under /usr/share,
- Owned by lightdm, in group lightdm,
- It cannot print or log to any destination not accessible to lightdm.
- There is no flexibility about this, and no warnings/errors are provided.
-
To test a configuration:
- Install xserver-xephyr:
# apt install xserver-xephyr
- Run the test as user lightdm:
# sudo -u lightdm lightdm --test-mode --debug
-
Put the shell script reference in /etc/lightdm/lightdm.conf:
[Seat:*]
display-setup-script=/usr/share/your_script_name.sh
- Again, the script must be owned by lightdm and be located under /usr/share.
I hope this helps.
Using lightdm 1.26.0 on Debian 11 and xfce4 4.16 environment. After several days of struggle I managed to get Lightdm to change monitor resolutions in advance of logging on. Some points:
If an external shell script is used, it must be:
To test a configuration:
# apt install xserver-xephyr# sudo -u lightdm lightdm --test-mode --debugPut the shell script reference in /etc/lightdm/lightdm.conf:
I hope this helps.