You are not logged in.

#1 2021-09-07 05:20:59

jroovy-11904
Member
Registered: 2020-01-01
Posts: 14

Touchpad doesn't work when phone is plugged in

For some reason my touchpad turns off when i plug in my phone. not sure if somethings wrong with my configs or if it's a bug. my laptop is the lenovo ideapad 320-14ikb

Operating System: Arch Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.13-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 11.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620

here's my touchpad config:

/etc/X11/xorg.conf.d/30-touchpad.conf
Section "InputClass"
	Identifier "Touchpad settings"
	Driver "libinput"
	MatchIsTouchpad "on"

	Option "AccelProfile" 		"adaptive"
	Option "DisableWhileTyping" 	"1"
	Option "HorizontalScrolling" 	"1"
	Option "NaturalScrolling" 	"1"
	Option "ScrollMethod" 		"twofinger"
	Option "SendEventsMode" 	"disabled-on-external-mouse"
	Option "Tapping" 		"1"
	Option "TappingButtonMap" 	"lrm"
EndSection

Offline

#2 2021-09-08 20:01:52

Bevan
Member
Registered: 2009-09-08
Posts: 99

Re: Touchpad doesn't work when phone is plugged in

While I haven't experienced this myself before, I notice the following line in your configuration:

	Option "SendEventsMode" 	"disabled-on-external-mouse"

Could it be that your phone somehow gets detected as input device and therefore the touchpad is disabled? To figure this out there are basically two approaches:

1. Remove that line from the config, reboot and see if the behavior changes, or
2. Run something like `sudo dmesg -w` or `sudo journalctl -f`, then connect your phone and observe the output. Does it show anything about a mouse or some HID (human interface devices)?

Offline

#3 2021-09-12 14:23:09

jroovy-11904
Member
Registered: 2020-01-01
Posts: 14

Re: Touchpad doesn't work when phone is plugged in

You're right. my phone does get detected as an HID device. Any idea why? I'm confused as well.

dmesg:

[14295.000609] usb 1-3: new high-speed USB device number 6 using xhci_hcd
[14295.177491] input: motorola Moto G (5S) Plus as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:18D1:4EE7.0003/input/input16
[14295.241827] hid-generic 0003:18D1:4EE7.0003: input,hidraw0: USB HID v1.01 Keyboard [motorola Moto G (5S) Plus] on usb-0000:00:14.0-3/input1
[14295.243675] input: motorola Moto G (5S) Plus as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/0003:18D1:4EE7.0004/input/input17
[14295.244144] hid-generic 0003:18D1:4EE7.0004: input,hidraw1: USB HID v1.01 Mouse [motorola Moto G (5S) Plus] on usb-0000:00:14.0-3/input2
[14297.009451] usb 1-3: USB disconnect, device number 6

journalctl:

Sep 12 21:16:28 poweruser kernel: usb 1-3: new high-speed USB device number 5 using xhci_hcd
Sep 12 21:16:28 poweruser mtp-probe[7922]: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3"
Sep 12 21:16:28 poweruser mtp-probe[7922]: bus: 1, device: 5 was not an MTP device
Sep 12 21:16:28 poweruser kernel: usbcore: registered new interface driver usbhid
Sep 12 21:16:28 poweruser kernel: usbhid: USB HID core driver
Sep 12 21:16:28 poweruser kernel: input: motorola Moto G (5S) Plus as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:18D1:4EE7.0001/input/input14
Sep 12 21:16:28 poweruser kernel: hid-generic 0003:18D1:4EE7.0001: input,hidraw0: USB HID v1.01 Keyboard [motorola Moto G (5S) Plus] on usb-0000:00:14.0-3/input1
Sep 12 21:16:28 poweruser kernel: input: motorola Moto G (5S) Plus as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/0003:18D1:4EE7.0002/input/input15
Sep 12 21:16:28 poweruser kernel: hid-generic 0003:18D1:4EE7.0002: input,hidraw1: USB HID v1.01 Mouse [motorola Moto G (5S) Plus] on usb-0000:00:14.0-3/input2

Offline

#4 2021-09-12 18:14:25

Bevan
Member
Registered: 2009-09-08
Posts: 99

Re: Touchpad doesn't work when phone is plugged in

Are you using custom firmware on your phone or have you played with something like this here: https://github.com/tejado/android-usb-gadget ?

Maybe there are phones that provide this feature out of the box. When connected via USB slide down from the top to get to the notifications. Normally you can change the USB mode there. If that does not help, I'm out of ideas and would suggest to just remove that config line so your touchpad stays functional.

Offline

#5 2021-09-14 10:25:36

jroovy-11904
Member
Registered: 2020-01-01
Posts: 14

Re: Touchpad doesn't work when phone is plugged in

Custom firmware. And changing the USB mode doesn't do anything sad
So should I report this as a bug or is this just how libinput works?

(I'll remove the line from my config file for now)

Offline

#6 2021-09-14 10:28:08

Bevan
Member
Registered: 2009-09-08
Posts: 99

Re: Touchpad doesn't work when phone is plugged in

With that config line you explicitly ask for this behavior. Why should it be a bug?

Offline

#7 2021-09-18 12:44:35

jroovy-11904
Member
Registered: 2020-01-01
Posts: 14

Re: Touchpad doesn't work when phone is plugged in

Sorry. I thought that it must be a bug since I never experienced this behavior on any of my custom roms before. (Maybe it has to do with the custom kernel I flashed on my phone recently.)
Anyway, thanks for your help, i really appreciate it smile

Offline

Board footer

Powered by FluxBB