cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
garytr23
Token Ring
Posts: 218
Location: Atlanta, GA USA
3,039 Views
Message 1 of 7

SL series linux brightness controls and hotkeys driver

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.
Sxooter
Token Ring
Posts: 276
Location: Denver, CO
3,014 Views
Message 2 of 7

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.
garytr23
Token Ring
Posts: 218
Location: Atlanta, GA USA
3,008 Views
Message 3 of 7

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.
The_Stig
What's DOS?
Posts: 2
Location: Nyíregyhaza, Hungary
2,761 Views
Message 4 of 7

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! 

Highlighted
garytr23
Token Ring
Posts: 218
Location: Atlanta, GA USA
2,757 Views
Message 5 of 7

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.
garytr23
Token Ring
Posts: 218
Location: Atlanta, GA USA
2,756 Views
Message 6 of 7

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.
The_Stig
What's DOS?
Posts: 2
Location: Nyíregyhaza, Hungary
2,731 Views
Message 7 of 7

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. Smiley Sad

 

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.

 

 

Top Kudoed Authors