[Pkg-acpi-devel] Bug#621784: acpi-support: Enable Brightness Control Function Keys for NEC Lavie Models

Robert robert.lange at s1999.tu-chemnitz.de
Fri Apr 8 21:03:35 UTC 2011


Package: acpi-support
Version: 0.137-5
Severity: wishlist
Tags: patch

On NEC Lavie lm370 notebook models the
integrated brightness control function keys do not work.

The following changes makes them usable:

Make keys known to kernel by adding to file /etc/rc.local :
# Get Brightness control keys working; map to XF86 Brightness keys
# up
setkeycodes 65 225
# down
setkeycodes 67 224 


Add the event handler to /etc/acpi/events/brightness :
======================
event=video/brightness*
action=/etc/acpi/brightness.sh %e
======================

Add the script /etc/acpi/brightness.sh (attached)


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'stable'), (70, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: brightness.sh
Type: text/x-shellscript
Size: 900 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20110408/270e7177/attachment.bin>


More information about the Pkg-acpi-devel mailing list