Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working on Acer Switch Alpha 12 #123

Closed
ragibkl opened this issue Dec 7, 2016 · 12 comments
Labels

Comments

@ragibkl
Copy link

@ragibkl ragibkl commented Dec 7, 2016

This laptop is not in your list of tested laptops. Can you help support this laptop as well?
Laptop Model : Acer Switch Alpha 12
Distro : Fedora 25
Linux alpha12 4.9.0-0.rc7.git3.2.fc26.x86_64 #1 SMP Thu Dec 1 22:50:14 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Some shell output:
shell_iio_proxy.txt

Thank you.

@ragibkl

This comment has been minimized.

Copy link
Author

@ragibkl ragibkl commented Dec 7, 2016

Update:
My issue seems similar to the following reddit post: https://www.reddit.com/r/SurfaceLinux/comments/3sk5tp/autorotation_issues_plus_a_workaround/
related: #58
workaround: watch -n 0.1 cat '/sys/bus/iio/devices/iio:device'*/*raw*
with the workaround, screen orientation and light sensor seems to work.

@hadess hadess added the driver bug label Dec 12, 2016
@harriseldon

This comment has been minimized.

Copy link

@harriseldon harriseldon commented Dec 14, 2016

@ragibkl

I also have a switch alpha 12 and noticed that iio sensors are not working either, but for a different reason. For me, it cannot open /dev/input/event9 although it runs as root. I am on arch and I will check there. I am looking forward to the driver bug fix.

I am willing to install the git version to test it out.

@jin-eld

This comment has been minimized.

Copy link

@jin-eld jin-eld commented Dec 25, 2016

Hi there,

I'm running (or at least trying to run) Fedora 25 on an Acer Switch 10, I have a similar problem like @harriseldon.

The log shows an endless loop of:
Dec 25 13:55:39 localhost.localdomain iio-sensor-prox[722]: Could not open input accel '/dev/input/event8': Operation not permitted

iio-sensor-proxy is running as root, udevadm info --export-db output shows:

P: /devices/virtual/input/input10/event8
N: input/event8
E: DEVNAME=/dev/input/event8
E: DEVPATH=/devices/virtual/input/input10/event8
E: ID_INPUT=1
E: ID_INPUT_ACCELEROMETER=1
E: IIO_SENSOR_PROXY_TYPE=input-accel
E: LIBINPUT_DEVICE_GROUP=19/0/0/0:wmi
E: MAJOR=13
E: MINOR=72
E: SUBSYSTEM=input
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=9203079

@ragibkl

This comment has been minimized.

Copy link
Author

@ragibkl ragibkl commented Jan 18, 2017

@hadess , I have some updates.
I am now running Korora 25 Linux (a Fedora 25 remix), with latest updates.
Linux 4.9.3-200.fc25.x86_64
package version: iio-sensor-proxy 2.0-1.fc25

Everything works now. Like magic. No workarounds. ootb functional (after running updates).
So, maybe bug was fixed in kernel update?

Thanks for all the hard work. I appreciate it.

@jin-eld

This comment has been minimized.

Copy link

@jin-eld jin-eld commented Jan 18, 2017

Hmm, interesting, I have the same kernel on Fedora 25, also pulled in via the latest updates, but it did not change anything for me, I still get the same error :(

@corpix

This comment has been minimized.

Copy link

@corpix corpix commented Jan 25, 2017

Just for information:
There is a ticket in RedHat bugzilla.

@harriseldon

This comment has been minimized.

Copy link

@harriseldon harriseldon commented Jan 27, 2017

I just upgraded to kernel 4.9.6 and I no longer get the cannot open input device error. I can also see changes to ambient light using monitor-sensor. I did not try orientation yet.

@jin-eld

This comment has been minimized.

Copy link

@jin-eld jin-eld commented Feb 1, 2017

Updated to kernel-4.9.6-200.fc25.x86_64, unfortunately no change for me, still the same behaviour.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Feb 2, 2017

Got the same problem on an Acer Switch Alpha 12 with Arch's 4.9.6 kernel, the accelerometer is just not accessible.

@ragibkl

This comment has been minimized.

Copy link
Author

@ragibkl ragibkl commented May 5, 2017

Update: Hi @hadess , after several system updates, this stopped working for me.
I'm on kernel 4.10.13-200.fc25.x86_64
So, perhaps this is really kernel issue?
My experience is similar to #159

The workaround I mentioned above still works.

@FFortissimo

This comment has been minimized.

Copy link

@FFortissimo FFortissimo commented May 5, 2017

The workaround doesn't work for me:

[jeroen@dds ~]$ watch -n 0.1 cat '/sys/bus/iio/devices/iio:device'*/*raw*
watch: failed to parse argument: '0.1'
@hadess

This comment has been minimized.

Copy link
Owner

@hadess hadess commented Aug 16, 2017

From https://github.com/hadess/iio-sensor-proxy/blob/master/README.md#known-problems:

Every Linux kernel from 4.3 up to version 4.12 had a bug that made
made iio-sensor-proxy fail to see any events coming from sensors until the
sensor was power-cycled (unplugged and replugged, or suspended and resumed).

The bug was finally fixed in this commit
in the upstream kernel and backported to stable releases. If you experience
unresponsive sensors, ask your distributor to make sure this patch was
applied to the version you're using.

Please reopen if you still have problems with a kernel containing this fix.

@hadess hadess closed this Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.