Filewatcher File Search File Search
Content Search
» » » » » » compal-laptop-control-0.3.4-3.11.x86_64.rpm » Content »
pkg://compal-laptop-control-0.3.4-3.11.x86_64.rpm:52666/usr/share/doc/packages/compal-laptop-control/  info  HEADER  downloads

compal-laptop-control - A control tool for compal laptops using QT4…  more info»


Compal Laptop Control

Author:		Krzemin <>

This software is distributed under the GNU General Public License.

Compal Laptop Control is small software for Linux that can switch
bluetooth or wireless lan power and manage lcd brightness and battery
charging level on Compal IFL90/FL90 and similar laptops.

It requires compal-laptop kernel module by Cezary Jackiewicz you can
find here:


Firstly, you have to install kernel headers package for your distro
or download and unpack full kernel sources from
and point /lib/modules/$(uname -r)/build to kernel sources directory.
Next you should download compal-laptop module sources from and unpack it:

$ tar -zxvf compal-laptop-version.tar.gz

Enter to the created directory:

$ cd compal-laptop-version

Compile module:

$ make

And install it to the kernel modules tree:

$ sudo make install

Now you have module compal-laptop installed and you can load it:

$ sudo modprobe compal-laptop

If you get error like "No such device", you should pass parameter
force=1. This will force module to load:

$ sudo modprobe compal-laptop force=1

To enable automatic loading compal-laptop module after reboot
add line "compal-laptop" at the end of /etc/modules file (or similar
proper to your Linux distribution).

If module loads, now you can compile Compal Laptop Control GUI.
You will need Qt4 libraries (qt4-core and qt4-gui). Usually you can
find it in your distributions' repositories. For example in Ubuntu
you can install them by apt-get:

$ sudo apt-get install libqt4-core libqt4-gui

Next, enter to the Compal Laptop Control sources directory:

$ cd path_where_you_unpacked_sources/compal-laptop-control-version

If you want to recompile program executable, you will also need
Qt4 developer headers (in Ubuntu: libqt4-dev package).

$ make

Will recompile executable. But usually recompiling isn't required.

Install compal-laptop-control in /usr/ filesystem tree:

(NOTE: If you want to install Compal Laptop Control in another
 filesystem tree than /usr (i.e. /usr/local), find INSTALL_PREFIX
 in and change it. Then recompile sources.) 

$ sudo make install

And run it:

$ sudo compal-laptop-control

Another way is set SUID permissions for the executable:

$ sudo chmod +s /usr/bin/compal-laptop-control

Now you can run application without sudo:

$ compal-laptop-control

WARNING: this allows program to get root privillages, so be careful with it!

To avoid running application with root privillages, you can set files'
permissions at system startup. Add following lines:

chmod 666 /sys/devices/platform/compal-laptop/bluetooth
chmod 666 /sys/devices/platform/compal-laptop/wlan

# If you're using compal-laptop <= 0.2.5
chmod 666 /sys/devices/platform/compal-laptop/lcd_level

# If you're using compal-laptop >= 0.2.6
chmod 666 /sys/class/backlight/compal-laptop/brightness

# Or optionally, if you're using kernel >= 2.6.28
chmod 666 /sys/class/backlight/acpi_video0/brightness

# If you're using compal-laptop >= 0.2.9
chmod 666 /sys/devices/platform/compal-laptop/charging_level the file named like /etc/rc.local or similar, proper for your distribution.

To uninstall application, type following command in sources directory:

$ sudo make uninstall


If you find a bug, want to add translation or you have any suggestions,
feel free to contact with me ( or visit program's webpage
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017