Mouse cursor having a longer trail, lagging and stuttering

Bug #1773993 reported by Wont Tell
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Xubuntu 16.04.4, Kernel: 4.13.0-44 x86_64, CPU: i3-4030U, Graphics: Intel HD 4400.

After kernel 4.13.0-40, my mouse cursor started to have a bigger trail then before, lagging and stutter during some load. During loading redhift mouse experience more lag.

On a kernel 4.13.0-39 and 4.13.0-41 all good.

I've tried to test on a various kernels and here are the results:
Xubuntu 16.04.4, Kernel 4.13.0-39 = Good
Xubuntu 16.04.4, Kernel 4.13.0-40 = Bad
Xubuntu 16.04.4, Kernel 4.13.0-41 = Good
Xubuntu 16.04.4, Kernel 4.13.0-42 = Bad
Xubuntu 16.04.4, Kernel 4.13.0-43 = Bad
Xubuntu 16.04.4, Kernel 4.13.0-44 = Bad
Xubuntu 16.04.4, Kernel 4.15.18(Ubuntu mainline) = Bad
Xubuntu 16.04.4, Kernel 4.16.4(Ubuntu mainline) = Bad
Ubuntu 18.04, Kernel 4.15 = Bad
Xubuntu 18.04, Kernel 4.16.10(Ubuntu mainline) = Bad
Xubuntu 18.04, Kernel 4.16.11(Ubuntu mainline) = Bad
Xubuntu 18.04, Kernel 4.16.12(Ubuntu mainline) = Bad
Fedora 28, Kernel 4.16.3 = Bad
OpenSuse Tumbleweed, Kernel 4.16.8 = Good
Manjaro 17.1.9 KDE, Kernel 4.9.96 = Good
Manjaro 17.1.9 KDE, Kernel 4.14.36 = Good
Manjaro 17.1.9 KDE, Kernel 4.16.4 = Good
Manjaro 17.1.9 KDE, Kernel 4.17.0-1 = Good

Please request any information and tests that may help.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.13.0-44-generic 4.13.0-44.49~16.04.1
ProcVersionSignature: Ubuntu 4.13.0-44.49~16.04.1-generic 4.13.16
Uname: Linux 4.13.0-44-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.17
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue May 29 17:03:15 2018
InstallationDate: Installed on 2017-07-23 (310 days ago)
InstallationMedia: Xubuntu 16.04.2 LTS "Xenial Xerus" - Beta amd64 (20170723)
SourcePackage: linux-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
---
ApportVersion: 2.20.1-0ubuntu2.17
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC1D0p: user 2320 F...m pulseaudio
 /dev/snd/controlC1: user 2320 F.... pulseaudio
 /dev/snd/controlC0: user 2320 F.... pulseaudio
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=UUID=d969d8ec-87e0-493c-b317-4e68535c1b21
InstallationDate: Installed on 2017-07-23 (310 days ago)
InstallationMedia: Xubuntu 16.04.2 LTS "Xenial Xerus" - Beta amd64 (20170723)
MachineType: Hewlett-Packard HP Pavilion 14 Notebook PC
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-44-generic.efi.signed root=UUID=2bf2a7b1-cc88-4a21-aaca-251f52e78964 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.13.0-44.49~16.04.1-generic 4.13.16
RelatedPackageVersions:
 linux-restricted-modules-4.13.0-44-generic N/A
 linux-backports-modules-4.13.0-44-generic N/A
 linux-firmware 1.157.19
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: yes
  Hard blocked: no
