[SOLVED] - Need my Script to run on every Boot.

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
lkraemer

[SOLVED] - Need my Script to run on every Boot.

Post by lkraemer »

My Synaptic Touchpad doesn't have VertEdgeScroll=1 and I want it enabled so the Synaptics Touch Pad works correctly.

I found a posting about running synclient -l to get the current parameters, and I've installed gpointing-device-settings.
But, gpointing-device-settings don't survive a reboot. There are BUG reports on Launchpad about that needing to
be updated to 1.4.0 to get the settings persistent.

This site explains it's easy to do........using /etc/rc.local.......:
http://www.expertslogin.com/linux-admin ... in-detail/

And this site gives more information on the init process:
http://www.subsignal.org/doc/AliensBashTutorial.html#8

Executing:

Code: Select all

runlevel
reports
N2
and since there is no "bc.d" subdirectory in /etc, LMDE 201204 is a BSD type system


I just want to add the following command to the rc.local script. I have added the command, but I can't make this script
execute properly on every Power Up (Cold Boot).

synclient VertEdgeScroll=1 HorizEdgeScroll=1

I've also tried:
synclient& VertEdgeScroll=1 HorizEdgeScroll=1


What is keeping this script from executing properly? I've searched and searched and it is supposed to
be a simple process.

Thanks.

Larry
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
xircon

Re: HELP Req - Need my Script to run on every Boot.

Post by xircon »

I am also struggling with this. Perhaps this might work as workround

1>. Create a script, called say mysyn, to run your command, put in /usr/bin and make executable.

2>. Create mysyn.desktop file in ~/.config/autostart :

Code: Select all

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Synclient script
Type=Application
Exec=mysyn
Terminal=false
Icon=gnome-do
Comment=Run some synclient commands (copied from gnome-do entry).
Categories=Utility;
Hidden=false
:Edit:
Tested and working using synclient touchpadoff=1, wish I had picked another command :lol: Struggled to get to a terminal to turn touchpad back on :oops:

Mysyn script is just two lines:

Code: Select all

#!/bin/bash
synclient touchpadoff=1
User avatar
Oscar799
Level 20
Level 20
Posts: 10403
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: HELP Req - Need my Script to run on every Boot.

Post by Oscar799 »

Moved here by moderator
Image
lkraemer

Re: HELP Req - Need my Script to run on every Boot.

Post by lkraemer »

xircon,
WHOO HOO! THANKS, that did the trick.

I've attached a zip of the files I created and used, in case anyone is interested.

THANKS AGAIN!

Larry


zz-synaptic.zip
User avatar
dritzominous
Level 3
Level 3
Posts: 161
Joined: Sat Nov 14, 2009 12:49 am

Re: [SOLVED] - Need my Script to run on every Boot.

Post by dritzominous »

So wait, you're using a script to fix this? Why not just try modifying /usr/share/X11/xorg.conf.d/50-synaptics.conf

http://forums.linuxmint.com/viewtopic.php?f=199&t=89542
Locked

Return to “Scripts & Bash”