Bug 494944 - Kwin somehow loses the ability to contact a pair bluetooth keyboard even thou the hardware sees it.
Summary: Kwin somehow loses the ability to contact a pair bluetooth keyboard even thou...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: libinput (other bugs)
Version First Reported In: 6.2.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-17 17:14 UTC by idoitprone
Modified: 2024-11-19 21:58 UTC (History)
2 users (show)

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


Attachments
.local/share/applications/steam.desktop (7.40 KB, application/x-desktop)
2024-10-17 17:15 UTC, idoitprone
Details
libinput list-devices (6.50 KB, text/plain)
2024-10-17 17:18 UTC, idoitprone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description idoitprone 2024-10-17 17:14:46 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
My bluetooth keyboard is not registering. In majority of the cases, the keyboard register and trackpoint moves, but the mouse buttons not working.

Somehow, running libinput debug-events and clicking all the buttons seem to fix the issue in many cases. The hardware knows the bluetooth keyboard exist. Why doesn't Kwin cannot associate the hardware? Is it related to /dev/input/event## issue? Would Kwin care if event number changes?


I am running extest with the steam client

Exec=env LD_PRELOAD=/home/doof/gitrepo/extest/target/i686-unknown-linux-gnu/release/libextest.so /usr/bin/steam -pipewire %U


STEPS TO REPRODUCE
1. Setup bluetooth keyboard
2. Let the deck sleep
3. Come back and wake up the deck

OBSERVED RESULT
My trackpoint II mouse buttons does not work. I have many instances when the clicks will not register despite the keyboard working. In one instance, both keyboard and mouse does not work when the keyboard is connected to the deck via bluetooth. I have open kde settings and KDE does not believe the bluetooth device is connected.


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed
KDE Plasma Version: 
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.3
Kernel Version: 6.12.0-rc3-1.gefb99e5-default
OS-Type: 64
Processor: 8 × AMD Custom APU 0405
Memory: 13.5 GiB

 https://github.com/Supreeeme/extest.git hash 2a0a1f27239f6307b333a68ca7023ccf90215f3e



Hardware 

LCD Steam Deck

Keyboard connected with bluetooth
https://www.lenovo.com/us/en/p/accessories-and-software/keyboards-and-mice/keyboards/4y40x49493#reviews

ADDITIONAL INFORMATION






libinput list-devices
Device:           Power Button
Kernel:           /dev/input/event11
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Video Bus
Kernel:           /dev/input/event3
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Power Button
Kernel:           /dev/input/event8
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Lid Switch
Kernel:           /dev/input/event9
Group:            4
Seat:             seat0, default
Capabilities:     switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Wacom TouchScreen Pen
Kernel:           /dev/input/event7
Group:            5
Seat:             seat0, default
Size:             164x96mm
Capabilities:     tablet 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   none
Rotation:         n/a

Device:           Wacom TouchScreen Finger
Kernel:           /dev/input/event17
Group:            5
Seat:             seat0, default
Size:             216x91mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Valve Software Steam Deck Controller
Kernel:           /dev/input/event4
Group:            6
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Valve Software Steam Deck Controller
Kernel:           /dev/input/event5
Group:            6
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         0.0

Device:           acp5x Headset Jack
Kernel:           /dev/input/event16
Group:            7
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           FTS3528:00 2808:1015
Kernel:           /dev/input/event1
Group:            8
Seat:             seat0, default
Size:             267x142mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           FTS3528:00 2808:1015 UNKNOWN
Kernel:           /dev/input/event2
Group:            8
Seat:             seat0, default
Size:             292x164mm
Capabilities:     tablet 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   none
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event0
Group:            9
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           TrackPoint Keyboard II
Kernel:           /dev/input/event18
Group:            10
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         n/a
Comment 1 idoitprone 2024-10-17 17:15:46 UTC
Created attachment 174952 [details]
.local/share/applications/steam.desktop

I added extest and pipewire flags to the steam client.
Comment 2 idoitprone 2024-10-17 17:18:26 UTC
Created attachment 174953 [details]
libinput list-devices

Group number change compared to the last run on the same session.
Comment 3 idoitprone 2024-11-17 12:45:42 UTC
I wonder what percentage is Steam client fault

https://steamcommunity.com/app/1675200/discussions/0/6955341348098599001/
Comment 4 TraceyC 2024-11-19 21:58:22 UTC
Tested on an OLED Steamdeck and bluetooth keyboard (It has no pointing, mouse button or trackpad hardware)

When I wake the Steamdeck from sleep, it's no longer connected to the keyboard. If I press the connection button on the keyboard, it does connect. Needing to re-connect a bluetooth device is consistent in my experience with Plasma with other accessories (like earbuds) and devices (laptops). 

That part of your keyboard works while the mouse parts don't is certainly problematic.
If it's connected and working, but Plasma thinks it's disconnected, that's also a problem.

We'll need someone with similar hardware to investigate further.