LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-17-2022, 01:32 PM   #1
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
Disabling tapping on laptop touchpad with Linux as VirtualBox guest?


Hi everyone,
First post in 10 years here. I'm currently running Kubuntu 22.04 LTS on VirtualBox 6.1.36 with Guest Additions installed, Windows 11 as host.

I have an HP Pavilion x360 14m-dh0xxx laptop.

I'd like to disable tap-to-click on my touchpad. What is annoying is that I'll be typing and then all of a sudden my cursor will jump to where my mouse pointer is. VirtualBox is telling Kubuntu my touchpad is a mouse, which is sort of true because the touchpad area also functions as a huge button (like a Mac mouse), and I'd like to keep that method to click. But it is also not recognizing my touchpad as a touchpad. In Kubuntu settings, it says "No Touchpad Found".

What I've tried is going to /usr/share/X11/xorg.conf.d/40-libinput.conf and adding the following lines:

Code:
Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Option "Tapping" "False"
        Option "TappingDrag" "False"
        Option "DisableWhileTyping" "True"
        Option "AccelProfile" "adaptive"
        Option "AccelSpeed" "0.4"
        Driver "libinput"
EndSection
I know that this somewhat works because DisableWhileTyping seems to prevent moving of the cursor while I'm in the middle of typing a sentence, but doesn't prevent tapping otherwise.

Any ideas?
 
Old 08-17-2022, 08:50 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,791

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
The Xorg config file as posted won't work when the Linux guest OS sees a mouse (and not a touchpad).

If you run
Code:
sudo libinput list-devices
you'll see something more like this
Code:
Device:           ImExPS/2 Generic Explorer Mouse
Kernel:           /dev/input/event1
Group:            7
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a
Anyway, report back with the output, and we can advise further from there.

Last edited by ferrari; 08-17-2022 at 08:51 PM.
 
Old 08-22-2022, 12:26 PM   #3
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Original Poster
Rep: Reputation: 30
Here's the output:

Quote:
Device: VirtualBox mouse integration
Kernel: /dev/input/event6
Group: 4
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: identity matrix
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Accel profiles: n/a
Rotation: n/a

Device: VirtualBox USB Tablet
Kernel: /dev/input/event5
Group: 5
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: identity matrix
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Accel profiles: n/a
Rotation: n/a

Device: AT Translated Set 2 keyboard
Kernel: /dev/input/event2
Group: 6
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Accel profiles: n/a
Rotation: n/a

Device: ImExPS/2 Generic Explorer Mouse
Kernel: /dev/input/event4
Group: 7
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: button
Click methods: none
Disable-w-typing: n/a
Accel profiles: flat *adaptive
Rotation: n/a
 
Old 08-22-2022, 02:04 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,791

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
As you can see the pointing device is handled as a mouse, and 'Disable-w-typing: n/a' is not an adjustable parameter.
 
Old 08-22-2022, 02:14 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,791

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
FWIW, here's an old thread where I shared a script for disabling any kind of pointing device while typing...
https://www.linuxquestions.org/quest...5/#post5807829
 
  


Reply

Tags
kde, kubuntu, laptop, touchpad, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
4MLinux as VirtualBox guest - how can I install VirtualBox Guest Additions? wghay 4MLinux 11 09-30-2018 12:17 PM
Tapping on laptop touchpad not working michalng Debian 2 05-14-2010 06:46 PM
Disabling tapping Slackware 12.0 MatHubbard Linux - Newbie 6 11-30-2007 06:26 PM
Disabling tapping on touch pad - Presario culturejam Linux - Laptop and Netbook 10 09-30-2006 10:54 PM
disabling tapping in linux alanalover89 Linux - Laptop and Netbook 1 08-10-2005 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration