You are not logged in.
I would like to add some functionality to deal with enabling and disableing the mouse-track-pad in various situations...
1) Toggle on/off via a keyboard shortcut. Something I can map in the keyboard file to super+something
2) Turn off the mouse-track-pad whenever a mouse is plugged into the computer
3) Turn off the mouse-track-pad when I am typing, then turn it back on when I am no longer typing.
When I was using BodHi I installed an application that required adding a ppa called Touchpad_Indicator. Is that the way to go here? Or is there another way I should be looking at?
Thanks in advance.
grep -i pad /proc/bus/input/devices
N: Name="SynPS/2 Synaptics TouchPad"
Last edited by jjbackagain (2021-08-08 20:53:38)
Offline
ppa is definitely the wrong way.
You can try this with xinput:
apt update
apt policy xinput
apt install xinput
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=9 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=10 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=14 [slave keyboard (3)]
for me it has the id=12
$ xinput set-prop 12 "Device Enabled" 0
$ xinput set-prop 12 "Device Enabled" 1
0 is OFF
1 is ON
can be in the autostart what you want in each case.
Offline
#3 could be
https://forums.bunsenlabs.org/viewtopic … 461#p42461
unless info is out of date, as usually worth reading
https://wiki.archlinux.org/title/Touchpad_Synaptics
Online
I still can not work out how to automatically disable the touchpad while typing and auomaticallt disable and enable the touchpad if a mouse is plugged in or not.
You can try this with xinput:
xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Kensington Expert Wireless TB Mouse id=9 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Kensington Expert Wireless TB Consumer Control id=10 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
↳ HP WMI hotkeys id=13 [slave keyboard (3)]
xinput set-prop 12 "Device Enabled" 0
xinput set-prop 12 "Device Enabled" 1
This works.. I added it to a superKey combination in the xbindkeysrc file.
#3 could be
https://forums.bunsenlabs.org/viewtopic … 461#p42461
unless info is out of date, as usually worth reading
https://wiki.archlinux.org/title/Touchpad_Synaptics
The info in this thread...
Add this line to ~/.config/openbox/autostart:
syndaemon -i .5 -K -t -R -d &
This should be a commented option in the next release:
https://github.com/BunsenLabs/bunsen-co … ostart#L45
:)
was actually incorporated into the new version of the autostart.
## Disable touchpad while typing
syndaemon -i .5 -K -t -R -d &
This dose not seem to work though.... if I spam keys on the keyboard and move my fingers on the track-pad it still moves the mouse.
Last edited by jjbackagain (2021-08-04 21:24:47)
Offline
I was able to get the syndaemon thing working.... basically I just uninstalled and reinstalled.
sudo aptitude remove xserver-xorg
sudo aptitude install xserver-xorg
sudo dpkg-reconfigure xserver-xorg
I didn't have to but if that does not work, maybe do this before the reconfigure
sudo aptitude install install xserver-xorg-input-all
I then adjusted the command in the autoexe file...
syndaemon -i 1.5 -K -R -d &
So all I need to work out now is how to automatically disable the trackpad when there is a mouse plugged in and enable it when there is no mouse plugged in.
Offline
^Maybe you would have to tinker with an udev rule.
A tutorial would be that: https://blog.cscholz.io/ubuntu-synaptic … bschalten/
Use deepl.com/translator
Offline
Off Topic, but:
Use deepl.com/translator
Thanks! Deepl looks quite good.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
^Maybe you would have to tinker with an udev rule.
A tutorial would be that: https://blog.cscholz.io/ubuntu-synaptic … bschalten/
This seemed to work... It only seemed to work on pluggin in and out of the mouse, if the system loads with the mouse in then it is active.. but combined with the hotkey and/or just unpluggnig and plugging in the mouse it is close enough for me.
Solution
Simply create this file, with this content.
/etc/udev/rules.d/01-touchpad.rules
ACTION=="remove", SUBSYSTEM=="hid", RUN+="/sbin/modprobe psmouse" ACTION=="add", SUBSYSTEM=="hid", RUN+="/sbin/rmmod psmouse"
So thanks a lot unklar... I think this is all the cases I was looking to find solutions for in this post.. I will mark it solved now.
Again, thanks a lot, man.
Use deepl.com/translator
I couldn't work out how to load the page in the translator.. only copy and past text into it?
Last edited by jjbackagain (2021-08-08 20:52:49)
Offline
^I'm glad it helped you.
unklar wrote:Use deepl.com/translator
I couldn't work out how to load the page in the translator.. only copy and past text into it?
Yes, copy and paste the text. It recognizes the language itself.
@johnraff
Last edited by unklar (2021-08-09 09:00:39)
Offline
In the MX Linux repo there is this:
http://mxrepo.com/mx/repo/pool/main/t/t … indicator/
which will give you a panel tool to disable your touchpad.
Offline