[ltp] Prevent brightness change for AC events

Jochen Spieker linux-thinkpad@linux-thinkpad.org
Sun, 13 Jul 2014 01:58:31 +0200


--EY/WZ/HvNxOox07X
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Vincent Bernat:
>  =E2=9D=A6 12 juillet 2014 11:24 +0200, Jochen Spieker <ml@well-adjusted.=
de>=C2=A0:
>=20
>>> The kernel going berserk over the mess that Win8 ACPI firmware did to A=
CPI
>>> backlight control.
>>>=20
>>> There are fixes going around the linux-acpi ML for this stuff.  Try rem=
oving
>>> the ACPI video module, maybe it helps...
>>=20
>> Which one would that be?
>=20
> It's "video":

Thanks. I don't know how I can rmmod it, though. i915 depends on it and
I usually prefer to run X. :)

> Maybe loading it with brightness_switch to N? As I cannot unload it
> without rebooting, I cannot test right now.

I googled a bit and think this should be the correct syntax:

options video brightness_switch_enabled=3D0

I updated the initramfs, rebooted and it appears the setting is applied:

$ cat parameters/brightness_switch_enabled=20
N

I just don't see any difference. The Ubuntu wiki suggested to use these
boot parameters:

thinkpad-acpi.brightness_enable=3D1 acpi_backlight=3Dvendor

The first one generates a warning by thinkpad-acpi ("Unsupported
brightness interface"), but the second one appears to do what I want.

Thanks for the pointers!
J.
--=20
I will not admit to failure even when I know I am terribly mistaken and
have offended others.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

--EY/WZ/HvNxOox07X
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJTwcumAAoJEFOK7jlDb4WXRkIQANd3Z5jlhHm7QGtEdKnm6CF0
mOI3DU1cs2oldwcdNwWeq4/qEjsodqRtMMAatxq89zt11+3APgpC/pa1yM3o5B4Y
iKkaQAlb12Ra2tD6FTQNCLFr/E22miq4mdhNoNDEaq0Qj1YwBXKsbZNEtYUwSmYu
Uahw9MMpOPJZoqoo4WRtr/ic+9pAHl97foqLUr+a/8Ielaq9LojSz00myWBSS29H
XtL9f+/hzyDitu+kxczcdfUVNv6LYy+h6u9Bw72SzgsQPOkeH9rq6089t4mY7QZ3
ffby1XcIlIqb3BZg6L4YACyn4JJwMbipbR37NVkI3751rYQFN2Aeqh0Z7uOZ4hOg
+e6KBowe0dXZwt9ZnUNC58Tw1kHpvBh74du7O7z4Us/7lLGipwL9uxq6JQ1N4fvM
2u5e+JBHtGxOjZtjca62DYDJBx70LGyS7AFLdBqM/eLLFSyNndp2RvKIN1L7Ll2m
nIzyym49gAn1UbXPqEANgPriTm1zbMunA+W5brOeYphl+5jstUQjc+V8r8r4GC3T
jMrw8tBL/2OWscJxXVlb1cddFOpe3LDPpVvUCgKl1K5GZFaMM/yWkeg1ITEw/9q/
Uy9ZYpxO7xEBtyIdZn1IN6K5qPX7NmatNe8oVSBLU+GMLcpwxL1d6tqVO9mjhDl4
/8xJycjx9mWpmnaSPGnz
=onor
-----END PGP SIGNATURE-----

--EY/WZ/HvNxOox07X--