Ubuntu on Raspberry Pi - Logitech keyboard not working

Posted on | 101 words | ~1mins
raspberry-pi ubuntu

When running a fresh install of Ubuntu 21.XX Desktop x64 on a Raspberry Pi, I always have issues with using my Logitech Keyboard (K400r).

I can use the keyboard to log in and type text within the search bar. But if I try and type in the terminal or Firefox search bar, nothing works.

I have found this workaround provided by user matzelchen on the Raspberry Pi forum, and adding here so I can easily find it again.

  1. Remove the hid_logitech module from the kernel

    sudo rmmod hid_logitech_dj && sudo rm /lib/modules/$(uname -r)/kernel/drivers/hid/hid-logitech-dj.ko
    
  2. Remove usb bluetooth receiver

  3. Reconnect usb bluetooth receiver