Page 1 of 1

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

Posted: Sun Jul 15, 2012 7:57 pm
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

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

Posted: Mon Jul 16, 2012 8:08 am
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

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

Posted: Mon Jul 16, 2012 8:47 am
by Oscar799
Moved here by moderator

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

Posted: Mon Jul 16, 2012 1:46 pm
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

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

Posted: Sun Jul 29, 2012 10:23 am
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