Tags: xenial
Uname: Linux 4.13.0-44-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip libvirtd lpadmin plugdev sambashare sudo vboxusers
_MarkForUpload: True
dmi.bios.date: 03/18/2015
dmi.bios.vendor: Insyde
dmi.bios.version: F.42
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 227D
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 77.35
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.42:bd03/18/2015:svnHewlett-Packard:pnHPPavilion14NotebookPC:pvr0975100000405F10000620180:rvnHewlett-Packard:rn227D:rvr77.35:cvnHewlett-Packard:ct10:cvrChassisVersion:
dmi.product.family: 103C_5335KV G=N L=CON B=HP S=PAV X=Null
dmi.product.name: HP Pavilion 14 Notebook PC
dmi.product.version: 0975100000405F10000620180
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Wont Tell (capedbaldy) wrote :
tags: added: mouse-cursor
tags: removed: mouse-cursor
affects: linux-hwe (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1773993

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Wont Tell (capedbaldy) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Wont Tell (capedbaldy) wrote : CRDA.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : IwConfig.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : Lspci.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : Lsusb.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : ProcEnviron.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : ProcModules.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : PulseList.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : UdevDb.txt

apport information

Revision history for this message
Wont Tell (capedbaldy) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: bionic
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Does this happen to the external mouse or the touchpad? I can see the external USB keyboard/mouse disconnects several times.

Revision history for this message
Wont Tell (capedbaldy) wrote :

Tested with mouse and without but results are the same.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

My guess is this commit fixes the issue:

commit 368b554d63948133aca05e63ff8f5f4fbc2804d4
Author: Jani Nikula <email address hidden>
Date: Wed May 16 11:01:10 2018 +0300

    Revert "drm/i915/edp: Allow alternate fixed mode for eDP if available."

    This reverts commit dc911f5bd8aacfcf8aabd5c26c88e04c837a938e.

Can you try Bionic's kernel or Mainline kernel to see if the issue is fixed?

Revision history for this message
Wont Tell (capedbaldy) wrote :

I've made some tests and here are the results:

Ubuntu 18.04, Kernel 4.15.0-24 = Good
Ubuntu 18.04, Kernel 4.16.13(Ubuntu mainline) = Bad
Ubuntu 18.04, Kernel 4.16.16(Ubuntu mainline) = Bad
Ubuntu 18.04, Kernel 4.17(Ubuntu mainline) = Bad
Ubuntu 18.04, Kernel 4.17.2(Ubuntu mainline) = Bad

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please try v4.18-rc1.

Revision history for this message
Wont Tell (capedbaldy) wrote :

Ubuntu 18.04, Kernel 4.18.0-041800rc1-generic #201806162031(Ubuntu mainline) = Good

Revision history for this message
Sergio Brighenti (sergio-f) wrote :

Same problem here, HP Laptop 14-bp0xx and Ubuntu 18.04.
Installed the v4.18-rc1 (Linux hp 4.18.0-041800rc1-generic #201806162031 SMP Sun Jun 17 00:34:22 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux), and the problems seems fixed.

Revision history for this message
Wont Tell (capedbaldy) wrote :

The same cause was referenced in these reports:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1773581
https://bugs.freedesktop.org/show_bug.cgi?id=106943
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1773520
https://bugs.freedesktop.org/show_bug.cgi?id=103497

Kernel 4.15.0-24 fixed the issue on Bionic and Xenial. The fix also available in the v4.18-rc1 and will be backported to other Ubuntu kernels.

I guess I should tag this report as "Fix Released"?

Wont Tell (capedbaldy)
Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Damiön la Bagh (kat-amsterdam) wrote :

This is not fixed at all. Same issues still in kernel 4.15.0-39-generic
see the attached screenshot

Revision history for this message
Sebastian (rscm) wrote :
Download full text (3.2 KiB)

Starting to have this using linux-image-4.15.0-42-generic, tried with linux-image-unsigned-4.19.7-041907-generic same (latest dmesg below)

[ 1418.689386] irq 18: nobody cared (try booting with the "irqpoll" option)
[ 1418.689393] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.7-041907-generic #201812052010
[ 1418.689394] Hardware name: System manufacturer System Product Name/M4A87TD EVO, BIOS 2001 03/08/2011
[ 1418.689395] Call Trace:
[ 1418.689396] <IRQ>
[ 1418.689402] dump_stack+0x63/0x8a
[ 1418.689405] __report_bad_irq+0x3c/0xb6
[ 1418.689406] note_interrupt.cold.9+0xb/0x5d
[ 1418.689409] handle_irq_event_percpu+0x6f/0x80
[ 1418.689410] handle_irq_event+0x3b/0x5a
[ 1418.689412] handle_fasteoi_irq+0x89/0x130
[ 1418.689414] handle_irq+0x20/0x30
[ 1418.689416] do_IRQ+0x4e/0xe0
[ 1418.689418] common_interrupt+0xf/0xf
[ 1418.689418] </IRQ>
[ 1418.689421] RIP: 0010:native_safe_halt+0x6/0x10
[ 1418.689423] Code: ff ff 7f 5d c3 65 48 8b 04 25 40 5c 01 00 f0 80 48 02 20 48 8b 00 a8 08 75 c3 eb 8b 90 90 90 90 90 90 90 90 55 48 89 e5 fb f4 <5d> c3 0f 1f 84 00 00 00 00 00 55 48 89 e5 f4 5d c3 90 90 90 90 90
[ 1418.689424] RSP: 0018:ffffffffa2e03df8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffdb
[ 1418.689426] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffa192a1db
[ 1418.689427] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa2e06a40
[ 1418.689427] RBP: ffffffffa2e03df8 R08: 0000000000000000 R09: 0000014ae1bd5d38
[ 1418.689428] R10: 00000486eef1993c R11: 0000000000000001 R12: 0000000000000000
[ 1418.689429] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 1418.689432] ? clockevents_switch_state+0x5b/0xe0
[ 1418.689434] ? __tick_broadcast_oneshot_control+0x15d/0x200
[ 1418.689436] default_idle+0x22/0x150
[ 1418.689438] amd_e400_idle+0x26/0x50
[ 1418.689439] arch_cpu_idle+0x15/0x20
[ 1418.689440] default_idle_call+0x2c/0x30
[ 1418.689442] do_idle+0x1f8/0x280
[ 1418.689444] cpu_startup_entry+0x73/0x80
[ 1418.689445] rest_init+0xae/0xb0
[ 1418.689448] start_kernel+0x52a/0x54b
[ 1418.689450] x86_64_start_reservations+0x24/0x26
[ 1418.689451] x86_64_start_kernel+0x74/0x77
[ 1418.689453] secondary_startup_64+0xa4/0xb0
[ 1418.689454] handlers:
[ 1418.689458] [<00000000e779eeea>] usb_hcd_irq
[ 1418.689460] [<00000000e779eeea>] usb_hcd_irq
[ 1418.689462] [<00000000e779eeea>] usb_hcd_irq
[ 1418.689463] [<00000000e779eeea>] usb_hcd_irq
[ 1418.689466] [<000000001f8941a1>] ata_bmdma_interrupt
[ 1418.689467] Disabling IRQ #18

Mouse becomes laggy, don't have the shadow effect. Also writing is slower (also USB Keyboard), when I write I have to do it slow otherwise the key isn't passed and a letter (or more) are missing.
I've tried with "irqpoll" option but when I use it doesn't boot.
When I boot it's OK, a few minutes later the irq is disabled and the symptoms appear

I'm going to try the lowlatency mainland kernel 4.19.7
And if doesn't work, will try the list posted above

/etc/lsb-release
DISTRIB_ID=elementary
DISTRIB_RELEASE=5.0
DISTRIB_CODENAME=juno
DISTRIB_DESCRIPTION="elementary OS 5.0 Juno"

/etc/upstream-release/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_D...

Read more...

Revision history for this message
Sebastian (rscm) wrote :

I tried booting with "noirqdebug" and worked as a bypass not a real solution. At least I can work normally now.

"noirqdebug: Disables the code which attempts to detect and disable unhandled interrupt sources."

--
BTW with the lowlatency kernel also happened

Revision history for this message
Cristian Delgado (cjdg-2k2) wrote :

Still happens on ubuntu 18.10 with kernel 4.18 and affects all usb devices

Brad Figg (brad-figg)
tags: added: cscc
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.