Bug 92241 - [byt edp backlight Regression] Backlight not enabled until suspend on Asus X200M
Summary: [byt edp backlight Regression] Backlight not enabled until suspend on Asus X200M
Status: RESOLVED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - Intel) (show other bugs)
Hardware: x86-64 Linux
: P2 normal
Assignee: intel-gfx-bugs@lists.freedesktop.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-28 14:27 UTC by Milan Bouchet-Valat
Modified: 2015-10-07 10:06 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.18.3
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
dmesg (including a suspend-resume cycle) (72.72 KB, text/plain)
2015-01-28 14:27 UTC, Milan Bouchet-Valat
Details
lspci -vnn (5.31 KB, text/plain)
2015-01-28 14:28 UTC, Milan Bouchet-Valat
Details
Additional debugging information (ACPI...) (196.96 KB, application/x-compressed-tar)
2015-01-28 14:29 UTC, Milan Bouchet-Valat
Details
dmesg with drm.debug=14 (141.17 KB, text/plain)
2015-02-11 16:59 UTC, Milan Bouchet-Valat
Details

Description Milan Bouchet-Valat 2015-01-28 14:27:58 UTC
Created attachment 165041 [details]
dmesg (including a suspend-resume cycle)

Up to at least kernel 3.17.8, backlight was working fine on my ASUS X200M. It doesn't work on 3.18.3 (both on Fedora 21). More precisely, the screen remains blank until I suspend the machine; on resume everything is fine.

I've tried passing acpi_backlight=vendor to boot options without luck.
Comment 1 Milan Bouchet-Valat 2015-01-28 14:28:21 UTC
Created attachment 165051 [details]
lspci -vnn
Comment 2 Milan Bouchet-Valat 2015-01-28 14:29:06 UTC
Created attachment 165061 [details]
Additional debugging information (ACPI...)
Comment 3 Milan Bouchet-Valat 2015-01-28 14:30:37 UTC
Additional info comes from following the instructions at https://wiki.ubuntu.com/Kernel/Debugging/Backlight I hope it's useful.
Comment 4 Milan Bouchet-Valat 2015-02-09 20:43:10 UTC
Bump!
Comment 5 Alan 2015-02-10 16:53:12 UTC
Moving to Intel graphics. Might actually belong in ACPI. Also marked as a regression as it worked in 3.17.8
Comment 6 Jani Nikula 2015-02-10 17:57:27 UTC
Please provide similar dmesg with drm.debug=14 module parameter set.

Also, separate from the above, please try video.use_native_backlight=0 module parameter.
Comment 7 Milan Bouchet-Valat 2015-02-11 16:59:46 UTC
Created attachment 166471 [details]
dmesg with drm.debug=14

Here's the result. video.use_native_backlight=0 has no effect.
Comment 8 Jani Nikula 2015-02-12 07:46:36 UTC
What's the output of this when you first boot, and the screen is presumably black:

cat /sys/class/backlight/intel_backlight/{brightness,actual_brightness,bl_power}

I understand you may have to ssh into the machine or script this at late boot.
Comment 9 Milan Bouchet-Valat 2015-02-12 21:27:58 UTC
I get:
4062
4062
0

This is the same as when the backlight is on (after suspend).

Situation is the same on 3.18.5.
Comment 10 Jani Nikula 2015-02-13 07:23:11 UTC
What if you try echoing values to the brightness attribute when the screen is black.

echo 0 > /sys/class/backlight/intel_backlight/brightness
echo 4062 > /sys/class/backlight/intel_backlight/brightness
Comment 11 Milan Bouchet-Valat 2015-02-14 12:55:12 UTC
No luck. When running the script after suspend/resume, I can see the screen turn blank then back to normal. But on fresh boot, it has no effect. (I've put these commands in /etc/rc.d/rc.local, BTW.)
Comment 12 Jani Nikula 2015-03-03 13:56:27 UTC
(In reply to Jani Nikula from comment #10)
> What if you try echoing values to the brightness attribute when the screen
> is black.
> 
> echo 0 > /sys/class/backlight/intel_backlight/brightness
> echo 4062 > /sys/class/backlight/intel_backlight/brightness

Hmm, what if you try echoing values here *after* the suspend resume cycle, do these adjust the backlight?
Comment 14 Milan Bouchet-Valat 2015-03-08 14:38:28 UTC
(In reply to Jani Nikula from comment #12)
> (In reply to Jani Nikula from comment #10)
> > What if you try echoing values to the brightness attribute when the screen
> > is black.
> > 
> > echo 0 > /sys/class/backlight/intel_backlight/brightness
> > echo 4062 > /sys/class/backlight/intel_backlight/brightness
> 
> Hmm, what if you try echoing values here *after* the suspend resume cycle,
> do these adjust the backlight?
Yes, it works fine.

Sorry, I won't have the time to compile a custom kernel to test the patches. Are they available in a RPM somewhere by chance?
Comment 15 Jani Nikula 2015-03-09 08:36:14 UTC
If you don't have time to help, I'm afraid this may not be the right support channel for you.
Comment 16 Milan Bouchet-Valat 2015-03-09 18:24:05 UTC
Well, this comes accross as a bit rude. I've already carried out several tests to try identifying the problem. And I've never asked for "support", I only try to help fixing the kernel.

Back to the debugging: is there any chance the bug may be fixed in 4.0 development versions? I can test them easily using Fedora rawhide RPMs. If not, I'll see whether I can find the time at some point.
Comment 17 Jani Nikula 2015-03-09 18:40:15 UTC
Apologies; my point is that I've also spent time on trying to resolve the bug, and usually it eventually comes down to trying patches that may fix the bug.

I don't think the patches will make it to v4.0.
Comment 18 Jani Nikula 2015-10-07 10:06:07 UTC
Long time no updates, closing.

If the problem persists with latest kernels, please file a bug at the freedesktop.org bugzilla [1], referencing this bug. Thank you.

[1] https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel

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