I've been trying to use a bluetooth keyboard in my Ubuntu 18.04 but at first I could only connect the keyboard itself but it wouldn't actually type anything. I've looked for solutions online and, oddly enough, installing the xserver-xorg-input-kbd
package made the keyboard work... only in the login screen and terminal. After loggin in, nothing works anymore.
The laptop's original keyboard is still working (although some keys around the "W" key are starting to fail, hence why I'm using a BT keyboard) and I can also connect a USB keyboard with no problem. The only one that doesn't work is the Bluetooth one.
output when using xinput
shows that the keyboard has been recognized(its id is 25):
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® Nano Transceiver v1.0 id=13 [slave pointer (2)]
⎜ ↳ OBINS OBINS
AnnePro2 id=23 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® Nano Transceiver v1.0 id=12 [slave pointer (2)]
⎜ ↳ HP TouchPad Wireless Keyboard id=21 [slave pointer (2)]
⎜ ↳ DLLA6AE:00 06CB:75DD Touchpad id=16 [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)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Dell WMI hotkeys id=17 [slave keyboard (3)]
↳ Microsoft Microsoft® Nano Transceiver v1.0 id=20 [slave keyboard (3)]
↳ OBINS OBINS
AnnePro2 id=24 [slave keyboard (3)]
↳ Sleep Button id=10 [slave keyboard (3)]
↳ HP TouchPad Wireless Keyboard id=25 [slave keyboard (3)]
↳ Microsoft Microsoft® Nano Transceiver v1.0 id=11 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
↳ Integrated_Webcam_HD: Integrate id=14 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=18 [slave keyboard (3)]
↳ DELL Wireless hotkeys id=19 [slave keyboard (3)]
↳ OBINS OBINS
AnnePro2 id=22 [slave keyboard (3)]
Strangely enough, I also can capture key events normally when using evtest
, but not when using xev
. I think that might be a major clue.
I also did try using the HP Wireless Keyboard driver from JohnJohanssonChalmers (https://github.com/JohnJohanssonChalmers/hp_wireless_keyboard) but when I install it, the keyboard starts to send a lot of random input and repeating key strokes even if I don't even touch it.