You are not logged in.

#1 2021-08-03 20:54:19

jjbackagain
Member
Registered: 2018-06-06
Posts: 26

[SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

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

#2 2021-08-04 08:01:22

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 1,549

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

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 2021-08-04 14:35:58

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,370
Website

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

Offline

#4 2021-08-04 21:17:53

jjbackagain
Member
Registered: 2018-06-06
Posts: 26

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

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.

unklar wrote:

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.

brontosaurusrex wrote:

The info in this thread...

Head_on_a_Stick wrote:

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

#5 2021-08-06 16:06:29

jjbackagain
Member
Registered: 2018-06-06
Posts: 26

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

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

#6 2021-08-07 08:09:44

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 1,549

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

^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   wink

Offline

#7 2021-08-07 09:07:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,281
Website

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

Off Topic, but:

unklar wrote:

Use deepl.com/translator   wink

Thanks! Deepl looks quite good.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#8 2021-08-08 20:33:10

jjbackagain
Member
Registered: 2018-06-06
Posts: 26

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

unklar wrote:

^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

blog.cscholz.io wrote:

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.

unklar wrote:

Use deepl.com/translator   wink

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

#9 2021-08-09 08:58:54

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 1,549

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

^I'm glad it helped you.

jjbackagain wrote:
unklar wrote:

Use deepl.com/translator   wink

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.   smile


@johnraff

smile

Last edited by unklar (2021-08-09 09:00:39)

Offline

#10 2021-08-18 03:51:24

jeffreyC
Member
Registered: 2019-09-07
Posts: 62

Re: [SOLVED] - Disable / Enable Mouse-Track-Pad during various situations?

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

Board footer

Powered by FluxBB