Skip to content

Instantly share code, notes, and snippets.

@Pelirrojo
Created January 23, 2025 11:05
Show Gist options
  • Save Pelirrojo/dd63f5ace9613cca0dd44e9a58064f8d to your computer and use it in GitHub Desktop.
Save Pelirrojo/dd63f5ace9613cca0dd44e9a58064f8d to your computer and use it in GitHub Desktop.
Razer Pro Type Ultra Keyboard: How to use function keys without holding down fn key? (Ubuntu)
# Reference: https://unix.stackexchange.com/questions/693846/razer-pro-type-ultra-keyboard-how-to-use-function-keys-without-holding-down-fn
# Save the following lines at /etc/udev/hwdb.d/50-razer-pro-type-ultra.hwdb
evdev:input:b*v1532p027B*
KEYBOARD_KEY_c00e2=f1
KEYBOARD_KEY_c00ea=f2
KEYBOARD_KEY_c00e9=f3
KEYBOARD_KEY_c018a=f4
KEYBOARD_KEY_c0227=f5
KEYBOARD_KEY_c00b6=f6
KEYBOARD_KEY_c00cd=f7
KEYBOARD_KEY_c00b5=f8
KEYBOARD_KEY_c0192=f9
KEYBOARD_KEY_c0194=f10
KEYBOARD_KEY_7003a=mute
KEYBOARD_KEY_7003b=volumedown
KEYBOARD_KEY_7003c=volumeup
KEYBOARD_KEY_7003d=mail
KEYBOARD_KEY_7003e=refresh
KEYBOARD_KEY_7003f=previoussong
KEYBOARD_KEY_70040=playpause
KEYBOARD_KEY_70041=nextsong
KEYBOARD_KEY_70042=calc
KEYBOARD_KEY_70043=file
#run sudo systemd-hwdb update && sudo udevadm trigger
Note that this does not work when the keyboad is plugged in with the USB cable.
# Save the following lines at
# /etc/udev/hwdb.d/50-razer-pro-type-ultra.hwdb
# ================================================================
evdev:input:b*v1532p027B*
KEYBOARD_KEY_c00e2=f1
KEYBOARD_KEY_c00ea=f2
KEYBOARD_KEY_c00e9=f3
KEYBOARD_KEY_c018a=f4
KEYBOARD_KEY_c0227=f5
KEYBOARD_KEY_c00b6=f6
KEYBOARD_KEY_c00cd=f7
KEYBOARD_KEY_c00b5=f8
KEYBOARD_KEY_c0192=f9
KEYBOARD_KEY_c0194=f10
KEYBOARD_KEY_7003a=mute
KEYBOARD_KEY_7003b=volumedown
KEYBOARD_KEY_7003c=volumeup
KEYBOARD_KEY_7003d=mail
KEYBOARD_KEY_7003e=refresh
KEYBOARD_KEY_7003f=previoussong
KEYBOARD_KEY_70040=playpause
KEYBOARD_KEY_70041=nextsong
KEYBOARD_KEY_70042=calc
KEYBOARD_KEY_70043=file
# ================================================================
#run
#$> sudo systemd-hwdb update && sudo udevadm trigger
#Note that this does not work when the keyboad is plugged in with the USB cable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment