You are not logged in.
Since graphics and laptop lid have given me such a headache in Ascii, I want to learn more about these things.
I have a T400 with integrated Intel grapics, libreboot, MATE, and lightdm. In my Devuan Jessie partition, which is quite a vanilla installation using the default kernel (version 3.16.51-3+deb8u1), I've noticed that if I turn the display brightness down, close laptop lid, then open laptop lid, brightness automatically changes itself to maximum. How can I prevent this?
Some details:
-acpi is not installed
-I have IgnoreLid=true in /etc/UPower/Upower.conf
-using i915.panel_ignore_lid=1 and i915.panel_ignore_lid=-2 kernel boot options have no effect
Last edited by GNUser (2018-05-02 20:20:16)
Offline
Any reason for not having acpi? Otherwise i'd try if acpi_listen shows some event relating to lid opening/closing. If there are events binding scripts that either save or restore brightness might work. At least this technique brought my speaker/microphone mute buttons to life by binding amixer one liners.
Offline
I never needed acpi in my Jessie installation, so never installed it. acpi_listen command is not present.
Offline
acpi_listen is part of acpid package.
Offline
I see. Well, in my Jessie install I don't have acpi, acpid, or any packages installed which contain the string 'acpi' anywhere in the package name.
Offline
Well apt-get could always change that http://www.thinkwiki.org/wiki/How_to_co … _lid_close suggests the lid actually has an event. Well at least for closing it seems. If you could figure out how to save the brightness value from /sys/class/backlight and restore on open you'd be golden i'd say.
Offline
So I installed acpid and both closing the lid and opening it are events that acpi can catch. I save the brightness on lid close, then restore it on lid open. Now after I open the lid, the brightness is maxed out for a fraction of a second and then acpi restores the saved brightness.
So although I now have a workaround (thank you, devuser!), the main reason I opened the thread is that I would like to know what system component is cranking up the brightness when I open the lid. I know it's not UPower and not acpi (since it wasn't even installed). How do I find out if the culprit is X, the kernel, i915, or something else?
Last edited by GNUser (2018-05-02 17:21:06)
Offline
I would like to know what system component is cranking up the brightness when I open the lid.
Good question. Sadly i don't know but it seems it could also be the thinkpad-acpi kernel module (https://github.com/torvalds/linux/blob/ … d-acpi.txt). Didn't check but i wouldn't be suprised if that is even active before any actual acpi packages get installed. I am just guessing here but in my opinion it's either that or the i915 module as both include brightness controls or very maybe the BIOS but my bet would be on one of the first two.
Offline
My gut feeling is that it is a kernel component, too. Thanks for sharing your thoughts. I'm glad that my hunch seems plausible to at least one other knowledgeable user.
Maybe we'll never know for sure, but as long as we're not missing an obvious answer then I'm fine with that.
Offline