Irssi scripts

I recently started using the wonderful textbased IRC client called Irssi. It’s console based, scriptable in Perl, fast, low memory footprint.. really nice for the average geek ;p

As it does come with a nice collection of scripts, some holes were still left for it to be really to my liking. So I took up some perl scripting, and created some scrips of my own.

Disclaimer: These scripts are provided as is, without any guarantee of usability. I guarantee nothing, if it blows up your pc you get to keep all the pieces! If they work, that’s even better, but I don’t guarantee anything. You’ve got the source, read it, and judge for yourself

yaiaways.pl – Yet Another Irssi Away Script

Okay, there are plenty of good away scripts for Irssi, yet none did what I wanted, that is to put me away with a fixed message, change my nick with a certain suffix, and then when I’m back restore my old nick. None did that *snif*. But well, I hacked on the original away.pl script and made my very own ;)

Usage

To use it, download the script, dump it in e.g. ~/.irssi/scripts, and load it in Irssi with /run yaiaways. After this you can set some options which you can see with /set away_:

[yaiaways]
away_reason = Away from keyboard
away_nick_suffix = [afk]

When you now call /away (without a reason) the script will use the ‘Away from keyboard’ text as your reason, and mark your nick with ‘[afk]’ at the end. Feel free to change those things.

Download

yaiaways-0.2.zip (25 downloads)

 

active_dcc.pl – shows DCC info in the active window

This script is basically a copy-n-paste of Geert Hauwaert’s active_notice.pl script, but made to put DCC information in the active window.

Usage

To use it, download the script, dump it in e.g. ~/.irssi/scripts, and load it in Irssi with /run active_dcc.

Download

active_dcc-1.0.zip (27 downloads)

Running Linux on a Dell Latitude D610

This page documents my attempts (and successes!) to get Linux fully working on a Dell D610 laptop.

NOTE: The information contained herein assumes that you know how to work from the commandline, patch kernels and compile programs.

DISCLAIMER: This information is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you fry your system by using this information that’s _your_ problem. Not mine. I accept no responsability for what happens with this information whatsoever.

Update notes

I no longer have access to the Dell Latitude D610 laptop since I changed work, so I can no longer update this page. I’ll keep it up as a reference.

Technical Specifications

Intel Pentium M processor (1024KB L2 Cache), supports Enhanced Intel SpeedStep
Intel PRO/Wireless 2915AB network connection
Intel 915 chipset
Standard 512MB DDR SDRAM, upgradeable to max. 2048MB
Toshiba MK8026GA – 80GB Ultra ATA/100 HDD
14.0″ SXGA+ TFT colour LCD, 1400×1050, 16.7M colours
Intel 915 video chip, up to 128mb shared memory
SoundBlaster-Pro and MS DirectSound compatible
10/100/1000Mbps Fast Ethernet; Wake-on-LAN ready
56K ITU V.92 data/fax software modem; Wake-on-Ring ready
Integrated Bluetooth

PCI Specs

0000:00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
0000:00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
0000:00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
0000:00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
0000:00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
0000:00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
0000:00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
0000:00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
0000:00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 03)
0000:00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
0000:00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
0000:02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 01)
0000:03:01.0 CardBus bridge: Texas Instruments PCI6515 Cardbus Controller
0000:03:01.5 Communication controller: Texas Instruments PCI6515 SmartCard Controller
0000:03:03.0 Network controller: Intel Corporation PRO/Wireless 2915ABG MiniPCI Adapter (rev 05)

Here’s a detailed pci listing.

Linux 2.6.x kernel

The latest 2.6 kernel is: 2.6.39.4.
Here’s my 2.6.15.6 kernel configuration.

USB

Hardware: this is the Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB chip.

USB worked out of the box by loading the following modules:

  • usb-uhci (USB 1.x support)
  • ehci-hcd (USB 2 support)
  • usbcore (which is automatically loaded by the previous ones)

It is advisable to install the hotplug system so the necessary modules are loaded upon plugging. For Debian, install the hotplug package.

These days you’re actually better of installing the udev package, which also handles hotplug.

10/100/1000 MBit ethernet LAN

Hardware: this is a Broadcom Corporation Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet chip.

Lan also worked out of the box, using the tg3 module.

Soundcard

Hardware: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC’97 Audio Controller

What can I say? It worked perfectly with the ALSA module called snd_intel8x0 module.

For Debian, install the alsa-base and alsa-utils packages.

VGA Framebuffer console

Hardware: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller

You can use the intelfb framebuffer driver (titled Intel 830M/845G/852GM/855GM/865G support which comes included with the kernel.

To use it, specify this on your kernel command line: video=intelfb:mtrr,noaccel vga=0x834.

VGA XFree86/X.Org

Hardware: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller

To make it working just set your video driver to i810:

		Section "Device"
			Identifier	"Generic Video Card"
			Driver		"i810"
		EndSection

The screen section looks like this:

		Section "Screen"
			Identifier	"Default Screen"
			Device		"Generic Video Card"
			Monitor		"Generic Monitor"
			DefaultDepth	24
			SubSection "Display"
				Depth		24
				Modes		"1400x1050" "1024x768"
			EndSubSection
		EndSection

To get the 1400×1050 resolution working, you have to patch the video bios. There’s a utility for that called 915resolution.
(for debian install the 915resolution package). The command to run at every bootup is 915resolution 3c 1400 1050.
After this, X will accept the resolution.

Here’s my complete xorg.conf file

TV Out

This is rumored to work with the standard i810 X.Org driver. Not tested.

Modem

Hardware: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC’97 Modem Controller – Winmodem.

This modem can be gotten to work using the Linuxant HSF Softmodem drivers. Unfortunately, they are payware.
They also have a limited-speed test driver, you can see if that works for you before deciding to buy the driver.

NOTE: You have to compile your kernel without CONFIG_4KSTACKS! If you use this driver with 4K stacks enabled, it _will_ crash your system!

CDRW/DVDRW

Hardware: SONY DVD+-RW DW-Q58A.

To get this device working with the SATA driver, put libata.atapi_enabled=1 in your kernel parameters, in your boot loader (which usually is /etc/lilo.conf or /boot/grub/menu.lst.

You can use /dev/scd0 (the cdrom device) directly for cd burning.

BlueTooth

Hardeware: Dell Wireless 350 Bluetooth – connected to the USB bus.

Works perfectly with the bluez and hci-usb modules. In fact, if you install hotplug the driver will be loaded automatically if you press the bluetooth button!

Debian users might want to install the buetooth package.

Harddisk

Hardware: Toshiba MK8026GA

I’m not sure if this drive is a SATA or a PATA drive, but it’s behind the SATA bus. As such, you need to activate the SCSI SATA driver ata_piix.

DMA is automagically enabled. I use hdparm to set an extra parameter: hdparm -F /dev/sda

Explanation:

  • -F: set security-freeze (so that nothing can accidentily lock your disk with a password)

For Debian; check the hdparm package.

Speedstep

You need this if you don’t want your CPU to eat your batteries empty. It’s included in the kernel config.

It works perfectly after loading the speedstep-centrino and any of the cpufreq- modules.

You can either install the cpufreqd daemon, or use the cpufreq_ondemand module (which modulates the speed by requirement).
I use this init script to setup everything at bootup.

For Debian, check the cpufreqd or powernowd packages.

Wireless Lan

Hardware: Intel Corporation PRO/Wireless 2915ABG MiniPCI Adapter

Driver status: native linux driver available at http://ipw2200.sourceforge.net/

The native driver works out of the box. Just extract, compile (using make; make install) and run modprobe ipw2200.
For information on how to configure your wlan card, please see the above website.

If you want your nifty wlan led to light, add led=1 to the modprobe line, or add options ipw2200 led=1 to a file in /etc/modprobe.d/.

For Debian there are the ipw2200-source and ieee80211-source packages available, which simplifies following up on new releases.

PCMCIA

Hardware: Texas Instruments PCI6515 Cardbus Controller

You have to install the pcmciautils package, and enable the yenta_socket module in the kernel.

For Debian, check the pcmciautils package.

SmartCard reader

Hardware: ??

Not tested at the moment.

Infrared

Works with the FIR smsc-ircc2 module.

To get the smsc-ircc2 module, you need to enable ISA Support in the Bus Options menu.

Here’s what you need to do:

  1. Enable the port in the BIOS, and assign it to e.g. COM2
  2. Disable the tty port in linux: setserial /dev/ttyS1 uart none
  3. Load the smsc-ircc2 module with the correct parameters: modprobe smsc-ircc2 ircc_irq=3 ircc_dma=3 ircc_sir=0x2f8 ircc_fir=0x280
  4. Launch irattach on the irda0 device: irattach irda0 -s

For Debian, I advise the irda-utils package.

Multimedia Keys

This laptop has several ‘function’ and ‘multimedia’ keys, which are not mapped by the bios but generate scancodes.
These include:

  • Volume up (Fn-PgUp)
  • Volume down (Fn-PgDown)
  • Mute (Fn-End)
  • Hibernate (Fn-F1)
  • Battery (Fn-F3)
  • Eject CD (Fn-F10)

Normally the Mute, Eject CD, Battery and Hibernate buttons don’t generate key-up events, causing the, to ‘hang’. You can solve that problem by using this kernel patch. (apply it by using cat d610-fnkeys-fix.patch | patch -p1 in the kernel sourcedir)

The last three keys generate scancodes, but no keycodes by default. To fix this, you can map them using setkeycodes. You can also use this init.d script.

I used the hotkeys for it, with this delld610.def file in /usr/share/hotplug/ and then starting hotkeys as
hotkeys --no-splash --cdrom-dev=/dev/scd0 --osd=off from your .xsession file. I also use a seperate script to get the ACPI Battery status into a kdialog window, this is mapped to the Battery Status key.

Debian users can install the hotkeys package.

Thanks to Alexander Wintermans for the extra info on getting this to work.

Software Suspend

Not yet tried.

Suspend to RAM

This works pretty well – there are some caveats to take note off tho:

This site has some hints with respect to the SATA side of suspending.

On kernels < 2.6.16 you have to apply this patch to get the SATA suspend/resume to work.

To get the display back to life, you have to use vbetool (debian package vbetool).

I use the following suspend script in /etc/acpi/events (which is triggered when I press my suspend button), and this suspend2ram script to do the actual suspending.

Touchpad in XFree86/X.Org

This is a ALPS touchpad. You can use it with this driver.
Extract from the INSTALL file:

1. Copy the driver-module "synaptics_drv.o" into the XFree-module path
"ex. /usr/X11R6/lib/modules/input/".

2. Load the driver by changig the XFree configuration file through
adding the line 'Load "synaptics"' in the module section.

3. Add/Replace in the InputDevice-section for the touchpad the
following lines:

Section "InputDevice"
  Driver        "synaptics"
  Identifier    "Mouse[1]"
  Option        "Device"                "/dev/psaux"
  Option        "Protocol"              "auto-dev"
  Option        "LeftEdge"              "120"
  Option        "RightEdge"             "830"
  Option        "TopEdge"               "120"
  Option        "BottomEdge"            "650"
  Option        "FingerLow"             "14"
  Option        "FingerHigh"            "15"
  Option        "MaxTapTime"            "180"
  Option        "MaxTapMove"            "110"
  Option        "EmulateMidButtonTime"  "75"
  Option        "VertScrollDelta"       "20"
  Option        "HorizScrollDelta"      "20"
  Option        "MinSpeed"              "0.3"
  Option        "MaxSpeed"              "0.75"
  Option        "AccelFactor"           "0.015"
  Option        "EdgeMotionMinSpeed"    "200"
  Option        "EdgeMotionMaxSpeed"    "200"
  Option        "UpDownScrolling"       "1"
  Option        "CircularScrolling"     "1"
  Option        "CircScrollDelta"       "0.1"
  Option        "CircScrollTrigger"     "2"
EndSection

Change the Identifier to the same name as in the ServerLayout-section.

4. Add the "CorePointer" option to the InputDevice line at the ServerLayout section:

Section "ServerLayout"
...
InputDevice "Mouse[1]"  "CorePointer"
...

Here’s my complete xorg.conf file

Debian users can install the xfree86-driver-synaptics package (for both XFree86 and X.Org).

LID-switch problem

There’s a BIOS bug in this laptop which causes the display to stay blank when the lid is closed. As a workaround, we re-enable the LCD display after the lid has been opened again.

For this to work, you need to activate the video ACPI module.

Install this lidswitch event script in /etc/acpi/events, and lidswitch trigger script in /etc/acpi.

What we basically do is echo 0x80000001 > /proc/acpi/video/VID/LCD/state, which reactivates the LCD screen.

Links

Running Linux on an Acer TravelMate 800 series laptop

This page documents my attempts (and successes!) to get Linux fully working on an Acer Travelmate 800 series laptop.

NOTE: The information contained herein assumes that you know how to work from the commandline, patch kernels and compile programs.

DISCLAIMER: This information is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you fry your system by using this information that’s _your_ problem. Not mine. I accept no responsability for what happens with this information whatsoever.

Update notes

I no longer have the Acer Travelmate 800 series laptop (sold it), so I can no longer update this page. I’ll keep it up as a reference.

On March 10 2005 I’ve decided to give this page a complete overhaul, and throw out any references to the 2.4 series of kernels since I don’t run them anymore, and IMO users should upgrade to 2.6 to make 100% decent use of their laptops.
For reference purposes I’ve put up a file which contains the 2.4 stuff, but it will not be updated any longer.

Technical Specifications

Intel Pentium M processor (1024KB L2 Cache), supports Enhanced Intel SpeedStep
Intel PRO/Wireless 2100 network connection
Intel 855PM chipset with 400MHz processor system bus
Standard 512MB DDR-266 SDRAM, upgradeable to max. 2048MB
Hitachi IC25N040ATMR04-0 – 40GB Ultra ATA/100 HDD with Disc Anti-Shock Protection system
Acer MediaBay for modules: hot swappable standard 24/10/8/24x DVD/CD-RW combo drive
15.0″ SXGA+ TFT colour LCD, 1400×1050, 16.7M colours
ATI Radeon 9000, dedicated 64MB DDR video memory
SoundBlaster-Pro and MS DirectSound compatible
TravelMate SmartCard solution including PlatinumSecret suite
10/100Mbps Fast Ethernet; Wake-on-LAN ready
56K ITU V.92 data/fax software modem; Wake-on-Ring ready
Integrated Bluetooth

PCI Specs

0000:00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
0000:00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
0000:00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
0000:00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
0000:00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
0000:00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 Lf [FireGL 9000] (rev 01)
0000:02:02.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)
0000:02:04.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
0000:02:06.0 CardBus bridge: O2 Micro, Inc. OZ711M1/MC1 4-in-1 MemoryCardBus Controller (rev 20)
0000:02:06.1 CardBus bridge: O2 Micro, Inc. OZ711M1/MC1 4-in-1 MemoryCardBus Controller (rev 20)
0000:02:06.2 System peripheral: O2 Micro, Inc. OZ711Mx 4-in-1 MemoryCardBus Accelerator
0000:02:07.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)

