Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Fn + up/down works only in mplayer

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
jimmij
Tux's lil' helper
Tux's lil' helper
Posts: 143
Joined: Tue Dec 02, 2008 8:52 pm

Fn + up/down works only in mplayer

  • Quote

Post by jimmij » Tue Apr 08, 2014 1:00 pm

I cannot set volume with function key (Fn+up/down). Other things like brightness (Fn+left/right) or NumLk (Fn+F11) works fine. The only place where Fn+up/down works is mplayer. I believe I should bind Fn+up/down to pcm or master in alsamixer, but how to do that?
Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis.
Top
roseZ
n00b
n00b
User avatar
Posts: 31
Joined: Sat Dec 17, 2005 5:23 pm
Location: Finland

  • Quote

Post by roseZ » Sat Apr 12, 2014 9:31 am

Mplayer recognizes some multimedia keys (like XF86AudioRaiseVolume) out of the box, but configuring them outside specific applications depends on the desktop environment you're using.

Personally, I use x11-misc/xbindkeys which is DE agnostic. In case you want to give it a try, here's a part of my ~/.xbindkeysrc as a tip on how to control the ALSA mixer (for card 0):

Code: Select all

"amixer -q -c 0 set PCM toggle"
  XF86AudioMute
"amixer -q -c 0 set PCM Playback 10%+"
  XF86AudioRaiseVolume
"amixer -q -c 0 set PCM Playback 10%-"
  XF86AudioLowerVolume
That uses amixer from media-sound/alsa-utils package. In case you need one, the Arch folks have written a nice intro on using xbindkeys.
Top
jimmij
Tux's lil' helper
Tux's lil' helper
Posts: 143
Joined: Tue Dec 02, 2008 8:52 pm

  • Quote

Post by jimmij » Sat Apr 12, 2014 3:06 pm

In fact I do not use any DE right now, just pure WM (sawfish). Under gnome Fn keys work fine, but I really hate recent gnome. I tried to use xmodmap which I believe is most basic way for linux, like

Code: Select all

xmodmap -e 'keycode 38 = XF86AudioMute'
normally keycode 38 is assigned to letter 'a'
But again it works only in mplayer, to be precise when I hit letter 'a' everywhere but in mplayer nothing happens.
Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis.
Top
roseZ
n00b
n00b
User avatar
Posts: 31
Joined: Sat Dec 17, 2005 5:23 pm
Location: Finland

  • Quote

Post by roseZ » Sun Apr 13, 2014 6:47 am

That's just it: you've told X that pressing 'a' should count as pressing 'XF86AudioMute', but neither Sawfish nor X is configured to do anything with it (except pass the keypress event to the active application). If, unlike mplayer, the application is not programmed to respond to XF86AudioMute, nothing will happen. That's why I suggested using xbindkeys to do something about those keypresses in my earlier post (or use the facilities of your WM, if it provides them).

By the way, your brightness keys probably work because they are recognized on a lower level (maybe ACPI or even hardware, It's the same on my laptop) and normal numlock behaviour is always the default.
Top
jimmij
Tux's lil' helper
Tux's lil' helper
Posts: 143
Joined: Tue Dec 02, 2008 8:52 pm

  • Quote

Post by jimmij » Mon Apr 14, 2014 1:05 am

OK, thanks for your help, it works.
Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic