How to have multimedia buttons on top of keyboard work?

usbhid_load="YES" goes in loader.conf

Code:
sudo vi /boot/loader.conf

Code:
usbhid_load="YES"

and hw.usb.usbhid.enable=1 should go in sysctl.conf

Code:
sudo vi /etc/sysctl.conf

Code:
hw.usb.usbhid.enable=1
 
and hw.usb.usbhid.enable=1 should go in sysctl.conf
I think that it can go to /boot/loader.conf too because usbhid(4) tells that:
Rich (BB code):
SYSCTL VARIABLES
     The following variables are available as both sysctl(8) variables and
     loader(8) tunables:

     hw.usb.usbhid.enable
             Enable usbhid and make its priority greater than other USB HID
             drivers have.  Default is 0.
 
I'd suggest playing with xfce4-mixer a bit and see if you can set the right volume device. I also believe that xfce4-mixer has a plugin for xfce4-panel, it may help.
 
here are my notes on getting the multimedia keys working
on an external usb ducky mini keyboard


this is the devd.conf config the keyboard


here are my root config files for my Dell XPS
which i use with an external Ducky mini keyboard to get the multimedia keys working

including loader.conf, sysctl.conf, rc.conf etc

 
usbhid_load="YES"
usbhid_load="YES" goes in loader.conf
Loading the module is only necessary if a custom kernel is running without usbhid device compiled in. The GENERIC kernel has the device enabled:
Code:
% uname  -mir
14.2-RELEASE amd64 GENERIC

% config  -x  /boot/kernel/kernel  |  grep  usbhid
device    usbhid

% kldstat  -v  |  grep  usbhid
        296 uhub/usbhid
        126 usbhid/hidbus
 
It would help to have more hardware information. Otherwise we are just guessing.

Is this a USB keyboard?

Buttons on "Top of Keyboard" could mean anything from laptop to PS2 keyboard.
 
Not the exact same issue but in my case (a laptop) loading usbhid only enables the multimedia volume buttons, all the others don't work (suspend, disable/enable touchpad/wifi/bluetooth, switch display, brightness control and so on).
 
This sounds familiar to an issue I tripped over some time ago.
In XFCE keyboard settings -> Layout tab - verify it is set at 105-key or the "use system defaults" slider is ON
In the Application Shortcuts tab, you can manually map the keys to functions.
I know this isn't ideal - you wanted it to work OTB.
 
Huh it's kinda fixed by itself, I had a bug that turned keyboard to English, then went to correct it back to Turkish. Then suddenly volume buttons started working? 104 key keyboard here it is.
 

Attachments

  • 1740610630824.png
    1740610630824.png
    31.3 KB · Views: 256
verify it is set at 105-key or the "use system defaults" slider is ON
Never noticed that setting and there is Dell Lattitude setting if you turn OFF system keyboard. That is nice. Will check that out over several models.
Multimedia keys are only needed under Xorg for me so this is a good solution for Xfce4.
 
Back
Top