Fixing Mouse And Keyboard Stutter

The ASUS ProArt P16 seems to have a bug in the power management that makes bluetooth connections stutter when the Nvidia GPU wakes up: #3878. This is quite annoying but you can work around it by enabling the respective devices permanently:

echo on | sudo tee /sys/bus/pci/devices/0000:64:00.0/power/control
echo on | sudo tee /sys/bus/pci/devices/0000:64:00.1/power/control

Connecting a Keyboard With Pairing Key

Pop!_OS is currently lacking a way to pair device that require a passkey through the UI. However, you can use bluetoothctl to pair the device. In our example we use a Logitech MX Keys Mini keyboard. This specific device can be put into pairing mode by holding one of the three device selectors until it blinks rapidly.

Other devices may differ in this regard. Anyway, put it into pairing mode and open a terminal, then follow these steps:

# Open the bluetoothctl tool
bluetoothctl

# Enable the controller to search for your device
scan on
# List all discovered devices, note the MAC address of your device
devices

# To avoid problems, restart the correct agent
agent off
agent KeyboardOnly

# Now pair your device using the MAC address discovered before
pair D5:44:64:5F:DC:EA

# Set a passkey
[agent] Enter passkey (number in 0-999999): 123456
# Now repeat the passkey on the keyboard and your device should be connected