Support in other languages: 
Showing results for 
Search instead for 
Do you mean 
Reply
Token Ring
garytr23
Posts: 218
Registered: ‎09-12-2008
Location: Atlanta, GA USA
0

SL series linux brightness controls and hotkeys driver

[ Edited ]

One of the linux kernel devs has an sl series with intel graphics, and fixed our brightness problems! I've tested this module, works pretty well.  Try it, you'll like it.  It also makes the other hotkeys work.

 

you'll have to compile it, install it, blacklist video, and u should be good.

 

 

http://github.com/tetromino/lenovo-sl-laptop/tree/master

Message Edited by garytr23 on 03-01-2009 09:38 PM
Lenovo SL300 Owner
earning an MSECE at GATech, with undergrad in BME.
Token Ring
Sxooter
Posts: 276
Registered: ‎10-01-2008
Location: Denver, CO
0

Re: SL series linux brightness controls and hotkeys driver

I think I saw something about this getting into the 2.6.29-rcsomethingotherother kernel as well.  So, in the future it might be a simple kernel upgrade.  Lenovo should send that guy a Pizza.
Token Ring
garytr23
Posts: 218
Registered: ‎09-12-2008
Location: Atlanta, GA USA
0

Re: SL series linux brightness controls and hotkeys driver

ya, maybe we should send him a pizza.  I'd pitch in a couple of bucks or so.  I think the current plan is for its brightness control to be replaced in the future by proper patch to video.c in acpi by Zhang Rui (kernel bugzilla bug 12249), but compiling and installing this manually is good enough for me for now.  I'm just happy it gets addressed. 

 

Viva open source!

Lenovo SL300 Owner
earning an MSECE at GATech, with undergrad in BME.
What's DOS?
The_Stig
Posts: 2
Registered: ‎04-06-2009
Location: Nyíregyhaza, Hungary
0

Re: SL series linux brightness controls and hotkeys driver

Hi Guys!

 

I've got a Lenovo SL 300 running on Ubuntu  8.10. I was compile this driver got an .ko-file.

When I load this module manualy like this:

  1. echo 0 > /sys/module/video/parameters/brightness_switch_enabled
  2. insmod lenovo-sl-laptop.ko control_backlight=
  3. then ctrl+alt+backspace to restart X.

works just fine.

But the module didn't load up automaticly at boot time. I try to follow this: http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html, but didn't works.

 

Could you help me to fix this?

 

Cheers! 

Token Ring
garytr23
Posts: 218
Registered: ‎09-12-2008
Location: Atlanta, GA USA
0

Re: SL series linux brightness controls and hotkeys driver

I just wrote it into my /etc/modules, and I blacklisted video in /etc/modprobe.d/blacklist

 

gary@gary-laptop:~$ cat /etc/modules


# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lenovo-sl-laptop control_backlight=1
ath_pci
lp
rtc
sbp2
uinput
gary@gary-laptop:~$
 

Lenovo SL300 Owner
earning an MSECE at GATech, with undergrad in BME.
Token Ring
garytr23
Posts: 218
Registered: ‎09-12-2008
Location: Atlanta, GA USA
0

Re: SL series linux brightness controls and hotkeys driver

btw, you have to copy the .ko into your /lib/modules/2.6.whatever tree and run depmod -ae for it to register.  After this action, you should be able to load the module with modprobe instead of insmod.
Lenovo SL300 Owner
earning an MSECE at GATech, with undergrad in BME.
What's DOS?
The_Stig
Posts: 2
Registered: ‎04-06-2009
Location: Nyíregyhaza, Hungary
0

Re: SL series linux brightness controls and hotkeys driver

First of all thanks your quick reply garytr23, it's very usefull! Now I know why didn't work my solution: I didn't  blacklisted any module. :smileysad:

 

Otherwise someone  at ubuntu.hu (forum of the hungarian ubuntu community) suggest this: http://gianlucamagalotti.wordpress.com/2009/02/16/lenovo-thinkpad-sl-series-hotkeys/ . This is a complete solution for this kernel module problem.

 

Thanks again.