View: 8073|Reply: 1

screen rotation

[Copy link]

3

threads

8

posts

37

credits

Novice

Rank: 1

credits
37
Published in 2016-2-20 20:50:59 | Show all floors |Read mode
can i ask the advanced users how to rotate the screen.
I tried third party applications with no luck.

also tried a tv which has portrait mode but it didnt help either.

editing build.prop line: "ro.sf.hwrotation=270″. didnt do the trick.


what else i could try?

0

threads

1

posts

10

credits

Novice

Rank: 1

credits
10
Published in 2016-4-8 09:00:44 | Show all floors
I was able to get screen rotation working in linux, but not in android. I think the problem is that RandR is not supported by the default drivers, but since hardware acceleration isn't working yet in linux anyway, you can just rotate the framebuffer device:

/etc/X11/xorg.conf
  1. Section "Device"
  2.         Identifier "default"
  3.         Driver "fbdev"
  4.         Option "Rotate" "UD"
  5. EndSection
Copy code

This rotates by 180 degrees, but replace 'UD' with 'CCW' or 'CW' if you want to rotate it by 90 or 270.

I tested this with OrangePi One using loboris' image OrangePI-PC_Ubuntu_Vivid_Mate.img. I'm afraid I can't help with android.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list