VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Pages: 1 [2]

Author Topic: touchpad toggle [solved]  (Read 6613 times)

gizmo

  • Member
  • *
  • Posts: 21
Re: touchpad toggle
« Reply #15 on: August 15, 2011, 06:31:55 am »

Thanks, that did it.

I tried
synclient touchpadoff=0

 that didn't do anything - d'oh

Then I tried

synclient touchpadoff=1
 
that did the trick.


Thanks roarde and nightflier, I really appreciate your help.

I'd still love to see a simple equivalent to "touchpad toggle" in Vector 7.

which raises the question - will VL7 still work on geriatric hardware, or will it need more advanced hardware?

VL6 is about the only distro I've found that both does what I want, and works at reasonable speed on this celeron 800 with 192 Mb ram.
« Last Edit: August 15, 2011, 06:50:09 am by gizmo »
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4141
Re: touchpad toggle [solved]
« Reply #16 on: August 15, 2011, 07:10:03 am »

Nice work, gizmo  :)
Now that you have synclient working, there are a lot more things you can do with it if you want to experiment.
To disable touchpad entirely: add the line:
Code: [Select]
Option        "TouchpadOff"        "1"
To the Touchpad section in xorg.conf.

Here is a quick script that you can use to toggle your pad:
Code: [Select]
#!/bin/sh
#
# toggle touchpad on or off

tpstatus=$(synclient -l | grep TouchpadOff | awk '{print $3}')
if [ $tpstatus = 0 ];then $(synclient TouchpadOff=1);else $(synclient TouchpadOff=0);fi
Copy the code to a file of your choosing and make it executable.

A script like this will be included in VL7, and yes, it should work on your machine.
« Last Edit: August 15, 2011, 07:26:45 am by nightflier »
Logged
Pages: 1 [2]