-->
Home » , , , » KMix is an application to allow you to change the volume of your sound card.
Friday
18 November 2011

KMix is an application to allow you to change the volume of your sound card.

KMix is an application to allow you to change the volume of your sound card. Though small, it is full-featured, and it supports several platforms and sound drivers.

By default, clicking the KMix icon in the system tray shows the master controller where you can increase or decrease the overall volume. To switch off the sound, click the green LED, which darkens when it is muted.

Toggle this option by clicking the LED again. To fine-tune your sound settings for several channels, right-click the KMix icon and select Show Mixer Window. In the main window, you can configure Output, Input, and Switches. Each of the devices featured there has its own context menu that is opened by right-clicking the device icon. You can mute or hide each one of them separately. For further information about KMix, refer to the online help.

Features
.

    Support for ALSA and OSS sound systems
    Plasma Desktop integrated on-screen-display for volume changes


These days the GUI mixers KMix and GNOME Sound Preferences display PulseAudio devices and streams rather than ALSA mixer channels. For example, prior to its integration with PulseAudio, KMix typically displayed a mixer window that looked like the one below.

KMix showing ALSA channels
KMix with ALSA channels

whereas, today, a KMix window typically looks like the following:

KMix with PulseAudio channels
KMix with PulseAudio channels

KMix 3.8 in KDE 4.6.1 does not provide separate speaker and headphone channels. You can alter the headphone and speaker volume by using PulseAudio Volume Control instead (see the picture below), but people are not as familiar with the PulseAudio GUI, and it is yet another step to perform.

PulseAudio Volume Control showing selection of Headphones channel


PulseAudio Volume Control showing selection of Headphones channel

If you are like me, you probably end up using KMix (or GNOME Sound Preferences) but also launch ALSA Mixer in a Konsole/Terminal for fine-grained control of the underlying ALSA channels:
ALSA Mixer running in Konsole
ALSA Mixer running in Konsole

This is more hassle, because you launch Konsole/Terminal and you enter the command alsamixer and press F6 (alternatively, use the command alsamixer -c 0 if your sound card is Card 0). The PulseAudio channels are displayed by default if you don’t specify your sound card when you launch ALSA Mixer.
It would be handy to have an icon on the Panel or on the Desktop that you could use to launch ALSA Mixer. Well, you can. In fact, as there is also a GUI version of ALSA Mixer (albeit with a few less features than its console equivalent) you can use that instead if you prefer. Below I explain a few of the possible ways you can display ALSA Mixer easily from within a desktop environment.

Change KMix from a PulseAudio mixer to an ALSA mixer.

By default KMix displays PulseAudio channels instead of ALSA channels. However, if you want to display the ALSA channels instead (as shown in the first picture above), quit KMix and enter the following command in a Konsole window or in KRunner:

export KMIX_PULSEAUDIO_DISABLE=1 && kmix

If you want to make this permanent then add KMIX_PULSEAUDIO_DISABLE=1 to the file /etc/conf.d/alsasound

Personally, though, I prefer not to do this as I want to control the PulseAudio channels via the KMix mixer. Try running two or more audio/video apps simultaneously and you’ll see what I mean – it’s useful! For example, I can control the volume of various applications separately (handy when you want to check something or are using Skype), as illustrated by the picture below:

KMix showing PulseAudio playback streams tab
KMix showing PulseAudio playback streams tab

and I run ALSA Mixer separately to tweak the underlying ALSA channels. Using Yakuake (or Guake in GNOME) is quite a good way to run ALSA Mixer in a console: it is quick and easy to pop-up a window to launch ALSA Mixer, and ALSA Mixer is displayed in colour at nearly the width of the desktop.

Launch ALSA Mixer GUI from an icon on the Panel.

First, use your package manager to install the package alsamixergui. It’s a GUI equivalent of the console ALSA Mixer, but with a few less options.

Once you install it, you should find ALSA Mixer GUI in your desktop environment menu (e.g. Kickoff > Applications > Multimedia > ALSA Mixer GUI). By default this will show the PulseAudio channels, so use the menu editor (e.g. right-click on Kickoff and select Menu Editor) to change the command to the following if your sound card is Card 0:

alsamixergui -c 0

Once you have done this, save the new menu entry, log out and log in again, and when you launch ALSA Mixer GUI from the menu a window similar to the following will pop-up:

ALSA Mixer GUI
ALSA Mixer GUI

To put an icon on the Panel in order to make it even easier to launch ALSA Mixer GUI, just drag the icon from the menu to the Panel and it will be copied to the Panel. Simple as that.

