Bug 91211
Summary: | intel_backlight dims on switching to VT from X | ||
---|---|---|---|
Product: | Drivers | Reporter: | gotyaoi |
Component: | Video(DRI - Intel) | Assignee: | intel-gfx-bugs (intel-gfx-bugs) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | aaron.lu, intel-gfx-bugs, jani.nikula, main.haarp |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | >3.17 | Subsystem: | |
Regression: | Yes | Bisected commit-id: |
Description
gotyaoi
2015-01-12 04:07:03 UTC
Add Jani, the commit author, maybe he knows what happened. BTW, maybe the following thing is good to know. Enable debug for backlight module like this: # cd /sys/kernel/debug/dynamic_debug # echo "module backlight +pft" > control Then do the tty switch, see if there is anything appeared in the dmesg log. The log should tell us which process ID is doing the backlight level change, if there is any. Check with ps -elf to see what command it is. Please see if this patch helps: http://patchwork.freedesktop.org/patch/40309 I just turned on debugging (hattip to Aaron), and the results are as follows. Very odd looking. I switched to the VT, waited a few seconds and then switched back, and it looks like two things fiddle with the brightness after switching, but only one on going back [ 119.717467] [4425] brightness_store: backlight: set brightness to 0 [ 120.191197] [4425] brightness_store: backlight: set brightness to 1054 [ 127.636070] [4425] brightness_store: backlight: set brightness to 1054 process 4425 is X, ps -ef output: root 4425 4419 0 22:28 tty7 00:00:03 /usr/bin/X -nolisten tcp -br -deferglyphs 16 vt07 -auth /var/run/slim.auth I'll give the patch a try soon and report back. Patched the intel_panel.c file, rebuilt the kernel and rebooted. While the debug dmesg output is pretty much identical, the backlight is max brightness on switching to a VT now. Granted, this is not perfect, as it goes max brightness no matter what the setting in X is or what the previous setting in the VT was (I mention because X remembers what brightness it was at and restores it on switching back to X), but it's better than before.. Better than nothing commit 13f3fbe827d09e3182023c8c54058cbf97aa146e Author: Jeremiah Mahler <jmmahler@gmail.com> Date: Mon Jan 12 11:01:03 2015 -0800 drm/i915: fix inconsistent brightness after resume |