Screen rotation on Acer Switch 3 SW312-31

372 views
Skip to first unread message

Patrick Wirth

unread,
Oct 27, 2018, 1:54:34 PM10/27/18
to Android-x86
Hi there,
Does someone know how to get screen rotation on this device to work?

It´s LineageOS 14.1 x64 r2 installed and everything seems to work except screen rotation and the two cameras (but i don´t care about camera).
I´ve tried to edit init.sh and changed the value hal_sensors=iio and has_sensors=true but it isn´t doing anything.

In Ubuntu 18.x screen rotation works but shifted 180 degree so it might work on android aswell.
It is a "bosch accelerometer" the hardware ID is 
ACPI\VEN_BOSC&DEV_0200
ACPI
\BOSC0200
*BOSC0200
How can I get it to work?
My linux skills are very limited.

Thank you

Chih-Wei Huang

unread,
Oct 29, 2018, 3:35:42 AM10/29/18
to Android-x86
'Patrick Wirth' via Android-x86 <andro...@googlegroups.com> 於
2018年10月28日 週日 上午1:54寫道:
First of all, what's the result of these commands (by root)?

ls /sys/bus/iio/devices/iio:device*/in_accel_?_raw

getprop ro.hardware.sensors


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Patrick Wirth

unread,
Nov 1, 2018, 1:01:04 PM11/1/18
to Android-x86
The first command resulted in an error "No such file or directory"
I double checked the command.
The second command tells me "kbd"

Chih-Wei Huang

unread,
Nov 6, 2018, 12:29:32 AM11/6/18
to Android-x86
'Patrick Wirth' via Android-x86 <andro...@googlegroups.com> 於
2018年11月2日 週五 上午1:01寫道:
>
> The first command resulted in an error "No such file or directory"
> I double checked the command.
> The second command tells me "kbd"

Then the driver is not enabled or loaded.

So what's the driver in Ubuntu?

Patrick Wirth

unread,
Nov 6, 2018, 12:40:11 AM11/6/18
to Android-x86
Can i run the same commands in thr terminal  as for android x86 or do i have to use an external tool for it?

Patrick Wirth

unread,
Nov 6, 2018, 12:43:14 AM11/6/18
to Android-x86

I guess, getprop doesn't work on ubuntu 

Patrick Wirth

unread,
Nov 7, 2018, 7:24:10 PM11/7/18
to Android-x86
Is that something you can work with?
Did a little bit of research and found this command but don't know if this is what you need.
IMG_20181108_012119.jpg

Chih-Wei Huang

unread,
Nov 14, 2018, 10:09:27 PM11/14/18
to Android-x86
'Patrick Wirth' via Android-x86 <andro...@googlegroups.com> 於
2018年11月8日 週四 上午8:24寫道:
>
> Is that something you can work with?
> Did a little bit of research and found this command but don't know if this is what you need.

These drivers are also enabled in android-x86 kernel.
You may try the command (by root) to see what happen:

modprobe bmc150-accel-i2c

Then

ls -l /sys/bus/iio/devices/iio:device*/in_accel_?_raw

> Am Dienstag, 6. November 2018 06:43:14 UTC+1 schrieb Patrick Wirth:
>>
>>
>> I guess, getprop doesn't work on ubuntu
>> Am Dienstag, 6. November 2018 06:40:11 UTC+1 schrieb Patrick Wirth:
>>>
>>> Can i run the same commands in thr terminal as for android x86 or do i have to use an external tool for it?
>>>
>>> Am Dienstag, 6. November 2018 06:29:32 UTC+1 schrieb Chih-Wei Huang:
>>>>
>>>> 'Patrick Wirth' via Android-x86 <andro...@googlegroups.com> 於
>>>> 2018年11月2日 週五 上午1:01寫道:
>>>> >
>>>> > The first command resulted in an error "No such file or directory"
>>>> > I double checked the command.
>>>> > The second command tells me "kbd"



Patrick Wirth

unread,
Nov 15, 2018, 1:04:06 PM11/15/18
to Android-x86
The first command ends in nothing, the second one in "No such file or directory"
Screenshot_20181115-184557.png

Chih-Wei Huang

unread,
Nov 15, 2018, 11:52:29 PM11/15/18
to Android-x86
'Patrick Wirth' via Android-x86 <andro...@googlegroups.com> 於
2018年11月16日 週五 上午2:04寫道:
>
> The first command ends in nothing, the second one in "No such file or directory"

Then does bmc150-accel-i2c the correct sensors driver in Ubuntu?

What's the output of the second command in Ubuntu?
If the files exist, try to unload bmc150-accel-i2c (rmmod),
does /sys/bus/iio/devices/iio:device*/ disappear?

> Am Donnerstag, 15. November 2018 04:09:27 UTC+1 schrieb Chih-Wei Huang:
>>
>> 'Patrick Wirth' via Android-x86 <andro...@googlegroups.com> 於
>> 2018年11月8日 週四 上午8:24寫道:
>> >
>> > Is that something you can work with?
>> > Did a little bit of research and found this command but don't know if this is what you need.
>>
>> These drivers are also enabled in android-x86 kernel.
>> You may try the command (by root) to see what happen:
>>
>> modprobe bmc150-accel-i2c
>>
>> Then
>>
>> ls -l /sys/bus/iio/devices/iio:device*/in_accel_?_raw


Reply all
Reply to author
Forward
0 new messages