Archive

Archive for the ‘linux’ Category

July 20th, 2009 No comments

I use Rhythmbox as my primary music player in Ubuntu Linux (jaunty), I usually change the song using a hotkey (on windows platform using winamp player). Actually the GNOME hotkeys are doing fine for this. rhythmbox even catches the keystrokes while in background.

step by step to make a hotkey :

- System –> Prefrences –> Keyboard shortc
uts
- Click add, fill the form.
ex :
name : next song
command : rhythmbox-client –next


- Assign shortcut for the new command (just click at the “Disabled” text on the row of new command, then hit a combination of keys, ex : Ctrl + Space)

Here is a list of all the commands rhythmbox-client supports:

--no-start   Don't start a new instance of Rhythmbox
--quit       Quit Rhythmbox
--no-present Don't present an existing Rhythmbox window
--hide       Hide the Rhythmbox window
--next       Jump to next song
--previous   Jump to previous song
--notify     Show notification of the playing song
--play       Resume playback if currently paused
--pause      Pause playback if currently playing
--play-pause Toggle play/pause mode
--play-uri=URI to play  Play a specified URI, importing it if necessary
--enqueue               Add specified tracks to the play queue
--clear-queue           Empty the play queue before adding new tracks
--print-playing         Print the title and artist of the playing song
--print-playing-format  Print formatted details of the song
--set-volume            Set the playback volume
--volume-up             Increase the playback volume
--volume-down           Decrease the playback volume
--print-volume          Print the current playback volume
--mute                  Mute playback
--unmute                Unmute playback

You can make a hotkey for volume up/down, pause/play, etc. :D

Categories: linux Tags:

HP mini 1016tu : fix audio problem on jaunty

July 20th, 2009 No comments

I have installed jaunty on my hp mini, but there is a problem with sound, after searching I found this helpful post (it worked):

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/318942/comments/63

- First, check that you have this packages installed (sudo apt-get install package_name):
patch, gettext, libncurses5-dev, xmlto, xmltoman
- Use this script:

cd ~
mkdir soundtmp
cd soundtmp

wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.19.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.19.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.19.tar.bz2

tar xjf alsa-driver-1.0.19.tar.bz2
tar xjf alsa-lib-1.0.19.tar.bz2
tar xjf alsa-utils-1.0.19.tar.bz2

cd alsa-driver-1.0.19
./configure –with-cards=hda-intel –with-kernel=/usr/src/linux-headers-$(uname -r)
make
sudo make install
cd ..

cd alsa-lib-1.0.19
./configure
make
sudo make install
cd ..

cd alsa-utils-1.0.19
./configure –disable-nls
make
sudo make install

- Change your alsa-base.conf file (sudo gedit /etc/modprobe.d/alsa-base.conf) adding these lines:

options snd-pcsp index=-2
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=hp-m4
options snd-hda-intel enable_msi=1

- Go to System>Preferences>Sound and change first 4 options to ALSA

- Reboot!

-In volume control, you’ll want to set the input sources to “line” and “front mic” for the HDA Intel (Alsa mixer).

- unmute speaker, etc on volume control.

Categories: linux Tags: