Difference between revisions of "IBM ThinkPad X31"

From ArchWiki
Jump to: navigation, search
(re-categorize)
(orthograph; format; templates; fixed reference to /etc/modprobe.conf; links to xprofile, xrandr and Xorg Input Hotplugging)
Line 1: Line 1:
 
[[Category:IBM (English)]]
 
[[Category:IBM (English)]]
 +
 
The IBM Thinkpad X31 is a wonderful little laptop which contains everything you need for your everyday work, and even some gaming, if you tweak things a little. The X31 is rock solid, light (3.7 lbs), and nowadays very cheap. The only drawback is the lack of internal optical drive.You can see the specs of the X31 on [http://www.thinkwiki.org/wiki/Category:X31 ThinkWiki], a wonderful resource with additional informations.
 
The IBM Thinkpad X31 is a wonderful little laptop which contains everything you need for your everyday work, and even some gaming, if you tweak things a little. The X31 is rock solid, light (3.7 lbs), and nowadays very cheap. The only drawback is the lack of internal optical drive.You can see the specs of the X31 on [http://www.thinkwiki.org/wiki/Category:X31 ThinkWiki], a wonderful resource with additional informations.
  
 
==Installation==
 
==Installation==
 +
 
A basic Arch Linux installation will do just fine for about everything, so I won't talk about sound or other basic stuff. No custom kernel needed. However, you will need the following particular packages:
 
A basic Arch Linux installation will do just fine for about everything, so I won't talk about sound or other basic stuff. No custom kernel needed. However, you will need the following particular packages:
* ipw2100-fw and wireless_tools for wireless
+
* {{Package Official|ipw2100-fw}} and {{Package Official|wireless_tools}} for wireless
* xf86-video-ati for direct rendering (see above)
+
* {{Package Official|xf86-video-ati}} for direct rendering (see above)
* uswsusp for hibernation (see above)
+
* {{Package Official|uswsusp}} for hibernation (see above)
  
 
The following useful packages are in the [[AUR]].
 
The following useful packages are in the [[AUR]].
* rovclock for boosting direct rendering (see above)
+
* {{Package AUR|rovclock}} for boosting direct rendering (see above)
  
 
==Hibernation==
 
==Hibernation==
Simply save this script as /usr/bin/hibernation:
+
 
#!/bin/bash
+
Create the following file and make it executable:
modprobe -r ehci_hcd  
+
{{File|name=/usr/bin/hibernation|content=<nowiki>
/usr/sbin/s2ram -rf
+
#!/bin/bash
modprobe ehci_hcd
+
 
 +
modprobe -r ehci_hcd  
 +
/usr/sbin/s2ram -rf
 +
modprobe ehci_hcd
 +
</nowiki>}}
 
    
 
    
 
You now just have to run this command whenever you want to suspend to ram:
 
You now just have to run this command whenever you want to suspend to ram:
Line 23: Line 29:
 
To hibernate and resume simply by closing the lid of your laptop, simply run this command:
 
To hibernate and resume simply by closing the lid of your laptop, simply run this command:
 
  # echo -e "event=button[ /]lid\naction=/usr/bin/hibernation" > /etc/acpi/events/suspend.conf
 
  # echo -e "event=button[ /]lid\naction=/usr/bin/hibernation" > /etc/acpi/events/suspend.conf
 +
 
It simply tells ACPI to run the command "hibernation" on the "lid closed" event.
 
It simply tells ACPI to run the command "hibernation" on the "lid closed" event.
  
Line 29: Line 36:
  
 
==Xorg and direct rendering==
 
==Xorg and direct rendering==
 +
 
This section assumes the ATI Radeon Mobility M6 LY video card. This can be verified using:
 
This section assumes the ATI Radeon Mobility M6 LY video card. This can be verified using:
 
  $ lspci | grep Mobility
 
  $ lspci | grep Mobility
 +
 
Here is a minimal {{Filename|xorg.conf}}, optimized for performance:
 
Here is a minimal {{Filename|xorg.conf}}, optimized for performance:
 
{{File|name=/etc/X11/xorg.conf|content=
 
{{File|name=/etc/X11/xorg.conf|content=
Line 56: Line 65:
 
EndSection
 
EndSection
 
}}
 
}}
{{Note|This configuration disables compositing to improve performance. If you need this feature, set ''Composite'' to ''Enable''. Also, if you use HAL for managing device, set ''AutoAddDevices'' to ''true''.}}
+
 
 +
{{Note|This configuration disables compositing to improve performance. If you need this feature, set {{Codeline|Composite}} to {{Codeline|Enable}}. Also, if you want to use [[Xorg Input Hotplugging]], set {{Codeline|AutoAddDevices}} to {{Codeline|true}}.}}
  
 
===Dri===
 
===Dri===
You can boost dri rendering performance by using this ~/.drirc:
+
 
 +
You can boost dri rendering performance by creating this file:
 
{{File|name=~/.drirc|content=
 
{{File|name=~/.drirc|content=
 
  <driconf>
 
  <driconf>
Line 82: Line 93:
 
  </driconf>
 
  </driconf>
 
}}
 
}}
 +
 
If you wish to modify your dri configuration, install {{Package Official|driconf}}.
 
If you wish to modify your dri configuration, install {{Package Official|driconf}}.
  
 
===Rovclock===
 
===Rovclock===
 +
 
You can also overclock your graphic card. As far as I know, there is no real drawback, but you can play it safe and only use it while running a game or compiz or any application using your graphic card:
 
You can also overclock your graphic card. As far as I know, there is no real drawback, but you can play it safe and only use it while running a game or compiz or any application using your graphic card:
  # rovclock -c 220 -m 210
+
  rovclock -c 220 -m 210
 +
 
 
Use this command to get back to default settings:
 
Use this command to get back to default settings:
  # rovclock -c 144 -m 144
+
  rovclock -c 144 -m 144
If you what to enable it permanently, you just have to add the first command in your ~/.xinitrc, or use any other way to run it once X is started.
+
 
If, however, you barely use your graphic card, you can lower both power usage and temperature slightly by underclocking your graphic card at boot. Add this command to ~/.xinitrc :
+
If you want to enable it permanently, add the first command in [[xprofile]].
  # rovclock -c 90 -m 100
+
 
 +
If, on the contrary, you barely use your graphic card, you can lower both power usage and temperature slightly by underclocking your graphic card at boot by adding this command to [[xprofile]]:
 +
  rovclock -c 90 -m 100
  
 
===Dual Screen===
 
===Dual Screen===
If you want to use an external screen for a presentation or as an extended desktop, you can use xrandr.
+
 
For an extended desktop, you should first add one line in your /etc/x11/xorg.conf configuration file at the SubSection "Display" area:
+
If you want to use an external screen for a presentation or as an extended desktop, you can use [[xrandr]].
 +
For an extended desktop, you should first add one line in your {{Filename|/etc/x11/xorg.conf}} configuration file in the {{Codeline|SubSection "Display"}} area:
 +
 
 
Before:
 
Before:
 
  SubSection "Display"
 
  SubSection "Display"
Line 104: Line 122:
 
After:
 
After:
 
  SubSection "Display"
 
  SubSection "Display"
  Depth    24
+
Depth    24
  Modes "1024x768" "800x600" "640x480"
+
Modes "1024x768" "800x600" "640x480"
                Virtual 2304 1024
+
Virtual 2304 1024
 
  EndSubSection
 
  EndSubSection
  
Line 113: Line 131:
 
Note that in 24 bits with this option, the performance is affected for 3D drawing, so you may need to comment it and use only one screen when you need the graphical power.
 
Note that in 24 bits with this option, the performance is affected for 3D drawing, so you may need to comment it and use only one screen when you need the graphical power.
  
Then restart your X server (ctrl-alt-backspace). You can issue this command in a shell:
+
Then restart your X server. You can issue this command in a shell:
 
  xrandr --output VGA-0 --right-of LVDS
 
  xrandr --output VGA-0 --right-of LVDS
  
To find the exact name of the monitors and the maximum resolution that you set up in the configuration file, you can type just '''xrandr''' without arguments.
+
To find the exact name of the monitors and the maximum resolution that you set up in the configuration file, you can type just {{Codeline|xrandr}} without arguments.
  
 
==Powersaving==
 
==Powersaving==
Here are various method to save power:
+
 
 
===Laptop-mode===
 
===Laptop-mode===
 +
 
This will put your screen brightness to the minimum level when on battery and restore it to maximum when on ac power:
 
This will put your screen brightness to the minimum level when on battery and restore it to maximum when on ac power:
  # echo -e '#!/bin/bash\necho 0 > /sys/class/backlight/thinkpad_screen/brightness' > /etc/laptop-mode/batt-start/battscript
+
  echo -e '#!/bin/bash\necho 0 > /sys/class/backlight/thinkpad_screen/brightness' > /etc/laptop-mode/batt-start/battscript
  # chmod 0755 /etc/laptop-mode/batt-start/battscript
+
  chmod 0755 /etc/laptop-mode/batt-start/battscript
  # echo -e '#!/bin/bash\necho 7 > /sys/class/backlight/thinkpad_screen/brightness' > /etc/laptop-mode/lm-ac-start/acscript
+
  echo -e '#!/bin/bash\necho 7 > /sys/class/backlight/thinkpad_screen/brightness' > /etc/laptop-mode/lm-ac-start/acscript
  # chmod 0755 /etc/laptop-mode/lm-ac-start/acscript
+
  chmod 0755 /etc/laptop-mode/lm-ac-start/acscript
  # ln -s /etc/laptop-mode/lm-ac-start/acscript /etc/laptop-mode/onlm-ac-start/acscript
+
  ln -s /etc/laptop-mode/lm-ac-start/acscript /etc/laptop-mode/onlm-ac-start/acscript
 +
 
 
It will create scripts, executed by the laptop-mode daemon when switching the power source, that change the brightness of your screen using the thinkpad_acpi module.
 
It will create scripts, executed by the laptop-mode daemon when switching the power source, that change the brightness of your screen using the thinkpad_acpi module.
 +
 
===Undervolting===
 
===Undervolting===
 +
 
The X31 CPUs can be undervolted, which means they will offer you the same performance, but with more battery life and a cooler laptop. From personal experience, my CPU temperature,during 100% activity, dropped by 15-20°C just by using this patch. This is extremely easy using the linux-phc patch, but only if you know the proper values to give the CPU. Informations on how to find them is available [http://gentoo-wiki.com/HOWTO_Undervolt_a_Pentium_M_CPU here] or [http://www.thinkwiki.org/wiki/Pentium_M_undervolting_and_underclocking here]. I know it can be hard to find your own values, so here is a table were you can indicate what are the good values for each of the X31 CPUs:
 
The X31 CPUs can be undervolted, which means they will offer you the same performance, but with more battery life and a cooler laptop. From personal experience, my CPU temperature,during 100% activity, dropped by 15-20°C just by using this patch. This is extremely easy using the linux-phc patch, but only if you know the proper values to give the CPU. Informations on how to find them is available [http://gentoo-wiki.com/HOWTO_Undervolt_a_Pentium_M_CPU here] or [http://www.thinkwiki.org/wiki/Pentium_M_undervolting_and_underclocking here]. I know it can be hard to find your own values, so here is a table were you can indicate what are the good values for each of the X31 CPUs:
* Pentium-m 1600MHz : 34 26 18 12 8 5<br>Please note you computer may freeze once a month because of those values. If you find more stable ones, please indicate them.
+
* Pentium-m 1600MHz : 34 26 18 12 8 5
One you have your values, just run:
+
{{Warning|Your computer may freeze once a month because of those values. If you find more stable ones, please indicate them.}}
 +
 
 +
Once you have your values, just run:
 
  # echo VALUES > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
 
  # echo VALUES > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
 +
 
For example:
 
For example:
 
  # echo 34 26 18 12 8 5 > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
 
  # echo 34 26 18 12 8 5 > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
You can add this command to your /etc/rc.local to make the undervolting permanent.
 
  
===Modprobe.conf===
+
You can add this command to your {{Filename|/etc/rc.local}} to make the undervolting permanent.
Put those line in your /etc/modprobe.conf:
+
 
 +
===Modprobe===
 +
 
 +
Create the following file:
 +
{{File|name=/etc/modprobe.d/powersave.conf|content=<nowiki>
 
  options usbcore autosuspend=1
 
  options usbcore autosuspend=1
 
  options ipw2100 associate=0
 
  options ipw2100 associate=0
 
  options snd_ac97_codec power_save=1
 
  options snd_ac97_codec power_save=1
 
  options thinkpad-acpi experimental=1 fan_control=1
 
  options thinkpad-acpi experimental=1 fan_control=1
The three first lines put some of your devices in power-saving mode, respectively the USB ports, the wireless card and the sound card.
+
</nowiki>}}
Note that you need the last line in order to control your fan speed (see above)
+
 
 +
The three first lines put some of your devices in power-saving mode, respectively the USB ports, the wireless card and the sound card. Note that you need the last line in order to control your fan speed (see above).
  
 
===Powertop===
 
===Powertop===
 +
 
To see additional sources of power drain, install powertop:
 
To see additional sources of power drain, install powertop:
 
  # pacman -S powertop
 
  # pacman -S powertop
 +
 
And run it while on battery power.
 
And run it while on battery power.
  
===Hard drive dilemna===
+
===Hard drive dilemma===
 +
 
 
As set earlier, the hard drive is on a power-saving mode that can make it spin off and on often. It may reduce its lifetime. You can install the '''smartmontools''' package and issue this command:
 
As set earlier, the hard drive is on a power-saving mode that can make it spin off and on often. It may reduce its lifetime. You can install the '''smartmontools''' package and issue this command:
 
  # smartctl -A /dev/sda | grep Load_Cycle_Count
 
  # smartctl -A /dev/sda | grep Load_Cycle_Count
 +
 
If the number is growing too fast, you might want to set off the powersaving mode by issuing:  
 
If the number is growing too fast, you might want to set off the powersaving mode by issuing:  
 
  # hdparm -B 254 /dev/sda
 
  # hdparm -B 254 /dev/sda
  
See the above item rc.local to modify it at boot time.
+
Put it in {{Filename|/etc/rc.local}} to modify it at boot time.
  
 
==Other==
 
==Other==
 +
 
===Fan-control===
 
===Fan-control===
You can use a script from [http://www.thinkwiki.org/wiki/ThinkWiki ThinkWiki] to considerably lower your CPU temperature. Simply download it from [http://www.thinkwiki.org/index.php?title=Code/tp-fancontrol&action=raw&ctype=application/octet-stream here], rename it to tp-fancontrol, and run:
+
 
 +
You can use a script from [http://www.thinkwiki.org/wiki/ThinkWiki ThinkWiki] to considerably lower your CPU temperature. Simply download it from [http://www.thinkwiki.org/index.php?title=Code/tp-fancontrol&action=raw&ctype=application/octet-stream here], rename it to {{Filename|tp-fancontrol}}, and run:
 
  # chmod 0755 tp-fancontrol
 
  # chmod 0755 tp-fancontrol
 
  # mv tp-fancontrol /usr/bin
 
  # mv tp-fancontrol /usr/bin
To run the script at each boot, add this line to your /etc/rc.local:
+
 
 +
To run the script at each boot, add this line to your {{Filename|/etc/rc.local}}:
 
  tp-fancontrol -d
 
  tp-fancontrol -d
Also, I suggest changing the first maximum temperature threshold (the CPU one) to 55. Just edit /usr/bin/tp-fancontrol, the file is self-explanatory.
+
 
 +
Also, I suggest changing the first maximum temperature threshold (the CPU one) to 55. Just edit {{Filename|/usr/bin/tp-fancontrol}}, the file is self-explanatory.
  
 
===Wireless and WPA===
 
===Wireless and WPA===
 +
 
If you have the Cisco neta504 wifi card, it's a bit tricky to use the wpa encryption with it.  
 
If you have the Cisco neta504 wifi card, it's a bit tricky to use the wpa encryption with it.  
Firstofall, remove and blacklist the airo and the airo_cs modules in your /etc/rc.conf
+
Firstofall, remove and blacklist the airo and the airo_cs modules in your {{Filename|/etc/rc.conf}}
 
remove the module airo from the kernel
 
remove the module airo from the kernel
 
  # rmmod airo
 
  # rmmod airo
 
  # rmmod airo_cs
 
  # rmmod airo_cs
 +
 
then install ndiswrapper
 
then install ndiswrapper
 
  # pacman -S ndiswrapper
 
  # pacman -S ndiswrapper
Line 188: Line 227:
 
  # modprobe ndiswrapper
 
  # modprobe ndiswrapper
  
and voilà !
+
and voilà ! I've tried this with wicd and it works flawlessly !
I've tried this with wicd and it works flawlessly !
+
  
 
=== Audio keys ===
 
=== Audio keys ===
 +
 
To enable the audio keys interfacing with ALSA, add:
 
To enable the audio keys interfacing with ALSA, add:
 
  event=ibm/hotkey HKEY 00000080 *
 
  event=ibm/hotkey HKEY 00000080 *
 
  action=/etc/acpi/soundkey.sh %e
 
  action=/etc/acpi/soundkey.sh %e
to /etc/acpi/events/soundkey, and:
 
#!/bin/bash
 
 
echo here > /tmp/fish
 
echo $4 >> /tmp/fish
 
case "$4" in
 
00001015)
 
amixer -c 0 set Master playback unmute
 
amixer -c 0 set Master playback 3%+
 
;;
 
00001016)
 
amixer -c 0 set Master playback unmute
 
amixer -c 0 set Master playback 3%-
 
;;
 
00001017)
 
amixer -c 0 set Master playback mute
 
;;
 
esac
 
to /etc/acpi/soundkey.sh, and chown 755 it.
 
  
You'll also need to add:
+
to {{Filename|/etc/acpi/events/soundkey}}, create the following file and make it executable:
 +
{{File|name=/etc/acpi/soundkey.sh|content=<nowiki>
 +
#!/bin/bash
  
 +
echo here > /tmp/fish
 +
echo $4 >> /tmp/fish
 +
case "$4" in
 +
00001015)
 +
amixer -c 0 set Master playback unmute
 +
amixer -c 0 set Master playback 3%+
 +
;;
 +
00001016)
 +
amixer -c 0 set Master playback unmute
 +
amixer -c 0 set Master playback 3%-
 +
;;
 +
00001017)
 +
amixer -c 0 set Master playback mute
 +
;;
 +
esac
 +
</nowiki>}}
 +
 +
You'll also need to add:
 
  echo enable,0xffffffff >/proc/acpi/ibm/hotkey
 
  echo enable,0xffffffff >/proc/acpi/ibm/hotkey
  
to /etc/rc.local or somewhere similiar for the events to be recognised.
+
to {{Filename|/etc/rc.local}} or somewhere similar for the events to be recognized.

Revision as of 09:55, 30 July 2010


The IBM Thinkpad X31 is a wonderful little laptop which contains everything you need for your everyday work, and even some gaming, if you tweak things a little. The X31 is rock solid, light (3.7 lbs), and nowadays very cheap. The only drawback is the lack of internal optical drive.You can see the specs of the X31 on ThinkWiki, a wonderful resource with additional informations.

Installation

A basic Arch Linux installation will do just fine for about everything, so I won't talk about sound or other basic stuff. No custom kernel needed. However, you will need the following particular packages:

The following useful packages are in the AUR.

Hibernation

Create the following file and make it executable: Template:File

You now just have to run this command whenever you want to suspend to ram:

# hibernation

To hibernate and resume simply by closing the lid of your laptop, simply run this command:

# echo -e "event=button[ /]lid\naction=/usr/bin/hibernation" > /etc/acpi/events/suspend.conf

It simply tells ACPI to run the command "hibernation" on the "lid closed" event.

