Bug 391234

Summary: Joystick always detected in plasma wayland, causing high CPU usage by system calls
Product: [Frameworks and Libraries] kwayland-integration Reporter: Quentin Levent <versin.getorixdu91>
Component: generalAssignee: Martin Flöser <mgraesslin>
Status: RESOLVED NOT A BUG    
Severity: normal Keywords: usability, wayland-only
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Perf report on the left, and the pseudo-joystick on the right, as seen by KDE
(for real this time) Perf report on the left, and the pseudo-joystick on the right, as seen by KDE
attachment-7511-0.html

Description Quentin Levent 2018-02-28 16:15:26 UTC
Created attachment 111090 [details]
Perf report on the left, and the pseudo-joystick on the right, as seen by KDE

Using Plasma on wayland (doesn't append on X), there are a lot of system calls (seen as kworker activity) (see: screenshot and perf report) that are made and lead to a constant 60% use on one of the cpus (=30% total CPU usage) to a joystick that doesn't exist (similar to https://bugs.kde.org/show_bug.cgi?id=336907 except for the unusual CPU usage part). Reproductible all the time, because constant.
Using arch linux with KDE unstable repos, and up to date.
Not sure if this is the right product, feel free to move it to the right place.
Package versions:
-linux-ck 4.15.6-1
-kwayland 5.43.0.1
-kwayland integration 5.12.2-1
-plasma-wayland-session 5.12.2-1
Comment 1 Quentin Levent 2018-02-28 16:23:18 UTC
Comment on attachment 111090 [details]
Perf report on the left, and the pseudo-joystick on the right, as seen by KDE

Edit: scrot doesn't seem to support wayland, making a new one
Comment 2 Quentin Levent 2018-02-28 16:35:17 UTC
Created attachment 111091 [details]
(for real this time) Perf report on the left, and the pseudo-joystick on the right, as seen by KDE

Had to take the screen from X (didn't find a way to do it in wayland), but the perf report is of course the one from wayland
Comment 3 Martin Flöser 2018-02-28 16:51:13 UTC
The device is created by the Linux kernel or used. We cannot do anything about incorrectly delivered devices.
Comment 4 Quentin Levent 2018-02-28 16:58:25 UTC
Created attachment 111092 [details]
attachment-7511-0.html

I dont get why it would happend on plasma/wayland only... But either way,
thanks for the time and have a nice day

Le 28 févr. 2018 17:51, "Martin Flöser" <bugzilla_noreply@kde.org> a écrit :

> https://bugs.kde.org/show_bug.cgi?id=391234
>
> Martin Flöser <mgraesslin@kde.org> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>          Resolution|---                         |INVALID
>              Status|UNCONFIRMED                 |RESOLVED
>
> --- Comment #3 from Martin Flöser <mgraesslin@kde.org> ---
> The device is created by the Linux kernel or used. We cannot do anything
> about
> incorrectly delivered devices.
>
> --
> You are receiving this mail because:
> You reported the bug.