Launch ALSA Mixer in a Konsole docked in the System Tray
You can do this using KDocker, which works in KDE, GNOME, Xfce and other desktop environments.
For KDE, create the following Desktop Configuration File Konsole-alsamixer.desktop (or whatever name you want) and put it in the directory ~/.kde4/Autostart/
[Desktop Entry]
Comment[en_GB]=Console (docked) running ALSA Mixer
Comment=Console (docked) running ALSA Mixer
Exec=kdocker konsole -e alsamixer -c 0
GenericName[en_GB]=Dock Konsole running ALSA Mixer in the System Tray
GenericName=Dock Konsole running ALSA Mixer in the System Tray
Icon=kmix
MimeType=
Name[en_GB]=Konsole (Docked)
Name=Konsole (Docked)
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

KDE System Tray showing Konsole docked using KDocker
KDE System Tray showing Konsole docked using KDocker

Clicking on the docked Konsole icon in the System Tray will pop-up a Konsole window with the familiar ALSA Mixer running in it, as shown in the fourth picture above. Clicking on the icon again will minimise the Konsole to the System Tray.

Launch ALSA Mixer in a Konsole from an icon on the Desktop
For KDE, create the following Desktop Configuration File Konsole-alsamixer.desktop (or whatever name you want) and put it in the directory ~/Desktop/
[Desktop Entry]
Comment[en_GB]=Console running ALSA Mixer
Comment=Console running ALSA Mixer
Exec=konsole -e alsamixer -c 0
GenericName[en_GB]=Konsole running ALSA Mixer
GenericName=Konsole running ALSA Mixer
Icon=kmix
MimeType=
Name[en_GB]=Konsole
Name=Konsole
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

You can change the icon displayed on the Desktop either by right-clicking on the icon on the Desktop and selecting Properties or by editing the file directly. For example, I specified Icon=/usr/share/icons/mono/scalable/apps/kmix.svgz which looks rather retro and I think suits the unsophisticated looks of ALSA Mixer.
Custom Search

Adserver                   610x250
If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:


0 commenti:

Post a Comment

Random Posts

  • ImageMagick software suite to create, edit, compose, or convert bitmap images.
    11.01.2011 - 0 Comments
    ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use…
  • Parsix GNU/Linux is a live and installation CD derived from KANOTIX and based onDebian.
    26.12.2009 - 0 Comments
    Parsix GNU/Linux is a computer operating system available as a live CD that can also be installed on a hard disk. It is a Linux distribution based on Kanotix, which is based on Debian testing. Unlike Kanotix, its desktop environment is GNOME. It…
  • MySQL Client-Side Scripts and Utilities
    12.05.2009 - 0 Comments
    Overview of the Client-Side Scripts and UtilitiesAll MySQL clients that communicate with the server using the mysqlclient library usethe following environment variables:Name DescriptionMYSQL_UNIX_PORT The default socket; used for connections to…
  • Gnumeric is a free spreadsheet program that is part of the GNOME desktop.
    01.01.2009 - 0 Comments
    Gnumeric is a free spreadsheet program that is part of the GNOME desktop and has Windows installers available. It is intended to be a free replacement for proprietary spreadsheet programs such as Microsoft Excel, which it broadly and openly…
  • Aura clever desktop background setter tool for art appreciators
    06.03.2012 - 0 Comments
    Aura tool is a desktop background setter, capable of:    picking image randomly from specified paths;     skipping too small images and images with too different aspect rate;     rescaling…
  • MythDora is a specialized Linux distribution based on Fedora and MythTV.
    18.04.2010 - 0 Comments
    MythDora is a specialized operating system based on Fedora and MythTV. Since 2009, the version number comes from the version of Fedora used followed by the version of MythTV used. For example, the current version 12.23 uses Fedora 12 and MythTV…
  • Mapivi, photo viewer and organizer with emphasis on IPTC fields.
    29.09.2010 - 0 Comments
    Martin's Picture Viewer (Mapivi) is a cross-platform, open source picture manager and organizer. It is a standalone tool and does not use a separate web server, online access or a database.This application copes admirably with EXIF data (like…
  • Ubuntu Server Edition on Amazon - Beta programme now open
    21.03.2009 - 0 Comments
    Ubuntu Server Edition on Amazon gives you the power of Ubuntu combined with the flexibility of Amazon's cloud computing service. Ubuntu's modularity, virtualization capabilities, range of applications and optimised performance make it the perfect…
  • AudioLink makes managing and searching for music easier.
    01.08.2010 - 0 Comments
    AudioLink is a tool that makes searching for music on your local storage media easier and faster. Your searches can include a variety of criteria, like male artists, female artists, band, genre, etc. It works with MP3 and Ogg Vorbis files and…
  • The Fabulous FVWM Window Manager for Linux.
    19.06.2011 - 0 Comments
    If you have never tried FVWM as your Linux window manager, I urge you to give it a chance. If you do, you'll likely at first be baffled at what to do next, then frustrated at the mounds of documentation that seem to always miss the point, but then…

Recent Posts

Recent Posts Widget

Popular Posts

Labels

Archive

page counter follow us in feedly
 
Copyright © 2014 Linuxlandit & The Conqueror Penguin
-->