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

Won't turn touchpad back when mouse is disconnected #67

Open Maxel89 opened 3 years ago

Maxel89 commented 3 years ago

Describe the issue
The touchpad does not reactivate when mouse is disconnected.


Expected behavior
When the mouse is disconnected the touchpad should reactivate


Steps to reproduce the behavior

  1. Turn auto switch touchpad on
  2. Plug mouse in.
  3. Unplug mouse.

Screenshots (if required, add screenshots to help explain your problem)


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=0001 Version=0000 N: Name="Power Button" P: Phys=LNXPWRBN/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2 U: Uniq= H: Handlers=kbd event2 B: PROP=0 B: EV=3 B: KEY=10000000000000 0

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/input3 U: Uniq= H: Handlers=kbd event3 B: PROP=0 B: EV=3 B: KEY=3e000b00000000 0 0 0

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/device:13/LNXVIDEO:01/input/input4 U: Uniq= H: Handlers=kbd event4 B: PROP=0 B: EV=3 B: KEY=3e000b00000000 0 0 0

I: Bus=0003 Vendor=13d3 Product=56bd Version=1809 N: Name="USB Camera: USB Camera" P: Phys=usb-0000:00:14.0-7/button S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/input/input14 U: Uniq= H: Handlers=kbd event5 B: PROP=0 B: EV=3 B: KEY=100000 0 0 0

I: Bus=0003 Vendor=1532 Product=0246 Version=0111 N: Name="Razer Razer Blade" P: Phys=usb-0000:00:14.0-8/input0 S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:1532:0246.0002/input/input15 U: Uniq= H: Handlers=sysrq kbd event6 leds B: PROP=0 B: EV=120013 B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe B: MSC=10 B: LED=7

I: Bus=0018 Vendor=06cb Product=cd73 Version=0100 N: Name="1A582004:00 06CB:CD73 Mouse" P: Phys=i2c-1A582004:00 S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-2/i2c-1A582004:00/0018:06CB:CD73.0001/input/input16 U: Uniq= H: Handlers=mouse0 event7 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=cd73 Version=0100 N: Name="1A582004:00 06CB:CD73 Touchpad" P: Phys=i2c-1A582004:00 S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-2/i2c-1A582004:00/0018:06CB:CD73.0001/input/input17 U: Uniq= H: Handlers=mouse1 event8 B: PROP=5 B: EV=1b B: KEY=e520 10000 0 0 0 0 B: ABS=2e0800000000003 B: MSC=20

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=3" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input19 U: Uniq= H: Handlers=event9 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=7" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input20 U: Uniq= H: Handlers=event13 B: PROP=0 B: EV=21 B: SW=140

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

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=8" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21 U: Uniq= H: Handlers=event10 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=9" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input22 U: Uniq= H: Handlers=event11 B: PROP=0 B: EV=21 B: SW=140

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

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=10" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input23 U: Uniq= H: Handlers=event12 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=11" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input24 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=3" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input28 U: Uniq= H: Handlers=event17 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0003 Vendor=1532 Product=0246 Version=0111 N: Name="Razer Razer Blade" P: Phys=usb-0000:00:14.0-8/input1 S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:1532:0246.0003/input/input33 U: Uniq= H: Handlers=sysrq kbd event18 B: PROP=0 B: EV=10001f B: KEY=300ff 0 0 483ffff17aff32d bfd4444600000000 1 130c730b17c007 ffbf7bfad941dfff febeffdfffefffff fffffffffffffffe B: REL=1040 B: ABS=10100000000 B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=12" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input25 U: Uniq= H: Handlers=event19 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/input29 U: Uniq= H: Handlers=event20 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0003 Vendor=1532 Product=0246 Version=0111 N: Name="Razer Razer Blade" P: Phys=usb-0000:00:14.0-8/input2 S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:1532:0246.0004/input/input34 U: Uniq= H: Handlers=mouse2 event21 B: PROP=0 B: EV=17 B: KEY=1f0000 0 0 0 0 B: REL=903 B: MSC=10

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/input30 U: Uniq= H: Handlers=event22 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/input31 U: Uniq= H: Handlers=event23 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/input32 U: Uniq= H: Handlers=event24 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0003 Vendor=0572 Product=180a Version=0111 N: Name="HP HP Dock Audio" P: Phys=usb-0000:08:00.0-2/input3 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-2/7-2:1.3/0003:0572:180A.000E/input/input47 U: Uniq=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF H: Handlers=kbd event28 B: PROP=0 B: EV=13 B: KEY=3 0 0 e000000000000 0 B: MSC=10

I: Bus=0003 Vendor=1b1c Product=1b15 Version=0111 N: Name="Corsair Corsair STRAFE Gaming Keyboard" P: Phys=usb-0000:08:00.0-1.4/input0 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-1/7-1.4/7-1.4:1.0/0003:1B1C:1B15.000F/input/input48 U: Uniq=1102002CAEBD1844561A8D57F5001947 H: Handlers=sysrq kbd event29 leds B: PROP=0 B: EV=120013 B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe B: MSC=10 B: LED=7

I: Bus=0003 Vendor=1b1c Product=1b15 Version=0111 N: Name="Corsair Corsair STRAFE Gaming Keyboard" P: Phys=usb-0000:08:00.0-1.4/input1 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-1/7-1.4/7-1.4:1.1/0003:1B1C:1B15.0010/input/input49 U: Uniq=1102002CAEBD1844561A8D57F5001947 H: Handlers=sysrq kbd event30 B: PROP=0 B: EV=100013 B: KEY=1000000000007 ff800000000007ff febeffdfffefffff fffffffffffffffe B: MSC=10

I: Bus=0003 Vendor=1b1c Product=1b15 Version=0111 N: Name="Corsair Corsair STRAFE Gaming Keyboard Consumer Control" P: Phys=usb-0000:08:00.0-1.4/input1 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-1/7-1.4/7-1.4:1.1/0003:1B1C:1B15.0010/input/input50 U: Uniq=1102002CAEBD1844561A8D57F5001947 H: Handlers=kbd event31 B: PROP=0 B: EV=1f B: KEY=3f000301ff 0 0 483ffff17aff32d bfd4444600000000 1 130ff38b17c000 677bfad9415fed 19ed68000004400 10000002 B: REL=1040 B: ABS=100000000 B: MSC=10

I: Bus=0003 Vendor=1b1c Product=1b15 Version=0111 N: Name="Corsair Corsair STRAFE Gaming Keyboard" P: Phys=usb-0000:08:00.0-1.4/input1 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-1/7-1.4/7-1.4:1.1/0003:1B1C:1B15.0010/input/input51 U: Uniq=1102002CAEBD1844561A8D57F5001947 H: Handlers=event256 B: PROP=0 B: EV=9 B: ABS=10000000000

I: Bus=0003 Vendor=1b1c Product=1b15 Version=0111 N: Name="Corsair Corsair STRAFE Gaming Keyboard" P: Phys=usb-0000:08:00.0-1.4/input1 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-1/7-1.4/7-1.4:1.1/0003:1B1C:1B15.0010/input/input52 U: Uniq=1102002CAEBD1844561A8D57F5001947 H: Handlers=event257 B: PROP=0 B: EV=9 B: ABS=10000000000

I: Bus=0003 Vendor=1038 Product=1710 Version=0111 N: Name="SteelSeries SteelSeries Rival 300 Gaming Mouse" P: Phys=usb-0000:08:00.0-1.2/input1 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-1/7-1.2/7-1.2:1.1/0003:1038:1710.0018/input/input60 U: Uniq= H: Handlers=mouse3 event25 B: PROP=0 B: EV=1f B: KEY=ff0000 0 0 0 0 B: REL=903 B: ABS=10000000000 B: MSC=10

I: Bus=0003 Vendor=1038 Product=1710 Version=0111 N: Name="SteelSeries SteelSeries Rival 300 Gaming Mouse Keyboard" P: Phys=usb-0000:08:00.0-1.2/input2 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-1/7-1.2/7-1.2:1.2/0003:1038:1710.0019/input/input61 U: Uniq= H: Handlers=sysrq kbd event26 B: PROP=0 B: EV=100013 B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe B: MSC=10

I: Bus=0003 Vendor=1038 Product=1710 Version=0111 N: Name="SteelSeries SteelSeries Rival 300 Gaming Mouse Consumer Control" P: Phys=usb-0000:08:00.0-1.2/input2 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/0000:03:00.0/0000:04:01.0/0000:06:00.0/0000:07:00.0/0000:08:00.0/usb7/7-1/7-1.2/7-1.2:1.2/0003:1038:1710.0019/input/input62 U: Uniq= H: Handlers=kbd event27 B: PROP=0 B: EV=1f B: KEY=3f000301ff 0 0 483ffff17aff32d bfd4444600000000 1 130ff38b17c000 677bfad9415fed 19ed68000004400 10000002 B: REL=1040 B: ABS=100000000 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)] ⎜ ↳ Razer Razer Blade id=12 [slave pointer (2)] ⎜ ↳ Razer Razer Blade id=13 [slave pointer (2)] ⎜ ↳ 1A582004:00 06CB:CD73 Mouse id=14 [slave pointer (2)] ⎜ ↳ Corsair Corsair STRAFE Gaming Keyboard Consumer Control id=18 [slave pointer (2)] ⎜ ↳ SteelSeries SteelSeries Rival 300 Gaming Mouse Consumer Control id=21 [slave pointer (2)] ⎜ ↳ SteelSeries SteelSeries Rival 300 Gaming Mouse id=25 [slave pointer (2)] ⎜ ↳ 1A582004:00 06CB:CD73 Touchpad id=15 [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)] ↳ Video Bus id=8 [slave keyboard (3)] ↳ Power Button id=9 [slave keyboard (3)] ↳ USB Camera: USB Camera id=10 [slave keyboard (3)] ↳ Razer Razer Blade id=11 [slave keyboard (3)] ↳ Razer Razer Blade id=16 [slave keyboard (3)] ↳ HP HP Dock Audio id=17 [slave keyboard (3)] ↳ Corsair Corsair STRAFE Gaming Keyboard Consumer Control id=19 [slave keyboard (3)] ↳ Corsair Corsair STRAFE Gaming Keyboard id=20 [slave keyboard (3)] ↳ Corsair Corsair STRAFE Gaming Keyboard id=23 [slave keyboard (3)] ↳ SteelSeries SteelSeries Rival 300 Gaming Mouse Consumer Control id=22 [slave keyboard (3)] ↳ SteelSeries SteelSeries Rival 300 Gaming Mouse Keyboard id=24 [slave keyboard (3)]



- Log file (you can enable logging within the extension settings, "Debug" tab)  
  Please upload the log file `$HOME/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/touchpad-indicator.log`