[ltp] Prevent brightness change for AC events

Jochen Spieker linux-thinkpad@linux-thinkpad.org
Fri, 11 Jul 2014 23:23:42 +0200


--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I never understood why anyone wants their laptop to change screen
brightness an AC plugging anyway, but my system's current behaviour is
just mad: whenever I either plug or unplug the AC adapter, the screen
changes to full brightness. Pressing Fn+F5 or fn+F6 immediately returns
to the previous state plus or minus one step.

Does anybody have an idea where I can disable screen brightness changes
for AC events?

My system:

- X240 w/ full HD IPS panel
- running Debian sid amd64
- "Desktop": awesome window manager with a few added programs that I
  start in ~/.xsession:
  - xfce4-power-manager
  - gnome-settings-daemon
  - xset +dpms
  - xset dpms 0 0 300
  + a few unrelated programs

I didn't find a setting that may be responsible for this behavior in
either xfce4-power-manager or gnome-control-center. I have
laptop-mode-tools installed as well but use CONTROL_BRIGHTNESS=3D0 in
/etc/laptop-mode/conf.d/lcd-brightness.conf. I also took a look into
/etc/acpi but didn't find anything relevant.

What did I miss?

J.
--=20
I wear a lot of leather but would never wear fur.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

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

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

iQIcBAEBCAAGBQJTwFXdAAoJEFOK7jlDb4WX9W8P/0ychzyXwsiYx15GtTI0k/hT
OQaHl8Vf2vB1mNC9s8IrQL2mPiE6CE2RwN/AD+Uxwf2/ADBBSh8gAr4BemFcYYXW
DASMaOBiw4bli+kon/D+wKsKursNYPGNhF2hpbHmeJqTfBQIV4rlTESh82l71Ati
M2DsHX2LBA6s1OB0p3Pebjg1yZ19LwH6MODGV+bTjsPfTxz2abg+dg7PKZr/2wEj
W5b8k15LLum5KFMxvYVdMEXAdMpqhCsWqz8GpPqsDJt90bH+S4IZ5Xayft5sLxvE
n0+WsQKrc0aOlbS/pDKHWVvyL/xIP05Llyw1MNRUo+HE621L+liqz7FuUmbZfFxy
cQ4PS8aY7VNK4xiRFQ0LFFbVjpvX+PrYLaDxHXE92l3/xnm65kJx0Tz1+ANvWaLW
sEwOwHDK3lMfuheOZMl+FurMcWkEDPZez/zF71bflSwmtYSu9VBuQmemET5HE77v
ju7OdQrU6vO5fe7lhQ+zCxxQkZRCz+VEOqSPxNyyRAAga9zgmb19pNa1365Q6Vhe
39gxbEAbPFDA06vPq2TqrewYF2+KEqpwqUtxhHBGK2EWcGm7wlujl29D3hdnaA4k
eMpbwRliPYfYxFRuyss3QA4K+LOqG3QxHwyWgKttFKmr+VB+Qx2FUednlrloNORR
noJi9zetS6EkjIDGPI76
=mnG1
-----END PGP SIGNATURE-----

--X1bOJ3K7DJ5YkBrT--