Sunday, June 14, 2009

[Jaunty] Configure program at system boot up

The tpb services can be started from the command line as follows

/etc/init.d/tpb start

This allowed the interaction with some of the Thinkpad laptop special function keys. Now, how can I get this activated automatically during bootup?

Previously, KDE provided KControl where I can choose the various programs available to start or not during system boot. In Jaunty and KDE 4.2, its gone! Here I list 3 alternative ways to manage this. First 2 require users to have a basic knowledge of the runlevels.

METHOD 1: Back to old debian school!
Step 1. Install the sysv-rc-conf from a terminal

sudo apt-get install sysv-rc-conf

Step 2. Run the program, choose what you want activated at each Runlevel.

To select the next page press Control+n or p. Other than that just use the cursor arrows to move to different services.

METHOD 2: Use Gnome Bum. Better to also understand scripts priority that begin with "K" means to shutdown, "S" to start up.
Step 1: Install the Bum with the terminal.

sudo apt-get install bum

Step 2: Start the Bum.
From the KMenu ->Application ->System ->Bootup Manager

Since its menu driven, should be easier to figure out.

METHOD 3: Start a script during login, with KDE Autostart
Step 1: In KDE systems, all scripts located in ~/.kde/Autostart will automatically run when a user logs in (Where the ~ means your home directory). Create a new file called with the following contents to start thinkpad sound mixer;

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
tpb -m on

Step 2: Save the file.

Step 3: Change the mode to executable

$ chmod u+x ~/.kde/Autostart/

Step 4: Logout, then log back in.
You can then try the Thinkpad's volume control. This should produce the on screen display (OSD) of the volume bar. Other settings can be configured in the /etc/tpbrc or ~/.tpbrc

Friday, June 5, 2009

[Jaunty] Managing sound device

The recent Kubuntu 9.04 Linux uses the Pulseaudio to manage its sounds device selection. To enable all sound devices to use the Pulseaudio sound server, open a terminal and type

asoundconf set-pulseaudio

Any application that need to access the audio, including the ALSA will be sent to the Pulseaudio server. The settings can be configured at


Open or play a movie or sound and test if it works. If this does not work, reset back to use the default ALSA system with the command;

asoundconf reset-default-card

I am still trying to figure out the significant benefit of using Pulseaudio.

Wednesday, June 3, 2009

[Jaunty] Firefox can use apt://

Some URLs accessed by Firefox is used to install packages for Linux. For example the URL to add the canonical cloud client.


I get the following message.

Firefox doesn't know how to open this address, because the protocol (apt) isn't associated with any program.


I started synaptic and added the package apturl, searched for Ubufox extension for Firefox. Restarted Firefox and now I can access the URL.

Blog Archive