Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

Hardware • Setting up a 2.4GHz bluetooth keyboard for gaming.

$
0
0
Hello. I am a happy owner of a fast bluetooth keyboard called Designer Compact. Typing on it is a blast and thanks to its fast response times it is suitable for gaming too. But that is how it was on windows. After moving to Linux I noticed that its inputs became very inconsistent. Say if you spam a button to move forward with exact same intervals there is either a delay on the press or the release of the button, or no delay at all, and this is obviously not good for gaming.

I have already tried and checked many things. All needed firmware is installed. I though, maybe it doesn't get enough processing (which would have been funny if that was the case) so I set its priority to -20, but no use. I tried setting up ControllerMode to le but it made inputs even more chaotic. Setting KernelExperimental and Experimental to true had no effect. Configuring MinConnectionInterval , MaxConnectionInterval and ConnectionLatency didn't help as well.

I will share some details below so there is something to work with.

$ inxi -Fxz

Code:

System:  Kernel: 6.1.0-23-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0    Desktop: GNOME v: 43.9 Distro: Debian GNU/Linux 12 (bookworm)Machine:  Type: Desktop Mobo: ASRock model: N68-GS4 FX serial: <superuser required>    BIOS: American Megatrends v: P1.30 date: 04/08/2015CPU:  Info: dual core model: AMD Athlon II XL V66C bits: 64 type: MCP arch: K10    rev: 3 cache: L1: 256 KiB L2: 2 MiB  Speed (MHz): avg: 1100 high: 1400 min/max: 800/2800 boost: disabled cores:    1: 1400 2: 800 bogomips: 11251  Flags: ht lm nx pae sse sse2 sse3 sse4a svmGraphics:  Device-1: NVIDIA GF108 [GeForce GT 730] vendor: Micro-Star MSI    driver: nvidia v: 390.157 arch: Fermi bus-ID: 03:00.0  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 driver: X:    loaded: nvidia gpu: nvidia resolution: 1920x1080~60Hz  API: OpenGL v: 4.6.0 NVIDIA 390.157 renderer: GeForce GT 730/PCIe/SSE2    direct-render: YesAudio:  Device-1: NVIDIA MCP61 High Definition Audio vendor: ASRock    driver: snd_hda_intel v: kernel bus-ID: 00:05.0  Device-2: NVIDIA GF108 High Definition Audio vendor: Micro-Star MSI    driver: snd_hda_intel v: kernel bus-ID: 03:00.1  API: ALSA v: k6.1.0-23-amd64 status: kernel-api  Server-1: PipeWire v: 0.3.65 status: activeNetwork:  Device-1: Qualcomm Atheros QCA8171 Gigabit Ethernet vendor: ASRock    driver: alx v: kernel port: dc00 bus-ID: 01:00.0  IF: enp1s0 state: up speed: 100 Mbps duplex: full mac: <filter>Bluetooth:  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8    bus-ID: 2-2:2  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0    lmp-v: 5.1Drives:  Local Storage: total: 763.85 GiB used: 10.06 GiB (1.3%)  ID-1: /dev/sda vendor: Hitachi model: HCS5C1032CLA382 size: 298.09 GiB  ID-2: /dev/sdb vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiBPartition:  ID-1: / size: 27.33 GiB used: 5.05 GiB (18.5%) fs: ext4 dev: /dev/sdb1  ID-2: /home size: 428.94 GiB used: 5.01 GiB (1.2%) fs: ext4 dev: /dev/sdb6Swap:  ID-1: swap-1 type: partition size: 976 MiB used: 0 KiB (0.0%) dev: /dev/sdb5Sensors:  System Temperatures: cpu: 32.5 C mobo: N/A gpu: nvidia temp: 42 C  Fan Speeds (RPM): N/A gpu: nvidia fan: 42%Info:  Processes: 187 Uptime: 21m Memory: 3.82 GiB used: 2.1 GiB (55.0%)  Init: systemd target: graphical (5) Compilers: gcc: 12.2.0 Packages: 1304  Shell: Bash v: 5.2.15 inxi: 3.3.26

$ bluetoothctl

Code:

Agent registered[CHG] Controller 00:E0:4C:A1:99:86 Pairable: yes[Designer Compact Keyboard]# infoDevice E3:5A:96:28:B9:6C (random)Name: Designer Compact KeyboardAlias: Designer Compact KeyboardAppearance: 0x03c1Icon: input-keyboardPaired: yesBonded: yesTrusted: yesBlocked: noConnected: yesWakeAllowed: yesLegacyPairing: no...Battery Percentage: 0x37 (55)

$ hciconfig -a; sudo dmesg | egrep -i 'blue|firm'

Code:

hci0:Type: Primary  Bus: USBBD Address: 00:E0:4C:A1:99:86  ACL MTU: 1021:6  SCO MTU: 255:12UP RUNNING RX bytes:18510 acl:758 sco:0 events:268 errors:0TX bytes:32556 acl:81 sco:0 commands:182 errors:0Features: 0xff 0xff 0xff 0xfe 0xdb 0xfd 0x7b 0x87Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH HOLD SNIFF PARK Link mode: PERIPHERAL ACCEPT Name: 'debian'Class: 0x6c0104Service Classes: Rendering, Capturing, Audio, TelephonyDevice Class: Computer, Desktop workstationHCI Version: 5.1 (0xa)  Revision: 0x9a9LMP Version: 5.1 (0xa)  Subversion: 0x8a6bManufacturer: Realtek Semiconductor Corporation (93)[    0.329663] acpi PNP0A03:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-7f] only partially covers this bridge[    0.347559] pci 0000:01:00.0: [Firmware Bug]: disabling VPD access (can't determine size of non-standard VPD format)[    0.445827] [Firmware Bug]: cpu 0, try to use APIC500 (LVT offset 0) for vector 0x10400, but the register is already in use for vector 0xf9 on another cpu[    0.445885] [Firmware Bug]: cpu 0, IBS interrupt offset 0 not available (MSRC001103A=0x0000000000000100)[    4.588233] usb 2-2: Product: Bluetooth Radio[    7.748975] Bluetooth: Core ver 2.22[    7.749033] NET: Registered PF_BLUETOOTH protocol family[    7.749035] Bluetooth: HCI device and connection manager initialized[    7.749164] Bluetooth: HCI socket layer initialized[    7.749168] Bluetooth: L2CAP socket layer initialized[    7.749174] Bluetooth: SCO socket layer initialized[    7.811220] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761[    7.814219] Bluetooth: hci0: RTL: rom_version status=0 version=1[    7.814226] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin[    7.816101] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8761bu_fw.bin[    7.816132] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin[    7.816290] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8761bu_config.bin[    7.816320] Bluetooth: hci0: RTL: cfg_sz 6, total sz 27814[    8.152595] Bluetooth: BNEP (Ethernet Emulation) ver 1.3[    8.152602] Bluetooth: BNEP filters: protocol multicast[    8.152608] Bluetooth: BNEP socket layer initialized[    8.180233] Bluetooth: hci0: RTL: fw version 0x09a98a6b[    8.322838] Bluetooth: MGMT ver 1.22[    9.872259] Bluetooth: RFCOMM TTY layer initialized[    9.872270] Bluetooth: RFCOMM socket layer initialized[    9.872279] Bluetooth: RFCOMM ver 1.11[   24.950419] hid-generic 0005:045E:0832.0003: input,hidraw2: BLUETOOTH HID v1.38 Keyboard [Designer Compact Keyboard] on 00:e0:4c:a1:99:86

$ sudo systemctl status bluetooth

Code:

● bluetooth.service - Bluetooth service     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)     Active: active (running) since Fri 2024-08-02 11:18:10 EEST; 15min ago       Docs: man:bluetoothd(8)   Main PID: 649 (bluetoothd)     Status: "Running"      Tasks: 1 (limit: 4525)     Memory: 3.7M        CPU: 415ms     CGroup: /system.slice/bluetooth.service             └─649 /usr/libexec/bluetooth/bluetoothdAug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_ll_1Aug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_ll_0Aug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1Aug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0Aug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource/faststreamAug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource/faststream_duplexAug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSink/opus_05Aug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource/opus_05Aug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSink/opus_05_duplexAug 02 11:18:12 debian bluetoothd[649]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Thanks.

Statistics: Posted by Mykyta — 2024-08-02 16:55 — Replies 0 — Views 5



Viewing all articles
Browse latest Browse all 3567

Trending Articles