I have a .sh file that I would run on Ubuntu 16.04 that calibrated my Tablet Monitor. It worked perfectly fine, but like many things, upgrading to 18.04 made that script stop running automatically on startup.
The file is executable and I've added it using the Startup Applications Preferences. Per a suggestion on another person's thread, I tried adding sh
to the beginning of the filepath, that also didn't work.
Here's my script below. the filename is xinput.sh
.
#!/bin/bash
xinput set-prop 16 --type=float "Coordinate Transformation Matrix" 0.5 0 0 0 1 0 0 0 1
xinput set-button-map 9 1 3 2
echo
debugging and log messages to a log file, so you can see what is going on. – Jos Jun 04 '18 at 14:37Here's a screenshot of my start application setup: https://imgur.com/a/bIkRlhL
And by "on launch" I mean at the time of login. That seems like the most relevant point to run a script like this.
I'm not running wayland. So I guess that means I'm running x. I'll double check that in a moment.
Edit: Yeah, "Gnome on Xorg"
– bryanwillis7 Jun 04 '18 at 15:27/bin/bash -c "sleep 5 && /path/to/script"
. Why you didn't need it before is just a coincidence, like timing issue mostly are. Many times screen and keyboard commands need a tiny break when run on log in. If you're still around, please mention if it works for you and if you manage. – Jacob Vlijm Jul 26 '18 at 07:51