Kjetil's Information Center: A Blog About My Projects

Amilo L7300 Tweaks

I have a Fujitsu Siemens Amilo L7300 laptop with Slackware Linux (kernel version 2.6.27) installed on it. As usual with laptop hardware, there are quirks and other special things, mostly because of the complex ACPI system.

In the /etc/rc.d/rc.local script that runs at start-up, I have put some commands that helps with some of the issues with this particular laptop. Hopefully this information can be of use for others also.

One issue is that the fans are turned on at power on, but they are never turned off. Normally they should be activated on demand when temperature rises and then deactivated as the temperature drops. They need to be turned on, then off and then on again manually to fix them.

Another issue is an annoying bug with the keyboard and touch-pad. Around 10% of the times the system has booted, they do not work at all, no reaction. The root cause seems to be the i8042 controller, but luckily it can be "reset".

Finally there is custom keyboard button (with a fan or atomic symbol on it) that is not recognised by the kernel. There is a command to map it, so that it can be used in X afterwards.

Here is parts of the rc.local script:


echo "Reset ACPI fan status."
echo 3 >> /proc/acpi/fan/FN1/state
echo 3 >> /proc/acpi/fan/FN2/state
sleep 1
echo 0 >> /proc/acpi/fan/FN1/state
echo 0 >> /proc/acpi/fan/FN2/state
sleep 1
echo 3 >> /proc/acpi/fan/FN1/state
echo 3 >> /proc/acpi/fan/FN2/state

echo "Reset i8042 keyboard and touch-pad."
echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind 
sleep 1
echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind 

echo "Assign keycode for extra key on keyboard."
/usr/bin/setkeycodes 6d 120

Topic: Configuration, by Kjetil @ 01/09-2009, Article Link