Here’s a detailed pci listing.

Subsystem Notes

Linux 2.6.x kernel

The latest 2.6 kernel is: 2.6.39.4.
Here’s my 2.6.14.2 kernel configuration.

USB

Hardware: this is the Intel 82801DB USB chip.

USB worked out of the box by loading the following modules:

  • usb-uhci (USB 1.x support)
  • ehci-hcd (USB 2 support)
  • usbcore (which is automatically loaded by the previous ones)

It is advisable to install the hotplug system so the necessary modules are loaded upon plugging. For Debian, install the hotplug package.

10/100 MBit ethernet LAN

Hardware: this is a Broadcom Corporation BCM4401 100Base chip.

Lan also worked out of the box, using the b44 module.

Soundcard

Hardware: Intel Corp. 82801DB AC’97 Audio Controller

What can I say? It worked out of the box using the OSS/Free i810_audio module.
You can also use the ALSA module, called snd_intel8x0 module. This is actually the preferred driver.

For Debian, install the alsa-base and alsa-utils packages.

VGA Framebuffer console

Hardware: ATI Radeon Mobility 9000 M9

Works out of the box by compiling ATI Radeon display support in the kernel.

NOTE: if you plan on using ATI’s fglrx driver (for better 3D performance) you have to choose the VESA display support option instead!

VGA XFree86/X.Org

Hardware: ATI Radeon Mobility 9000 M9

Make sure you’re using _atleast_ XFree86 4.3, or X.Org 6.8! Earlier releases don’t support the ATI Radeon M9

To make it working just set your video driver to radeon:

		Section "Device"
			Identifier	"Generic Video Card"
			Driver		"radeon"
			Option		"AGPMode"  "4"
		EndSection

The screen section looks like this:

		Section "Screen"
			Identifier	"Default Screen"
			Device		"Generic Video Card"
			Monitor		"Generic Monitor"
			DefaultDepth	24
			SubSection "Display"
				Depth		24
				Modes		"1400x1050" "1024x768"
			EndSubSection
		EndSection

An alternative driver is ATI‘s FireGL driver.
Debian users can look here for downloading and building the package.

Here’s my complete XF86Config-4 file

TV Out

This is rumored to work with ATI‘s FireGL driver. I haven’t confirmed this, tho.

Modem

Hardware: Intel Corp. 82801DB AC’97 Modem Controller – Winmodem.

this modem is made by Agere (a Lucent subsidiary).

You can get it to work by using the latest release from the smartlink driver:
Compile the driver (make) and install it (make install). Next, start the slmodemd daemon with the following parameters:
slmodemd -c <COUNTRY>
This will start the daemon and link it to the /dev/ttySL0 port. Now you can use that for dialout.
For more info, see this email on linmodems.org

Another way to get this to work is by using ALSA and enabling the Intel i8x0/MX440; SiS 7013; NForce; AMD768/8111 modems option in the kernel. Then you can just load slmodemd with the --alsa parameter.

For Debian, look for the sl-modem-daemon and sl-modem-source packages.

CDRW/DVD

Hardware: MATSHITA UJDA740 DVD/CDRW, burns CDR4s at 24x.

You can use /dev/hdx (the cdrom device) directly for cd burning.

BlueTooth

Hardeware: Cambridge Silicon Radio, Ltd – connected to the USB bus.

Works perfectly with the bluez and hci-usb modules. In fact, if you install hotplug the driver will be loaded automatically if you press the bluetooth button!

Debian users might want to install the bluetooth package.

I configured my Palm Tungsten T3 for Bluetooth sync, more info here: http://howto.pilot-link.org/bluesync/

FireWire (IEEE 1394)

Hardware: Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)

To activate the port load the ieee1394 module.
It works perfectly with my sbp2 type external cd-writer.

Harddisk

Hardware: Seagate ST9808211A (earlier: IBM IC25N040ATMR04-0 and before that HITACHI DK23EA-40)

I added the following call to the bootup system to activate DMA transfers:
hdparm -c3 -d1 -A1 -m16 -u1 -a64 -F/dev/hda

Explanation:

  • -c3: enables 32-bit data transfers with special ‘sync’ sequence.
  • -d1: enable DMA
  • -A1: enable drive read-ahead
  • -m16: enable multiple sector mode (IDE Block Mode) with 16 sector-reads
  • -u1: set interrupt-unmask flag
  • -a64: set sector-count for filesystem read-ahead
  • -F: set security-freeze (so that nothing can accidentily lock your disk with a password)

For Debian; check the hdparm package.

Speedstep

You need this if you don’t want your CPU to eat your batteries empty. It’s included in the kernel config.

It works perfectly after loading the speedstep-centrino and any of the cpufreq- modules.

You can either install the cpufreqd daemon, or use the cpufreq_ondemand module (which modulates the speed by requirement).
I use this init script to setup everything at bootup.

For Debian, check the cpufreqd or powernowd packages.

Wireless Lan

Hardware: Intel Corp. PRO/Wireless LAN 2100 3B Mini PCI Adapter

Driver status: native linux driver available at http://ipw2100.sourceforge.net/

The native driver works out of the box. Just extract, compile (using make; make install) and run modprobe ipw2100.
For information on how to configure your wlan card, please see the above website.

For Debian there are the ipw2100-source and ieee80211-source packages available, which simplifies following up on new releases.

Acer Launchkeys

Most of these you can get to work with the acerhk driver.

For usage instructions, see the Gentoo wiki

PCMCIA

Hardware: O2 Micro, Inc. OZ711M1 SmartCardBus MultiMediaBay Controller

You have to install the pcmcia_cs or (for recent kernels) the pcmciautils package, and enable the yenta_socket module in the kernel.

For Debian, check the pcmcia-cs or the pcmciautils package.

SmartCard reader

Hardware: O2 Micro, Inc. OZ711Mx MultiMediaBay Accelerator

There’s a driver available at http://www.musclecard.com/sourcedrivers.html

I haven’t tried it out yet tho.

Infrared

I only got this to work with the FIR driver. Johannes Zellner did it with SIR, see the notes below.

I did get it to work with the nsc-ircc module.

To get the nsc-ircc module, you need to enable ISA Support in the Bus Options menu.

Here’s what you need to do:

  1. Enable the port in the BIOS
  2. Disable the tty port in linux: setserial /dev/ttyS1 uart none
  3. Load the nsc-ircc module with the correct parameters: modprobe nsc-ircc io=0x2f8 irq=3 dma=1
  4. Launch irattach on the irda0 device: irattach irda0 -s

Now you should be able to connect e.g. a palmpilot on /dev/ircomm0. Atleast, it works for me.

UPDATE: Johannes Zellner has informed me that this laptop can indeed do SIR, but you need to limit the baud speed.
I haven’t tested this myself, email follows:

You CAN get SIR on the irda chip and in fact you have to operate in SIR
mode for example if you want to connect (like me) to your gprs handy to
use it as a modem. The trick is to limit the baud speed:
(something like /etc/modules.conf):

# <snip>
	alias tty-ldisc-11 irtty
	alias char-major-161 ircomm-tty

	# see also http://www.cl.cam.ac.uk/Research/SRG/netos/coms/unix.html
	#
	options nsc-ircc irq=3 dma=3 io=0x2f8 dongle_id=0x09
	alias irda0 nsc-ircc
	pre-install nsc-ircc setserial /dev/ttyS1 port 0 irq 0

	# limit max baud rate to 115200 to avoid MIR/FIR bug.
	# !! This has to be done BEFORE doing 'irattach irda0 -s' !!
	#
	post-install nsc-ircc echo 115200 > /proc/sys/net/irda/max_baud_rate
# </snip>

For Debian, I advise the irda-utils package.

Multimedia Keys

This laptop has several ‘function’ and ‘multimedia’ keys, which are not mapped by the bios but generate scancodes.
These include:

  • Volume up
  • Volume down
  • Mute
  • Help (pops up a window with some basic info about the laptop under windows)
  • Setup (opens a program to change some bios settings)
  • Change power mode

I used the hotkeys for it, with this acertm800.def file in /usr/share/hotplug/ and then starting hotkeys as
hotkeys --no-splash --cdrom-dev=none --osd=off from your .xsession file.

Debian users can install the hotkeys package.

Software Suspend

Not yet tried.

Suspend to RAM

This works pretty well starting kernel 2.6.12.
You can’t use the ATI fglrx driver, and you can’t use the Radeon framebuffer.

I use the following suspend script in /etc/acpi/events (which is triggered when I press my suspend button), and this suspend2ram script to do the actual suspending.

Here you can find more information which might help you get it working.

Touchpad in XFree86/X.Org

This is a Synaptics touchpad. You can use it with this driver.
Extract from the INSTALL file:

1. Copy the driver-module "synaptics_drv.o" into the XFree-module path
"ex. /usr/X11R6/lib/modules/input/".

2. Load the driver by changig the XFree configuration file through
adding the line 'Load "synaptics"' in the module section.

3. Add/Replace in the InputDevice-section for the touchpad the
following lines:

Section "InputDevice"
Driver  	"synaptics"
Identifier  	"Mouse[1]"
Option 	"Device"  	"/dev/psaux"
Option	"Protocol"	"auto-dev"
Option	"LeftEdge"      "1900"
Option	"RightEdge"     "5400"
Option	"TopEdge"       "1800"
Option	"BottomEdge"    "3900"
Option	"FingerLow"		"25"
Option	"FingerHigh"	"30"
Option	"MaxTapTime"	"180"
Option	"MaxTapMove"	"220"
Option	"VertScrollDelta" "100"
Option	"MinSpeed"		"0.02"
Option	"MaxSpeed"		"0.18"
Option	"AccelFactor" 	"0.0010"
EndSection

Change the Identifier to the same name as in the ServerLayout-section.
The Option "Repeater" is at the moment for testing.

4. Add the "CorePointer" option to the InputDevice line at the ServerLayout section:

Section "ServerLayout"
...
InputDevice "Mouse[1]"  "CorePointer"
...

Here’s my complete XF86Config-4 file

Debian users can install the xfree86-driver-synaptics package (for both XFree86 and X.Org).

Links