I have a problem with mouse cursor which is jumping on the screen and clicking. This is happening sometime to time and I can not find the pattern. I suspected that this maybe related to the touchscreen. When I disable touchscreen, the cursor is doing right click. I tried to disable mouse and touch pad but it was still doing right click. Any help how I can debug it? Thanks
dmidecode -t system
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: UX370UAR
Version: 1.0
Serial Number: xxxxxxxxxxxxxxxxx
UUID: xxxxxxxxxxxxxxxxxxxxxx
Wake-up Type: Power Switch
SKU Number:
Family: ZenBook Flip
Handle 0x0007, DMI type 32, 20 bytes
System Boot Information
Status: No errors detected
Handle 0x0025, DMI type 12, 5 bytes
System Configuration Options
Option 1: SMI:00B26C
Option 2: DSN:
Option 3: DSN:
Option 4: DSN:
lshw -short
WARNING: you should run this program as super-user.
H/W path Device Class Description
========================================================
system Computer
/0 bus Motherboard
/0/0 memory 15GiB System memory
/0/1 processor Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
/0/100 bridge Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
/0/100/2 display UHD Graphics 620
/0/100/4 generic Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
/0/100/13 generic Sunrise Point-LP Integrated Sensor Hub
/0/100/14 bus Sunrise Point-LP USB 3.0 xHCI Controller
/0/100/14.2 generic Sunrise Point-LP Thermal subsystem
/0/100/15 generic Sunrise Point-LP Serial IO I2C Controller #0
/0/100/15.1 generic Sunrise Point-LP Serial IO I2C Controller #1
/0/100/16 communication Sunrise Point-LP CSME HECI #1
/0/100/17 storage Sunrise Point-LP SATA Controller [AHCI mode]
/0/100/1c bridge Sunrise Point-LP PCI Express Root Port #6
/0/100/1c/0 wlp1s0 network Wireless 8260
/0/100/1e generic Sunrise Point-LP Serial IO UART Controller #0
/0/100/1e.2 generic Sunrise Point-LP Serial IO SPI Controller #0
/0/100/1f bridge Sunrise Point LPC Controller/eSPI Controller
/0/100/1f.2 memory Memory controller
/0/100/1f.3 multimedia Sunrise Point-LP HD Audio
/0/100/1f.4 bus Sunrise Point-LP SMBus
/0/2 system PnP device PNP0c02
/0/3 system PnP device PNP0b00
/0/4 generic PnP device INT3f0d
/0/5 generic PnP device ATK3001
/0/6 system PnP device PNP0c02
/0/7 system PnP device PNP0c02
/0/8 system PnP device PNP0c02
/0/9 system PnP device PNP0c02
/1 scsi3 storage
/2 enx00e04cc9c494 network Ethernet interface
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
If nothing else works, maybe it's the line of sight to your dongle, if you are using the 2.4Ghz USB adapter. I had that problem. Moved things closer and it solved it.
I also don't think that this an issue with touchpad.
I tried to reinstall xserver-xorg-input-libinput didn't help.
I tried to replace xserver-xorg-input-libinput with xserver-xorg-input-synaptics but then only working input device is wireless mouse.
To make it stop I need to restart PC or sometimes pressing touchscreen chaotically is helping
I tried to disable only touchscreen in: /usr/share/X11/xorg.conf.d/40-libinput.conf
but problem still occurs. Only behavior is bit different. The right mouse click is happening in different period of time.
The video demonstrate the problem when it's occurs. On the video it started to happening. After that I disabled touchpad and mouse. Then I turn mouse on and off again.
Everything there looks good. This is most likely (No guarantee) not a driver issue then. I think touchpad is not my first suspect.
Ok, I saw in the video you are using another mouse. Looked wireless.
What is the hardware there?
Have you cleaned the USB port for the Wireless dongle?
Have you tested a different wireless mouse or a Wired Mouse? Tried a different USB port?
Bus 002 Device 003: ID 058f:8468 Alcor Micro Corp.
Bus 002 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0a2b Intel Corp.
Bus 001 Device 003: ID 13d3:5755 IMC Networks USB2.0 VGA UVC WebCam
Bus 001 Device 007: ID 2109:8888 VIA Labs, Inc. USB2.0 VGA UVC WebCam
Bus 001 Device 008: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 001 Device 006: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 005: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I tried with different mouses but same behavior. On the video I did NOT remove the dongle from USB port (only turn off mouse by the switch on the mouse).
I noticed something. I have external screen connected into my laptop. When problem occur, I closed a laptop lid and it stopped. The external screen switched into main screen. When I open the laptop lid, the problem is back.
We are getting somewhere thanks to your observation.
What is the output of:
sudo lshw -C video
EDIT: I asked the above because your observation narrows this to Two Likely Culprits:
GDM (Your display manager) or your Graphics Drivers.
I lean toward the Graphics Drivers as being the more likely of the two.
It is near 2am here my time, so I need to log out for the night but hopefully this may help point this thread in a direction heading toward a solution.
Doing a search, it appears that you are not alone in intel UHD graphics having this issue when a second monitor is detected.
Interestingly, on result gave this:
In my case this worked : I removed the back of the laptop and took out the battery which sits exactly below the touchpad. Then I put a piece of 15x7cm aluminum foil on the battery and covered it with masking tape to avoid any shortcuts.
After that I placed the battery back and closed and tightened the cover and voila: problem solved!
Source:
I believe that they meant "shorts". I would not use foil; rather, I would clean the battery terminal carefully to remove any corrosion. Probably replace the battery.
That said; this expands, rather than narrows our search. This may be due to a Graphics driver glitch, as we covered above - but now it adds a new possibility: Power Supply.
Ah, a Faraday cage for the battery... may be that the battery charging control circuitry was oscillating at a frequency that interfered with the graphics, or specifically the cursor.
If the battery is removable, try removing it and running the machine... if the problem doesn't recur, then that's the problem.
hmm.. This problem did occur also when second screen was not connected. Also, it's started about a month ago. Before that everything was fine.
Unfortunately, the battery is not easy removable. I have to disassembly my laptop to do it. I will disassembly my laptop tomorrow and see if I can spot something.
In my case I have 4 input devices: keyboard, touchscreen, touchpad and wireless mouse. When problem occurs, the cursor is moving and clicking. SO my thinking is: to debug this, I need to find out which input device is sending events. From somewhere the information to move/click cursor must came from. I will try to run:
Your logic is not wrong. It may be that the input device is sending events.
Debugging the events would be a way of eliminating or confirming that possibility.
moving cursor with touchpad is not working but both buttons are working
moving cursor with touchscreen doesn't work but double tap on screen is working (right mouse click).
I was trying to disable this device before but then the problem symptoms changed (explained in my first post). Now, I understand that if changed because buttons are not disabled.
I will try to capture events again with device 15 disabled.
I believe that they meant "shorts". I would not use foil; rather, I would clean the battery terminal carefully to remove any corrosion. Probably replace the battery.
I disassembly ma laptop and I couldn't see and corrosion. Instead I noticed that black plastic cover which surrender the battery is broken on edges. Anyway I cleaned everything with ISO alcohol but it did not help.
If the battery is removable, try removing it and running the machine... if the problem doesn't recur, then that's the problem.
Now I will try to run my PC without battery as suggested by @Mr_Magoo and see if that's gonna fix the problem.