LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2010, 03:10 PM   #1
PaPPy
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
Cant run startup command to disable touchpad


I login as root every time (its a closed system) and I am running it on a laptop. I want to disable the touch pad after typing for 4 seconds.

I have tried adding this command: syndaemon -i 4 -d
to rc.4, rc.local, rc.httpd, http.mysqld

Any idea?

Thanks in advance
 
Old 10-12-2010, 04:50 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
You can (1) disable it (completely) in the BIOS (probably); (2) turn it off by running
Code:
synclient TouchpadOff=1
in, say, your .profile or, (3) if you're using KDE, you can add the following to ~/.config/autostart/synclient.desktop
Code:
cat ${HOME}/.config/autostart/synclient.desktop 
[Desktop Entry]
Version=1.0
Type=Application
Name=SynClient
Exec=synclient TouchpadOff=1
StartupNotify=false
Terminal=false
Hidden=false
This entry will, when KDE starts.

All but the BIOS method the touch pad will be "hot" until one of these are executed (so, basically, you need to curl your fingers to get started).

(3) above with thanks to Robby Workman.

Hope this helps some.
 
Old 10-12-2010, 05:16 PM   #3
PaPPy
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
The bios option wont work, as I will be making it into a live CD.

Also I looked for the synclient.desktop on the whole computer and it didnt exist... Ill take another look tomorrow when I have hands on with the system
 
Old 10-13-2010, 07:19 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
synclient is installed in /usr/bin; it's a binary executable that you can simply execute from a command line or in your .profile (so it'll run when you log in).

The file, synclient.desktop; you can create it by copy-paste of the below into a new file named sysclient.desktop in .config/autostart in your home directory. You want to copy-paste all of the below into sysclient.desktop
Code:
[Desktop Entry]
Version=1.0
Type=Application
Name=SynClient
Exec=synclient TouchpadOff=1
StartupNotify=false
Terminal=false
Hidden=false
Sorry if all that was a little unclear and hope this helps some.
 
Old 10-13-2010, 08:05 AM   #5
PaPPy
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Ok thank you.

Where do I place it because i thought root doesnt have a home directory?
 
Old 10-13-2010, 09:39 AM   #6
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
Root's home directory is /root, so you can put it in /root/.config/autostart
 
Old 10-13-2010, 10:08 AM   #7
PaPPy
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I realized that after posting it, damn hospital basement having no internet.

But that will just disable, the command I was wanting to do was disable the touchpad for 4 secs as soon as I type.

Can I just switch out the name and the Exec for syndaemon -i 4 -d

thanks again?

Last edited by PaPPy; 10-13-2010 at 10:15 AM. Reason: add more info
 
Old 10-13-2010, 10:51 AM   #8
PaPPy
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Woooooooot that worked thanks everyone!!!!!!!!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Touchpad disable button permanently disables touchpad until reboot William (Dthdealer) Linux - Hardware 12 08-01-2009 10:51 PM
run a command at startup/resume otoomet Debian 2 09-12-2007 10:50 PM
make a command run at startup? cheater1034 Linux - General 2 09-12-2004 05:51 AM
How can I run a command automatically at startup? luwigie Linux - General 8 08-26-2004 09:05 PM
making kde run a command at startup wfettich Linux - General 3 05-10-2004 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration