Skip to content

Latest commit

 

History

History
 
 

cm3218_ambient_light_sensor_driver

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

ACPI-enabled driver for CM3281 ambient light sensor

Taken from Capella's original draft submission

Largely cleaned up, modified to detect ACPI device.

Module depends on 'industrialio' module ('make install' will handle dependencies for you).

Testing / Installing:

Building the module

  1. Download all the files in this folder (or 'git clone' this repository)
  2. $ cd <download_location>/cm3218_ambient_light_sensor_driver
  3. $ make

Installing the module:

  1. $ sudo make install

Loading the module:

  1. $ sudo modprobe cm3218

Testing the module:

  1. $ watch cat /sys/bus/iio/devices/iio:device0/in_illuminance0_input
  2. Move your tablet around under different light sources and watch the numbers change

Todo

  • Enable time integration base modification

Testing

make

sudo insmod gpio_button_array.ko