dell-laptop: support Synaptics/Alps touchpad led
authorAceLan Kao <acelan.kao@canonical.com>
Tue, 4 Oct 2011 08:25:44 +0000 (16:25 +0800)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:37 +0000 (16:52 +0200)
commit2d8b90be4f1cadd9921312e2983459f568d29cd1
tree6ae5de2592ebad0021f4e2ec0212019462bac9d9
parentbd038080c70b70a5b31c48af774fada36eacc834
dell-laptop: support Synaptics/Alps touchpad led

This patch supports Dell laptop with Synaptics and Alps touchpad chip
that with LED to indicate the functionality of touchpad is disabled or
enabled.

The command for touchpad LED is 0x97, and the data 1 means turn on the
touchpad LED, 2 means turn it off.

BTW, I add dell_quirks to white list those machines that supports this
behavior, so that the code won't affect those who don't have a touchpad LED
machine.

We can easily to turn it on/off by
   echo 1 > /sys/class/leds/dell-laptop::touchpad/brightness
   echo 0 > /sys/class/leds/dell-laptop::touchpad/brightness

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/dell-laptop.c
This page took 0.026004 seconds and 5 git commands to generate.