dancing penguin

home page logo

[Home] [Chess] [Gallery] [Links] [Linux] [GPG Key] [eBooks]

Bruno, long time ago

Categories...
Archives...
Fri, 20 Jun 2003 Kernel 2.4.21 up and running

I today downloaded, compiled, and installed the latest 2.4.21 Linux kernel. No major problem, and compilation, as usual, was very quick with my bi-pro :-)

As usual, I had also to update my NVidia driver, and to recompile the alsa modules. And, as I did when I installed the previous kernel, I forgot to reconfigure alsa before compiling the modules.

Bruno, repeat 100 times:

I must reconfigure alsa for a new kernel...
I must reconfigure alsa for a new kernel...
I must reconfigure alsa for a new kernel...
I must reconfigure alsa for a new kernel...
I must reconfigure alsa for a new kernel...
I must reconfigure alsa for a new kernel...

[/technical/linux] | permanent link | Google this

Wed, 09 Apr 2003 Olympus C-4040 hotplug script

I have an Olympus C-4040 Zoom Camera, and I usually copied files manually to my computer by mounting, copying, and unmounting the SCSI device.

As I started to use hotplug with my Sony PDA, I decided to automate this copy process.

Step 1: Prerequisites (It should work manually first!)

Your kernel should support usb-storage, which is out of the scope of this blog. If you have an out-of-the-box kernel (2.4.X) from an usual distro ( SuSE, RedHat, etc...), it should be fine anyway.
This link could you give some hints if you need.

Step 2: Add the following line to /etc/hotplug/usb.usermap.

olympus 0x0003 0x07b4 0x0105 0x0100 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000

The hex values 7b4/105/100 are the product code of the camera (dmesg should give you the information).

Step 3: Create a /etc/hotplug/usb/olympus script.

Download it here. This script should be made executable (chmod +x). Don't forget to change some variables too ($DESTDIR, $USER, and $GROUP).
Also, your /etc/fstab should contain something like (change $MOUNTPOINT if the mount point is different):

/dev/sda1 /usb auto noauto,user,sync 0 0

Step 4: Plug your camera to the usb port, and turn it on.

The pictures will be copied to the destination directory, automatically.
When the camera led stops blinking, it means that the copy is finished, so you can turn it off.
You will just have to delete the pictures from the camera later. This could be done in the script itself, but it may be dangerous. Just uncomment the rm line if you really wish to take the risk.

I do it myself, but after all this is my script ;-)

[/technical/linux] | permanent link | Google this

Tue, 08 Apr 2003 USB hotplug added on my Palm-Linux page

I just updated my Palm-Linux page, adding specific Sony Clié hotplug script for PPP connections.
It is really useable now!

Next step: The doc is somehow messy, with Palm/Clié and Linux kernels 2.2.X/2.4.X mix. I will separate clearly the two cases, even if this implies some duplication of text.

[/technical/linux] | permanent link | Google this

Wed, 15 Jan 2003 gmplayer is slow while mplayer is not

My version of gmplayer (0.90pre9-3.2) was sometimes very slow on playing mpeg movies (and only mpegs), while mplayer was running fine. The error message was:

         ************************************************
         **** Your system is too SLOW to play this!  ****
         ************************************************
!!! Possible reasons, problems, workarounds: 
[etc...]

The solution was to find the "cache = 4" line in ${HOME}/.mplayer/gui.conf, and change the value from 4 to 512. Everything is perfect now!
Maybe you could experiment with different values of cache, like 1024, or 2048.

[/technical/linux] | permanent link | Google this