Closed ljanvier closed 6 years ago
I confirm this bug, the same happens on a HP ProBook 440 G5.
This issue also affects HP Elitebook 840 G1.
I don't know if it's related, but gdm also gets orientation info wrong at times and freezing as a result.
Distribution: Debian 9 Kernel: 4.9.0-7-amd64 iio-sensor-proxy version 2.0-4
This isn't a real problem. Load average is not a good representation of the CPU (or other resource) usage caused by an application. The driver requires us to poll for new information, which we do every couple of seconds.
Yes, load average is not a good representation. However, the daemon shouldn't be in an uninterruptable sleep state. I don't know how the polling is implemented, but it is clearly wrong if doing something "every couple of seconds" causes the load to climb.
This is how your gas tank works?
However, the daemon shouldn't be in an uninterruptable sleep state.
It is every time it reads the sensor data, waiting on IO.
I don't know how the polling is implemented, but it is clearly wrong if doing something "every couple of seconds" causes the load to climb.
I do know how the polling is implemented, and load isn't representative of the work that the daemon does (sleep 2 seconds, read a couple of data points).
Hi,
I have a lot of of ProBook 650/450 with Ubuntu 18.04. They have a "ST LIS3LV02DL Accelerometer".
If iio-sensor-proxy is running and has a client (gdm or monitor-sensor running), the load average is =~ 1.0, even if the idle > 99%. iio-sensor-proxy is always in D state (uninterruptible sleep). In DEBUG mode, iio-sensor-proxy shows a message every 2 seconds (see below).
With iio-sensor-proxy stopped or without clients, the load average == 0.0.
Not sure if it's a iio-sensor-proxy problem or a driver problem.
Debug info: