I’m having a very strange issue while trying to play games.
My mouse and keyboard work great on the desktop (I’m typing this with the keyboard in question right now), but as soon as I start a game, Quake for example, my mouse and keyboard lock up. If the mouse and keyboard are within 1-2 ft. of my PC, they work fine, but this PC is hooked to my TV, so if I go about 6 ft. away, they stop working and I have to exit the game with a wired kb/mouse before they’ll reconnect.
I thought it was the wifi/bt module, so I switched it to an intel card that I know works, and the issue was the same. To make things more confusing, I also ordered a TP-Link UB500 bluetooth dongle and the issue exists with that as well.
With more testing, I discovered that if I run the game with vsync turned on, everything works fine. Also, in games where I don’t use a mouse/keyboard, like Street Fighter V, my 8bitdo controllers work fine, too.
The mouse and keyboard combo I’m using is a Microsoft Surface Mouse and a Microsoft Compact Keyboard. I used these devices with a Raspberry Pi 4B/Manjaro ARM build about a year ago with no problem, and was using them with an Intel Hades Canyon NUC up until this week. The NUC was also running Manjaro with the latest LTS kernel - everything was perfect.
Any ideas?
Operating System: Manjaro Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.12
Kernel Version: 6.6.10-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
Memory: 23.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: GMKtec
Product Name: NucBox K6
System Version: Version 1.0
Usually if there’s an interference or something, bluetooth service will spit something. Try keeping a terminal open executing the following:
$ sudo dmesg -w | grep -i bluetooth
then play your game. When the issue comes, see the terminal again. If nothing spitted, ctrl+c and rerun without the grep, it could be an issue somewhere else since you mentioned that with vsync on, everything works fine.
@linux-aarhus - No obstructions. The dongle is plugged into a front USB port and has a perfectly clear line of sight with the keyboard and mouse.
@leledumbo Thanks for that. This is all that is getting spit, which seems to post when the keyboard and mouse reconnect:
[29838.177879] input: Modern Mobile Mouse as /devices/virtual/misc/uhid/0005:045E:0827.001B/input/input157
[29838.178071] input: Modern Mobile Mouse Keyboard as /devices/virtual/misc/uhid/0005:045E:0827.001B/input/input158
[29838.178186] input: Modern Mobile Mouse as /devices/virtual/misc/uhid/0005:045E:0827.001B/input/input159
[29838.178297] input: Modern Mobile Mouse as /devices/virtual/misc/uhid/0005:045E:0827.001B/input/input160
[29838.178412] input: Modern Mobile Mouse as /devices/virtual/misc/uhid/0005:045E:0827.001B/input/input161
[29838.178534] hid-generic 0005:045E:0827.001B: input,hidraw1: BLUETOOTH HID v1.03 Mouse [Modern Mobile Mouse] on e8:48:b8:c8:20:00
[29851.753294] input: Designer Compact Keyboard as /devices/virtual/misc/uhid/0005:045E:0832.001C/input/input162
[29851.753548] input: Designer Compact Keyboard Mouse as /devices/virtual/misc/uhid/0005:045E:0832.001C/input/input163
[29851.753730] input: Designer Compact Keyboard as /devices/virtual/misc/uhid/0005:045E:0832.001C/input/input164
[29851.753802] input: Designer Compact Keyboard as /devices/virtual/misc/uhid/0005:045E:0832.001C/input/input166
[29851.753888] hid-generic 0005:045E:0832.001C: input,hidraw2: BLUETOOTH HID v1.38 Keyboard [Designer Compact Keyboard] on e8:48:b8:c8:20:00
I need to add that the issues seems to also exist with my 8bitdo controllers now. I originally tested it in Switch emulation and it was fine, but I didn’t play those games at full screen.
It feels like this is a system resources issue or something…it’s so crazy because I’ll be typing and mousing away just like I am now from clear across the room, but as soon as I start up a game and there’s more CPU load, Bluetooth seems to get bogged down and then my devices disconnect (unless I grab my devices and quickly move them within 1-2 ft. before they disconnect).
I can verify that Switch Emulation still works perfect, even at full screen, from across the room with my 8bitdo SN30 Pro controllers. A note about that is that I’m using the flatpack versions of Ryujinx and Yuzu.
I think I figured out the issue. This is a MiniPC (GMKTek Nucbox K6) with an AMD 7840HS. These machines are known for poor Bluetooth and Wifi performance. I’ve had a sneaking suspicion this was the problem, but I thought I removed all the variables that could be causing interference by moving away from an NVMe bt/wifi card and adding a USB dongle to get the antenna out of the interior of the case.
On a whim, I decided to plug the dongle into a USB C to USB A adaptor I had and plugged it into the 1 USB C port on the box.