Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move array bounds tests before access to avoid reading past the end of | 2017-08-22 | 1 | -3/+3 | |
| | | | | | | | an array. Coverity CIDs 1452968 1453000. ok jung@ who mentions this case isn't hit in practice due to arrays having a terminating NULL. | ||||
* | asmc: on system resume, restore the keyboard backlight value | 2017-02-14 | 1 | -2/+17 | |
| | | | | ok various | ||||
* | do not try to probe light sensors for machines with none available, this was | 2016-04-22 | 1 | -9/+10 | |
| | | | | | | | | | | already fixed in -r1.7 (for kettenis macmini), but since then the code was heavily shuffled and moved around and this regression was re-introduced choose a different fix now and introduce a light sensor flag for the different models to allow or avoid the probing prodded by landry (macmini again) | ||||
* | lower case temperature descriptions and separate fan description from fan | 2016-04-19 | 1 | -50/+50 | |
| | | | | | | location by a comma to avoid ambiguity with newer models hint from kettenis (last year) | ||||
* | set sensor type later on init | 2015-12-27 | 1 | -5/+5 | |
| | |||||
* | fold for loops back into a wait function in a similar manner as acpiec does | 2015-12-27 | 1 | -31/+17 | |
| | |||||
* | rename kbdled to backlight and mention chip model in comment | 2015-12-27 | 1 | -11/+11 | |
| | |||||
* | extra taskq is gone, so also remove the no longer needed init variable | 2015-12-27 | 1 | -19/+17 | |
| | |||||
* | simplify and unify keyboard backlight hooks, doing the same kassert instead of | 2015-12-27 | 1 | -17/+5 | |
| | | | | for-loop as acpithinkpad does | ||||
* | with Mark's fix in previous commit the extra taskq for delayed initialization | 2015-12-27 | 1 | -35/+6 | |
| | | | | | and updates is no longer needed and can be removed, so simplify things and initialize the sensors on attach and update them through the sensors task | ||||
* | The Apple SMC is implemented on a H8S/2117 chip. Communication with the chip | 2015-12-22 | 1 | -32/+41 | |
| | | | | | | | | | | | | becomes much more reliably if we pay attention to the IBF and OBF flags. This removes the need for excessive delays and retries, making operations complete in microseconds instead of seconds. This diff also removes flushing the read buffer after a read operations. This doesn't seem to be necessary, but we might need to put that back if the length of a reply changes for some keys. ok jung@, deraadt@ | ||||
* | ignore unlikely temperature values like -127 degC | 2015-12-15 | 1 | -2/+5 | |
| | |||||
* | add 2 more temperature keys found in macbook pro (10,2) | 2015-12-15 | 1 | -10/+9 | |
| | | | | | | | | found via key dump diff, run by Bryan Vyhmeister also remove 3 temperature keys which likely do not return useful values verified with help from macbook pro output of tb (4,1 and 5,5), kettenis (12,1), and Cristoph R. Murauer (9,1) via misc@ | ||||
* | add more temperature keys found in newer macbook airs (6,1 and 7,2) | 2015-12-15 | 1 | -7/+8 | |
| | | | | encountered via key dump diff, run by Bryan Vyhmeister | ||||
* | make sure the read fan description is always nul terminated | 2015-12-15 | 1 | -2/+3 | |
| | | | | hint from kettenis | ||||
* | enable keyboard backlight support via wskbd(4) hooks | 2015-12-12 | 1 | -3/+78 | |
| | | | | | | tested by Bryan Vyhmeister, krw, tb, and myself ok krw tb | ||||
* | remove wrapper function and call LKSB key write directly | 2015-12-11 | 1 | -18/+10 | |
| | |||||
* | remove no longer needed prototype | 2015-12-11 | 1 | -3/+2 | |
| | |||||
* | instead of checking the status everywhere do it directly after (trying) the | 2015-12-11 | 1 | -48/+53 | |
| | | | | command and propagate the result | ||||
* | enable keyboard backlight led earlier to avoid race | 2015-10-29 | 1 | -9/+12 | |
| | |||||
* | refactor to use a taskq and postpone the long running initial sensor probing, | 2015-10-25 | 1 | -248/+264 | |
| | | | | | also avoid excessive tsleep()s for updates within the sensor task, moreover this should fix some seldom seen 'comm collision' errors | ||||
* | avoid using a var uninitialised | 2015-10-15 | 1 | -1/+2 | |
| | | | | ok jung@ | ||||
* | add location to the fan description | 2015-10-10 | 1 | -1/+17 | |
| | |||||
* | fix wrong brackets in if statement | 2015-10-10 | 1 | -2/+2 | |
| | |||||
* | tweak initial output a bit: do not show number of light sensors, just show if | 2015-10-04 | 1 | -3/+3 | |
| | | | | | some is found or not, also remove kbdled output as there is no (known) way to test if (not) available at all | ||||
* | a macmini has no light sensor, but reading from light sensor keys is | 2015-10-04 | 1 | -9/+3 | |
| | | | | | | | | | successful, while info/type reading from same keys fails and avoids initialization; so check the validity flag earlier and do not try to attach invalid (non-existing) keys debugged with help from kettenis | ||||
* | remove duplicate key, found by kettenis | 2015-10-04 | 1 | -3/+3 | |
| | |||||
* | relax vendor comparison to match variations found in older | 2015-10-01 | 1 | -2/+2 | |
| | | | | models for example macmini1,1 | ||||
* | add const, prodded by mpi | 2015-10-01 | 1 | -2/+2 | |
| | |||||
* | remove superfluous sensor_attach() added for debug reasons | 2015-10-01 | 1 | -2/+1 | |
| | |||||
* | fix semicolon after if statement | 2015-10-01 | 1 | -1/+2 | |
| | | | | ok jung@ | ||||
* | add a (disabled) driver for the Apple System Management Controller (SMC) as | 2015-09-30 | 1 | -0/+651 | |
found in Apple Intel based devices "go at it" deraadt@ |