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

Autoswitch delay on waking up from sleep state #52

Closed edwkmho closed 4 years ago

edwkmho commented 4 years ago

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)


Additional context
Add any other context about the problem here.

askmrsinh commented 4 years ago

Hi, please update the complete output for cat /proc/bus/input/devices.

edwkmho commented 4 years ago

By the way, i forgot to mention that my laptop the auto suspend is disabled. Only screen will turn off after the specified time ( i set it to 1 mins).

Full output of cat /proc/bus/input/devices provided below :

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/input0 U: Uniq= H: Handlers=kbd event0 B: PROP=0 B: EV=3 B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0003 Version=0000 N: Name="Sleep Button" P: Phys=PNP0C0E/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1 U: Uniq= H: Handlers=kbd event1 B: PROP=0 B: EV=3 B: KEY=4000 0 0

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/input2 U: Uniq= H: Handlers=event2 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/input3 U: Uniq= H: Handlers=kbd event3 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/input4 U: Uniq= H: Handlers=sysrq kbd event4 leds B: PROP=0 B: EV=120013 B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe B: MSC=10 B: LED=7

I: Bus=0011 Vendor=0002 Product=0007 Version=01b1 N: Name="SynPS/2 Synaptics TouchPad" P: Phys=isa0060/serio2/input0 S: Sysfs=/devices/platform/i8042/serio2/input/input10 U: Uniq= H: Handlers=mouse0 event5 B: PROP=9 B: EV=b B: KEY=6420 30000 0 0 0 0 B: ABS=260800011000003

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:51/LNXVIDEO:00/input/input13 U: Uniq= H: Handlers=kbd event6 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/LNXVIDEO:01/input/input14 U: Uniq= H: Handlers=kbd event7 B: PROP=0 B: EV=3 B: KEY=3e000b00000000 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:1b.0/sound/card1/input15 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 Line Out" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card1/input16 U: Uniq= H: Handlers=event9 B: PROP=0 B: EV=21 B: SW=40

I: Bus=0003 Vendor=5986 Product=066d Version=0605 N: Name="BisonCam, NB Pro: BisonCam, NB " P: Phys=usb-0000:00:14.0-10/button S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/input/input18 U: Uniq= H: Handlers=kbd event10 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 Headphone" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card1/input17 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 HDMI HDMI/DP,pcm=3" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input19 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 HDMI HDMI/DP,pcm=7" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input20 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 HDMI HDMI/DP,pcm=8" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input21 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 HDMI HDMI/DP,pcm=9" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input22 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 HDMI HDMI/DP,pcm=10" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input23 U: Uniq= H: Handlers=event16 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0005 Vendor=046d Product=b01b Version=0011 N: Name="M585/M590 Keyboard" P: Phys=5c:80:b6:44:33:aa S: Sysfs=/devices/virtual/misc/uhid/0005:046D:B01B.0001/input/input24 U: Uniq=ea:d5:7d:61:b9:d4 H: Handlers=sysrq kbd event17 B: PROP=0 B: EV=100013 B: KEY=1000000000007 ff800000000007ff febeffdfffefffff fffffffffffffffe B: MSC=10

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.0001/input/input25 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

edwkmho commented 4 years ago

touchpad-indicator.log

Hopefully with the log will help you pin down the root cause of the issue.

askmrsinh commented 4 years ago

I presume that you are using the Logitech M585/M590 Mouse directly over Bluetooth (ie. without the nano receiver). In that case there can be some noticeable delay when the system detects the mouse after waking up from sleep (specially if it's in deep sleep mode).

This is outside the control of the extension. However you may see some improvement by adding the device as a "trusted" one. Additionally, you may also use the keyboard shortcut Ctrl + Super + Alt + T to toggle the touchpad state just after waking up from sleep.

askmrsinh commented 4 years ago

Just saw your second comment:

By the way, i forgot to mention that my laptop the auto suspend is disabled.

I would double check that just to be sure. Also ~some~ many Bluetooth cards don't work very well under Linux causing the issue. Try using the device with the receiver instead and see if the issue still exists.

edwkmho commented 4 years ago

many thanks for your prompt respond.

I will try it out with the usb instead of bluetooth. Will feedback. Many thanks.

-----Original Message-----From: Ashesh Singh notifications@github.com Reply-To: user501254/TouchpadIndicator < reply@reply.github.com>To: user501254/TouchpadIndicator TouchpadIndicator@noreply.github.comCc: edwkmho edward.911@gmail.com, Author author@noreply.github.comSubje ct: Re: [user501254/TouchpadIndicator] Autoswitch delay on waking up from sleep state (#52)Date: Wed, 03 Jun 2020 21:21:36 -0700

Just saw your second comment:

By the way, i forgot to mention that my laptop the auto suspend is disabled.

I would double check that just to be sure. Also some Bluetooth cards don't work very well under Linux causing the issue. Try using the device with the receiver instead and see if the issue still exists.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

-- KM Ho +60193989918