This is a driver for laptops built by Compal:

Compal HL91/JHL91
Compal FL90/IFL90
Compal FL91/IFL91
Compal JFL92
Compal FT00
Compal JHL90

It adds support for:
- bluetooth, WLAN and lcd brightness control (via backlight control/files)
- change battery charging level

Version 0.2.10
This driver exports a few files in /sys/devices/platform/compal-laptop/:

wlan - wlan subsystem state

current state
cat /sys/devices/platform/compal-laptop/wlan

disable wlan
echo 0 > /sys/devices/platform/compal-laptop/wlan

enable wlan
echo 1 > /sys/devices/platform/compal-laptop/wlan


bluetooth - bluetooth subsystem state

current state
cat /sys/devices/platform/compal-laptop/bluetooth

disable bt
echo 0 > /sys/devices/platform/compal-laptop/bluetooth

enable bt
echo 1 > /sys/devices/platform/compal-laptop/bluetooth


charging level - change battery charging level

current state
cat /sys/devices/platform/compal-laptop/charging_level

set charging level to 50%
echo 50 > /sys/devices/platform/compal-laptop/charging_level

set charging level to 75%
echo 75 > /sys/devices/platform/compal-laptop/charging_level

set charging level to 100%
echo 100 > /sys/devices/platform/compal-laptop/charging_level
or
echo 0 > /sys/devices/platform/compal-laptop/charging_level


controling backlight

get current backlight level
cat /sys/class/backlight/compal-laptop/actual_brightness

set backlight level to 4 (0-7, 4 mean 50%)
echo 4 > /sys/class/backlight/compal-laptop/brightness


This driver might work on other laptops produced by Compal. If you want to try it you can pass force=1 as argument to the module which will force it to load even when the DMI data doesn't identify the laptop as IFL90.

Tested on Compal FL90+ PM2, bluetooth, Intel PRO/Wireless 4965 AGN, kernel 2.6.29, debian unstable.
