GNOME Bugzilla – Bug 731504
laptop panel backlight is dropped to 0 when external VGA display is connected
Last modified: 2014-06-18 16:46:08 UTC
Actual behavior: Every time I connect an external display, my internal panel brightness is brought to 0. Expected behavior: The internal panel brightness doesn't change when there is a desktop displayed on it. I tried to debug this with kernel first. Kernel guy advised that this brightness change is requested from gdm.
Created attachment 278251 [details] log of external monitor connection with drm.debug=0x4 and module backlight +fpt brightness adjustment at Jun 11 10:29:04 was manual - I had to turn it up to see something
might be a driver issue. Does it happen after you log in as well?
(In reply to comment #2) > might be a driver issue. Does it happen after you log in as well? I'm not 100% sure I understood your question. What I observe happens when I'm logged in and I connect an external monitor to a VGA connector. When I connect VGA cable before powering on my laptop, I can observe a nice mirror of my internal screen on the external display - the text part of the boot sequence (both UEFI and after modsetting). As soon as gdm starts, the brightness of my internal panel is dropped to 0. I turn it up by using the keys. When I complete the logon and gnome-session starts, the brightness of my internal panel is dropped to 0 again. I turn it up by using the keys. When I go to display settings to re-arrange the mutual position of my monitors and apply the settings, the brightness of my internal panel is dropped to 0 again. I also suspected the driver issue myself and consulted with the kernel developer who helped me to fix the brightness issue related to AC power plug/unplug. He believes that these brightness changes come from a user land. Please see the bug https://bugzilla.kernel.org/show_bug.cgi?id=77091#c30 Please advise how I can provide more tracing info to you.
gnome-settings-daemon doesn't touch the brightness when plugging or unplugging displays. This is either a driver regression, or a bug in gnome-shell, which handles brightness and display power on newer versions of GNOME.
gnome-shell/mutter doesn't do anything automatically about the backlight. Looking at the log, it seems that when you connect the VGA cable, the kernel does a full hotplug of *both* the eDP and VGA connectors. If that really is the case then someone should make sure that the previous backlight value for that connector is re-applied. We might end up having to do this in mutter (perhaps by extending the monitors.xml file to include a backlight level?). But the kernel could probably be smarter here too if my assumption above is correct.
raised a kernel video driver bug. https://bugzilla.kernel.org/show_bug.cgi?id=78011
Fixed in the intel DDX: http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=7119d394a673f40eb467d040c6febf3749924394 .