Resolving hardware problems on Endless OS with a startup script

Pardon my sin but I asked reddit for help first and now have regrets…

I have basically no experience with Linux but suddenly I’ve got some free time so… I installed Endless OS on an old Thinkpad. Endless appears to be moderately ideal to drop in front of my 8 year old and let her just explore. Lots of pre-installed applications to encourage curiosity and it runs regular Chrome which seems to work fine with her school work.

The problem I have is the Trackpoint on this laptop has failed and it just randomly drifts the cursor about. On Windows the solution was just disable the trackpoint in the Lenovo control utility and forget about it.

Being a debian derivative I can run an xinput command and disable it but this command has to be run every startup.

The command I am using is

xinput set-prop "TPPS/2 IBM TrackPoint" "Device Enabled" 0

That works for each boot.

I believe I have to create a script and get that to execute on boot but really don’t know how to do this.

I can “vi” to create a file.

I believe this file needs to be in /usr/etc/init.d

I have attempted to name the file . Which makes it a script?

Kind readers I’m in the weeds, help?

@originalblu you are on the right path. You need to ensure that the script has the correct permissions and is executable so like chmod 755 <xinput file> and chmod +x <xinput file>


Worst case if the above does not work, you can set it as a cron job that runs once the system boots.

1 Like