Using autostart hangs
Posted: Thu Aug 05, 2021 5:55 pm
I'm using two touchscreens with a Pi 4, so have this script to map the USB interfaces with the displays:
This works great, until I put it into `/home/pi/.config/lxsession/LXDE-pi/autostart`, but then it just boots to blank screens.
I've tried inserting a `sleep` in case it wasn't ready to do it, and also I have tried prefixing with `@`
but neither made a difference, and also calling it as a script like
...but still nothing. What am I doing wrong?
Code: Select all
xinput map-to-output 8 HDMI-1
xinput map-to-output 7 HDMI-2
I've tried inserting a `sleep` in case it wasn't ready to do it, and also I have tried prefixing with `@`
Code: Select all
@sleep 60
@xinput map-to-output 8 HDMI-1
@xinput map-to-output 7 HDMI-2
Code: Select all
@. /home/pi/mapdisplays