sourCEntral - mobile manpages

pdf

ISL(4) BSD Kernel Interfaces Manual ISL(4)

NAME

isl — Intersil(TM) I2C ISL29018 sensor driver

SYNOPSIS

To compile this driver into the kernel, place the following lines into the kernel configuration file:

device isl
device ig4
device smbus

Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):

isl_load="YES"
ig4_load="YES"

DESCRIPTION

The isl driver provides access to sensor data provided by the Intersil(TM) I2C ISL29018 Digital Ambient Light Sensor and Proximity Sensor with Interrupt Function. Functionality is basic and provided through the sysctl(8) interface.

SYSCTL VARIABLES

The following sysctl(8) variables are available:

dev.isl.X.als

Current ALS (Ambient Light Sensor) readout.

dev.isl.X.ir

Current IR (InfraRed) sensor readout.

dev.isl.X.prox

Current proximity sensor readout.

dev.isl.X.resolution

Current sensor resolution.

dev.isl.X.range

Current sensor range.

EXAMPLES

Ambient light sensor read out
$ sysctl dev.isl.0.als
dev.isl.0.als: 64

Automatically adjust brightness
This requires the port graphics/intel-backlight and only works with laptops using a supported Intel(R) GPU.

$ pkg install intel-backlight
$ sh /usr/local/share/examples/intel-backlight/isl_backlight.sh

SEE ALSO

ig4(4), smbus(4)

AUTHORS

The isl driver was written by Michael Gmelin 〈freebsd AT grem DOT de〉.

This manual page was written by Michael Gmelin 〈freebsd AT grem DOT de〉.

BUGS

The isl driver detects the device based on its I2C address (0x44). This might have unforeseen consequences if the initialization sequence is sent to an unknown device at that address.

BSD July 25, 2015 BSD

pdf