[mythtv-users] Volume Controls
Michael T. Dean
mtdean at thirdcontact.com
Wed Mar 8 18:22:52 UTC 2006
On 03/08/2006 01:47 AM, Jim Kusznir wrote:
> I'm currently trying to use one of those $20 IR keyboards to control
> myth. Or specifically, volume. I have one of those Audigy LS cards
> which do not have a PCM or a Master; instead, the active control is
> "Analog Front" (as I mentioned in the previous e-mail). Also per that
> e-mail thread, myth is unable to control it internally (0.18,
> currently the latest released KnoppMyth).
I replied to your question with an updated volume.sh that is
space-friendly. Please let me know if it causes any issues.
> So, this keyboard has "multimedia keys" inlcuding volume up/down. My
> thoughts were to simply set up the OS to call amixer -q set "Analog
> Front" 15+ for each press for the up key, and similar for the down.
Unfortunately, when doing this with a volume increment small enough to
be useful, you're likely to get stuck or (depending on configuration)
you may need to modify multiple mixer controls--which is why I wrote
volume.sh. I've configured volume.sh to work with my multimedia
keyboard buttons in fluxbox, BTW.
> I was follwing instructions as indicated at:
> http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys#Setting_up_xmodmap
> (no, I am not running Gentoo, but the basic idea is the same). I've
> identified the keycodes and added them to my system Xmodmap, and
> verified (through xmodmap -pk) that the keycodes are being mapped to
> XF86AudioRaiseVolume, etc.
OK, this isn't directly useful, but more than likely, you don't need to
use xmodmap to make this work. X ships with definitions for many
multimedia keyboard models, which can be enabled inside the keyboard's
InputDevice section of XF86Config/xorg.conf:
# Microsoft Multimedia keyboard
# Option "XkbModel" "microsoftmult"
# Logitech iTouch keyboard
# Option "XkbModel" "itouch"
and many others. Google for your keyboard model and XF86Config or
xorg.conf for more info. Using the provided definition for your
keyboard will rule out any xmodmap configuration issues as the root of
the segfault problem.
Mike
More information about the mythtv-users
mailing list