[ltp] Brightness up/down with video module

Marius Gedminas linux-thinkpad@linux-thinkpad.org
Thu, 1 May 2008 15:52:40 +0300


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

On Wed, Apr 30, 2008 at 11:41:40PM +0200, rocku wrote:
> I have a R61i Thinkpad (Intel X3100 graphics) which works nearly perfect =
=20
> under Debian unstable with 2.6.24 kernel from repository, custom built =
=20
> with hdaps and thinkpad_acpi ver. 0.19 patches. However I still didn't =
=20
> manage to fix a couple of issues, one of which are the brightness up and =
=20
> down keys. The problem is that every single keystroke increased / =20
> decreased the brightness twice. I've done some investigation and found =
=20
> that I have VID and VID1 under /proc/acpi/video. Watching the changes in =
=20
> /proc/acpi/video/*/LCD0/brightness while pressing up/down reveals that =
=20
> each keystroke affects both files, however the current level in each of =
=20
> these files is slightly different (+/- 1 level).=20
<snip>
> Could anyone with properly working brightness up/down key control check =
=20
> to see how does it look like in His or Hers system?

Fn-Home/End affect only /proc/acpi/video/VID1/LCD0/brightness on my
system (T61, Intel X3100 video, Ubuntu Hardy).  The VID0 brightness
always stays at 100.

xbacklight also affects the same control, although in an interesting way
(e.g. xbacklight =3D 50 seths VID1/LCD0/brightness to 55, but 75 is set
correctly).

Now this all works, I don't know.  I have the ACPI video module loaded,
HAL is running, X is running, and I get nice GNOME popups showing the
video level.  xev shows key press events (keycodes 212 and 101), but no
X symbol is assigned to them.

Marius Gedminas
--=20
Your eyes are weary from staring at the CRT.  You feel sleepy.  Notice how
restful it is to watch the cursor blink.  Close your eyes.  The opinions
stated above are yours.  You cannot imagine why you ever felt otherwise.

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

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

iD8DBQFIGb0YkVdEXeem148RAqT4AJ0eJObCnox0e7nyaCOfCKd7G2AmcgCeJfTp
LsD6rkQwiYze0+TkRf4TrKQ=
=0t73
-----END PGP SIGNATURE-----

--qDbXVdCdHGoSgWSk--