Touchpad Indicator Classic

by lusito

UUID: TouchpadIndicatorClassic@lusito.info
Score: 12
Last edited: 2 months ago
Last commit: 076c5a5a62da5c80a89bc47ef6ddc9ad665e4188



A port of the original Touchpad Indicator

40 Comments

-
1 year ago
Easy way: install aplet "command-launcher" set command "synclient TouchpadOff=1", you can create another instance of "command-launcher" with the command "synclient TouchpadOff=0" to turn it on
-
2 years ago
Also, as a temporary solution on Mint/Ubuntu, add this PPA and install touchpad-touchpad: ppa:atareao/atareao

It's not as well-integrated into Cinnamon, and it's got some minor flaws (like not always keeping the touchpad turned off after waking up from suspend). But at least it's something.
-
2 years ago
Well, since @Lusito hasn't made a comment here in about a year, anyone up to forking this applet? I tried to take a look at it, but with my severe lack of programming experience (haven't done any since the 90's), I'm just not up to the task nor do I have the time. But if someone who is up to it and is willing would like to jump in, this is definitely a needed thing. I also sent in a feature request to the Cinnamon Github (https://github.com/linuxmint/Cinnamon/issues/3721), because this is something that could (should?) be handled from the Cinnamon Mouse/Touchpad settings. No response there yet, either.
-
2 years ago
Same issue here. :(

glass.log shows:

error t=2014-12-09T14:34:14.366Z No JS module 'dbus' found in search path
trace t=2014-12-09T14:34:14.366Z
<----------------
@/home/daniel/.local/share/cinnamon/applets/TouchpadIndicatorClassic@lusito.info/applet.js:26
Extension.prototype._init@/usr/share/cinnamon/js/ui/extension.js:152
Extension@/usr/share/cinnamon/js/ui/extension.js:119
loadExtension@/usr/share/cinnamon/js/ui/extension.js:383
init@/usr/share/cinnamon/js/ui/appletManager.js:43
start@/usr/share/cinnamon/js/ui/main.js:433
@<main>:1
----------------&gt;
error t=2014-12-09T14:34:14.366Z [Applet "TouchpadIndicatorClassic@lusito.info"]: Error importing applet.js from TouchpadIndicatorClassic@lusito.info
error t=2014-12-09T14:34:14.366Z Could not load applet TouchpadIndicatorClassic@lusito.info

Please provide a fix for Cinnamint 2.4
-
2 years ago
Please update this applet
-
2 years ago
The reason this applet doesn't work in Cinnamon 2.4 is because cjs was replaced by gjs.
For more details, see http://segfault.linuxmint.com/2014/08/attention-applet-desklet-extension-developers/
-
2 years ago
Touchpad App does not work in Cinnamon 2.4. Can you kindly update. Tks.
-
2 years ago
Is this applet going to get updated to work with the newest Cinnamon version, or no? I really NEED this applet!
-
2 years ago
I agree with previous comment. After the update to Cinnamon 2.4 applet can't add to the panel. Please, fix this bug!
-
2 years ago
I love this applet! It's the only one that automatically disables the touchpad when my wireless mouse is plugged in, and disables it when it's unplugged. I use that feature ALL THE TIME! However, this isn't working with the new Cinnamon 2.4. Please make sure you update! I don't know what I'll do without this! :)
-
4 years ago
usb-Logitech_USB_Receiver is the external

http://pastebin.com/S5RA9tL6

Thanks!ยก!
-
4 years ago
Please ignore my last comment. I just needed to realize that you updated the applet itself. It works perfectly now; thanks!
-
4 years ago
I'm not sure that I understand. How do I mark my device as a trackpoint and not a mouse?
-
4 years ago
I had the "original" touchpad-indicator by elatareao, and in some way the shortcut was still registered to its command (besides I removed it and created yours). But now works! Great job, keep it on
-
4 years ago
That's weird, the icon changes for me when I use the dbus shortcut.
It does not change when I use the FN + Touchpad hotkey of my keyboard, since that works on a different level. Does the switch/checkbox in the applet menu reflect the changes ? If so, maybe your system doesn't have the icon required to show a disabled touchpad.
-
4 years ago
Sorry, the DBUS shortcut mentioned on the instructions
-
4 years ago
are you talking about the dbus shortcut or the shortcut that is supplied by your keyboard ?
-
4 years ago
This is exactly what I was looking for. The only "bug" I found is that, whenever you enable or disable the touchpad with the keyboard shortcut, the icon doesn't reflect the change. Maybe creating a python script that switch enable/disable and changes icon? Then it can be configured as the command for the keyboard shortcut.
-
4 years ago
Thanks for the data. It seems trackpoints count as mice to xinput, so I've added the possibility to mark a device as trackpoint. This should account for all trackpoints.
-
4 years ago
http://pastebin.com/PvwEEUk9 (No usb mouse)
-
4 years ago
http://pastebin.com/fRAN7rRX (Logitech USB is the external mouse)
-
4 years ago
Thanks for your willingness to look into the problem, even though it doesn't affect your hardware. I think the problem is my laptop having a touchpad PLUS a built-in touch stick. Your applet thinks that I always have a mouse plugged in, even when I don't. So I suspect the applet is confusing my touch stick for a mouse. I will put the pastebin links below. 1st paste is a usb mouse plugged. Second pastebin is nothing plugged in.
-
4 years ago
I've added a dbus interface which allows shortcuts for toggling the touchpad.
I've also created a python script which runs silently in the background, simply waiting for a log out.
This is necessary because there seems to be no other stable way to detect a log out / shutdown.
It's really lightweight tho, so no worries. This fixes the touchpad being enabled at seemingly random times.
-
4 years ago
I'll see what I can do
-
4 years ago
Same wish here as darkling3100: Could some kind of option be added to set a custom keyboard shortcut for en/disabling? Just exactly the thing which is still missing for me to be perfect!
-
4 years ago
I'm sorry, It is hard to find an error which does not happen on my system.
To help us with the issue, I added a context menu entry to dump some xinput info that should help me find out the problem.
Please follow the steps as shown in the description above. Thanks.
-
4 years ago
2 pharmville same here,
-
4 years ago
Downloaded and tested today (2/2/13) on my Dell e6400 Laptop. I just want to say thanks for making this, and also report an issue. The applet disables the touchpad when I plug in a usb mouse, but it does not re-enable the touchpad when the mouse is unplugged. Manually turning the touchpad off and on seems to work fine though.
-
4 years ago
ha ha... this comment engine does not support any formatting.
-
4 years ago
the other touchpad indicator applet (http://cinnamon-spices.linuxmint.com/applets/view/44) actually can toggle the state of the touchpad on my thinkpad x230t (even though it does not have any automation), while this one does not to a damn thing, regardless whether you plug unplug a mouse or click the switch. I think if you guys have joined the efforts you would produce something functional. Too bad you both are focusing solely on the touchpads and trackpoints, while there are a bunch of other things that quickly need to be enabled/disabled occasionally. Say on my system

$ xinput
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? Wacom ISDv4 E6 Pen stylus id=11 [slave pointer (2)]
? ? Wacom ISDv4 E6 Finger touch id=12 [slave pointer (2)]
? ? TPPS/2 IBM TrackPoint id=15 [slave pointer (2)]
? ? Wacom ISDv4 E6 Pen eraser id=17 [slave pointer (2)]
? ? Logitech USB Optical Mouse id=9 [slave pointer (2)]
? ? SynPS/2 Synaptics TouchPad id=14 [slave pointer (2)]
? Virtual core keyboard id=3 [master keyboard (2)]


good luck
-
4 years ago
If you could add keyboard toggling to this also that would be amazing
-
4 years ago
Touchpad come in action when waking up a suspended computer even with mouse connected. It need to enable first and disable then to overcome this problem. Touchpad was disabled (by applet) before suspending. Nice extension though.
-
4 years ago
No actually, I've noticed this a couple of times now as well, it seems to ignore the mouse sometimes.
I'm going to investigate this.
-
4 years ago
Actually ignore the previous comment. It works! Apparently restarting cinnamon was not enough, had to restart the applet also.
-
4 years ago
I downloaded it again and restarted cinnamon. Thanks for the fast work! The touchscreen don't seem to trigger anything now, but neither does plugging in or unplugging the mouse ^^
-
4 years ago
Thanks.
I have completely rewritten the input detection to use something more like the original indicator.
This should now detect touchscreens correctly.
Hope it works now.
-
4 years ago
I believe this is the touch:

I: Bus=0003 Vendor=056a Product=00e2 Version=1223
N: Name="Wacom ISDv4 E2 Finger"
P: Phys=
S: Sysfs=/devices/pci0000:00/0000:00:12.0/usb4/4-2/4-2:1.0/input/input4
U: Uniq=
H: Handlers=mouse0 event4
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=2e08000 3
-
4 years ago
could you execute this command and show me the paragraph that mentions your touch device ?
cat /proc/bus/input/devices.
Thanks
-
4 years ago
To elaborate a little. If touthpad is on and mouse is connected then the touchpad is disabled correctly.
Unplugging the mouse do not r\enable the touchpad.
On a fresh login the mousepad is disabled.
My laptop has a touch sensitive screen that I think is causing the issue, however it did work fine before using the original touchpad-indicator.
-
4 years ago
This is great! However, there is a small problem for me, as my laptop has a touch sensitive screen it seem to mistake it for the mouse and always disables the touchpad.