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

Touchpad re-enabled on screen lock #64

Open tim-connolly opened 3 years ago

tim-connolly commented 3 years ago

Describe the issue
I use the extension to disable the touchpad, while keeping the trackpoint active. When the screen is locked (either manually or automatically after inactivity) the touchpad is enabled. I have to use the extension to disable the touchpad again after unlocking the screen.


Expected behavior
The touchpad should remain disabled through the lock and unlocking process.


Steps to reproduce the behavior

  1. Click on touchpad indicator.
  2. Disable touchpad.
  3. Verify the cursor cannot be moved using the touchpad.
  4. Lock the screen.
  5. The touchpad can now be used to move the cursor on the lock screen.

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


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

I: Bus=0019 Vendor=0000 Product=0005 Version=0000 N: Name="Lid Switch" P: Phys=PNP0C0D/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input1 U: Uniq= H: Handlers=event1 B: PROP=0 B: EV=21 B: SW=1

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

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/input6 U: Uniq= H: Handlers=mouse0 event5 B: PROP=1 B: EV=b B: KEY=e520 670000 0 0 0 0 B: ABS=660800011000003

I: Bus=0011 Vendor=0002 Product=000a Version=0000 N: Name="TPPS/2 IBM TrackPoint" P: Phys=synaptics-pt/serio0/input0 S: Sysfs=/devices/platform/i8042/serio1/serio2/input/input7 U: Uniq= H: Handlers=mouse1 event6 B: PROP=21 B: EV=7 B: KEY=70000 0 0 0 0 B: REL=3

I: Bus=0003 Vendor=04f2 Product=b5ab Version=0010 N: Name="Integrated Camera: Integrated C" 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/input9 U: Uniq= H: Handlers=kbd event7 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/input10 U: Uniq= H: Handlers=event8 B: PROP=0 B: EV=21 B: SW=10

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

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel PCH Dock Headphone" 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=4

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=0019 Vendor=17aa Product=5054 Version=4101 N: Name="ThinkPad Extra Buttons" P: Phys=thinkpad_acpi/input0 S: Sysfs=/devices/platform/thinkpad_acpi/input/input8 U: Uniq= H: Handlers=rfkill kbd event12 B: PROP=0 B: EV=33 B: KEY=10040 0 18040000 0 50000000000000 0 1701b02102004 c000280051115000 10e000000000000 0 B: MSC=10 B: SW=8

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=3" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14 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 NVidia HDMI/DP,pcm=7" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15 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 NVidia HDMI/DP,pcm=8" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16 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 NVidia HDMI/DP,pcm=9" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17 U: Uniq= H: Handlers=event16 B: PROP=0 B: EV=21 B: SW=140

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

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=11" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input19 U: Uniq= H: Handlers=event18 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)] ⎜ ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)] ⎜ ↳ TPPS/2 IBM TrackPoint 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)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Integrated Camera: Integrated C id=9 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)] ↳ ThinkPad Extra Buttons id=13 [slave keyboard (3)]



- Log file (you can enable logging within the extension settings, "Debug" tab)  
Attached log file contains the log generated during a lock operation.
[touchpad-indicator.log](https://github.com/user501254/TouchpadIndicator/files/5473903/touchpad-indicator.log)

--- 
**Additional context**  
Add any other context about the problem here.
askmrsinh commented 3 years ago

Just to be clear, do you mean that after logging out and logging back in, the touchpad becomes enabled? Note that the extension can not maintain state on the lock screen.

tim-connolly commented 3 years ago

The scope of the issue was intended to be just the screen lock and unlock cycle.

I have my screen set to lock after 10 minutes of idle time. It is just a bit annoying having to remember to disable the touchpad again each time I unlock the screen.

Lysak commented 3 years ago

ubuntu 20.04, I don't have this problem with touchpad, but have this problem with trackpoint

tim-connolly commented 3 years ago

Would it be possible to write the state to a file when the screen is locked, then check that file and restore the state when the screen is unlocked?