Rotation not working on Lenovo IdeaPad D330

367 views
Skip to first unread message

Suyono Liu

unread,
May 12, 2020, 11:15:43 PM5/12/20
to Android-x86
Hi, I'm having trouble with rotation on my low end detachable laptop. It seems to not work, I have to rotate the screen via third party app manually.

I found this tutorial on how to fix Ubuntu on the same device with same problem. Perhaps this can be of use:

https://www.rojtberg.net/1652/ubuntu-on-the-lenovo-d330

Is there anything I can do to fix this? Thanks in advantage

Chih-Wei Huang

unread,
May 12, 2020, 11:31:56 PM5/12/20
to Android-x86
Suyono Liu <sondoro...@gmail.com> 於 2020年5月13日 週三 上午11:15寫道:
> Hi, I'm having trouble with rotation on my low end detachable laptop. It seems to not work, I have to rotate the screen via third party app manually.
> I found this tutorial on how to fix Ubuntu on the same device with same problem. Perhaps this can be of use:
> https://www.rojtberg.net/1652/ubuntu-on-the-lenovo-d330

Looks like a typical iio sensor.
Try to commands by root:

setprop ro.iio.accel.quirks no-trig
stop; start (restart GUI)

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

Ashutosh prusty

unread,
May 13, 2020, 6:33:08 AM5/13/20
to Android-x86

Chih-Wei Huang

unread,
May 13, 2020, 10:10:38 AM5/13/20
to Android-x86
Ashutosh prusty <ashutosh...@gmail.com> 於 2020年5月13日 週三 下午6:33寫道:
Fine. Then it should work in the new 8.1-r5 release.

Ashutosh prusty

unread,
May 13, 2020, 1:59:51 PM5/13/20
to Android-x86
It's working in 8.1 r4.
Nice to hear about r5. 😇

XiaoTao Liu

unread,
May 13, 2020, 6:30:48 PM5/13/20
to Android-x86
would you consider having a new 7.1-r4 release.? It seems the new 8.1 and 9.0 series are not as power usage friendly as 7.1 series. Besides, 7.1 series seem to work more smoothly than those higher version, particularly 9.0 series. 

Chih-Wei Huang

unread,
May 13, 2020, 7:22:36 PM5/13/20
to Android-x86
XiaoTao Liu <kevin....@gmail.com> 於 2020年5月14日 週四 上午6:30寫道:
>
> would you consider having a new 7.1-r4 release.? It seems the new 8.1 and 9.0 series are not as power usage friendly as 7.1 series. Besides, 7.1 series seem to work more smoothly than those higher version, particularly 9.0 series.

OK. I'll consider that...

youling 257

unread,
May 14, 2020, 12:37:04 AM5/14/20
to Android-x86
nougat x86 and cm14 update to libdrm 2.4.100、mesa 18 or 19 will nice, just merge oreo-x86 libdrm、gralloc.drm、mesa with nougat-x86 and cm14.

在 2020年5月14日星期四 UTC+8上午7:22:36,Chih-Wei Huang写道:
XiaoTao Liu <kevin...@gmail.com> 於 2020年5月14日 週四 上午6:30寫道:

Chih-Wei Huang

unread,
May 14, 2020, 2:33:41 AM5/14/20
to Android-x86
youling 257 <youli...@gmail.com> 於 2020年5月14日 週四 下午12:37寫道:
>
> nougat x86 and cm14 update to libdrm 2.4.100、mesa 18 or 19 will nice, just merge oreo-x86 libdrm、gralloc.drm、mesa with nougat-x86 and cm14.

Oh... That would be a bigger step.
We don't have newer llvm porting required by newer mesa
in nougat-x86 codebase. That needs more work...

youling 257

unread,
May 14, 2020, 4:35:46 AM5/14/20
to Android-x86
they are used this llvm8 https://github.com/maurossi/llvm/tree/nougat-x86_llvm80_release_80
https://groups.google.com/forum/#!topic/android-x86/iCGtRJ2Rh6Y

在 2020年5月14日星期四 UTC+8下午2:33:41,Chih-Wei Huang写道:

Huy Minh Bui

unread,
May 14, 2020, 8:24:40 AM5/14/20
to Android-x86
Hey youling, I have found a temporary solution for compiling Mesa with LLVM9
Since I saw in https://reviews.llvm.org/D63750 jordan_rose said that :

Made it a per-thread opt-in, leaving the potential for it to be useful in multi-threaded programs. (It's off by default.) Also added a SaveAndRestore of errno for SIGINFO handlers, though this one doesn't need it.

 
So I tried to made this : 

And recompile and it worked. No bug happened so far and I have compiled with Mesa 20 for months now
But I'm still doubt that what I did might be wrong.


Vào 15:35:46 UTC+7 Thứ Năm, ngày 14 tháng 5 năm 2020, youling 257 đã viết:

Chih-Wei Huang

unread,
May 14, 2020, 11:11:20 PM5/14/20
to Android-x86
Chih-Wei Huang <cwh...@android-x86.org> 於 2020年5月14日 週四 下午2:33寫道:
> youling 257 <youli...@gmail.com> 於 2020年5月14日 週四 下午12:37寫道:
> > nougat x86 and cm14 update to libdrm 2.4.100、mesa 18 or 19 will nice, just merge oreo-x86 libdrm、gralloc.drm、mesa with nougat-x86 and cm14.

OK. I've succeeded to build nougat-x86 with
the same graphical stack in oreo-x86. (mesa 18.3.6)
However, it can't boot on Intel GPU (i965).
The main error:

05-15 10:58:35.964 2277 2277 W EGL-MAIN: Could not get native buffer FD
05-15 10:58:36.080 2277 2277 E GLConsumer: error creating EGLImage: 0x3000
05-15 10:58:36.080 2277 2277 E GLConsumer: Failed to create image.
size=1920x1080 st=1920 usage=0x900 fmt=2

I seems to see such an error before, but don't
remember the details. Anyone has an idea?

youling 257

unread,
May 15, 2020, 12:52:52 AM5/15/20
to Android-x86
Set BOARD_USES_DRM_GRALLOC

Chih-Wei Huang

unread,
May 15, 2020, 1:57:02 AM5/15/20
to Android-x86
youling 257 <youli...@gmail.com> 於 2020年5月15日 週五 下午12:53寫道:
>
> Set BOARD_USES_DRM_GRALLOC

Ah! Haha! Right!
You have a good memory!
Thank you!

With the patch now it's bootable.
Will do more testing before release.

Chih-Wei Huang

unread,
May 16, 2020, 12:06:45 PM5/16/20
to Android-x86
XiaoTao Liu <kevin....@gmail.com> 於 2020年5月14日 週四 上午6:30寫道:
> would you consider having a new 7.1-r4 release.? It seems the new 8.1 and 9.0 series are not as power usage friendly as 7.1 series. Besides, 7.1 series seem to work more smoothly than those higher version, particularly 9.0 series.

7.1-r4 is released. You may try it.

XiaoTao Liu

unread,
May 16, 2020, 7:00:35 PM5/16/20
to Android-x86
Thank you for this amazing quick release. I opened an new topic to discuss this release. 

On Sunday, May 17, 2020 at 12:06:45 AM UTC+8, Chih-Wei Huang wrote:
XiaoTao Liu <kevin...@gmail.com> 於 2020年5月14日 週四 上午6:30寫道:
Reply all
Reply to author
Forward
0 new messages