askmrsinh / touchpad-indicator

Touchpad management GNOME Shell Extension.
https://extensions.gnome.org/extension/131/touchpad-indicator/
GNU General Public License v2.0
83 stars 20 forks source link

Touchpad not enabling when unplugging mouse from USB #61

Open GBpauloh opened 4 years ago

GBpauloh commented 4 years ago

Describe the issue
Extension does work to disable the touchpad when connecting a mouse, but it doesn't enable again when unplugging.


Expected behavior
Enable the touchpad when removing a mouse device.


Steps to reproduce the behavior

  1. Unplug mouse device
  2. Check if touchpad is enabled; if not, turn on
  3. Check if extension and autoswitch touchpad are both enabled; if not, turn on both
  4. Plug mouse into USB port; extension should turn off touchpad
  5. Unplug mouse from USB

Mandatory system details (please complete/update the following information)

I: Bus=0019 Vendor=0000 Product=0001 Version=0000 N: Name="Power Button" P: Phys=PNP0C0C/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1 U: Uniq= H: Handlers=kbd event1 B: PROP=0 B: EV=3 B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0003 Version=0000 N: Name="Sleep Button" P: Phys=PNP0C0E/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2 U: Uniq= H: Handlers=kbd event2 B: PROP=0 B: EV=3 B: KEY=4000 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000 N: Name="Power Button" P: Phys=LNXPWRBN/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3 U: Uniq= H: Handlers=kbd event3 B: PROP=0 B: EV=3 B: KEY=10000000000000 0

I: Bus=0011 Vendor=0002 Product=0008 Version=0800 N: Name="AlpsPS/2 ALPS GlidePoint" P: Phys=isa0060/serio1/input0 S: Sysfs=/devices/platform/i8042/serio1/input/input6 U: Uniq= H: Handlers=mouse2 event8 B: PROP=5 B: EV=b B: KEY=e520 10000 0 0 0 0 B: ABS=260800001000003

I: Bus=0019 Vendor=0000 Product=0000 Version=0000 N: Name="Intel HID events" P: Phys= S: Sysfs=/devices/platform/INT33D5:00/input/input10 U: Uniq= H: Handlers=rfkill kbd event9 B: PROP=0 B: EV=13 B: KEY=81000300000000 5000004000 1e294000000020 0 B: MSC=10

I: Bus=0019 Vendor=0000 Product=0000 Version=0000 N: Name="Dell WMI hotkeys" P: Phys= S: Sysfs=/devices/platform/PNP0C14:00/wmi_bus/wmi_bus-PNP0C14:00/9DBB5994-A997-11DA-B012-B622A1EF5492/input/input11 U: Uniq= H: Handlers=rfkill kbd event5 B: PROP=0 B: EV=13 B: KEY=800000000000 0 0 1500b00000c00 4000000200300000 e000000000000 0 B: MSC=10

I: Bus=0019 Vendor=0000 Product=0006 Version=0000 N: Name="Video Bus" P: Phys=LNXVIDEO/video/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input12 U: Uniq= H: Handlers=kbd event6 B: PROP=0 B: EV=3 B: KEY=3e000b00000000 0 0 0

I: Bus=0003 Vendor=0bda Product=5689 Version=6510 N: Name="Integrated Webcam: Integrated W" P: Phys=usb-0000:00:14.0-5/button S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input13 U: Uniq= H: Handlers=kbd event7 B: PROP=0 B: EV=3 B: KEY=100000 0 0 0

I: Bus=0018 Vendor=044e Product=120a Version=0100 N: Name="DELL07B7:00 044E:120A Mouse" P: Phys=i2c-DELL07B7:00 S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-DELL07B7:00/0018:044E:120A.0001/input/input14 U: Uniq= H: Handlers=mouse0 event10 B: PROP=0 B: EV=17 B: KEY=30000 0 0 0 0 B: REL=1943 B: MSC=10

I: Bus=0018 Vendor=044e Product=120a Version=0100 N: Name="DELL07B7:00 044E:120A Touchpad" P: Phys=i2c-DELL07B7:00 S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-DELL07B7:00/0018:044E:120A.0001/input/input15 U: Uniq= H: Handlers=mouse1 event11 B: PROP=5 B: EV=1b B: KEY=e520 10000 0 0 0 0 B: ABS=2e0800000000003 B: MSC=20

I: Bus=0018 Vendor=044e Product=120a Version=0100 N: Name="DELL07B7:00 044E:120A UNKNOWN" P: Phys=i2c-DELL07B7:00 S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-DELL07B7:00/0018:044E:120A.0001/input/input16 U: Uniq= H: Handlers=kbd event12 B: PROP=0 B: EV=100013 B: KEY=100000000 0 0 0 B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel PCH Headphone Mic" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input17 U: Uniq= H: Handlers=event13 B: PROP=0 B: EV=21 B: SW=4

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel PCH HDMI/DP,pcm=3" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input18 U: Uniq= H: Handlers=event14 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel PCH HDMI/DP,pcm=7" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input19 U: Uniq= H: Handlers=event15 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel PCH HDMI/DP,pcm=8" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input20 U: Uniq= H: Handlers=event16 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel PCH HDMI/DP,pcm=9" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input21 U: Uniq= H: Handlers=event17 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel PCH HDMI/DP,pcm=10" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input22 U: Uniq= H: Handlers=event18 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41 N: Name="AT Translated Set 2 keyboard" P: Phys=isa0060/serio0/input0 S: Sysfs=/devices/platform/i8042/serio0/input/input37 U: Uniq= H: Handlers=sysrq kbd event19 leds B: PROP=0 B: EV=120013 B: KEY=1100f02902000 8380307cf910f001 feffffdfffefffff fffffffffffffffe B: MSC=10 B: LED=7

I: Bus=0003 Vendor=045e Product=00cb Version=0111 N: Name="Microsoft Microsoft Basic Optical Mouse v2.0 " P: Phys=usb-0000:00:14.0-3/input0 S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:045E:00CB.001A/input/input51 U: Uniq= H: Handlers=mouse3 event4 B: PROP=0 B: EV=17 B: KEY=70000 0 0 0 0 B: REL=903 B: MSC=10


- **X input devices** (ie. output for `xinput list`)  

⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ DELL07B7:00 044E:120A Mouse id=11 [slave pointer (2)] ⎜ ↳ DELL07B7:00 044E:120A Touchpad id=12 [slave pointer (2)] ⎜ ↳ AlpsPS/2 ALPS GlidePoint id=17 [slave pointer (2)] ⎜ ↳ Microsoft Microsoft Basic Optical Mouse v2.0 id=16 [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)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ Integrated Webcam: Integrated W id=10 [slave keyboard (3)] ↳ DELL07B7:00 044E:120A UNKNOWN id=13 [slave keyboard (3)] ↳ Intel HID events id=14 [slave keyboard (3)] ↳ Dell WMI hotkeys id=15 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=18 [slave keyboard (3)]


- Log file (you can enable logging within the extension settings, "Debug" tab)  

2020-08-19T01:09:26.135Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:26.138Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 2 2020-08-19T01:09:26.141Z TouchpadIndicator._onMouseDevicePlugged(2) 2020-08-19T01:09:26.219Z {"name":"AlpsPS/2 ALPS GlidePoint","phys":"isa0060/serio1/input0","type":"touchpad"} 2020-08-19T01:09:26.222Z {"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"} 2020-08-19T01:09:26.224Z {"name":"DELL07B7:00 044E:120A Touchpad","phys":"i2c-DELL07B7:00","type":"touchpad"} 2020-08-19T01:09:26.226Z TouchpadIndicator._onMouseDevicePlugged(2) - mouseDevices are [{"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"}] 2020-08-19T01:09:26.227Z TouchpadIndicator._onMouseDevicePlugged(2) - mouseCount is 1 2020-08-19T01:09:26.230Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:26.231Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 2 2020-08-19T01:09:29.687Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 3 2020-08-19T01:09:29.694Z TouchpadIndicator._onMouseDevicePlugged(3) 2020-08-19T01:09:29.753Z {"name":"AlpsPS/2 ALPS GlidePoint","phys":"isa0060/serio1/input0","type":"touchpad"} 2020-08-19T01:09:29.766Z {"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"} 2020-08-19T01:09:29.779Z {"name":"DELL07B7:00 044E:120A Touchpad","phys":"i2c-DELL07B7:00","type":"touchpad"} 2020-08-19T01:09:29.786Z {"name":"Microsoft Microsoft Basic Optical Mouse v2.0 ","phys":"usb-0000:00:14.0-3/input0","type":"mouse"} 2020-08-19T01:09:29.791Z TouchpadIndicator._onMouseDevicePlugged(3) - mouseDevices are [{"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"},{"name":"Microsoft Microsoft Basic Optical Mouse v2.0 ","phys":"usb-0000:00:14.0-3/input0","type":"mouse"}] 2020-08-19T01:09:29.793Z TouchpadIndicator._onMouseDevicePlugged(3) - mouseCount is 2 2020-08-19T01:09:29.794Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 1 2020-08-19T01:09:29.797Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:29.799Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 3 2020-08-19T01:09:29.801Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 1 2020-08-19T01:09:29.802Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:29.805Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:29.852Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:29.853Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:35.646Z TouchpadIndicator._buildItem(...): Touchpad switch set to true. 2020-08-19T01:09:35.647Z TouchpadIndicator._logEKeyChange(): Extension touchpad-enabled Key Changed 2020-08-19T01:09:35.648Z TouchpadIndicator._queueSyncPointingDevice(touchpad-enabled) 2020-08-19T01:09:35.648Z TouchpadIndicator._checkGconfSync(true, disabled) 2020-08-19T01:09:35.648Z TouchpadIndicator._queueSyncPointingDevice(...): KEY_TPD_ENABLED 2020-08-19T01:09:35.649Z TouchpadIndicator._syncTouchpad(true, disabled, false) 2020-08-19T01:09:35.649Z TouchpadIndicator._syncTouchpad(...): Lib.METHOD.GSETTINGS 2020-08-19T01:09:35.649Z TouchpadIndicator._onsetTouchpadEnable(true, disabled) 2020-08-19T01:09:35.649Z TouchpadIndicator._onsetTouchpadEnable(...): set send-events to enabled 2020-08-19T01:09:35.651Z TouchpadIndicator._logSKeyChange(): System send-events Key Changed 2020-08-19T01:09:35.652Z TouchpadIndicator._queueSyncPointingDevice([object instance wrapper GIName:Gio.Settings jsobj@0x2c5bc95e57c0 native@0x55786cc4bdc0]) 2020-08-19T01:09:35.653Z TouchpadIndicator._checkGconfSync(true, enabled) 2020-08-19T01:09:35.653Z Synclient._switch: true 2020-08-19T01:09:35.653Z TouchpadIndicator._queueSyncPointingDevice(...) - Already in sync. 2020-08-19T01:09:37.400Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:37.403Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 2 2020-08-19T01:09:37.406Z TouchpadIndicator._onMouseDevicePlugged(2) 2020-08-19T01:09:37.475Z {"name":"AlpsPS/2 ALPS GlidePoint","phys":"isa0060/serio1/input0","type":"touchpad"} 2020-08-19T01:09:37.483Z {"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"} 2020-08-19T01:09:37.488Z {"name":"DELL07B7:00 044E:120A Touchpad","phys":"i2c-DELL07B7:00","type":"touchpad"} 2020-08-19T01:09:37.492Z TouchpadIndicator._onMouseDevicePlugged(2) - mouseDevices are [{"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"}] 2020-08-19T01:09:37.499Z TouchpadIndicator._onMouseDevicePlugged(2) - mouseCount is 1 2020-08-19T01:09:37.506Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:37.508Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 2 2020-08-19T01:09:39.992Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 3 2020-08-19T01:09:40.006Z TouchpadIndicator._onMouseDevicePlugged(3) 2020-08-19T01:09:40.080Z {"name":"AlpsPS/2 ALPS GlidePoint","phys":"isa0060/serio1/input0","type":"touchpad"} 2020-08-19T01:09:40.084Z {"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"} 2020-08-19T01:09:40.089Z {"name":"DELL07B7:00 044E:120A Touchpad","phys":"i2c-DELL07B7:00","type":"touchpad"} 2020-08-19T01:09:40.091Z {"name":"Microsoft Microsoft Basic Optical Mouse v2.0 ","phys":"usb-0000:00:14.0-3/input0","type":"mouse"} 2020-08-19T01:09:40.095Z TouchpadIndicator._onMouseDevicePlugged(3) - mouseDevices are [{"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"},{"name":"Microsoft Microsoft Basic Optical Mouse v2.0 ","phys":"usb-0000:00:14.0-3/input0","type":"mouse"}] 2020-08-19T01:09:40.096Z TouchpadIndicator._onMouseDevicePlugged(3) - mouseCount is 2 2020-08-19T01:09:40.098Z TouchpadIndicator._logEKeyChange(): Extension touchpad-enabled Key Changed 2020-08-19T01:09:40.100Z TouchpadIndicator._queueSyncPointingDevice(touchpad-enabled) 2020-08-19T01:09:40.102Z TouchpadIndicator._checkGconfSync(false, enabled) 2020-08-19T01:09:40.103Z TouchpadIndicator._queueSyncPointingDevice(...): KEY_TPD_ENABLED 2020-08-19T01:09:40.104Z TouchpadIndicator._syncTouchpad(false, enabled, false) 2020-08-19T01:09:40.104Z TouchpadIndicator._syncTouchpad(...): Lib.METHOD.GSETTINGS 2020-08-19T01:09:40.105Z TouchpadIndicator._onsetTouchpadEnable(false, enabled) 2020-08-19T01:09:40.106Z TouchpadIndicator._onsetTouchpadEnable(...): set send-events to disabled 2020-08-19T01:09:40.108Z TouchpadIndicator._logSKeyChange(): System send-events Key Changed 2020-08-19T01:09:40.109Z TouchpadIndicator._queueSyncPointingDevice([object instance wrapper GIName:Gio.Settings jsobj@0x2c5bc95e57c0 native@0x55786cc4bdc0]) 2020-08-19T01:09:40.110Z TouchpadIndicator._checkGconfSync(false, disabled) 2020-08-19T01:09:40.110Z Synclient._switch: false 2020-08-19T01:09:40.111Z TouchpadIndicator._queueSyncPointingDevice(...) - Already in sync. 2020-08-19T01:09:40.113Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 1 2020-08-19T01:09:40.113Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:40.114Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 3 2020-08-19T01:09:40.114Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 1 2020-08-19T01:09:40.114Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:40.117Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:40.140Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:42.081Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:42.087Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 2 2020-08-19T01:09:42.089Z TouchpadIndicator._onMouseDevicePlugged(2) 2020-08-19T01:09:42.170Z {"name":"AlpsPS/2 ALPS GlidePoint","phys":"isa0060/serio1/input0","type":"touchpad"} 2020-08-19T01:09:42.177Z {"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"} 2020-08-19T01:09:42.178Z {"name":"DELL07B7:00 044E:120A Touchpad","phys":"i2c-DELL07B7:00","type":"touchpad"} 2020-08-19T01:09:42.180Z TouchpadIndicator._onMouseDevicePlugged(2) - mouseDevices are [{"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"}] 2020-08-19T01:09:42.182Z TouchpadIndicator._onMouseDevicePlugged(2) - mouseCount is 1 2020-08-19T01:09:42.185Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:42.187Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 2 2020-08-19T01:09:44.624Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 3 2020-08-19T01:09:44.629Z TouchpadIndicator._onMouseDevicePlugged(3) 2020-08-19T01:09:44.702Z {"name":"AlpsPS/2 ALPS GlidePoint","phys":"isa0060/serio1/input0","type":"touchpad"} 2020-08-19T01:09:44.708Z {"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"} 2020-08-19T01:09:44.716Z {"name":"DELL07B7:00 044E:120A Touchpad","phys":"i2c-DELL07B7:00","type":"touchpad"} 2020-08-19T01:09:44.719Z {"name":"Microsoft Microsoft Basic Optical Mouse v2.0 ","phys":"usb-0000:00:14.0-3/input0","type":"mouse"} 2020-08-19T01:09:44.721Z TouchpadIndicator._onMouseDevicePlugged(3) - mouseDevices are [{"name":"DELL07B7:00 044E:120A Mouse","phys":"i2c-DELL07B7:00","type":"mouse"},{"name":"Microsoft Microsoft Basic Optical Mouse v2.0 ","phys":"usb-0000:00:14.0-3/input0","type":"mouse"}] 2020-08-19T01:09:44.725Z TouchpadIndicator._onMouseDevicePlugged(3) - mouseCount is 2 2020-08-19T01:09:44.727Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 1 2020-08-19T01:09:44.729Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:44.731Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 3 2020-08-19T01:09:44.732Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 1 2020-08-19T01:09:44.734Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4 2020-08-19T01:09:44.736Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:44.737Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse3 4 2020-08-19T01:09:44.828Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event4 4

