1 .\" Copyright (c) 2015 Michael Gmelin <freebsd@grem.de>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd Intersil(TM) I2C ISL29018 sensor driver
34 To compile this driver into the kernel, place the following lines into
35 the kernel configuration file:
36 .Bd -ragged -offset indent
42 Alternatively, to load the driver as a module at boot time, place the following line in
44 .Bd -literal -offset indent
50 .Pa /boot/device.hints :
51 .Cd hint.isl.0.at="iicbus0"
52 .Cd hint.isl.0.addr="0x88"
53 .Cd hint.isl.1.at="iicbus1"
54 .Cd hint.isl.1.addr="0x88"
58 driver provides access to sensor data provided by the Intersil(TM) I2C
59 ISL29018 Digital Ambient Light Sensor and Proximity Sensor with Interrupt
61 Functionality is basic and provided through the
67 these values are configurable for
69 .Bl -tag -width "hint.isl.%d.addr"
73 .It Va hint.isl.%d.addr
81 variables are available:
82 .Bl -tag -width "dev.isl.X.resolution"
84 Current ALS (Ambient Light Sensor) readout.
86 Current IR (InfraRed) sensor readout.
88 Current proximity sensor readout.
89 .It Va dev.isl.X.resolution
90 Current sensor resolution.
91 .It Va dev.isl.X.range
95 .Ss Ambient light sensor read out
97 $ sysctl dev.isl.0.als
100 .Ss Automatically adjust brightness
101 This requires the port
102 .Pa graphics/intel-backlight
103 and only works with laptops using a supported Intel(R) GPU.
105 $ pkg install intel-backlight
106 $ sh /usr/local/share/examples/intel-backlight/isl_backlight.sh
115 driver was written by
116 .An Michael Gmelin Aq Mt freebsd@grem.de .
118 This manual page was written by
119 .An Michael Gmelin Aq Mt freebsd@grem.de .
123 driver detects the device based from the I2C address.
124 This might have unforeseen consequences if the initialization sequence
125 is sent to an unknown device at that address.