gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

Gamescope doesn't recognize the "system76 launch" keyboard as a virtual keyboard device

Open MinmoTech opened this issue 3 years ago • 0 comments

This is probably an upstream issue (either with the keyboard or wlroots), but I thought it would be a good idea to report this here first.

If I try to start gamescope with gamescope -r 30 -- glxgears while only my System76 launch keyboard is plugged in I get the following error:

wlserver: [backend/headless/backend.c:82] Creating headless backend
vulkan: selecting physical device 'NVIDIA GeForce GTX 1080 Ti': queue family 2
vulkan: physical device supports DRM format modifiers
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0)
vulkan: supported DRM formats for sampling usage:
vulkan:   0x34325241
vulkan:   0x34325258
gamescope: ../gamescope/src/wlserver.cpp:801: void wlserver_key(uint32_t, bool, uint32_t): Assertion `wlserver.wlr.virtual_keyboard_device != nullptr' failed.
fish: Job 1, 'gamescope -r 30 -- glxgears' terminated by signal SIGABRT (Abort)

I am on archlinux and my gamescope version is 3.11.43-1

If I have another "normal" keyboard plugged in, it sometimes works as expected.

This is my lsusb output:

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 045e:02dd Microsoft Corp. Xbox One Controller (Firmware 2015)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub
Bus 002 Device 004: ID 3384:7216 System76 USB7216 Smart Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0d8c:0005 C-Media Electronics, Inc. Blue Snowball
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 010: ID 3384:0001 System76 Launch Configurable Keyboard (launch_1)
Bus 001 Device 009: ID 04d9:fa58 Holtek Semiconductor, Inc. USB Laser Game Mouse
Bus 001 Device 008: ID 3384:4216 System76 USB4216 Smart Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

It does list the keyboard correctly.

Relevant dmesg output:

[    2.741021] usb 1-1.5: Product: Launch Configurable Keyboard (launch_1)
[    2.741023] usb 1-1.5: Manufacturer: System76
[    2.900066] input: System76 Launch Configurable Keyboard (launch_1) as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.1/usb1/1-1/1-1.5/1-1.5:1.0/0003:3384:0001.0005/input/input7
[    2.951903] hid-generic 0003:3384:0001.0005: input,hidraw4: USB HID v1.11 Keyboard [System76 Launch Configurable Keyboard (launch_1)] on usb-0000:06:00.1-1.5/input0
[    2.957209] hid-generic 0003:3384:0001.0006: hiddev97,hidraw5: USB HID v1.11 Device [System76 Launch Configurable Keyboard (launch_1)] on usb-0000:06:00.1-1.5/input1
[    2.963263] input: System76 Launch Configurable Keyboard (launch_1) System Control as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.1/usb1/1-1/1-1.5/1-1.5:1.2/0003:3384:0001.0007/input/input8
[    3.015840] input: System76 Launch Configurable Keyboard (launch_1) Consumer Control as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.1/usb1/1-1/1-1.5/1-1.5:1.2/0003:3384:0001.0007/input/input9
[    3.015906] input: System76 Launch Configurable Keyboard (launch_1) Keyboard as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.1/usb1/1-1/1-1.5/1-1.5:1.2/0003:3384:0001.0007/input/input10
[    3.016063] hid-generic 0003:3384:0001.0007: input,hidraw6: USB HID v1.11 Keyboard [System76 Launch Configurable Keyboard (launch_1)] on usb-0000:06:00.1-1.5/input2

Please do tell if I can provide more info or if I should report this upstream.

MinmoTech avatar Sep 01 '22 16:09 MinmoTech