Bug 451024

Summary: Lenovo 3000 G410: no brightness support
Product: [openSUSE] openSUSE 11.1 Reporter: Kirill Gagarski <gagarin.gtn>
Component: KernelAssignee: Thomas Renninger <trenn>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: Donegal-Danny, forgotten_bwXtNFciSf, forgotten_VaeWwCFpKG, michael.monreal
Version: RC 1   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Output of 'lshal -m'

Description Kirill Gagarski 2008-12-02 18:04:08 UTC
Backlight brightness control does not work on my Lenovo G410 with openSUSE 11.1 RC1.
When I'm using KDE4, I can change brightness in plasmoid, but brightness does not change.
KDE3's KControlCenter reports "Your Hardware currently not support changing the brightness of tour display."
'xbacklight -get' returns 'nan'
It was working fine on previous beta's (even with Fn-keys) and on 11.0.
Comment 1 Timo Hoenig 2008-12-03 09:22:23 UTC
Do you see any events when you hit the hotkeys while running

$ lshal -m

?
Comment 3 Kirill Gagarski 2008-12-03 18:40:32 UTC
Created attachment 257795 [details]
Output of 'lshal -m'
Comment 4 Timo Hoenig 2008-12-03 22:57:55 UTC
Thanks, Kirill.  The events get reported as expected.

This is a duplicate of bug #382855.

*** This bug has been marked as a duplicate of bug 382855 ***
Comment 5 Kirill Gagarski 2008-12-04 18:38:35 UTC
Are you sure? 382855 is about function keys, but I can't change brightness even with software.
Comment 6 Timo Hoenig 2008-12-05 12:22:37 UTC
Are you sure?  Become root and go to

$ cd /sys/class/backlight/$DRIVER

where $DRIVER is a sub directory.  Just do an ls in /sys/class/backlight to find out.

In this directory you find a pseudo file called "brightness".  You may run

$ echo x > brightness

to switch the brightness.  Valid values for x range from 0 to $MAX, where $MAX is the value stored in

/sys/class/backlight/$DRIVER/max_brightness .
Comment 7 Kirill Gagarski 2008-12-05 16:36:01 UTC
/sys/class/backlight is empty.
Comment 8 Timo Hoenig 2008-12-05 17:46:27 UTC
Ah, alright.  Reopening.  Adjusting summary.
Comment 9 Timo Hoenig 2008-12-05 17:47:13 UTC
Re-assigning to kernel team.
Comment 10 Thomas Renninger 2008-12-10 14:18:18 UTC
It's /sys/devices/virtual/backlight
I also always mix them up...
Do you have this dir?
Comment 11 Kirill Gagarski 2008-12-12 16:37:27 UTC
No. There is no backlight directory in /sys/devices/virtual/
Comment 12 Kirill Gagarski 2008-12-21 14:47:25 UTC
Still present in release.
Comment 13 Stefan Ott 2008-12-21 21:35:27 UTC
This problem affects me too (Lenovo 3000 N200).
The brightness slider in the powerdevil profiles menu is not clickable.
Brightness Hotkeys don't work either.
lshal -m only recognises Fn+F11 (brightness up), Fn+F10 has no effect. Output of xev is keycode 212 (keysym 0x0, NoSymbol) for Fn+F11, again nothing for Fn+F10.

/sys/class/backlight is empty. No directory named backlight in /sys/devices/virtual/.
Comment 14 Kirill Gagarski 2008-12-21 21:51:53 UTC
I've search bugs and found that:
https://bugzilla.novell.com/show_bug.cgi?id=450307
https://bugzilla.novell.com/show_bug.cgi?id=456420

So I think that this bug is actual on all Lenovo 3000 series laptops.
Comment 15 Alexander Orlovskyy 2009-01-09 11:50:24 UTC
*** Bug 456420 has been marked as a duplicate of this bug. ***
Comment 16 Michael Monreal 2009-01-09 11:55:01 UTC
(In reply to comment #14 from Kirill Gagarski)
> I think that this bug is actual on all Lenovo 3000 series laptops.

And at least for the N200, it used to work (in 11.0)
Comment 17 Kirill Gagarski 2009-01-09 23:51:39 UTC
It worked in 11.0 on G410 too. Brightness fn-keys didn't work correctly (it wasn't so critical for me).
In 11.1 betas all was fine (and fn-keys too)
Comment 18 Michael Monreal 2009-01-10 08:47:13 UTC
(In reply to comment #17 from Kirill Gagarski)
> It worked in 11.0 on G410 too. Brightness fn-keys didn't work correctly (it
> wasn't so critical for me).
> In 11.1 betas all was fine (and fn-keys too)
> 

Right. I can't say when exactly it broke but I think all of the alpha releases were fine... must have broken in late beta?

@Kirill: Do you have other regressions, too? Like not correctly detecting "on ac" (and showing an empty battery icon)? Maybe this is all due to some ACPI stuff broken?
Comment 19 Kirill Gagarski 2009-01-10 15:36:48 UTC
2Michael: No, power management works fine (except changing brightness, when AC adaptor is plugging on/off)
Comment 20 Kirill Gagarski 2009-01-12 12:30:59 UTC
I have try vanilla and default 2.6.27.8-9 kernels from http://download.opensuse.org/repositories/Kernel:/SL111_BRANCH/openSUSE_11.1/ .
Brightness control works on vanilla kernel (but I have other troubles with it), but still doesn't works with 2.6.27.8-9-default.
Comment 21 Forgotten User VaeWwCFpKG 2009-02-02 23:14:13 UTC
Hi I've the same problem (Lenovo 3000 N200), however lshal -m responds to the brightness-down key only for me (Fn+10), unlike another user reported, so this seems to be kinda weird too ...
Comment 22 Kirill Gagarski 2009-03-02 20:48:00 UTC
Still present after updating kernel to  2.6.27.19-3.2
Comment 23 Kirill Gagarski 2009-04-14 18:51:06 UTC
Also present in 2.6.29 kernel from HEAD repo.
Comment 24 Thomas Renninger 2009-04-14 20:53:28 UTC
This will be fixed in 2.6.30.
We are still at 2.6.29, but Jeff will probably soon introduce .30-rcX. Keep an I on our latest kernel builds:
ftp://ftp.suse.com/pub/projects/kernel/kotd/HEAD/x86_64   (or i586 dir)
If you still want to give it a try before (you should be or get familiar with kernel compiling/installing then), download the latest vanilla 2.6.30-rcX kernel from kernel.org, take the .config file from our .29 kernel and just hit enter if you are asked for additional configs.
Comment 25 Thomas Renninger 2009-04-14 20:54:34 UTC
Hmm, not sure whether it's already included in the current 2.6.30-RCx kernel, but it should be in the next one.
Comment 26 Thomas Renninger 2009-06-16 11:44:55 UTC
Should be fixed mainline, but will probably not be backported.
Please try a kernel from here:
ftp://ftp.suse.com/pub/projects/kernel/kotd/master
if you want to try this out. 11.2 should work then.
Please reopen if it still does not work.
Closing won't fix for 11.1.