askmrsinh / touchpad-indicator Goto Github PK
View Code? Open in Web Editor NEWTouchpad management GNOME Shell Extension.
Home Page: https://extensions.gnome.org/extension/131/touchpad-indicator/
License: GNU General Public License v2.0
Touchpad management GNOME Shell Extension.
Home Page: https://extensions.gnome.org/extension/131/touchpad-indicator/
License: GNU General Public License v2.0
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.
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
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.
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
Why is it not working on GNOME-Shell 3.34.1?
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
Screenshots (if required, add screenshots to help explain your problem)
Mandatory system details (please complete/update the following information)
Optional details (mandatory if you are reporting issues with device detection, switch functionality)
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
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)]
Given this fork has the more recent commits, I assume it's more active and issues should be reported here? I reported the following in the other orangeshirt repo: Logging loop floods syslog
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)
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.
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
On Thinkpads I'd like to be able to occasionally use touchpad even when I mostly use trackpoint
After installing unstable version for 3.32 I have the same issue: Error.
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 !!
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)]
Probably releated to: orangeshirt/gnome-shell-extension-touchpad-indicator#43
When using the default Switch Method, the touchpad is not going to be disabled. On the other hand, using Synclient
or XInput
worked without problem.
(I'm using Antergos, with Gnome 3.20)
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!
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. :)
Hope to add hot key to quickly set up,
Let users define their own shortcut keys and control the opening of the touchpad!
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
Screenshots
Mandatory system details
touchpad-indicator.log
Optional details
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!
$ 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
Installed the latest version from extensions.gnome.org. Got this error on log:
gnome-software[3453]: touchpad-indicator_orangeshirt has error: Error: Expected type utf8 for Argument 'domain' but got type 'undefined'
Ubuntu 19.04
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
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?
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.
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.
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
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.
TouchpadIndicator-extensions.gnome.org-v32 is tagged but not visible in https://extensions.gnome.org/extension/131/touchpad-indicator/
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
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.
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
Screenshots (if required, add screenshots to help explain your problem)
Mandatory system details (please complete/update the following information)
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.
Very minor issue, but since I'm here I'll report it: on the About
tab, the Webpage
link goes to https://www.ashessin.com/TouchpadIndicator/, which is a 404. I imagine it should be this github page?
When disconnecting a bluetooth mouse (Logitech Anywhere 2s) Touchpad Indicator does not snap back to the touchpad mouse.
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();
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?
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()
Extension does not load properly after login. In Looking Glass I get the error message "Error: No property 'icon_size' in property list (or its value was undefined)". Reloading Gnome Shell brings the extension back on.
Gnome-shell 3.20.2-3 on Debian Testing
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
Operational system: Ubuntu 20.4 LTS
Gnome Shell version: 3.36.2
Display server: x11
Switching method: GSetting
Installation source: gnome shell extensions
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
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:
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.
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.
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
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.
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
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)
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:
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.
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.
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
Please add support for Lenovo X1 2018 touch screen:
XInput identifies touch screen as "Raydium Corporation Raydium Touch System".
I suggest to add 'touch system' to lib.js const TOUCHSCREENS:
https://github.com/user501254/TouchpadIndicator/blob/de79bd556b2ea520bdbb6d032a26f916987f9c3e/lib.js#L60
const TOUCHSCREENS = Array('touchscreen', 'maxtouch', 'touch digitizer', 'touch system');
Thanks
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.