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

Forum rules
Before you post please read this

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

Postby lkraemer on Sun Jul 15, 2012 7:57 pm

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-administration/boot-process-of-linux-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 lkraemer on Mon Jul 16, 2012 1:47 pm, edited 1 time in total.
lkraemer
Level 2
Level 2
 
Posts: 52
Joined: Tue Apr 24, 2012 9:05 pm

Linux Mint is funded by ads and donations.
 

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

Postby xircon on Mon Jul 16, 2012 8:08 am

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
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

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

Postby Oscar799 on Mon Jul 16, 2012 8:47 am

Moved here by moderator
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8841
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

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

Postby lkraemer on Mon Jul 16, 2012 1:46 pm

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
zz-synaptic.zip
(2.99 KiB) Downloaded 89 times
lkraemer
Level 2
Level 2
 
Posts: 52
Joined: Tue Apr 24, 2012 9:05 pm

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

Postby dritzominous on Sun Jul 29, 2012 10:23 am

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
User avatar
dritzominous
Level 3
Level 3
 
Posts: 160
Joined: Sat Nov 14, 2009 12:49 am


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 2 guests