hadess / iio-sensor-proxy

IIO accelerometer sensor to input device proxy
196 stars 63 forks source link

MacBook Pro <Early 2011> #25

Closed mvaello closed 9 years ago

mvaello commented 9 years ago

Testing with my 'old' MacBook. Theoretically it detects devices right, but does not appear the "IIO Accelerometer Proxy" udev after run it $ udevadm info --export-db.

The debug output:

$ G_MESSAGES_DEBUG=all /usr/local/sbin/iio-sensor-proxy    
** (process:3476): DEBUG: Found HWMon light at /sys/devices/platform/applesmc.768
** (process:3476): DEBUG: Found device /sys/devices/platform/applesmc.768 of type ambient light sensor at Platform HWMon Light
** (process:3476): DEBUG: iio-sensor-proxy is already running
mvaello commented 9 years ago

It's looks like that this patch does not solve the problem, at least for me. The only thing I found was this after recompiling and restarting the service.

P: /devices/virtual/hwmon/hwmon0
E: DEVPATH=/devices/virtual/hwmon/hwmon0
E: SUBSYSTEM=hwmon
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=319640

And after run iio-sensor-prxy with DEBUG flag it returns the same massages.

hadess commented 9 years ago

What's the output of:

systemctl status iio-sensor-proxy.service

On your system?

hadess commented 9 years ago

FWIW, it works on the Mac I tested it on. You'll need to run monitor-sensor to see changes in the readings, and I ran ./autogen.sh --prefix=/usr --sysconfdir=/etc before compiling and installing.

mvaello commented 9 years ago

Ok, the last tip was the key, now the service is active :+1 and the monitor-sensors returns values. Thanks. I was trying to reload again and again the service but was impossible to get it active (running).