Note for those with resume issues after updating to kernel >=2.6.31: disable kernel modesetting by appending "nomodeset" to your kernel parameters. --Tad 05:51, 19 October 2009 (EDT)

Xorg and direct rendering

This section assumes the ATI Radeon Mobility M6 LY video card. This can be verified using:

$ lspci | grep Mobility

Here is a minimal Template:Filename, optimized for performance: Template:File

Note: This configuration disables compositing to improve performance. If you need this feature, set Template:Codeline to Template:Codeline. Also, if you want to use Xorg Input Hotplugging, set Template:Codeline to Template:Codeline.

Dri

You can boost dri rendering performance by creating this file: Template:File

If you wish to modify your dri configuration, install Template:Package Official.

Rovclock

You can also overclock your graphic card. As far as I know, there is no real drawback, but you can play it safe and only use it while running a game or compiz or any application using your graphic card:

rovclock -c 220 -m 210

Use this command to get back to default settings:

rovclock -c 144 -m 144

If you want to enable it permanently, add the first command in xprofile.

If, on the contrary, you barely use your graphic card, you can lower both power usage and temperature slightly by underclocking your graphic card at boot by adding this command to xprofile:

rovclock -c 90 -m 100

Dual Screen

If you want to use an external screen for a presentation or as an extended desktop, you can use xrandr. For an extended desktop, you should first add one line in your Template:Filename configuration file in the Template:Codeline area:

Before:

SubSection "Display"
 		Depth     24
 		Modes "1024x768" "800x600" "640x480"
EndSubSection

After:

SubSection "Display"
		Depth     24
		Modes "1024x768" "800x600" "640x480"
		Virtual 2304 1024
EndSubSection

The numbers are the total rectangular resolution that you need to use. In this case, I'm using the internal 1024x768 screen and an external 1280x1024 screen on the right. The total resolution is 1024+1280=2304 pixels large and 1024>768=1024 pixels height.

Note that in 24 bits with this option, the performance is affected for 3D drawing, so you may need to comment it and use only one screen when you need the graphical power.

Then restart your X server. You can issue this command in a shell:

xrandr --output VGA-0 --right-of LVDS

To find the exact name of the monitors and the maximum resolution that you set up in the configuration file, you can type just Template:Codeline without arguments.

Powersaving

Laptop-mode

This will put your screen brightness to the minimum level when on battery and restore it to maximum when on ac power:

echo -e '#!/bin/bash\necho 0 > /sys/class/backlight/thinkpad_screen/brightness' > /etc/laptop-mode/batt-start/battscript
chmod 0755 /etc/laptop-mode/batt-start/battscript
echo -e '#!/bin/bash\necho 7 > /sys/class/backlight/thinkpad_screen/brightness' > /etc/laptop-mode/lm-ac-start/acscript
chmod 0755 /etc/laptop-mode/lm-ac-start/acscript
ln -s /etc/laptop-mode/lm-ac-start/acscript /etc/laptop-mode/onlm-ac-start/acscript

It will create scripts, executed by the laptop-mode daemon when switching the power source, that change the brightness of your screen using the thinkpad_acpi module.

Undervolting

The X31 CPUs can be undervolted, which means they will offer you the same performance, but with more battery life and a cooler laptop. From personal experience, my CPU temperature,during 100% activity, dropped by 15-20°C just by using this patch. This is extremely easy using the linux-phc patch, but only if you know the proper values to give the CPU. Informations on how to find them is available here or here. I know it can be hard to find your own values, so here is a table were you can indicate what are the good values for each of the X31 CPUs:

  • Pentium-m 1600MHz : 34 26 18 12 8 5
Warning: Your computer may freeze once a month because of those values. If you find more stable ones, please indicate them.

Once you have your values, just run:

# echo VALUES > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids

For example:

# echo 34 26 18 12 8 5 > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids

You can add this command to your Template:Filename to make the undervolting permanent.

Modprobe

Create the following file: Template:File

The three first lines put some of your devices in power-saving mode, respectively the USB ports, the wireless card and the sound card. Note that you need the last line in order to control your fan speed (see above).

Powertop

To see additional sources of power drain, install powertop:

# pacman -S powertop

And run it while on battery power.

Hard drive dilemma

As set earlier, the hard drive is on a power-saving mode that can make it spin off and on often. It may reduce its lifetime. You can install the smartmontools package and issue this command:

# smartctl -A /dev/sda | grep Load_Cycle_Count

If the number is growing too fast, you might want to set off the powersaving mode by issuing:

# hdparm -B 254 /dev/sda

Put it in Template:Filename to modify it at boot time.

Other

Fan-control

You can use a script from ThinkWiki to considerably lower your CPU temperature. Simply download it from here, rename it to Template:Filename, and run:

# chmod 0755 tp-fancontrol
# mv tp-fancontrol /usr/bin

To run the script at each boot, add this line to your Template:Filename:

tp-fancontrol -d

Also, I suggest changing the first maximum temperature threshold (the CPU one) to 55. Just edit Template:Filename, the file is self-explanatory.

Wireless and WPA

If you have the Cisco neta504 wifi card, it's a bit tricky to use the wpa encryption with it. Firstofall, remove and blacklist the airo and the airo_cs modules in your Template:Filename remove the module airo from the kernel

# rmmod airo
# rmmod airo_cs

then install ndiswrapper

# pacman -S ndiswrapper

download the neta504 driver for windows and unpack it (Be sure that you have unpacked the whole driver !) Then run :

# ndiswrapper -i /path/to/your/dir/netA504.inf

Save the ndiswrapper conf file :

# ndiswrapper -m
# ndiswrapper -ma
# ndiswrapper -mi

Now you can add to your kernel the module :

# modprobe ndiswrapper

and voilà ! I've tried this with wicd and it works flawlessly !

Audio keys

To enable the audio keys interfacing with ALSA, add:

event=ibm/hotkey HKEY 00000080 *
action=/etc/acpi/soundkey.sh %e

to Template:Filename, create the following file and make it executable: Template:File

You'll also need to add:

echo enable,0xffffffff >/proc/acpi/ibm/hotkey

to Template:Filename or somewhere similar for the events to be recognized.