Internal keyboard not working on laptop

I installed endeavour os on my GPD Win Max 2 laptop using a USB keyboard and mouse. And everything works well except for the built in keyboard. I’ve checked that linux-firmware is already installed. Not sure what to do next, any help is appreciated (:

➜  ~ echo $XDG_SESSION_TYPE
wayland
➜  ~ xinput
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ xwayland-pointer:17                     	id=6	[slave  pointer  (2)]
⎜   ↳ xwayland-relative-pointer:17            	id=7	[slave  pointer  (2)]
⎜   ↳ xwayland-pointer-gestures:17            	id=8	[slave  pointer  (2)]
⎜   ↳ xwayland-touch:17                       	id=10	[slave  pointer  (2)]
⎜   ↳ xwayland-tablet stylus:17               	id=11	[slave  pointer  (2)]
⎜   ↳ xwayland-tablet eraser:17               	id=12	[slave  pointer  (2)]
⎜   ↳ xwayland-tablet cursor:17               	id=13	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ xwayland-keyboard:17                    	id=9	[slave  keyboard (3)]

I went back to boot from the USB live installation, and it seems that the internal keyboard is working (as long as USB keyboard). This is the xinput, I noticed more inputs.

[liveuser@eos-2022.09.10 ~]$ loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type
Type=tty
[liveuser@eos-2022.09.10 ~]$ xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ DP-2                                    	id=10	[slave  pointer  (2)]
⎜   ↳   Mouse for Windows                     	id=11	[slave  pointer  (2)]
⎜   ↳ Razer Razer Viper Ultimate              	id=13	[slave  pointer  (2)]
⎜   ↳ Razer Razer Viper Ultimate Keyboard     	id=14	[slave  pointer  (2)]
⎜   ↳ USB-HID Keyboard Mouse                  	id=19	[slave  pointer  (2)]
⎜   ↳ PNP0C50:00 093A:0255 Mouse              	id=23	[slave  pointer  (2)]
⎜   ↳ PNP0C50:00 093A:0255 Touchpad           	id=24	[slave  pointer  (2)]
⎜   ↳ GXTP7385:00 27C6:0113                   	id=25	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Lid Switch                              	id=9	[slave  keyboard (3)]
    ↳   Mouse for Windows                     	id=12	[slave  keyboard (3)]
    ↳ Razer Razer Viper Ultimate              	id=15	[slave  keyboard (3)]
    ↳ USB-HID Keyboard                        	id=16	[slave  keyboard (3)]
    ↳ USB-HID Keyboard System Control         	id=17	[slave  keyboard (3)]
    ↳ USB-HID Keyboard Consumer Control       	id=18	[slave  keyboard (3)]
    ↳ USB-HID Keyboard                        	id=20	[slave  keyboard (3)]
    ↳ C922 Pro Stream Webcam                  	id=21	[slave  keyboard (3)]
    ↳ USB Camera: USB Camera                  	id=22	[slave  keyboard (3)]
    ↳ GXTP7385:00 27C6:0113 Stylus            	id=26	[slave  keyboard (3)]
    ↳ GXTP7385:00 27C6:0113 Keyboard          	id=27	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=28	[slave  keyboard (3)]
    ↳ DP-2                                    	id=29	[slave  keyboard (3)]
    ↳ Razer Razer Viper Ultimate Keyboard     	id=30	[slave  keyboard (3)]

I’m looking through the kernel logs from journalctl and I found some USB devices which i don’t see in xinput, strange.

Oct 31 16:55:44 wm2-endeavouros kernel: Bluetooth: hci0: Waiting for firmware download to complete
Oct 31 16:55:44 wm2-endeavouros kernel: Bluetooth: hci0: Firmware loaded in 1057267 usecs
Oct 31 16:55:44 wm2-endeavouros kernel: Bluetooth: hci0: Waiting for device to boot
Oct 31 16:55:44 wm2-endeavouros kernel: Bluetooth: hci0: Malformed MSFT vendor event: 0x02
Oct 31 16:55:44 wm2-endeavouros kernel: Bluetooth: hci0: Device booted in 29082 usecs
Oct 31 16:55:44 wm2-endeavouros kernel: Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0041-0041.ddc
Oct 31 16:55:44 wm2-endeavouros kernel: Bluetooth: hci0: Applying Intel DDC parameters completed
Oct 31 16:55:44 wm2-endeavouros kernel: Bluetooth: hci0: Firmware timestamp 2022.28 buildtype 1 build 47489
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.2: New USB device found, idVendor=04d9, idProduct=0159, bcdDevice=11.04
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.2: Product: USB-HID Keyboard
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.1.1: new full-speed USB device number 8 using xhci_hcd
Oct 31 16:55:45 wm2-endeavouros kernel: input: USB-HID Keyboard as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.2/3-1.2.2:1.0/0003:04D9:0159.0006/input/input28
Oct 31 16:55:45 wm2-endeavouros kernel: hid-generic 0003:04D9:0159.0006: input,hidraw5: USB HID v1.11 Keyboard [USB-HID Keyboard] on usb-0000:74:00.4-1.2.2/input0
Oct 31 16:55:45 wm2-endeavouros kernel: hid-generic 0003:04D9:0159.0007: hiddev97,hidraw6: USB HID v1.11 Device [USB-HID Keyboard] on usb-0000:74:00.4-1.2.2/input1
Oct 31 16:55:45 wm2-endeavouros kernel: input: USB-HID Keyboard System Control as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.2/3-1.2.2:1.2/0003:04D9:0159.0008/input/input29
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.1.1: New USB device found, idVendor=1532, idProduct=007b, bcdDevice= 2.00
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.1.1: Product: Razer Viper Ultimate Dongle
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.1.1: Manufacturer: Razer
Oct 31 16:55:45 wm2-endeavouros kernel: input: USB-HID Keyboard Consumer Control as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.2/3-1.2.2:1.2/0003:04D9:0159.0008/input/input30
Oct 31 16:55:45 wm2-endeavouros kernel: input: USB-HID Keyboard Mouse as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.2/3-1.2.2:1.2/0003:04D9:0159.0008/input/input31
Oct 31 16:55:45 wm2-endeavouros kernel: input: USB-HID Keyboard as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.2/3-1.2.2:1.2/0003:04D9:0159.0008/input/input32
Oct 31 16:55:45 wm2-endeavouros kernel: hid-generic 0003:04D9:0159.0008: input,hidraw7: USB HID v1.11 Mouse [USB-HID Keyboard] on usb-0000:74:00.4-1.2.2/input2
Oct 31 16:55:45 wm2-endeavouros mtp-probe[700]: checking bus 3, device 7: "/sys/devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.2"
Oct 31 16:55:45 wm2-endeavouros mtp-probe[700]: bus: 3, device: 7 was not an MTP device
Oct 31 16:55:45 wm2-endeavouros kernel: input: Razer Razer Viper Ultimate Dongle as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.1/3-1.2.1.1/3-1.2.1.1:1.0/0003:1532:007B.0009/input/input33
Oct 31 16:55:45 wm2-endeavouros kernel: hid-generic 0003:1532:007B.0009: input,hidraw8: USB HID v1.11 Mouse [Razer Razer Viper Ultimate Dongle] on usb-0000:74:00.4-1.2.1.1/input0
Oct 31 16:55:45 wm2-endeavouros kernel: input: Razer Razer Viper Ultimate Dongle Keyboard as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.1/3-1.2.1.1/3-1.2.1.1:1.1/0003:1532:007B.000A/input/input34
Oct 31 16:55:45 wm2-endeavouros systemd-logind[542]: Watching system buttons on /dev/input/event22 (USB-HID Keyboard)
Oct 31 16:55:45 wm2-endeavouros systemd-logind[542]: Watching system buttons on /dev/input/event18 (USB-HID Keyboard)
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.3: new high-speed USB device number 9 using xhci_hcd
Oct 31 16:55:45 wm2-endeavouros kernel: [drm] dce110_edp_wait_for_hpd_ready: wait timed out!
Oct 31 16:55:45 wm2-endeavouros systemd-logind[542]: Watching system buttons on /dev/input/event19 (USB-HID Keyboard System Control)
Oct 31 16:55:45 wm2-endeavouros kernel: input: Razer Razer Viper Ultimate Dongle as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.1/3-1.2.1.1/3-1.2.1.1:1.1/0003:1532:007B.000A/input/input35
Oct 31 16:55:45 wm2-endeavouros kernel: hid-generic 0003:1532:007B.000A: input,hidraw9: USB HID v1.11 Keyboard [Razer Razer Viper Ultimate Dongle] on usb-0000:74:00.4-1.2.1.1/input1
Oct 31 16:55:45 wm2-endeavouros kernel: input: Razer Razer Viper Ultimate Dongle as /devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.1/3-1.2.1.1/3-1.2.1.1:1.2/0003:1532:007B.000B/input/input36
Oct 31 16:55:45 wm2-endeavouros mtp-probe[710]: checking bus 3, device 7: "/sys/devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.2"
Oct 31 16:55:45 wm2-endeavouros mtp-probe[710]: bus: 3, device: 7 was not an MTP device
Oct 31 16:55:45 wm2-endeavouros kernel: hid-generic 0003:1532:007B.000B: input,hidraw10: USB HID v1.11 Keyboard [Razer Razer Viper Ultimate Dongle] on usb-0000:74:00.4-1.2.1.1/input2
Oct 31 16:55:45 wm2-endeavouros mtp-probe[711]: checking bus 3, device 8: "/sys/devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.1/3-1.2.1.1"
Oct 31 16:55:45 wm2-endeavouros mtp-probe[711]: bus: 3, device: 8 was not an MTP device
Oct 31 16:55:45 wm2-endeavouros systemd-logind[542]: Watching system buttons on /dev/input/event24 (Razer Razer Viper Ultimate Dongle Keyboard)
Oct 31 16:55:45 wm2-endeavouros systemd-logind[542]: Watching system buttons on /dev/input/event26 (Razer Razer Viper Ultimate Dongle)
Oct 31 16:55:45 wm2-endeavouros kernel: Console: switching to colour frame buffer device 160x50
Oct 31 16:55:45 wm2-endeavouros mtp-probe[719]: checking bus 3, device 8: "/sys/devices/pci0000:00/0000:00:08.1/0000:74:00.4/usb3/3-1/3-1.2/3-1.2.1/3-1.2.1.1"
Oct 31 16:55:45 wm2-endeavouros mtp-probe[719]: bus: 3, device: 8 was not an MTP device
Oct 31 16:55:45 wm2-endeavouros kernel: usb 3-1.2.1.2: new full-speed USB device number 10 using xhci_hcd
Oct 31 16:55:45 wm2-endeavouros kernel: amdgpu 0000:74:00.0: [drm] fb0: amdgpudrmfb frame buffer device
Oct 31 16:55:45 wm2-endeavouros systemd[1]: Created slice Slice /system/systemd-backlight.

I should use wayland equivalent of xinput:

➜  ~ sudo libinput list-devices | grep Device
Device:           Power Button
Device:           Video Bus
Device:           Power Button
Device:           Lid Switch
Device:           DP-2
Device:             Mouse for Windows
Device:             Mouse for Windows
Device:           Razer Razer Viper Ultimate
Device:           Razer Razer Viper Ultimate Keyboard
Device:           Razer Razer Viper Ultimate
Device:           USB-HID Keyboard
Device:           USB-HID Keyboard System Control
Device:           USB-HID Keyboard Consumer Control
Device:           USB-HID Keyboard Mouse
Device:           USB-HID Keyboard
Device:           C922 Pro Stream Webcam
Device:           USB Camera: USB Camera
Device:           PNP0C50:00 093A:0255 Mouse
Device:           PNP0C50:00 093A:0255 Touchpad
Device:           GXTP7385:00 27C6:0113
Device:           GXTP7385:00 27C6:0113 Stylus
Device:           GXTP7385:00 27C6:0113 Keyboard

I believe this is the keyboard that’s not working:

Device:           GXTP7385:00 27C6:0113 Keyboard
Kernel:           /dev/input/event17
Group:            12
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:         n/a

I thought this might be a wayland issue, so I boot to X11 instead (by changing /etc/gdm/custom.conf). And this is my xinputs:

➜  ~ xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ DP-2                                    	id=10	[slave  pointer  (2)]
⎜   ↳   Mouse for Windows                     	id=11	[slave  pointer  (2)]
⎜   ↳ Razer Razer Viper Ultimate              	id=13	[slave  pointer  (2)]
⎜   ↳ Razer Razer Viper Ultimate Keyboard     	id=14	[slave  pointer  (2)]
⎜   ↳ USB-HID Keyboard Mouse                  	id=19	[slave  pointer  (2)]
⎜   ↳ PNP0C50:00 093A:0255 Mouse              	id=23	[slave  pointer  (2)]
⎜   ↳ PNP0C50:00 093A:0255 Touchpad           	id=24	[slave  pointer  (2)]
⎜   ↳ GXTP7385:00 27C6:0113                   	id=25	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Lid Switch                              	id=9	[slave  keyboard (3)]
    ↳   Mouse for Windows                     	id=12	[slave  keyboard (3)]
    ↳ Razer Razer Viper Ultimate              	id=15	[slave  keyboard (3)]
    ↳ USB-HID Keyboard                        	id=16	[slave  keyboard (3)]
    ↳ USB-HID Keyboard System Control         	id=17	[slave  keyboard (3)]
    ↳ USB-HID Keyboard Consumer Control       	id=18	[slave  keyboard (3)]
    ↳ USB-HID Keyboard                        	id=20	[slave  keyboard (3)]
    ↳ C922 Pro Stream Webcam                  	id=21	[slave  keyboard (3)]
    ↳ USB Camera: USB Camera                  	id=22	[slave  keyboard (3)]
    ↳ GXTP7385:00 27C6:0113 Stylus            	id=26	[slave  keyboard (3)]
    ↳ GXTP7385:00 27C6:0113 Keyboard          	id=27	[slave  keyboard (3)]
    ↳ DP-2                                    	id=28	[slave  keyboard (3)]
    ↳ Razer Razer Viper Ultimate Keyboard     	id=29	[slave  keyboard (3)]

I’ve also tried enabling input 27. But I’m still not receiving any inputs on my internal keyboard.

Not really any idea for a solution but a way to identify the cause…

you can try to switch to a text console (the ctrl-alt-f1 stuff, not the gui-cli window) and test again. If it works there it points to the desktop environment (wayland?) you could try x11 instead and check if the error is gone. If it does not work there neither it seems to be a kernel/firmware/driver issue.

I’m thinking if I should use xfce instead.

I can’t login using internal keyboard so I don’t think text console will work :thinking:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.