zzzazzz commented 3 years ago

The same here : autoswitch touchpad does not work with ubuntu 20.04 Bus 001 Device 022: ID 046d:c048 Logitech, Inc. G9 Laser Mouse

It worked well before with ubuntu 18.04

askmrsinh commented 3 years ago

This is likely (still need to verify) because of dummy device DELL07B7:00 044E:120A Mouse. If you take a look at the logs, the mouse count never goes down to 0 and the extensions thinks that a mouse is still plugged in.

I want to add a feature that allows ignoring such devices (it was present before the rewrite, see: https://github.com/user501254/TouchpadIndicator/issues/28). However I am unable to find the time to do that right now. Maybe sometime around December. Meanwhile you can try using the shortcut (Ctrl + Super + Alt + T) to force toggle the touchpad as a workaround.

zzzazzz commented 3 years ago

OK mine say :

I: Bus=0018 Vendor=06cb Product=7e92 Version=0100
N: Name="DELL086F:00 06CB:7E92 Mouse"
P: Phys=i2c-DELL086F:00
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-6/i2c-DELL086F:00/0018:06CB:7E92.0001/input/input20
U: Uniq=
H: Handlers=mouse0 event8 
B: PROP=0
B: EV=17
B: KEY=30000 0 0 0 0
B: REL=3
B: MSC=10
yann-morin-1998 commented 3 years ago

Hello,

Here are the mouse-related devices listed in /proc/bus/input/devices on my DELL XPS15, running Ubuntu 20.04.1:

I: Bus=0003 Vendor=046d Product=c069 Version=0110
N: Name="Logitech USB Laser Mouse"
P: Phys=usb-0000:00:14.0-1.3/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:046D:C069.0004/input/input13
U: Uniq=
H: Handlers=mouse2 event9
B: PROP=0
B: EV=17
B: KEY=ff0000 0 0 0 0
B: REL=1943
B: MSC=10

I: Bus=0018 Vendor=06cb Product=7a13 Version=0100
N: Name="DLL07BE:01 06CB:7A13 Mouse"
P: Phys=i2c-DLL07BE:01
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-DLL07BE:01/0018:06CB:7A13.0001/input/input18
U: Uniq=
H: Handlers=mouse0 event5
B: PROP=0
B: EV=17
B: KEY=30000 0 0 0 0
B: REL=3
B: MSC=10

I: Bus=0018 Vendor=06cb Product=7a13 Version=0100
N: Name="DLL07BE:01 06CB:7A13 Touchpad"
P: Phys=i2c-DLL07BE:01
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-DLL07BE:01/0018:06CB:7A13.0001/input/input19
U: Uniq=
H: Handlers=mouse1 event6
B: PROP=5
B: EV=1b
B: KEY=e520 10000 0 0 0 0
B: ABS=2e0800000000003
B: MSC=20

I: Bus=0011 Vendor=0002 Product=0001 Version=0000
N: Name="PS/2 Generic Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input6
U: Uniq=
H: Handlers=mouse3 event23
B: PROP=1
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3

Of those:

  1. the first one is a real mouse
  2. the second one does not exist; but it looks very much like it is a "shadow" (or "ghost" or "duplicate") of the touchpad, below, and they share the Phys entry
  3. the third is the actual touchpad
  4. the fourth does not exist at all: this laptop does not have a PS/2 connector (I have even not seen one in the past 15 years).

So, yes, being able to ignore some devices would be nice. It would even make sense if some were ignored by default (i.e. the ones on the isa bus like PS/2).

Additionally, devices that share the same Phys entry should maybe only count for one, and if one happens to be a touchpad, the others should not count as mice.

Until there is a fix, the Ctrl-Super-Alt-T combo is handy.

Thanks for the good extension! :-)

Kryptoxic commented 3 years ago

Hi, just wanted to add that I'm experiencing the same issue on my laptop as well. Intel LAPQC71A.

I: Bus=0018 Vendor=093a Product=1336 Version=0100
N: Name="UNIW0001:00 093A:1336 Mouse"
P: Phys=i2c-UNIW0001:00
S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-2/i2c-UNIW0001:00/0018:093A:1336.0001/input/input15
U: Uniq=
H: Handlers=mouse0 event5 
B: PROP=2
B: EV=17
B: KEY=1 30000 0 0 0 0
B: REL=3
B: MSC=10

I: Bus=0018 Vendor=093a Product=1336 Version=0100
N: Name="UNIW0001:00 093A:1336 Touchpad"
P: Phys=i2c-UNIW0001:00
S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-2/i2c-UNIW0001:00/0018:093A:1336.0001/input/input16
U: Uniq=
H: Handlers=mouse1 event6 
B: PROP=5
B: EV=1b
B: KEY=e420 10000 0 0 0 0
B: ABS=2e0800000000003
B: MSC=20

I: Bus=0005 Vendor=1532 Product=0061 Version=0001
N: Name="Razer Atheris Mouse"
P: Phys=50:eb:71:d7:cf:66
S: Sysfs=/devices/virtual/misc/uhid/0005:1532:0061.000D/input/input84
U: Uniq=f2:c9:cc:80:7b:4f
H: Handlers=mouse2 event24 
B: PROP=0
B: EV=17
B: KEY=1f0000 0 0 0 0
B: REL=903
B: MSC=10

