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.

Author Topic: Disabling the touchpad when resuming from suspend  (Read 3798 times)

Resonic

  • Member
  • *
  • Posts: 2
Disabling the touchpad when resuming from suspend
« on: August 10, 2013, 05:34:24 am »

When VL 7.0 starts up, I run the following command in the Session and Startup application to disable my laptop touchpad:

Code: [Select]
xinput set-int-prop 13 "Device Enabled" 8 0
Which works well - however when my computer resumes from hibernation, the touchpad is enabled once again, until I either restart the computer or run the command manually.

Does anyone know of a way to either run the xinput command again when it resumes from being suspended or of another way to disable the touchpad permanently from the moment the computer starts up?
Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: Disabling the touchpad when resuming from suspend
« Reply #1 on: August 10, 2013, 09:28:52 am »

You could try this ..
Set up a desktop launcher, or hot-key combo and or panel launcher to replace the way you are currently going into suspend.

Then within whichever you choose or all if you want them use this command.

vsuper pm-suspend ; xinput set-int-prop 13 "Device Enabled" 8 0

That way when you exit out of suspend the very next command to be ran will be the one disabling your touchpad.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Resonic

  • Member
  • *
  • Posts: 2
Re: Disabling the touchpad when resuming from suspend
« Reply #2 on: August 10, 2013, 08:28:31 pm »

Thank you!!!!!!!!!!!!!!!!

Works perfectly and is even easier than navigating through to the log out panel!  8)
Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: Disabling the touchpad when resuming from suspend
« Reply #3 on: August 10, 2013, 09:12:50 pm »

Nice!
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee