touchpad_onoff-0.1-all.pet

Miscellaneous tools
Post Reply
Message
Author
User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

touchpad_onoff-0.1-all.pet

#1 Post by corvus »

Good evening everyone, below a utility that serves to enable/disable the touchpad, that works with the synaptics driver, depending on the presence/absence of the mouse. It is based on an udev rule. I use it on Bionicpup64 but it should also work on the 32 bit version.

Edit: In the file /etc/udev/rules.d/99-togglemouse.rules the ATTRS{idProduct} and ATTRS{idVendor} part must be adapted with the specifications of your mouse, that can be obtained with the command:

Code: Select all

lsusb | grep -i mouse
.
Remember that the first part of the hexadecimal code represents the idVendor and the second part the idProduct.
Unfortunately, despite the various solutions proposed on the web, I could not find a way to adapt the udev rule to a generic mouse.

Greetings
Attachments
touchpad_onoff-0.1-all.pet
Toggle touchpad if mouse is pluged in
(635 Bytes) Downloaded 137 times
Last edited by corvus on Sun 08 Mar 2020, 22:43, edited 2 times in total.
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

That pet is small.
You can attach it to the first post, so it can be directly downloaded from the forum.

The forums max file size limit is 256K.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#3 Post by corvus »

Thanks bigpup for the tip.
Cheers
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

Post Reply