Bug 1025690

Summary: Brightness does not change on Intel graphics (using keys or slider) since about 3.9 kernels
Product: [Fedora] Fedora Reporter: Mustafa Muhammad <mustafa1024m>
Component: kernelAssignee: Hans de Goede <hdegoede>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: abuse, gansalmon, hdegoede, itamar, jonathan, kernel-maint, madhu.chinakonda, mustafa1024m, vg.aetera
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: rawhide too
Fixed In Version: kernel-3.15.7-200.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-01 06:01:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mustafa Muhammad 2013-11-01 10:08:15 UTC
Description of problem:
Brightness is locked at the highest since kernel 3.10.x (maybe a little earlier), 3.8 worked fine, I can't increase or decrease it using the applet nor using the keyboard keys, I think this happens to all Sandy Bridge hardware (Intel HD 3000)

Version-Release number of selected component (if applicable):
kernel >= 3.9

How reproducible:
Always

Steps to Reproduce:
1. Using a notebook with Intel HD 3000 graphics.
2. Update the system to latest kernel
3.

Actual results:
Brightness control does not work anymore

Expected results:
Brightness changes according to the slider or keyboard keys

Additional info:

All kernels >=3.9.x are affected, even for F20 and rawhide.

Comment 1 Justin M. Forbes 2014-01-03 22:12:35 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 19 kernel bugs.

Fedora 19 has now been rebased to 3.12.6-200.fc19.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 20, and are still experiencing this issue, please change the version to Fedora 20.

If you experience different issues, please open a new bug report for those.

Comment 2 Justin M. Forbes 2014-03-10 14:46:20 UTC
*********** MASS BUG UPDATE **************

This bug has been in a needinfo state for more than 1 month and is being closed with insufficient data due to inactivity. If this is still an issue with Fedora 19, please feel free to reopen the bug and provide the additional information requested.

Comment 3 Mustafa Muhammad 2014-03-12 05:44:13 UTC
This is still affecting me (using fedora 20 and fedora rawhide), passing acpi_backlight=vendor at the boot screen fixes the problem.

Comment 4 Hans de Goede 2014-04-30 10:12:41 UTC
Hi Mustafa,

I've been researching backlight issues for the last few days and I think I'm starting to get a handle on them, or at least to some degree.

Can you try with the latest fedora kernel:
http://koji.fedoraproject.org/koji/buildinfo?buildID=513888

And see if you then still need "acpi_backlight=vendor" ? And can you also try with "video.use_native_backlight=1" instead of "acpi_backlight=vendor". 

For each attempt please run:

ls /sys/class/backlight

And copy and paste the out here.


Also please run the following command (once):

grep '.*' /sys/class/dmi/id/*_* 2> /dev/null

And copy and paste the output here.

Thanks,

Hans

Comment 5 poma 2014-04-30 18:59:40 UTC
ACPI / video: Add systems that should favour native backlight interface
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/acpi/blacklist.c?id=0e9f81d

Comment 6 poma 2014-04-30 19:13:18 UTC
Possible duplicates - Brightness related:

Brightness adjustment FN keys doesn't work
https://bugzilla.redhat.com/show_bug.cgi?id=702352

Brightness/backlight keys (fn+F8, fn+F9) does not work on lenovo T530 out of the box
https://bugzilla.redhat.com/show_bug.cgi?id=947976

Acer Aspire V5-171-9620 display brightness doesn't change using keyboard Fn keys (but onscreen slider moves)
https://bugzilla.redhat.com/show_bug.cgi?id=983342

Dell brightness keys register multiple times
https://bugzilla.redhat.com/show_bug.cgi?id=986653

unable to adjust monitor brightness with nouveua, Toshiba, and 3.11.0 kernel
https://bugzilla.redhat.com/show_bug.cgi?id=999684

Cannot adjust brightness anymore using Fn keys with F19 x86_64
https://bugzilla.redhat.com/show_bug.cgi?id=1012674

Brightness keys stopped working between kernel 3.12.10-300 and 3.13.3-201 on Asus EEE PC
https://bugzilla.redhat.com/show_bug.cgi?id=1067181

T530: Unsupported brightness interface
https://bugzilla.redhat.com/show_bug.cgi?id=1089545

Can't change display brightness on HP EliteBook 8470p
https://bugzilla.redhat.com/show_bug.cgi?id=1093120

Comment 7 Hans de Goede 2014-05-01 07:55:57 UTC
poma, I know you're trying to help, but addding the same comment everywhere real does not help, it just creates a lot of useless mails in my inbox, please stop doing this, thanks.

Comment 8 poma 2014-05-01 17:25:39 UTC
(In reply to Hans de Goede from comment #7)
> poma, I know you're trying to help, but addding the same comment everywhere
> real does not help, it just creates a lot of useless mails in my inbox,
> please stop doing this, thanks.

It's not about your mailbox.
It is useful for people.

Comment 9 Mustafa Muhammad 2014-05-19 07:06:21 UTC
(In reply to Hans de Goede from comment #4)
> Hi Mustafa,
> 
> I've been researching backlight issues for the last few days and I think I'm
> starting to get a handle on them, or at least to some degree.
> 
> Can you try with the latest fedora kernel:
> http://koji.fedoraproject.org/koji/buildinfo?buildID=513888
> 
> And see if you then still need "acpi_backlight=vendor" ? And can you also
> try with "video.use_native_backlight=1" instead of "acpi_backlight=vendor". 
> 
> For each attempt please run:
> 
> ls /sys/class/backlight
> 
> And copy and paste the out here.
> 
> 
> Also please run the following command (once):
> 
> grep '.*' /sys/class/dmi/id/*_* 2> /dev/null
> 
> And copy and paste the output here.
> 
> Thanks,
> 
> Hans

Hi Hans,
I tried the provided kernel, without any parameters it is still not working:

bash-4.2# ls /sys/class/backlight
acpi_video0  intel_backlight

bash-4.2# grep '.*' /sys/class/dmi/id/*_* 2> /dev/null
/sys/class/dmi/id/bios_date:10/07/2013
/sys/class/dmi/id/bios_vendor:Hewlett-Packard
/sys/class/dmi/id/bios_version:68IRR Ver. F.43
/sys/class/dmi/id/board_asset_tag:
/sys/class/dmi/id/board_name:17F6
/sys/class/dmi/id/board_serial:PCWBF1A2F2W4X5
/sys/class/dmi/id/board_vendor:Hewlett-Packard
/sys/class/dmi/id/board_version:KBC Version 58.20
/sys/class/dmi/id/chassis_asset_tag: 
/sys/class/dmi/id/chassis_serial:2CE22811M7
/sys/class/dmi/id/chassis_type:10
/sys/class/dmi/id/chassis_vendor:Hewlett-Packard
/sys/class/dmi/id/chassis_version:
/sys/class/dmi/id/product_name:HP ProBook 4540s
/sys/class/dmi/id/product_serial:2CE22811M7
/sys/class/dmi/id/product_uuid:B95CD443-7ECA-E111-A723-50C459000023
/sys/class/dmi/id/product_version:A1008C11
/sys/class/dmi/id/sys_vendor:Hewlett-Packard

And with "video.use_native_backlight=1" it is working:
bash-4.2# ls /sys/class/backlight
intel_backlight

Thanks for working on this.

Comment 10 Hans de Goede 2014-06-02 19:36:19 UTC
Hi,

I've just started a scratch build of a kernel with a bunch if backlight patches, including one adding a quirk for your model so it should just work.

Can you please download the kernel-3.15...rpm file for your architecture from here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=6919326

And then install it using:
sudo rpm -ivh kernel-3.15...rpm

Note when installing kernels it is important to rpm -i so that you keep your current kernel as a backup.

Then boot into that kernel without any special kernel commandline parameters, and let me know if that works. Once I get confirmation from you that this fixes things I'll send the patch upstream for inclusion into the official Linux kernel, so that the fix will get included into other distributions too.

Regards,

Hans

Comment 11 Mustafa Muhammad 2014-07-23 15:45:43 UTC
(In reply to Hans de Goede from comment #10)
> Hi,
> 
> I've just started a scratch build of a kernel with a bunch if backlight
> patches, including one adding a quirk for your model so it should just work.
> 
> Can you please download the kernel-3.15...rpm file for your architecture
> from here:
> http://koji.fedoraproject.org/koji/taskinfo?taskID=6919326
> 
> And then install it using:
> sudo rpm -ivh kernel-3.15...rpm
> 
> Note when installing kernels it is important to rpm -i so that you keep your
> current kernel as a backup.
> 
> Then boot into that kernel without any special kernel commandline
> parameters, and let me know if that works. Once I get confirmation from you
> that this fixes things I'll send the patch upstream for inclusion into the
> official Linux kernel, so that the fix will get included into other
> distributions too.
> 
> Regards,
> 
> Hans
Hi, I am really sorry for the very late reply, also I couldn't any binary rpms in the link provided, only src.rpm, could you please provide a link to the binary package I have to test.

Comment 12 Hans de Goede 2014-07-28 15:58:04 UTC
(In reply to Mustafa from comment #11)

<snip>

> Hi, I am really sorry for the very late reply, also I couldn't any binary
> rpms in the link provided, only src.rpm, could you please provide a link to
> the binary package I have to test.

That is because of the late reply, scratch build binaries are only kept for aprox. 2 weeks.

I've added the patch in question to the official Fedora 20 kernel package this time, so it should get picked up by the next F-20 kernel build. When that happens please test without video.use_native_backlight=1 on the kernel commandline and confirm that everything still works as it should.

Comment 13 Fedora Update System 2014-07-29 03:56:09 UTC
kernel-3.15.7-200.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/kernel-3.15.7-200.fc20

Comment 14 Fedora Update System 2014-07-30 07:03:32 UTC
Package kernel-3.15.7-200.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-3.15.7-200.fc20'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-9010/kernel-3.15.7-200.fc20
then log in and leave karma (feedback).

Comment 15 Fedora Update System 2014-08-01 06:01:58 UTC
kernel-3.15.7-200.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Bas Mevissen 2014-08-14 09:24:47 UTC
Hi Hans,

Brightness change does still not work for me. Currently running on 3.15.8-200.fc20.x86_64. Tried without and with both "video.use_native_backlight=1" and "acpi_backlight=vendor".

$ ls -l /sys/class/backlight/
total 0
lrwxrwxrwx. 1 root root 0 Aug 14  2014 acpi_video0 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video0

$ grep '.*' /sys/class/dmi/id/*_* 2> /dev/null
/sys/class/dmi/id/bios_date:05/02/2014
/sys/class/dmi/id/bios_vendor:Dell Inc.
/sys/class/dmi/id/bios_version:A08
/sys/class/dmi/id/board_asset_tag:
/sys/class/dmi/id/board_name:077KCT
/sys/class/dmi/id/board_vendor:Dell Inc.
/sys/class/dmi/id/board_version:A00
/sys/class/dmi/id/chassis_asset_tag:
/sys/class/dmi/id/chassis_type:9
/sys/class/dmi/id/chassis_vendor:Dell Inc.
/sys/class/dmi/id/chassis_version:
/sys/class/dmi/id/product_name:Precision M4800
/sys/class/dmi/id/product_version:01
/sys/class/dmi/id/sys_vendor:Dell Inc.

System has NVIDIA K1100 on board, Intel is disabled, apparently due to hardware architecture for QHD+ diskplays. Display driver is nvidia's, version 343.13.

Comment 17 Hans de Goede 2014-08-14 09:26:20 UTC
(In reply to Bas Mevissen from comment #16)
> System has NVIDIA K1100 on board, Intel is disabled, apparently due to
> hardware architecture for QHD+ diskplays. Display driver is nvidia's,
> version 343.13.

If you're using the nvidia binary driver please file a bug with nvidia, we cannot support the nvidia driver.

Comment 18 Bas Mevissen 2014-08-14 10:13:19 UTC
Rechecked with Nouveau. Did not give a usable desktop due to lack of acceleration. Display brightness dimming did not work.

$ ls -l /sys/class/backlight
total 0
lrwxrwxrwx. 1 root root 0 Aug 14  2014 acpi_video0 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video0
lrwxrwxrwx. 1 root root 0 Aug 14  2014 nv_backlight -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0/card0-eDP-1/nv_backlight

Did only try without any additional cmdline options.

Comment 19 Hans de Goede 2014-08-14 10:20:48 UTC
Hi,

(In reply to Bas Mevissen from comment #18)
> Rechecked with Nouveau. Did not give a usable desktop due to lack of
> acceleration. Display brightness dimming did not work.
> 
> $ ls -l /sys/class/backlight
> total 0
> lrwxrwxrwx. 1 root root 0 Aug 14  2014 acpi_video0 ->
> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video0
> lrwxrwxrwx. 1 root root 0 Aug 14  2014 nv_backlight ->
> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0/card0-eDP-1/
> nv_backlight
> 
> Did only try without any additional cmdline options.

Thanks, if you want to pursue getting the nouveau case fixed further please file a new bug, and also try using "video.use_native_backlight=1" and "acpi_backlight=vendor" (one at a time please).

Thanks,

Hans.

p.s.

I'm about to go on vacation and I will return on Mon 25 Aug.

Comment 20 Bas Mevissen 2014-08-14 10:27:13 UTC
Ok, will do when I get around setting up a separate disk with Fedora to avoid messing up my main install. Enjoy your vacation!

Comment 21 Mustafa Muhammad 2014-11-03 02:26:09 UTC
Brightness works fine for me now with the newer kernels, thank you.