Bug 484086

Summary: Keyboard auto-repeat does not repeat
Product: [Plasma] plasmashell Reporter: pf
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: fanzhuyifan, hanpingtian, kde, kdedev
Priority: NOR    
Version: 6.0.2   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=482980
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description pf 2024-03-20 16:47:11 UTC
SUMMARY  setting>keyboard>hardware  Logitech 350
Non-blank keys will not repeat. Keys which do repeat include: arrows, BKSP, DEL, TAB, Shift+TAB, other? 
Toggling  "When a key is held:  ( ) Repeat the key" and "( ) Do nothing" has no effect.
/usr/bin/xev confirms the keyboard _does_ repeat keys; but most keys are ignored.

STEPS TO REPRODUCE
1.  
2. 
3. 

OBSERVED RESULT
manual repeat required

EXPECTED RESULT
auto-repeat

SOFTWARE/OS VERSIONS
Operating System: Mageia 10
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.6.22-server-1.mga10 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700K
Memory: 125.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: Dell Inc.
Product Name: XPS 8950

ADDITIONAL INFORMATION
Wireless Wave Keyboard K350; solaar reports:
Path         : /dev/hidraw2
Index        : 1
Wireless PID : 200A
Protocol     : HID++ 1.0
Polling rate : 20msms
Serial       : 38427FB2
  Firmware   : 65.00.B0003
  Other      : 00.01
Notifications: battery status

Logitech Unifying Receiver
Path         : /dev/hidraw1
USB ID       : 046d:C52B
Serial       : E05593CA
  Firmware   : 24.11.B0036
  Bootloader : 02.09
  Other      : AA.AC
Notifications: wireless
               software present
Comment 1 pf 2024-03-20 18:21:54 UTC
This affects settings(test area), konsole, firefox, korganizer, gnucash,

Some apps are not affected: LibreOffice, emacs, SQL-workbench/J, signal-desktop, chromium-browser, claws-mail, kde-connect,
Comment 2 fanzhuyifan 2024-03-20 22:17:32 UTC
Do you have the IBus Wayland virtual keyboard (System Settings -> Keyboard -> Virtual Keyboard) enabled?
Comment 3 pf 2024-03-25 19:36:14 UTC
(In reply to fanzhuyifan from comment #2)
> Do you have the IBus Wayland virtual keyboard (System Settings -> Keyboard
> -> Virtual Keyboard) enabled?

No. 

However, it's not currently available since I switched back to X11 because Wayland is WAY too immature:
-  Taskbar dies too often
- windows don't respect screen boundaries:
   - often open with title bar off screen 
   - windows taller than screen
- title bar focus ignored unless mouse moved away from title bar and back over it
- text entry fields often miss first characters; most noticeable when opening a new tab and typing into firefox URL/search bar
- no systray icons for claws-mail
- claws-mail active folder highlight switches to a random folder which is not the current folder when mouse moves from main to compose windows
- login: unlike X11, konsoles all open on desktop 1, wasting time re-orgaizing 10 desktops with 3 physical screens
- fewer keyboard keys available (Calc key does not open kcalc as with X11)
- can't do this: kkkkkkkkkkkkkkkkkkkkkkkkk; only k,k,k,k,k,k,k,k,k,k,k,k... (this report)
-  some apps just silently disappear from screen
- double-click (shade) on title bar does not work on all open windows
Too many other issues to recall.
The flickering is gone; but I'll deal with X11 flickering vs all the above...
Comment 4 Bug Janitor Service 2024-04-09 03:48:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 pf 2024-04-11 15:31:36 UTC
System updated minutes ago to:
Operating System: Mageia 10
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.6.22-server-2.mga10 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700K
Memory: 125.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: Dell Inc.
Product Name: XPS 8950

and problem persists.
Comment 6 pf 2024-04-11 15:37:17 UTC
Back on Wayland because KDE/X11 has become intolerable:
- plasmashell crashes/restarts many times an hour
- When screens (3 screens: LtoR order 1,0,2) go dark (power saving),  most windows migrate to screen 1

Will see if KDE/Wayland is now more stable than KDE/X11...
Comment 7 fanzhuyifan 2024-04-11 15:43:52 UTC
On wayland the individual apps are responsible for key repeats. So you would need to report this to the apps or the underlying frameworks.
Comment 8 pf 2024-04-11 16:41:49 UTC
So you're saying I need to report this against all the following apps (just a sampling)?
I didn't notice this issue on Mageia 9 or the early Cauldron before recent updates.
- konsole
- systemsettings
- claws-mail
- firefox
- korganizer
- LibreOffice (Writer, Calc, Draw, Base)
- Dolphin
- kalarm
- k3b
- kaddressbook
- htop (filter)
- konqueror
- kwrite
- nano

I was running KDE/X11 until moments ago, now on KDE/Wayland - both are affected.
Seems to me something is in common with all those apps...

To be fair;  auto-repeat does work in:
- SQL-workbench/J
- Signal-desktop
- LibreOffice (Impress, Math)
- SweetHome3D
- chromium-browser
- emacs
- okular
- filezilla

Reported to https://bugs.mageia.org/show_bug.cgi?id=33092
Comment 9 TraceyC 2024-08-06 15:08:20 UTC
Pierre,

I tested this issue with KWrite, Konsole and LibreOffice (Writer and Calc) on Plasma 6.1.3 and it looks like the issue may have been fixed.

Settings: When a key is held: repeat the key (600ms delay)
Keys: Backspace, Del, Tab, Shift+Tab, arrow keys

All the keys I tested did auto-repeat, where appropriate, in all the applications I tested.
Are you able to reproduce the issue on Plasma 6.1.3?

Thanks!
Comment 10 pf 2024-08-06 15:16:32 UTC
Looks like I'm still on 6.1.2 and I just updated everything and rebooted a moment ago.

The problem appears to be fixed now.  Thanks!

Operating System: Mageia 10
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.6.43-server-1.mga10 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700K
Memory: 125.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: Dell Inc.
Product Name: XPS 8950
Comment 11 hpt 2024-09-06 07:19:19 UTC
Looks like a virtual keyboard issue on my fedora 40. If use 'IBus wayland' in virtual keyboard I will hit this, switch to 'None' or others it will disappear.
Comment 12 TraceyC 2024-09-18 17:06:48 UTC
Hi hpt,

The issue you're seeing with IBus wayland is due to an upstream issue:
https://github.com/ibus/ibus/issues/2610