502 Commits

Author SHA1 Message Date
Bastien Nocera
6d2fff6c10 COPYING: Clarify GPL v3 license
Closes #26
2015-05-27 11:13:46 +02:00
Miguel Vaello
547b332aae Update README
- Added autogen line to installation section
- Added MacBook Pro to tested devices list
2015-05-25 10:16:38 +02:00
Bastien Nocera
0d6e31c104 README: Fix description 2015-05-24 22:16:09 +02:00
Bastien Nocera
abf48d015d rules: Make hwmon light sensor support more generic
Even if it's used in MacBooks, hwmon compatible sensors also exist on
other laptops, such as some Samsung laptops. Make sure we can support
those too.
2015-05-24 16:22:34 +02:00
Bastien Nocera
5436d07fb0 rules: Add missing systemd TAG to autostart daemon
The daemon wasn't starting on, at least, MacBooks because the systemd
tag was missing, not starting the systemd iio-sensor-proxy.service unit.

Closes #25
2015-05-24 16:20:58 +02:00
Bastien Nocera
30d4550658 hwmon-light: Fix sending floods of readings
When enabling polling, we'd set up an idle, instead of a timeout.
2015-05-24 15:52:53 +02:00
Cristian Rodríguez
3be00360be rules: Don't override SYSTEMD_WANTS
Something else might need it too
2015-05-24 15:28:52 +02:00
Cristian Rodríguez
ea1801cea6 rules: Fix ACTION equality check
ACTION=add --> ACTION==add
2015-05-24 15:28:01 +02:00
Bastien Nocera
66e3d9470f 1.0 2015-05-22 16:16:20 +02:00
Bastien Nocera
3eb4ecc139 build: Install D-Bus config file in $(sysconfdir)
Rather than hard-coding /etc
2015-05-22 16:16:20 +02:00
Bastien Nocera
853371b9b1 build: Add --with-systemdsystemunitdir configure option 2015-05-22 16:16:20 +02:00
Bastien Nocera
6bd7e248ab data: Add --with-udevrulesdir configure option 2015-05-22 16:16:20 +02:00
Bastien Nocera
158269e888 build: Require a newer version of gtk-doc
To avoid deprecation warnings.
2015-05-22 16:02:26 +02:00
Bastien Nocera
147df434e2 NEWS: Add forgotten 0.1 release 2015-05-22 15:47:28 +02:00
Bastien Nocera
ad9f040b9e docs: Update requirements for new API
We need more than "GNOME 3" and a somewhat older systemd, we'll need the
newest ones.
2015-05-22 15:43:54 +02:00
Bastien Nocera
c2260fe321 main: Use open wrapper when doing coldplug 2015-05-22 15:39:37 +02:00
Bastien Nocera
53ca7989ec main: Don't warn when Claim* is called twice in a row
Again, makes it easier for clients.
2015-05-21 16:03:02 +02:00
Bastien Nocera
035ad06eae main: Make Claim* calls work before sensor is available
It's tedious for clients to know whether they can call Release* when
sensors disappear, or making sure that the device is claimed before
releasing it when they go in power save mode.

You can now claim the sensor whether it's available or not, and it will
automatically start sending out the updates when it appears.

Closes #23
2015-05-21 15:45:33 +02:00
Bastien Nocera
2b24dfde61 build: Fix distcheck (somewhat)
The systemd files still aren't installable inside the prefix.
2015-05-21 12:07:00 +02:00
Bastien Nocera
23f9ea942a main: Add missing GResource file 2015-05-21 11:56:50 +02:00
Bastien Nocera
785dbcd4a2 main: Split "Claim" into per-driver-type methods
replace "Claim + weird driver type string" with "ClaimAccelerometer" and
"ClaimLight" methods.

