askmrsinh / touchpad-indicator

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

Doesn't work in GNOME-Shell 3.34.1 #38

Closed antosamalona closed 4 years ago

antosamalona commented 4 years ago

Why is it not working on GNOME-Shell 3.34.1?

askmrsinh commented 4 years ago

It's not supposed yet.

antosamalona commented 4 years ago

Is it still development?

askmrsinh commented 4 years ago

What's the error that you are getting? Some logs would be nice too. I haven't started work on the new version yet. But you are welcome to make a pull request.

antosamalona commented 4 years ago

It doesn't work in my gnome v 3.34

askmrsinh commented 4 years ago

Understood. Please try to follow this link and report back the error messages.

Golvanig commented 4 years ago

Hello, Here is the information from my linux instance:

With "latest Debian bullseye" and gnome 3.34.1.

Thanks for your very convenient tool :)

askmrsinh commented 4 years ago

Thank you. However, I am unable to observe these errors in my setup. Please make sure that you are using the current master branch and not the one available on extensions.gnome.org.

mdugas commented 4 years ago

@user501254 According to lookingglass comp[1] is undefined. I'm also running gnome 3.34.1 (on manjaro however)

image

Also by opening the properties of the extension in gnome tweaks, we can find this stack trace.

TypeError: comp[1] is undefined

Stack trace:
  _listPointingDevices@/home/kronus/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:60:13
  _init@/home/kronus/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:42:32
  XInput@/home/kronus/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/xinput.js:37:9
  TouchpadIndicatorSettings@/home/kronus/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/prefs.js:44:22
  buildPrefsWidget@/home/kronus/.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
mdugas commented 4 years ago

After looking at the source, I found that xinput is a required software package. On Manjaro, it isn't installed by default.

@Golvanig you can try installing the package with apt-get install xinput and reload gnome (alt+f2, type r and press enter) to see if the extension loads. For those following a trail to this and use Manjaro, use pacman -S xorg-xinput

jankatins commented 4 years ago

This is left in my systemd journal if I deinstall and then install touchpad indicator (debian unstable, just freshly updated):

Usage of object.actor is deprecated for TouchpadIndicator.TouchpadIndicator
get@resource:///org/gnome/shell/ui/environment.js:249:29
_init@/home/js/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/extension.js:274:9
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
enable@/home/js/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/extension.js:923:25
_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:131:13
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:263:21
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:232:17
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:99:13

JS ERROR: Extension touchpad-indicator@orangeshirt: Error: GSettings key first-time not found in schema org.gnome.shell.extensions.touchpad-indicator
_checkKey@resource:///org/gnome/gjs/modules/overrides/Gio.js:563:23
_init/createCheckedMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:528:13
_loadConfig@/home/js/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/extension.js:387:32
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_init@/home/js/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/extension.js:278:9
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
enable@/home/js/.local/share/gnome-shell/extensions/touchpad-indicator@orangeshirt/extension.js:923:25
_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:131:13
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:263:21
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:232:17
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:99:13
askmrsinh commented 4 years ago

The extension should work on Gnome 3.34 if it was working on Gnome 3.32.

@mdugas is right, xinput is required for the extension to function. Try running xinput --list and see if you get any output. Also what's the version of the extension in use here?

antosamalona commented 4 years ago

It works after I installed xinput. Thank you!