Bug 1186097 - backlight not working Samsung laptop NP510R5E-A01UB with 3.18.3-201.fc21.x86_64
Summary: backlight not working Samsung laptop NP510R5E-A01UB with 3.18.3-201.fc21.x86_64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 21
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Josh Boyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-27 02:29 UTC by Bruce Petrie
Modified: 2017-08-28 11:20 UTC (History)
9 users (show)

Fixed In Version: kernel-3.18.7-100.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-17 08:03:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dmi information (868 bytes, text/plain)
2015-01-27 02:29 UTC, Bruce Petrie
no flags Details
results of intel_reg_dumper command (17.47 KB, text/plain)
2015-01-27 02:40 UTC, Bruce Petrie
bitflip10: review+
Details
Proposed patch fixing this (1.28 KB, patch)
2015-02-04 13:51 UTC, Hans de Goede
no flags Details | Diff

Description Bruce Petrie 2015-01-27 02:29:43 UTC
Created attachment 984470 [details]
dmi information

Description of problem:

backlight unable to dim on Samsung NP510R5E-A01UB laptop 
after fedup --product=nonproduct --network 21. In other words, upgraded to F21 from F19. 

Have found a workaround of adding video.user_native_backlight=0 to grub2 efi boot command line which forces /sys/class/backlight/acpi_video0 in addition to intel_backlight (raw). 

F19 kernel 3.14.27-100.fc19.x86_64 and earlier worked correctly.

Version-Release number of selected component (if applicable): kernel 3.17.8-300.fc21.x86_64 or 3.18.3-201.fc21.x86_64

How reproducible:

run the F21 kernels listed above on the NP510R5E laptop.

Steps to Reproduce:
1. do fedup --product=nonproduct --network 21 on NP510R5E-A01UB laptop
2. reboot
3. login

Actual results:

Backlight is always 100% 

Expected results:

Able to control backlight via Fn F2/F3 brightness keys or via xbacklight command.
 
Additional info:

backlight worked correctly with 3.14.27-100.fc19.x86_64.

did a fedup --product=nonproduct --network 21

any manual Fn F2/F3 or power savings triggered updates OSD but no effect on backlight with 3.17.8-300.fc21.x86_64. Was hoping the new 3.18.3-201.fc21.x86_64 update fixed it, but unfortunately does not.

FN-F2 and FN-F3, also xbacklight -set value does not affect backlight brightness, only the OSD briefly brought up.

Editted the grub2 command line at boot time for each setting below 
followed by results of ls /sys/class/backlight:
acpi_backlight=vendor                   intel_backlight
video.user_native_backlight=1           intel_backlight
acpi_osi="!Windows 2012"                intel_backlight
acpi_osi="!Windows 2009"                intel_backlight

none of the above worked................

FOUND workaround:

video.user_native_backlight=0           

# ls /sys/class/backlight produces acpi_video0 AND intel_backlight  

To make this stick, editted /etc/default/grub and added video.user_native_backlight=0 and then
# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.conf

Rest of this section shows what happened before the workaround was applied
--------------------
$ ls -al /sys/class/backlight
total 0
drwxr-xr-x.  2 root root 0 Jan 26 14:58 .
drwxr-xr-x. 51 root root 0 Jan 26 07:35 ..
lrwxrwxrwx.  1 root root 0 Jan 26 07:35 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/
drm/card0/card0-LVDS-1/intel_backlight
--------------------
$ acpi_listen
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
------------------
lspci -v :
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graph
ics Controller (rev 09) (prog-if 00 [VGA controller])
        DeviceName:  Onboard IGD
        Subsystem: Samsung Electronics Co Ltd Device c706
        Flags: bus master, fast devsel, latency 0, IRQ 29
        Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
        Kernel modules: i915
------------------
Command line: BOOT_IMAGE=/vmlinuz-3.18.3-201.fc21.x86_64 root=/dev/mapper/fedora_sam1-root \
ro rd.md=0 rd.dm=0 vconsole.keymap=us rd.lvm.lv=fedora_sam1/swap rd.luks=0 \
vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora_sam1/root rhgb quiet LANG=en_US.utf8 
------------------
from dmesg:
[    0.000000] SMBIOS 2.7 present.
[    0.000000] DMI: SAMSUNG ELECTRONICS CO., LTD. \
3570R/370R/470R/450R/510R/4450RV/NP510R5E-A01UB, \
BIOS P15RAN.208.140429.ZW 04/29/2014

------------------
# xrandr --prop
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
        _MUTTER_PRESENTATION_OUTPUT: 0 
        EDID: 
                00ffffffffffff0006afec4600000000
                0f15010490221378020bb59757548c26
                23505400000001010101010101010101
                0101010101019e1b567e50001630080a
                310058c1100000180000000f00000000
                00000000000000000020000000fe0041
                554f0a202020202020202020000000fe
                004231353658573034205636200a0084
        BACKLIGHT: 2325 
                range: (0, 4650)
        Backlight: 2325 
                range: (0, 4650)
        scaling mode: Full aspect 
                supported: None, Full, Center, Full aspect
   1366x768      59.98*+
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
DP1 disconnected (normal left inverted right x axis y axis)
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        audio: auto 
                supported: force-dvi, off, auto, on
HDMI1 disconnected (normal left inverted right x axis y axis)
        aspect ratio: Automatic 
                supported: Automatic, 4:3, 16:9
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        audio: auto 
                supported: force-dvi, off, auto, on
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
----------------

have tried modifying /sys/class/backlight/intel_backlight/brightness, no useful effect on backlight or OSD.

----------------

intel_reg_dumper: see intel_reg_dumper.log

Comment 1 Bruce Petrie 2015-01-27 02:40:56 UTC
Created attachment 984472 [details]
results of intel_reg_dumper command

Comment 2 Hans de Goede 2015-02-04 13:51:04 UTC
Created attachment 988089 [details]
Proposed patch fixing this

Comment 3 Hans de Goede 2015-02-04 13:55:42 UTC
Hi,

Thanks for the bug report. I've started a kernel scratch-build with a patch added which should fix this.

Please download the following rpms:
kernel-3.17.8-...rpm
kernel-core-3.17.8-...rpm
kernel-modules-3.17.8-...rpm

For your arch from here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=8818095
(note this is still building atm)

Save them all to the same directory (which should not contain other rpms) and do:

sudo rpm -ivh kernel-*.rpm

From within that directory.

And then remove the "video.use_native_backlight=0" from the kernel commandline for the new kernel; and boot into the new kernel and check if the backlight works as expected.

Regards,

Hans

Comment 4 Bruce Petrie 2015-02-07 03:54:49 UTC
Hans:

I installed the 3.18.5-201.rhbz1186097_1187004.fc21.x86_64 kernel modules you requested. Removed the kernel video.use_native_backlight=0 parm and ran grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg.

After rebooting, the backlight worked as I expected. Testing the FN keys worked for backlight, audio and wifi as well. I ran a F21 x86_64 QEMU VM and tested the AndroidStudio and AVD toolchains which worked as well. 

I believe this resolves the issues noted. thank you

take care!
Bruce

Comment 5 Hans de Goede 2015-02-07 08:55:15 UTC
Bruce,

Thanks for testing I've send the attached patch upstream.

Josh, can you add the patch attached to this kernel bug to the official Fedora kernel builds (for now, until it trickles down through upstream) ?

Regards,

Hans

Comment 6 Fedora Update System 2015-02-12 16:38:10 UTC
kernel-3.18.7-200.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/kernel-3.18.7-200.fc21

Comment 7 Fedora Update System 2015-02-12 16:38:28 UTC
kernel-3.18.7-100.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/kernel-3.18.7-100.fc20

Comment 8 Fedora Update System 2015-02-15 03:12:48 UTC
Package kernel-3.18.7-100.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.18.7-100.fc20'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1994/kernel-3.18.7-100.fc20
then log in and leave karma (feedback).

Comment 9 Bruce Petrie 2015-02-16 19:57:48 UTC
Did not see 3.18.7-100 in updates-testing after checking daily but have found/loaded kernel-3.18.7-200.fc21 and related kernel packages. Backlight controls work perfectly. thank you! will leave karma as requested as well.

Comment 10 Fedora Update System 2015-02-17 08:03:24 UTC
kernel-3.18.7-200.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2015-02-17 08:06:42 UTC
kernel-3.18.7-100.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.