Ditto with "Release"
2015-05-20 11:15:02 +02:00
Bastien Nocera
8fd1a46c8d main: Update copyright headers
And remove documentation from it, it should all be in the newly added
docs.
2015-05-20 10:44:52 +02:00
Bastien Nocera
c697fee81f main: Use GResource to share introspection XML data
So the same file is used to generate the docs and export the D-Bus
object.
2015-05-20 10:38:31 +02:00
Bastien Nocera
84401a0e0f docs: Add gtk-doc documentation
Closes #8
2015-05-20 10:13:04 +02:00
Bastien Nocera
8976cd10c3 main: Fix possible crash in sensor_changes()
We were passing "i", the counter over the number of drivers, and not the
counter over the number of driver *types*.
2015-05-19 22:24:56 +02:00
Bastien Nocera
f2878cc8a3 main: Tell clients when sensors (dis)appear 2015-05-19 22:24:20 +02:00
Bastien Nocera
11fbb0096d main: Only send properties that did change
Closes #20
2015-05-19 22:23:53 +02:00
Bastien Nocera
68ea66b6ca fake-input-accelerometer: Don't start with an undefined orientation
This data will likely be available already.
2015-05-19 22:22:28 +02:00
Bastien Nocera
b3626c9bac monitor-sensor: Only print properties that changed 2015-05-19 22:05:09 +02:00
Bastien Nocera
0ddb4362d7 main: Add wrappers for vfuncs 2015-05-19 19:14:47 +02:00
Bastien Nocera
bd4207f47a monitor-sensor: Print values as well 2015-05-19 18:50:22 +02:00
Bastien Nocera
a904cff8cd main: Add monitor-sensor test program 2015-05-19 18:28:34 +02:00
Bastien Nocera
ce70cfef18 main: Add Claim/Release D-Bus methods
Each client will now have to call "Claim" for the values to start
updating, and "Release" when they're done (they can also leave the bus,
but that's more complicated to achieve).

Closes: #11
2015-05-19 18:28:34 +02:00
Bastien Nocera
963ee096df drivers: Add set_polling() method to drivers
When the driver needs to poll, ensure that we can easily disable that
polling to reduce wakeups.

This temporarily breaks the daemon.
2015-05-19 18:14:57 +02:00
Bastien Nocera
3ea494832b main: Move any_sensors_left() helper function 2015-05-19 16:34:22 +02:00
hadess
f83430c122 Merge pull request #14 from elad661/update-readme
README: Add the Lenovo ThinkPad Twist as a tested model
2015-03-24 17:04:09 +01:00
Elad Alfassa
9da9bc6328 README: Add the Lenovo ThinkPad Twist as a tested model 2015-03-24 17:52:08 +02:00
Elad Alfassa
c7fb43e0d5 main: Add IIO buffering Light Sensor driver
Such as the one on the Thinkpad Twist
2015-03-24 15:49:15 +01:00
Elad Alfassa
d486aadd0e main: Split iio buffering sensors utility functions to a helper file 2015-03-24 15:49:15 +01:00
Elad Alfassa
f9236bcada main: Fix typo in iio polling light sensor driver name 2015-03-24 14:57:43 +01:00
Bastien Nocera
27f4a55711 main: Rework D-Bus setup
Simplify D-Bus setup, and do it as early as possible. Running
iio-sensor-proxy when another instance is already running will not throw
an error now.

Closes #12
2015-03-20 13:35:54 +01:00
Bastien Nocera
97b0c0a075 rules: Auto-start iio-sensor-proxy for Apple SMC light sensors 2015-03-19 16:11:57 +01:00
Bastien Nocera
ea46714d91 main: Add HWMon light sensor support
As used on Mac laptops. Note that some devices have multiple sensors.
As advised in Microsoft documentation, we will only use the values
from the sensor with the highest value, to avoid problems with potentially
obscured sensors.

Tested on MacBookPro8,2
2015-03-19 16:05:11 +01:00
Bastien Nocera
dba141da81 main: Add IIO polling Light Sensor driver 2015-03-13 13:56:40 +01:00
Bastien Nocera
c6d688f13d main: Indentation changes in fake light sensor driver 2015-03-13 13:56:18 +01:00
Bastien Nocera
b9c2b44ed8 main: Make sure fake light sensor can be stopped early
By reusing the same source ID for both the idle and the timeout.
2015-03-13 13:35:33 +01:00
Bastien Nocera
8ab67c6fe3 main: Check for subsystem when initialising drivers
There's no need to do any more checks on the device
if the subsystem doesn't match.
2015-03-13 13:32:59 +01:00
Bastien Nocera
4cfe39899a build: Add missing files and headers
Closes #9
2015-03-07 14:55:07 +01:00
Bastien Nocera
7d226295da main: Add ALS reading unit
Either "lux" or "vendor".
2015-03-06 10:40:23 +01:00
Bastien Nocera
1a28ce6568 main: Add a Fake light driver
Have your own fake light sensor started with:
FAKE_LIGHT_SENSOR=1 ./iio-sensor-proxy
2015-03-05 18:05:33 +01:00