GithubHelp home page GithubHelp logo

askmrsinh / touchpad-indicator Goto Github PK

View Code? Open in Web Editor NEW
83.0 9.0 20.0 1.33 MB

Touchpad management GNOME Shell Extension.

Home Page: https://extensions.gnome.org/extension/131/touchpad-indicator/

License: GNU General Public License v2.0

JavaScript 94.81% Shell 1.92% Makefile 3.27%
gnome touchpad touchpad-indicator touchpad-management-gnome shell-extension touchscreen pointing-device xinput

touchpad-indicator's Introduction

TouchpadIndicator

Touchpad management GNOME Shell Extension.

Automatically disable other pointing devices when an external mouse is plugged in.
Optionally, switch the touchpad, trackpoint, fingertouch, touchscreen or a pen device on and off easily from the top panel.

Touchpad Indicator Screenshots

Installation

From GNOME Shell Extension Website (recommended)

  1. Visit https://extensions.gnome.org/extension/131/touchpad-indicator/ in Firefox browser.
  2. Click on the switch at right side to toggle it from OFF to ON.
  3. Accept any installation prompts.

From GitHub

  1. Open a terminal and run:
    rm -rf ~/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt;
    git clone --depth=1 "https://github.com/askmrsinh/TouchpadIndicator.git" ~/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt;
  2. Restart GNOME Shell by pressing Alt+F2, r, Enter or by Logging out and Logging in.
  3. Enable the extension in gnome-tweak-tool.

License

Touchpad Indicator GNOME Shell Extension is distributed under the terms of the GNU General Public License, version 2 (GPL-2.0).

touchpad-indicator's People

Contributors

askmrsinh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

touchpad-indicator's Issues

Auto disable touch pad after waking from suspension not working.

I am Arch Linux user with latest Gnome 3.24. The exact problem is whenever my laptop awakes from suspension extension does not detects that the mouse is already connected to my laptop. That's why it does not disables the touch pad.

Apart from this whenever the system reboots the extension works perfect.

Feature request: bluetooth mouse

I have a microsoft designer bluetooth mouse, and touchpad indicator doesnt register when i turn the mouse on and off. But it is listed in the "Exclude mouse device from autodetection" list. does anyone have similar problems with other bluetooth mouses?

ES6 Standard Warnings

Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'METHOD' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'TRACKPOINTS' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'SETTINGS_SCHEMA' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'TOUCHPAD_SETTINGS_SCHEMA' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'TOUCHPADS' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'StoragePath' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'FINGER_TOUCHES' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'TOUCHSCREENS' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'PENS' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Apr 04 14:33:21 ubuntu gnome-shell[1827]: Some code accessed the property 'OTHERS' on the module 'lib'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.

https://github.com/user501254/TouchpadIndicator/blob/6b9489d963137114d7122a390055f60eca987959/extension.js#L69-L87

Keyboard shortcut and sync with settings

Hi
Thank you for the extension.

Ubuntu 16.04, Gnome 3.18

When I disable touchpad from settings, no effect occurs in the extension.
I think some people (e.g. me) need a shortcut for disabling and enabling touchpad through the extension, in my case default shortcut (fn + f9) doesn't work at all.

Error loading extension

Describe the issue
The extension shows up with the error message in Tweaks: Error loading extension
When I open the setting the following error shows up there:

TypeError: this.pointingDevices.filter is not a function

Stack trace:
  _filterByType@/usr/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:171:64
  _populateDebugTab@/usr/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:181:32
  TouchpadIndicatorSettings@/usr/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:61:14
  buildPrefsWidget@/usr/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:242:20
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:222:19
  start@resource:///org/gnome/gjs/modules/script/package.js:206:5
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
  

Expected behavior
Extension loads properly.


Steps to reproduce the behavior

  1. Install extension

Screenshots (if required, add screenshots to help explain your problem)
Screenshot from 2020-07-06 10-43-22


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

  • Operating System: Pop!_OS 20.04 LTS
  • Touchpad Indicator extension version: 36
  • Gnome Shell version: GNOME Shell 3.36.2
  • Display server: X11
  • Switching method: I have both xinput and synclient installed but since settings gives me an error I have no idea.
  • Installation source: GitHub repository

Optional details (mandatory if you are reporting issues with device detection, switch functionality)

  • Input Devices (ie. output for cat /proc/bus/input/devices)
I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
U: Uniq=
H: Handlers=event0 
B: PROP=0
B: EV=21
B: SW=1

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=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input3
U: Uniq=
H: Handlers=sysrq kbd event3 leds 
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

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

I: Bus=0018 Vendor=06cb Product=8251 Version=0100
N: Name="Synaptics TM3336-001"
P: Phys=i2c-SYNA2B33:00
S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-SYNA2B33:00/0018:06CB:8251.0001/input/input8
U: Uniq=
H: Handlers=mouse0 event6 
B: PROP=5
B: EV=b
B: KEY=e520 10000 0 0 0 0
B: ABS=6f3800001000003

I: Bus=0003 Vendor=093a Product=2510 Version=0111
N: Name="PixArt USB Optical Mouse"
P: Phys=usb-0000:00:14.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:093A:2510.0002/input/input9
U: Uniq=
H: Handlers=mouse1 event7 
B: PROP=0
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=903
B: MSC=10

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Ideapad extra buttons"
P: Phys=ideapad/input0
S: Sysfs=/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input10
U: Uniq=
H: Handlers=rfkill kbd event8 
B: PROP=0
B: EV=13
B: KEY=81000800100c03 4400000000300000 0 2
B: MSC=10

I: Bus=0003 Vendor=0bda Product=58ea Version=0008
N: Name="EasyCamera: EasyCamera"
P: Phys=usb-0000:00:14.0-8/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/input/input11
U: Uniq=
H: Handlers=kbd event9 
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

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/input12
U: Uniq=
H: Handlers=event10 
B: PROP=0
B: EV=21
B: SW=10

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/input13
U: Uniq=
H: Handlers=event11 
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/input14
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 Intel PCH HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input15
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 HDMI/DP,pcm=8"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input16
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=9"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input17
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=10"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input18
U: Uniq=
H: Handlers=event16 
B: PROP=0
B: EV=21
B: SW=140
  • 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)]
⎜   ↳ PixArt USB Optical Mouse                	id=10	[slave  pointer  (2)]
⎜   ↳ Synaptics TM3336-001                    	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)]
    ↳ Video Bus                               	id=8	[slave  keyboard (3)]
    ↳ Power Button                            	id=9	[slave  keyboard (3)]
    ↳ EasyCamera: EasyCamera                  	id=11	[slave  keyboard (3)]
    ↳ Ideapad extra buttons                   	id=13	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=14	[slave  keyboard (3)]
  • Log file (you can enable logging within the extension settings, "Debug" tab)
    Settings does not work.

Disable the touchpad based on mouse movement

I'd like to have it that the touchpad gets disabled automatically if I move my mouse until it hasn't been used for a while, say a minute or so.

The default solution doesn't work for me since I use a laptop with a wireless mouse. Even if I don't use my mouse, the dongle is always plugged in, keeping my touchpad disabled.

Touchpad works, but takes about 4 mins to activate on first login

the touchpad works great when I have my mouse plugged in and then unplug it. The touchpadindicator automatically swtiches to to touchpad with no issues. The only problem I'm having is when I don't have my mouse plugged in on startup. The touchpad takes about 4 mins to start working. I'm not sure why it does this, but anytime I don't start up my laptop with my mouse plugged in, The touchpad takes a long time to start working. Can someone help me with this? I have Kali Linux Rolling and a Acer Aspire E15 laptop.

Please add option for shortcut On Off

My mouse is wireless, and usb dongle is always plugged, so auto detection will fail. Please add option for shortcut to turn on/off touchpad manually

thanks

Language is not localized

Hi!
I noticed that your extention has the .mo and .po files for my language (italian), but still the extension uses english language.
I opened the .po file and the strings are effectively translated.
I use other extensions and they're correctly localized.

Can you check this, please?
Thanks. :)

Old behavior warning: array.toString()

I've seen this warning in the gnome shell log:

gnome-shell[1148]: Some code called array.toString() on a Uint8Array instance. Previously this would have interpreted the bytes of the array as a string, but that is nonstandard. In the future this will return the bytes as comma-separated digits. For the time being, the old behavior has been preserved, but please fix your code anyway to explicitly call ByteArray.toString(array).
                                                  (Note that array.toString() may have been called implicitly.)

this could be this solution, however I didn't check backwards-compatibility:
lib.js

line 146: let where = String.fromCharCode.apply(null, comp[1]).split("\n\n"),

xinput.js

line 63: lines = String.fromCharCode.apply(null, lines[1]).split('\n');
line 88: where = String.fromCharCode.apply(null, where).toLowerCase();

Keyboard shortcut to enable/disable

Hi,
it would be great to enable and disable the touchpad with a keyboard shortcut. I don't use a mouse in my notebook and I keep touching the touchpad while typing.
I can't re-enable the touchpad without a mouse!

To enable and disable is a easy way would be a great feature! :-D

not sure if related to #12

Icon - Top Bar Panel

Hello,

Icon on Top Bar Panel is not hiding when switch is on or off of course only when the touchpad is disabled. (icon with X)

Regards,
Piotr.

Trackpad not re-activating when using a touchscreen

My laptop has a built-in touch screen (Lenovo Yoga C930) and while connecting a mouse disabled the trackpad, disconnecting the mouse didn't reactivate the pad. According the the debug logs I posted on https://pastebin.com/eEgx5BtU the number of mouse detected when disconnecting my mouse is 2 (line 30) and when connecting it is 3 (line 6).

According to the following code block, one of the trigger for "no mouse" is the mouseCount being 0 and mouse present is mouseCount being different than 0. https://github.com/user501254/TouchpadIndicator/blob/783300252b6e04a9b694ceb17158796086616cf5/extension.js#L548-L560

I can't confirm if this also affects non-touchscreen devices or if other touchscreen devices have the same behavior.

I wonder if the following changes would be an appropriate solution for this:

  1. add a button in the preferences to "calibrate" the extension by reading the mouseCount while no external mouse are connected and adding the value as a property to the extension.

  2. get the code block to use that property instead of the hardcoded 0, plus change the mouse presence detection to be strictly greater than the property defined above / when mouse disconnected, the value being lower or equal than the property.

No settings at Ubuntu 20.04

The settings of extension touchpad-indicator@orangeshirt had an error:

ReferenceError: global is not defined

Stack trace:

logger@/home/ralf/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/lib.js:109:5
executeCmdSync@/home/ralf/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/lib.js:131:9
_isUsable@/home/ralf/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/synclient.js:60:24
_init@/home/ralf/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/synclient.js:45:30
Synclient@/home/ralf/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/synclient.js:40:14
TouchpadIndicatorSettings@/home/ralf/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:43:25
buildPrefsWidget@/home/ralf/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:242:20
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Show/hide switch icon not working

Hello! Thumbs up for this extension! Very nice work!
In extension settings the Show Icon switch does nothing.


Expected behavior
Clicking the switch, the icon indicator in top panel disappears.


Steps to reproduce the behavior

  1. Right click on TouchpadIndicator icon on top panel.
  2. Click on 'Indicator Preferences'.
  3. Left click on switch 'Show Icon' to disable panel icon.
  4. Nothing happens!

Screenshots


Mandatory system details
touchpad-indicator.log


Optional details

  • Input Devices
    I: Bus=0019 Vendor=0000 Product=0000 Version=0000
    N: Name="Ideapad extra buttons"
    P: Phys=ideapad/input0
    S: Sysfs=/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input6
    U: Uniq=
    H: Handlers=kbd event5 rfkill
    B: PROP=0
    B: EV=13
    B: KEY=81000800100c03 4400000000300000 0 2
    B: MSC=10

I: Bus=0003 Vendor=045e Product=07fd Version=0111
N: Name="Microsoft Microsoft Nano Transceiver 1.1"
P: Phys=usb-0000:00:14.0-1/input2
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.2/0003:045E:07FD.0003/input/input21
U: Uniq=
H: Handlers=event20 mouse1
B: PROP=0
B: EV=17
B: KEY=1f0000 0 0 0 0
B: REL=903
B: MSC=10

  • X input devices

    ⎡ Virtual core pointer id=2 [master pointer (3)]
    ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
    ⎜ ↳ Microsoft Microsoft Nano Transceiver 1.1 Consumer Control id=10 [slave pointer (2)]
    ⎜ ↳ Microsoft Microsoft Nano Transceiver 1.1 id=13 [slave pointer (2)]
    ⎜ ↳ SynPS/2 Synaptics TouchPad id=17 [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)]
    ↳ Microsoft Microsoft Nano Transceiver 1.1 id=9 [slave keyboard (3)]
    ↳ Microsoft Microsoft Nano Transceiver 1.1 System Control id=11 [slave keyboard (3)]
    ↳ Microsoft Microsoft Nano Transceiver 1.1 id=12 [slave keyboard (3)]
    ↳ Lenovo EasyCamera: Lenovo EasyC id=14 [slave keyboard (3)]
    ↳ Ideapad extra buttons id=15 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=16 [slave keyboard (3)]


Additional context
From a small investigation i made in the extensions files, I found out, that inside the file 'extensions.js' in lines:
285 // Show panel icon if show-panelicon is true or at least one of the
286 // device switches is in the off position.
287 this.visible = alwaysShow || items.some(s => s.state === false)
if i change "=> s.state === false" to "=> s.state === true"
the function is normal again.
I hope this helped.

Thank you again for this great extension!

Gnome 3.32

After installing unstable version for 3.32 I have the same issue: Error.

Touchscreen not detected (Ubuntu 17.10)

Hi,

I am using Dell XPS 13. Earlier I was using ubuntu and the indicator worked fine. After switching to Ubuntu 17.10, the indicator is not detecting touchscreen.

Error started when installing an extension

The settings of extension touchpad-indicator@orangeshirt had an error:

TypeError: this.pointingDevices.filter is not a function

Stack trace:

_filterByType@/home/thiagolopes/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:171:64
_populateDebugTab@/home/thiagolopes/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:181:32
TouchpadIndicatorSettings@/home/thiagolopes/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:61:14
buildPrefsWidget@/home/thiagolopes/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:242:20
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Pre-check for xinput

On Debian Testing with GNOME Shell 3.34.4

TypeError: comp[1] is undefined
Stack trace:
  _listPointingDevices@/home/chris/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:60:13
  _init@/home/chris/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:42:32
  XInput@/home/chris/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:37:9
  TouchpadIndicatorSettings@/home/chris/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:44:22
  buildPrefsWidget@/home/chris/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:239:20
  _showPrefs@resource:///org/gnome/shell/extensionPrefs/main.js:57:22
  _extensionsLoaded@resource:///org/gnome/shell/extensionPrefs/main.js:320:13
  _scanExtensions/<@resource:///org/gnome/shell/extensionPrefs/main.js:298:13
  asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:132:13
  main@resource:///org/gnome/shell/extensionPrefs/main.js:707:5
  @<main>:1:43

Not working on Wayland

Im not sure this is the right place for this, but my wifes new laptop runs F25 on Wayland and the touchpad indicator didnt seem to work - however logging into a Xwindow session it works perfectly

As I say, I dont know if this is the place to report it - so please close this if its the wrong place

PS when it worked under X - my wife was VERY happy - thanks for this extension

When I active, can't login to ubuntu on wayland

Describe the issue
A clear and concise description of what the issue is.
When I active extension in Xorg, then I can't log in to Ubuntu Wayland.
I disabled and enabled all of my extensions one by one to catch this.


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

  • Operating System: Ubuntu 20.04 LTS
  • Touchpad Indicator extension version: 35
  • Gnome Shell version: GNOME Shell 3.36.2
  • Display server: X11 or Wayland
  • Switching method: GSetting or Xinput or Synclient
  • Installation source: extensions.gnome.org or GitHub repository

Shortcut key to disable/enable

Is your feature request related to a problem? Please describe.
Usually the extension is extremely useful, but it's a bit of an annoyance if the touchpad is auto-disabled when the mouse is unavailable. E.g. bluetooth mouse somewhere in range but misplaced, or taking a while to connect.

Describe the solution you'd like
Ideally I'd like some way of re-enabling the touchpad manually. The only way I can think of is with a key combination.

Autoswitch delay on waking up from sleep state

After long period of screen power saving screen turn off, the autoswitch will not switch off the touchpad. both touchpad and mouse is on.

This behaviour only happened a more than 30 mins of screen, anything less it will autoswitch,


Expected behavior
when i come back to use the computer (relogin) the touchpad will autoswitch off. To make it work again i have to turn off and on my mouse.


Steps to reproduce the behavior

  1. log in to Ubuntu 20.0
  2. let the computer idle for the specific time set, the screen will turn off
  3. wait for an hour
  4. relogin it

Screenshots (if required, add screenshots to help explain your problem)
Screenshot from 2020-05-27 00-43-57


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

  • Operating System: Ubuntu 20.04 desktop
  • Touchpad Indicator extension version: follow the installation for gnome 3.36
  • Gnome Shell version: GNOME Shell 3.36
  • Display server: X11
  • Switching method: GSetting or Xinput (had tried both have the same behaviour)
  • Installation source: GitHub repository

Optional details (mandatory if you are reporting issues with device detection, switch functionality)

  • Input Devices (ie. output for cat /proc/bus/input/devices)

    I: Bus=0005 Vendor=046d Product=b01b Version=0011
    N: Name="M585/M590 Mouse"
    P: Phys=5c:80:b6:44:33:aa
    S: Sysfs=/devices/virtual/misc/uhid/0005:046D:B01B.0003/input/input31
    U: Uniq=ea:d5:7d:61:b9:d4
    H: Handlers=mouse1 event18 
    B: PROP=0
    B: EV=17
    B: KEY=ffff0000 0 0 0 0
    B: REL=1943
    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)]
    ⎜   ↳ SynPS/2 Synaptics TouchPad              	id=13	[slave  pointer  (2)]
    ⎜   ↳ M585/M590 Mouse                         	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)]
         ↳ Sleep Button                            	id=10	[slave  keyboard (3)]
         ↳ BisonCam, NB Pro: BisonCam, NB          	id=11	[slave  keyboard (3)]
         ↳ AT Translated Set 2 keyboard            	id=12	[slave  keyboard (3)]
         ↳ M585/M590 Keyboard                      	id=14	[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

    2020-05-26T16:55:34.451Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event17 4
    2020-05-26T16:55:34.453Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event17 2
    2020-05-26T16:55:34.478Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse1 4
    2020-05-26T16:55:34.480Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse1 2
    2020-05-26T16:55:34.480Z TouchpadIndicator._onMouseDevicePlugged(2)
    2020-05-26T16:55:34.543Z {"name":"SynPS/2 Synaptics TouchPad","phys":"isa0060/serio2/input0","type":"touchpad"}
    2020-05-26T16:55:34.545Z TouchpadIndicator._onMouseDevicePlugged(2) - mouseDevices are []
    2020-05-26T16:55:34.545Z TouchpadIndicator._onMouseDevicePlugged(2) - mouseCount is 0
    2020-05-26T16:55:34.547Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event18 4
    2020-05-26T16:55:34.547Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event18 2
    2020-05-26T16:55:36.127Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event17 3
    2020-05-26T16:55:36.131Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event17 1
    2020-05-26T16:55:36.133Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event17 4
    2020-05-26T16:55:36.134Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse1 3
    2020-05-26T16:55:36.135Z TouchpadIndicator._onMouseDevicePlugged(3)
    2020-05-26T16:55:36.178Z {"name":"SynPS/2 Synaptics TouchPad","phys":"isa0060/serio2/input0","type":"touchpad"}
    2020-05-26T16:55:36.179Z {"name":"M585/M590 Mouse","phys":"5c:80:b6:44:33:aa","type":"mouse"}
    2020-05-26T16:55:36.180Z TouchpadIndicator._onMouseDevicePlugged(3) - mouseDevices are [{"name":"M585/M590 Mouse","phys":"5c:80:b6:44:33:aa","type":"mouse"}]
    2020-05-26T16:55:36.180Z TouchpadIndicator._onMouseDevicePlugged(3) - mouseCount is 1
    2020-05-26T16:55:36.181Z TouchpadIndicator._logEKeyChange(): Extension `touchpad-enabled` Key Changed
    2020-05-26T16:55:36.182Z TouchpadIndicator._queueSyncPointingDevice(touchpad-enabled)
    2020-05-26T16:55:36.183Z TouchpadIndicator._checkGconfSync(false, enabled)
    2020-05-26T16:55:36.183Z TouchpadIndicator._queueSyncPointingDevice(...): KEY_TPD_ENABLED
    2020-05-26T16:55:36.183Z TouchpadIndicator._syncTouchpad(false, enabled, false)
    2020-05-26T16:55:36.184Z TouchpadIndicator._syncTouchpad(...): Lib.METHOD.GSETTINGS
    2020-05-26T16:55:36.184Z TouchpadIndicator._onsetTouchpadEnable(false, enabled)
    2020-05-26T16:55:36.185Z TouchpadIndicator._onsetTouchpadEnable(...): set `send-events` to disabled
    2020-05-26T16:55:36.186Z TouchpadIndicator._logSKeyChange(): System `send-events` Key Changed
    2020-05-26T16:55:36.186Z TouchpadIndicator._queueSyncPointingDevice([object instance wrapper GIName:Gio.Settings jsobj@0x192e1ba54d40 native@0x55dc5f4e07a0])
    2020-05-26T16:55:36.187Z TouchpadIndicator._checkGconfSync(false, disabled)
    2020-05-26T16:55:36.187Z Synclient._switch: false
    2020-05-26T16:55:36.188Z TouchpadIndicator._queueSyncPointingDevice(...) - Already in sync.
    2020-05-26T16:55:36.401Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse1 1
    2020-05-26T16:55:36.401Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse1 4
    2020-05-26T16:55:36.402Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event18 3
    2020-05-26T16:55:36.402Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event18 1
    2020-05-26T16:55:36.402Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event18 4
    2020-05-26T16:55:36.403Z TouchpadIndicator._onDevicePlugged(...): /dev/input/mouse1 4
    2020-05-26T16:55:36.403Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event17 4
    2020-05-26T16:55:36.403Z TouchpadIndicator._onDevicePlugged(...): /dev/input/event18 4
    

Additional context
Add any other context about the problem here.

GS 3.32 - TypeError: PopupMenu.PopupSwitchMenuItem.prototype._init is undefined

Hi, I'm testing lates version from GitHub on GS 3.32 on Arch Linux and I get the following error (as shown by looking-glass):

PopupMenu.PopupSwitchMenuItem.prototype._init is undefined

Here are my debug info:

Versione di GNOME shell: 3.32.0
Versione di Touchpad Indicator: 32
Touchpad: SynPS/2 Synaptics TouchPad | DLL075B:01 06CB:76AF Touchpad
Synclient: Non trovato o utilizzato nel sistema.
Xinput: Not found on your system.
Switch Method: Gconf

I'm on a Wayland session
Cheers

Can't turn on finger touch once it has been turned off

After disabling finger touch, I can't enable it again. The only way to make the touchpad work again is to remove the extension and reboot (or log out and log in). If I enable the extension it immediately disables finger touch.

As a work-around, I can uninstall the extension, log out and log back in, run "dconf reset -f "/org/gnome/shell/extensions/touchpad-indicator/"" to clear its settings, and install the extension again.

touchpad-indicator.log is empty, so I don't have any logging info I can send.

Maybe this will help

$ xinput
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Wacom Co.,Ltd. Pen and multitouch sensor Finger touch     id=9    [slave  pointer  (2)]
⎜   ↳ Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus       id=10   [slave  pointer  (2)]
⎜   ↳ Elantech PS/2 TrackPoint                  id=13   [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=14   [slave  pointer  (2)]
⎜   ↳ Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser       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)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera                         id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=15   [slave  keyboard (3)]

Wrong working on Kali Linux 2.0 (based Debian distro)

hello , when i don't plug mouse that touchpad is auto disabled ? if mouse is plug -> touchpad auto disable (work) . But unplug it's still disabled and OS starup -> touchpad auto disabled . I'm tried xinput, gconf, sysclient and .... ?? Please fix it

Thank you !!

Automatic switching of touchpad doesn't work

I have a Lenovo Thinkpad T460 and several weeks (maybe even a couple of months) ago the automatic switching off of touchpad ceased working. The mouse is detected (notification shown and icon changed) but the touchpad still works.

I am on debian testing. I can give you some more info if you tell me what you need.

Extension doesn't work with 3.34.5

Hi:

I'm using Fedora 31 + GNOME 3.34.6 and GNOME Shell 3.34.5 and with xinput installed and X11 session:

gnome-shell-3.34.5-1.fc31.x86_64
xorg-x11-server-utils-7.7-32.fc31.x86_64

The extension doesn't work any more.

I've followed your instructions for installing the last version from sources:

rm -rf ~/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt;
git clone --depth=1 "https://github.com/user501254/TouchpadIndicator.git" ~/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt;

After relauching GNOME Shell trying to activate the extension gives an error. The log error provided by the Extensions application is:

TypeError: this.pointingDevices.filter is not a function

Stack trace:
  _filterByType@/home/olea/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:171:43
  _populateDebugTab@/home/olea/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:181:25
  TouchpadIndicatorSettings@/home/olea/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:61:9
  buildPrefsWidget@/home/olea/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:242:20
  _showPrefs@resource:///org/gnome/shell/extensionPrefs/main.js:57:22
  vfunc_command_line@resource:///org/gnome/shell/extensionPrefs/main.js:351:23
  main@resource:///org/gnome/shell/extensionPrefs/main.js:707:5
  @<main>:1:43
  

Now I have permanently disabled touchpad and trackpad and only can work with a mouse. Previously it worked fine, probably broke after updating some application but I can't provide the detail.

I would be happy to just recover the trackpad/touchpad use without the extension but I don't know how. I tried this but with no success:

$ xinput list|grep Synaptics
⎜ ↳ Synaptics TM2937-001 id=13 [slave pointer (2)]
$ xinput set-prop 13 "Device Enabled" 1


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

  • Operating System: Fedora 31 (Workstation Edition)
  • Touchpad Indicator extension version: git master version at 20200511
  • Gnome Shell version: GNOME Shell 3.34.5
  • Display server: X11
  • Switching method: no idea
  • Installation source: github sources

  • 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)]
⎜   ↳ Synaptics TM2937-001                    	id=13	[slave  pointer  (2)]
⎜   ↳ Logitech Wireless Mouse                 	id=9	[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)]
    ↳ Integrated Camera: Integrated C         	id=10	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=11	[slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                  	id=12	[slave  keyboard (3)]

Thanks in advance.

Error loading extension

Trying to install the extension from the Gnome Extensions web site failed. The system is Manjaro 20 with Gnome 3.36.

The settings of extension touchpad-indicator@orangeshirt had an error:

TypeError: this.pointingDevices.filter is not a function

Stack trace:

_filterByType@/home/wendell/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:171:64
_populateDebugTab@/home/wendell/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:181:32
TouchpadIndicatorSettings@/home/wendell/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:61:14
buildPrefsWidget@/home/wendell/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:242:20
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Error Extension install Gnome Extensions

Good morning, when installing extension through gnome extension presents the following error.

The settings of extension touchpad-indicator@orangeshirt had an error:

TypeError: this.pointingDevices.filter is not a function

Stack trace:

_filterByType@/home/thiagolopes/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:171:64
_populateDebugTab@/home/thiagolopes/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:181:32
TouchpadIndicatorSettings@/home/thiagolopes/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:61:14
buildPrefsWidget@/home/thiagolopes/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:242:20
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Captura de tela de 2020-06-25 10-38-19

Operational system: Ubuntu 20.4 LTS
Gnome Shell version: 3.36.2
Display server: x11
Switching method: GSetting
Installation source: gnome shell extensions

Touchscreen not detected

$ cat /proc/bus/input/devices | grep -i touch -A8 -E1
I: Bus=0003 Vendor=04f3 Product=21d5 Version=0110
N: Name="ELAN Touchscreen"
P: Phys=usb-0000:00:14.0-9/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:04F3:21D5.0003/input/input4
U: Uniq=
H: Handlers=event3 mouse2 
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0
B: ABS=3273800000000003
--
I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input15
U: Uniq=
H: Handlers=event12 mouse3 
B: PROP=5
B: EV=b
B: KEY=e520 10000 0 0 0 0
B: ABS=660800011000003
--
I: Bus=0018 Vendor=06cb Product=7a13 Version=0100
N: Name="DLL06E4:01 06CB:7A13 Touchpad"
P: Phys=i2c-DLL06E4:01
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-17/i2c-DLL06E4:01/0018:06CB:7A13.0006/input/input19
U: Uniq=
H: Handlers=event14 mouse4 
B: PROP=5
B: EV=b
B: KEY=e520 10000 0 0 0 0
B: ABS=260800000000003

Looking into the debug window, only the touchpads are detected:

Gnome Shell Version: 3.24.3
Touchpad Indicator Version: 28
Touchpad(s): SynPS/2 Synaptics TouchPad | DLL06E4:01 06CB:7A13 Touchpad
Synclient: Nicht gefunden oder nicht auf dem System installiert.
Xinput: Ist installiert.
Umschaltmethode: Gconf

Auto activation fails on macbook

The touchpad is never auto activated after the mouse is unplugged.
This computer does not have a touchscreen, so you're stuck without a pointing device.

Here is the log of the mouse being unplugged / plugged in:
touchpad-indicator.log
mouseCount is 1 after mouse is unplugged.

Here is /proc/bus/input/devices with the mouse plugged in:
devices.txt

Gnome 3.34.1 on Ubuntu 19.10

Not working with dell inspiron-15-3542 touch pad in Fedora 26

in Fedora 25, system setting can disable my touch pad,but after i update to Fedora 26,it can't disable my touch pad very well. when i disabled my touch pad,and reopen the gnome session,it will be enabled again, so i find this extension to help me disable it,but after i install this extension,every time i open this extension the touch pad will be enable,when i open other extension the touch pad will not be enable, and it can't find my touch pad in this extension either,i'm not sure this is a bug about the fedora 26 or this extension,my gnome version are 3.24.2,i have already use the Xinput.
this is the log file:
2017-08-16T11:38:44Z touchpadIndicatorButton._init(): Xinput is installed
2017-08-16T11:38:44Z touchpadIndicatorButton._onChangeIcon()
2017-08-16T11:38:44Z touchpadIndicatorButton._onMousePlugged()
2017-08-16T11:38:44Z Lib.list_mouses()
2017-08-16T11:38:44Z Lib.list_mouse_devices()
2017-08-16T11:38:44Z Lib.list_mouse_devices(): Device found: PixArt USB Optical Mouse
2017-08-16T11:38:44Z Lib.list_mouse_devices(): Device found: Synaptics s3203
2017-08-16T11:38:44Z Lib.list_mouses(): true,PixArt USB Optical Mouse,Synaptics s3203
2017-08-16T11:38:44Z Lib.list_mouses(): Mouse found: PixArt USB Optical Mouse
2017-08-16T11:38:44Z Lib.list_mouses(): Mouse found: Synaptics s3203
2017-08-16T11:38:44Z touchpadIndicatorButton._switch_touchpad(false)
2017-08-16T11:38:44Z touchpadIndicatorButton._touchpad_changed()
2017-08-16T11:38:44Z touchpadIndicatorButton._onChangeIcon()
2017-08-16T11:38:44Z touchpadIndicatorButton._touchpad_changed() - Error
2017-08-16T11:38:44Z touchpadIndicatorButton._touchpad_changed()
2017-08-16T11:38:44Z touchpadIndicatorButton._onChangeIcon()
2017-08-16T11:38:45Z touchpadIndicatorButton._onMousePlugged(Notification(true): 鼠标插入 - 触摸板 已禁用)
2017-08-16T11:58:13Z disable()
2017-08-16T11:58:13Z Synclient._cancel()

"global is not defined" error

Touchpad Indicator fails with:

ReferenceError: global is not defined

Stack trace:
  logger@/home/pkehl/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/lib.js:109:5
  executeCmdSync@/home/pkehl/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/lib.js:131:9
  _isUsable@/home/pkehl/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/synclient.js:60:24
  _init@/home/pkehl/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/synclient.js:45:30
  Synclient@/home/pkehl/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/synclient.js:40:14
  TouchpadIndicatorSettings@/home/pkehl/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:43:25
  buildPrefsWidget@/home/pkehl/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:242:20
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:222:19
  start@resource:///org/gnome/gjs/modules/script/package.js:206:5
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

I do have many other GNOME extensions, but I've turned them all off, I rebooted, and still the same error. That error shows up in "Extensions" application > locate "Touchpad Indicator" > wheel next to it:
image

Touchpad Indicator has always been failing for me since I've installed it at least a year ago. My system is current Manjaro, GNOME version 3.36.1, X11.

  • Operating System: Manjaro (current - Manjaro does not have a version, since it's a rolling release)

  • Touchpad Indicator extension version: 35

  • Gnome Shell version: GNOME Shell 3.36.1+31+ga6783692c-1 (the most recent that came with Manjaro, but the same problem exists for over a year)

  • Display server: X11

  • Switching method: GSetting or Xinput or Synclient - No idea. Can this be "gsettings-desktop-schemas 3.36.0-1"? Otherwise, if you need this, please elaborate.

  • Installation source: extensions.gnome.org

  • Input Devices (ie. output for cat /proc/bus/input/devices)

    I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
    N: Name="SynPS/2 Synaptics TouchPad"
    P: Phys=isa0060/serio1/input0
    S: Sysfs=/devices/platform/i8042/serio1/input/input32
    U: Uniq=
    H: Handlers=event18 mouse3 
    B: PROP=5
    B: EV=b
    B: KEY=e520 10000 0 0 0 0
    B: ABS=660800011000003
    
  • X input devices (ie. output for xinput list) - I have no xinput command

  • 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 - below and also attached
    touchpad-indicator.log

    2020-04-18T17:18:10.822Z Failed to execute child process “synclient” (No such file or directory)
    2020-04-18T17:18:10.853Z Failed to execute child process “xinput” (No such file or directory)
    2020-04-18T17:34:24.411Z {"name":"ELAN Touchscreen","phys":"usb-0000:00:14.0-4/input0","type":"touchscreen"}
    2020-04-18T17:34:24.413Z {"name":"ELAN Touchscreen","phys":"usb-0000:00:14.0-4/input0","type":"touchscreen"}
    2020-04-18T17:34:24.413Z {"name":"Logitech M185/M225","phys":"usb-0000:00:14.0-6/input1:1","type":"mouse"}
    2020-04-18T17:34:24.414Z {"name":"SynPS/2 Synaptics TouchPad","phys":"isa0060/serio1/input0","type":"touchpad"}
    2020-04-18T17:34:24.417Z Failed to execute child process “synclient” (No such file or directory)
    2020-04-18T17:34:24.424Z Failed to execute child process “xinput” (No such file or directory)
    2020-04-18T17:34:24.428Z Failed to execute child process “xinput” (No such file or directory)
    

Thank you in advance.

Display id in the ignore list

I have two Logitech Lightspeed receivers plugged into my laptop - one for the keyboard and one for the mouse - would it be possible to display the usb port location and id codes in the selection menu?

lsusb:
...
Bus 001 Device 004: ID 046d:c53d Logitech, Inc.
Bus 001 Device 003: ID 046d:c539 Logitech, Inc.
....

thank you

Doesn't disable touchscreen on load

While this extension works great for the touchpad and trackpoint, it features the option to disable touch screen. However, even though the touchscreen is disabled through the extension, it still works on start up. I have to turn it on and off to get it to disable. Is there a way to prohibit this behavior?

Feature request: wireless mouse on/off state detection

I have a wireless mouse (Logitech M325) and have the dongle permanently plugged in. Would it be possible to detect the mouse on/off state and use it to turn the touchpad on/off? Currently I have to pull the dongle out, turn off automatic touchpad disabling and put it back in when I am somewhere without the mouse...
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.