Bug 495196 - Plugging in charger triggers Ctrl+Z in Kickoff/Krunner
Summary: Plugging in charger triggers Ctrl+Z in Kickoff/Krunner
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (show other bugs)
Version: 6.2.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-22 17:17 UTC by João Figueiredo
Modified: 2024-12-08 03:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description João Figueiredo 2024-10-22 17:17:15 UTC
SUMMARY
When plugging in my laptop's charger, the Undo action gets triggered on text written in Kickoff or Krunner. This is particularly frustrating if one has a flaky charger, prone to disconnecting easily.
It doesn't seem to affect any other apps.

When I plug it in, the journal shows the following line:
kernel: asus_wmi: Unknown key code 0xcf

Recording the "Asus WMI hotkeys" event with libinput yields the following output:
  - evdev:
    - [  0,      0,   4,   4,      30] # EV_MSC / MSC_SCAN                 30 (obfuscated)
    - [  0,      0,   1, 240,       1] # EV_KEY / KEY_UNKNOWN               1
    - [  0,      0,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +0ms
  - evdev:
    - [  0,     18,   1, 240,       0] # EV_KEY / KEY_UNKNOWN               0
    - [  0,     18,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +0ms

Both unmapping the Undo action through the system settings and changing keyboard layout from pt_PT to en_US have no effect.

STEPS TO REPRODUCE
1. Write something in Kickoff and delete one character;
2. Plug in the charger.

OBSERVED RESULT
The deleted character reappears. If the charger is unplugged and plugged back in, the whole text gets deleted.
This is consistent with pressing Ctrl+Z twice.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 8.2 GB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: X556URK
System Version: 1.0
Comment 1 TraceyC 2024-11-07 01:06:42 UTC
I'm not able to reproduce this in either X11 or Wayland
git-master or Plasma 6.2.3, KF 6.7.0, Qt 6.7.3

I'll leave this open so someone else can try to reproduce and more experienced contributors can weigh in 
It's also worth someone testing with Qt 6.8 which I don't get have on my dev machine
Comment 2 Nate Graham 2024-11-08 21:17:33 UTC
Also cannot reproduce on git master Wayland.

Can you try in a new clean user account, to rule out any customizations you might have made to your normal use account? Thanks!
Comment 3 Bug Janitor Service 2024-11-23 03:46:41 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2024-12-08 03:46:30 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.