VectorLinux
April 24, 2014, 08:58:31 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Bulding a script for Synaptics touchpad?  (Read 1403 times)
retired1af
Packager
Vectorian
****
Posts: 1221



« on: July 29, 2010, 05:23:14 am »

I had one of my rare "brilliant" ideas this morning, and the more I thought about it, the more I figured this could be done.

On my notebook (using Windows), it disables the touchpad whenever I plug the USB mouse in. So why can't this be done with VL?

Sooooooooooooooooo, the question is, how would a script look that checks for the USB mouse, and if it's present, turns the touchpad off?
Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
M0E-lnx
Administrator
Vectorian
*****
Posts: 3134



« Reply #1 on: July 29, 2010, 05:35:53 am »

I saw one of these a couple of days ago on the www when researching on your post about how to disable the touchpad. Maybe this can help you
http://llbb.wordpress.com/2007/07/09/auto-disable-synaptics-touchpad-on-linux/
Logged

retired1af
Packager
Vectorian
****
Posts: 1221



« Reply #2 on: July 29, 2010, 05:52:08 am »

Danke.. That gives me a few clues on how to proceed. Something to play with over the next few days. Smiley
Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
retired1af
Packager
Vectorian
****
Posts: 1221



« Reply #3 on: July 30, 2010, 05:23:40 am »

Question.. Is /etc/gdm/Init/Default under Fedora the same thing as /etc/rc.d/rc.local?
Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
M0E-lnx
Administrator
Vectorian
*****
Posts: 3134



« Reply #4 on: July 30, 2010, 05:34:39 am »

/etc/rc.d/rc.local is different. I've never ran fedora, but I imagine that is like our /etc/X11/gdm/
Logged

nightflier
Administrator
Vectorian
*****
Posts: 3942



« Reply #5 on: July 30, 2010, 07:35:21 am »

I think Fedora uses /etc/rc.local
Logged
retired1af
Packager
Vectorian
****
Posts: 1221



« Reply #6 on: July 30, 2010, 07:57:00 am »

The reason I asked is because of the following:

Code:
Add synapticsautooff in /etc/gdm/Init/Default before last line exit 0.

Add `sleep 5 && synapticsautooff` & in /etc/gdm/PreSession/Default before last line exit 0.

Looking at this, it's now apparent that the checks are being done prior to login. The only thing I can find that's remotely similar is xsession (/etc/X11/xdm). Still digging around trying to figure out how to best do the check.
Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
M0E-lnx
Administrator
Vectorian
*****
Posts: 3134



« Reply #7 on: July 30, 2010, 08:00:41 am »

I think Fedora uses /etc/rc.local
Debian uses /etc/rc.local, but theirs is different. their rc.local gets called every time you switch init levels, which is almost never in a debian system, that's why it works like that.

In VL, AFAIK, rc.local gets read once on boot. If fedora works anything like debian, then rc.local may be read several times during boot, and if you switch runlevels.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!