I: Bus=0005 Vendor=1532 Product=0061 Version=0001
N: Name="Razer Atheris Consumer Control"
P: Phys=50:eb:71:d7:cf:66
S: Sysfs=/devices/virtual/misc/uhid/0005:1532:0061.000D/input/input85
U: Uniq=f2:c9:cc:80:7b:4f
H: Handlers=kbd event25 
B: PROP=0
B: EV=1f
B: KEY=300ff 0 0 483ffff17aff32d bfd4444600000000 1 130c730b17c000 267bfad9415fed 9e168000004400 10000002
B: REL=1040
B: ABS=100000000
B: MSC=10

I: Bus=0005 Vendor=1532 Product=0061 Version=0001
N: Name="Razer Atheris System Control"
P: Phys=50:eb:71:d7:cf:66
S: Sysfs=/devices/virtual/misc/uhid/0005:1532:0061.000D/input/input86
U: Uniq=f2:c9:cc:80:7b:4f
H: Handlers=kbd event26 
B: PROP=0
B: EV=13
B: KEY=c000 10000000000000 0
B: MSC=10

I: Bus=0005 Vendor=1532 Product=0061 Version=0001
N: Name="Razer Atheris"
P: Phys=50:eb:71:d7:cf:66
S: Sysfs=/devices/virtual/misc/uhid/0005:1532:0061.000D/input/input87
U: Uniq=f2:c9:cc:80:7b:4f
H: Handlers=event27 
B: PROP=0
B: EV=9
B: ABS=10000000000

I: Bus=0005 Vendor=1532 Product=0061 Version=0001
N: Name="Razer Atheris Keyboard"
P: Phys=50:eb:71:d7:cf:66
S: Sysfs=/devices/virtual/misc/uhid/0005:1532:0061.000D/input/input88
U: Uniq=f2:c9:cc:80:7b:4f
H: Handlers=sysrq kbd event28 
B: PROP=0
B: EV=100013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10

The only mouse I have on my laptop is my Razer Atheris mouse connected via bluetooth and the touchpad. Like the others, there seem to be a phantom mouse in there.

System Details:

Operating System: Ubuntu 20.10 Touchpad Indicator extension version: 36 Gnome Shell version: GNOME Shell 3.38.1 Display server: X11 Switching method: GSettings. Tried xinput and it didn't work Installation source: extensions.gnome.org