2

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

screencap of my Startup Applications Preferences

Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497
  • You could edit the script to echo debugging and log messages to a log file, so you can see what is going on. – Jos Jun 04 '18 at 14:37
  • Post your script . And by "on launch" do you mean at the time of login or do you want the script to run at boot? Are you running X or wayland ? – Panther Jun 04 '18 at 14:38
  • Here's my Script: https://paste.ubuntu.com/p/ByR5MqmjbZ/

    Here'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
  • 1
    First I would like to welcome you to Askubuntu! Now for some mentoring on using the system. Your question is vague. Panther's suggestion of posting your script was for you to fix your question... making it clearer. Please copy and paste the text you placed in a link, to your question. Click edit. This will substantially increase the attention that you will get for your question. It'll make it easier for us to see your problem. Having to leave the site is extra work and distracting when it doesn't have to be. – L. D. James Jun 04 '18 at 15:37
  • okay done. Sorry about that. – bryanwillis7 Jun 04 '18 at 15:53
  • Thank you, does the script run / work after you log in ? – Panther Jun 05 '18 at 07:01
  • Yes it does work fine after I've logged in. – bryanwillis7 Jun 09 '18 at 05:19
  • Most likely a timing issue. Add a small break before the script runs of e.g. 5 seconds: /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
  • 1

0 Answers0