Fisrt of all determine the keycodes using xev(1) (as mentioned by DiscmanDaemon), then create/modify file ~/.Xmodmap:Does anyone know how to enable volume control on keyboard? It worked with windows and linux systems.
keycode XXX = XF86AudioLowerVolume
keycode YYY = XF86AudioRaiseVolume
xev doen't recognize my volume button press. It recognizes mouse movements and other buttons but not media buttons.Fisrt of all determine the keycodes using xev(1) (as mentioned by DiscmanDaemon), then create/modify file ~/.Xmodmap:
This is a universal solution, not just for KDE. If KDE doesn't use ~/.Xmodmap automatically, you should add it to $KDEDIR/share/config/kdm/Xsession.Code:keycode XXX = XF86AudioLowerVolume keycode YYY = XF86AudioRaiseVolume
Try loading iichid module (you'll probably need ig4, iicbus and iichid modules, YMMV). FreeBSD have this on base, for FreeBSD 12 and older, install sysutils/iichid.xev doen't recognize my volume button press. It recognizes mouse movements and other buttons but not media buttons.
That comes from the Makefile: "IGNORE_FreeBSD_13= is a part of base system". Please take a look atit says " iichid-0.0.6 Is a part of base system."
man iichid
when you run FBSD13 or 14.I loaded the module in kernel by adding it in loader.conf. now what? How do I know the keycode? tried xev but still not getting it.That comes from the Makefile: "IGNORE_FreeBSD_13= is a part of base system". Please take a look atman iichid
when you run FBSD13 or 14.
And that is exactly what was said here. ?found this thread, if anyone is having any problems... https://forums.freebsd.org/threads/multimedia-keys.6253/page-2
I am sorry I am not tech savvy. I was just told which tool to use but I didn't know what to do with it. I don't have much knowledge about OS.And that is exactly what was said here. ?
Ohh okay, I am sorry...This thread is more specific to the newer ichiid which is in base.
I created .Xmodmap but it is not working. I am using dwm.Fisrt of all determine the keycodes using xev(1) (as mentioned by DiscmanDaemon), then create/modify file ~/.Xmodmap:
This is a universal solution, not just for KDE. If KDE doesn't use ~/.Xmodmap automatically, you should add it to $KDEDIR/share/config/kdm/Xsession.Code:keycode XXX = XF86AudioLowerVolume keycode YYY = XF86AudioRaiseVolume
I'm using dwm for many years. Actually, it doesn't matter. How do you launch it?I created .Xmodmap but it is not working. I am using dwm.
startx
, so I added to my ~/.xinitrc:
xmodmap -display :0 /home/myuser/.Xmodmap