Coder Social home page Coder Social logo

lenovo-sl-laptop's Introduction

lenoso-sl-laptop

This is an experimental driver for the Lenovo ThinkPad SL
series, since those laptops are currently not supported by
the thinkpad_acpi driver.

Works: hotkeys, bluetooth, the Lenovo Care LED, the fan
Experimental: backlight brightness
Not implemented: hdaps accelerometer

NB: to make the Lenovo Care LED blink, make sure the LED timer
trigger is enabled (CONFIG_LEDS_TRIGGERS_TIMER) and do
echo "timer" > /sys/class/leds/lensl::lenovocare/trigger


The backlight brightness control is useful because the SL
series use the ACPI brightness API in a non-standard manner,
causing buggy behavior with the standard ACPI video module
backlight control.

To enable the brightness control, load the module with the 
"control_backlight=1" module parameter (i.e.
insmod lenovo-sl-laptop.ko control_backlight=1 )

Note that the brightness control will likely conflict with
the ACPI video driver brightness control. So, if you have
the ACPI video driver loaded (and you probably do):

echo 0 > /sys/module/video/parameters/brightness_switch_enabled
insmod lenovo-sl-laptop.ko control_backlight=1
and then restart X.

Alternatively, you can try to use the "acpi_backlight=vendor"
kernel boot parameter (recognized by kernel versions 2.6.28
and higher).

Alternatively alternatively, simply unload the ACPI video
driver (rmmod video).


To build the module for your current kernel, run make.
Note that you will need to have the sources or headers for 
your kernel in the correct location (depends on the distro).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.