I use a super-basic keyboard from an old PC and it has volume up/down and mute buttons. These work out of the box on my Solus machine running Gnome. But I can’t seem to get them to work in NixOS.
Doing some searching I found sound.mediaKeys although the docs say they shouldn’t be necessary if you’re running Gnome. Here’s my entire sound section of my conf:
Media keys should work out of the box but in case they do not for some reason, you can go to Keyboard Shortcuts panel in GNOME Settings and try to associate the volume controls manually.
Hm, if I go into Keyboard Shortcuts and select “Volume mute” for example, pressing the mute button doesn’t appear to do anything… the Set Shortcut modal just sits there. Perhaps this only works for setting shortcuts like a key combination? That or maybe there’s some problem in USB land and the keypress just isn’t sending? Oh, I remember using some app to check keypresses before… I’ll try to find that again.
IIRC xev shows events that X server (or maybe the client) sees.
libinput should work on even lower level so if it does not see them,
xev probably will not either.
dconf is a database for storing configuration values (think Windows
registry) that is used by apps and other user-facing GNOME components
so it will not help you.
I would first make sure sound.mediaKeys.enable is false in case actkbd somehow masks the keys.