LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   volumn control (https://www.linuxquestions.org/questions/linux-newbie-8/volumn-control-606282/)

huangyongqiang 12-12-2007 08:40 AM

volumn control
 
Hi, I've just switched to kubuntu and found it hardly possible to control the volumn. It seemed that volumn can't be changed even in mplayer other than via the function keys on my keyboard.
Well, anybody knows how to handle it?
Is it asssociated with my audio driver?
Thanx in advance.

ehawk 12-12-2007 02:34 PM

http://ubuntuforums.org/showthread.php?t=231717

huangyongqiang 12-15-2007 08:15 PM

that does not help with the keyboard solution
 
hi, ehawk, i tried the website you recommend, well, i still can't control it in mplayer, nor using kayboard.
anyway, kmix on the panel can control volumn.

matthewg42 12-15-2007 10:03 PM

When you say that you cannot use the keyboard to control the volume, do you mean special-purpose media keys on the keyboard?

huangyongqiang 12-16-2007 12:09 AM

yes, the special keys

matthewg42 12-16-2007 05:41 AM

I see. You might need to set the model of your keyboard like this (if it is listed):
  • Open the control panel (kcontrol). You can do this from the K menu button (K -> system settings).
  • In Personal -> Regional & language -> keyboard layout -> layout (tab), there should be a "keyboard model" selection box. See if the type of keyboard you use is listed there and select it if it is. For me this is "Dell Laptitude". If there isn't an exactly correct one, try something from the same manufacturer.
  • Click apply and close the control panel.

Kubuntu is configured by default that if it seems a keypress of a media key identified as volume up or down it will adjust show the volume level and show a small volume level meter in the centre of the screen.

Another way to see if it's working properly is to use the xev program. This stands for x event viewer. If you start this program from a terminal (just type xev into a terminal and hit return), you will see s small window appear. If you mouse-over this window a load of text will print in the terminal with listings of mouse movement events. Leave the mouse of the window and press the media key. If the key is identified correctly you will see something like this when you release the key:

Code:

KeyRelease event, serial 29, synthetic NO, window 0x3800001,
    root 0x187, subw 0x0, time 3804229226, (43,92), root:(51,871),
    state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

The important thing is the XF86AudioLowerVolume. If the keyboard is not properly configured you will not see this identifier, just the keysym. In this case, paste the keysym (and the work keysym) into google and see if you can find a reference to the keyboard model you should use. :)


All times are GMT -5. The time now is 06:33 AM.