waydroid icon indicating copy to clipboard operation
waydroid copied to clipboard

Rotated apps are unusable on desktops/laptops

Open raploz opened this issue 3 years ago • 21 comments

Any app that rotates the screen to portrait mode makes it unusable on a desktop/laptop.

Problems (Tested on KDE Plasma):

  • Difficult usage because mouse orientation is rotated and on a laptop/desktop you can't physically rotate the screen
  • It's only possible to move the cursor until you reach the middle of the screen (probably because it then reaches the bottom of the host system screen)

Possible solution:

  • Detect when an app rotates the screen and turn the view/window to match the host's desktop orientation. That probably means the Waydroid window would be limited to a 9:16 aspect ratio, but that's fine.

raploz avatar Sep 23 '21 06:09 raploz

The available workaround for now is to use multi_windows mode.

waydroid prop set persist.waydroid.multi_windows true

Then each app will have a maximize button, by clicking on it, the app will snap to a window.

sigmaSd avatar Sep 25 '21 16:09 sigmaSd

The multi-widow prop is not needed anymore, you can jsut press F11 (make sure you have run waydroid upgrade though)

sigmaSd avatar Oct 01 '21 08:10 sigmaSd

Buenas SigmaSD. Para mí no funciona F11. Me diría el directorio correcto del archivo que se debería editar para obtener multi ventanas? Encontré dos archivos "waydroid prop", pero no estoy seguro de lo que debo hacer, ni si son los correctos. Gracias. Es molesto este bug. Lo irónico es que, si reinicio el sistema y abro de nuevo Waydroid todo se encuentra correctamente adaptado a la pantalla de mi portátil, sin considerar los botones digitales de retroceso, menú y de las app abiertas de Android, los que se encuentran escondidos por debajo del borde inferior de mi monitor, ello no impide que al hacerles click en donde más o menos se encuentran, funcionen correctamente. Logro abrir las app que vienen preinstaladas como el buscador de internet y todo anda bien, abro Whatsapp descargado de su web oficial, y todo funciona de igual forma, pero....., cuando abro la app de Facebook Lite, también descargada de su web oficial, esta hace que todo el sistema gire hacia la izquierda, es decir, la barra superior queda a la izquierda, y las teclas digitales para manejar Android se encuentran a mi derecha, las que no se pueden acceder como lo comenta más arriba Raploz, tan cual lo que él dice, aclarando que el cursor se puede mover hacia la barra superior, más sin embargo no desde la mitad del monitor hacia mi derecha, es decir, en dirección a las teclas digitales de navegación de LineageOS.

Sería bueno que solucionen tal drama en algún momento. También había tenido problemas con la conexión de la red, sin embargo logré solucionar editando algo que un par de usuarios comentaron en otros apartados de cuestiones.

Theo3113 avatar Oct 02 '21 17:10 Theo3113

Buscando en la web con el comando de ayuda que proporcionó, llegué a encontrar la solución que usted indica más arriba en: https://docs.waydro.id/usage/install-on-desktops#launch-waydroid-in-full-screen-mode

Mil gracias. Espero el bug se solucione de igual forma, ya que realmente Waydroid es muy prometedor.

Theo3113 avatar Oct 02 '21 17:10 Theo3113

Im experiencing the same issue on kde 5.23

When I enable window mode or hit f11 it does cause the window to maximize but its stuck in the aspect ration that my laptop was in when I first start waydroid. So if I was in landscape when waydroid launched and I want to rotate my laptop over to portrait and read something on tachiyomi it'll launch in landscape and stretch off screen.

Without anything else installd I can do sudo systemctl restart waydroid-container if I need to rotate the screen.

I installed a rotation control from the playstore and it gives me a notification dropdown to let me force rotate the screen so that lets me get around the issue somewhat. It doesnt change the shape of the window when maximized so if I rotate my KDE's screen the waydroid window doesnt match its still sticks off screen, but since my use case for portrait mode is exclusively waydroid apps anyway I can live with this(or of course restart).

githuberousplasma avatar Nov 14 '21 16:11 githuberousplasma

I fixed this with adb shell wm set-fix-to-user-rotation enabled

Xtr126 avatar Dec 11 '21 14:12 Xtr126

I have the same issue on my PinePhone running Arch Linux ARM (DanctNIX) with Phosh. When I rotate the screen from portrait to landscape, I see the top half of the app on the left side of my screen and my Phosh wallpaper on the right side. I haven't tried landscape to portrait.

kj7rrv avatar Jan 11 '22 15:01 kj7rrv

On a GNOME system running latest manjaro, opening a portrait forced app (let's use amazon appstore as an example) it opens in the right orientation, but is too tall for the screen, and does not allow me to move or resize the window, making the app entirely unusable as it relies on the bottom of the screen for navigation.

lolman9998 avatar Jan 28 '22 17:01 lolman9998

Hi, same problem on laptop, Fedora 35.

The property, when I try setting it waydroid prop set persist.waydroid.multi_windows true

does not have any effect, nor does it seem to get written to /var/lib/waydroid/waydroid.prop.

And F11 does not have any such effect for me, either (Lenovo P51 - F11 switches between keyboard layouts).

Are there any other things to try? Thanks!

skeydan avatar Apr 05 '22 19:04 skeydan

@skeydan I'm new to waydroid, but the app may not be allowing itself to be displayed in windowed mode. I was trying to run Equate and nothing happened when I pressed F11. I went to developer settings and enabled "Force Activities to be Resizable" and then F11 began working. Note that you may have to toggle the function of the F11 button from switching keyboard inputs to emitting the F11 keystroke by holding Fn while you press it.

dscottboggs avatar Aug 14 '22 14:08 dscottboggs

Anyone searching for a working solution, please read this comment on the other thread: https://github.com/waydroid/waydroid/issues/371#issuecomment-1120642326

(it suggests installing Rotation Control app, working perfectly for me)

machitgarha avatar Oct 02 '22 11:10 machitgarha

I used scrcpy to have a vertical/horizontal resizable window (can only open one app at a time)

Screenshot from 2022-11-28 14-34-58

  • Used the Rotation Control app to force the screen to be vertical
  • Connected adb with waydroid
  • Typed scrcpy in the terminal
  • Enabled developer options
  • Went to Smallest Width in Drawing in Developer Options and set it to 380 dp

nvm just waydroid prop set persist.waydroid.multi_windows true works way better

tak2hu avatar Nov 28 '22 07:11 tak2hu

I fixed this with adb shell wm set-fix-to-user-rotation enabled

@Xtr126 does this keep the orientation portrait even if an application tries to change it?

code-IM-perfect avatar Dec 11 '22 07:12 code-IM-perfect

Yes, it prevents the applications to rotate the screen. I installed adb and connected to android using adb connect <IP>:5555 I found the IP of my android using nmap -sP 192.168.240.0/24

alamkh99 avatar Jan 05 '23 14:01 alamkh99

https://play.google.com/store/apps/details?id=org.crape.rotationcontrol&hl=en&gl=US

this app did the job

javashin avatar Jan 15 '23 06:01 javashin

The fix @Xtr126 mentioned works perfectly and does not require an additional app. I changed it a little to become a one-liner.

Run this in your normal terminal while Waydroid is running:

sudo waydroid shell wm set-fix-to-user-rotation enabled

flipflop97 avatar Feb 23 '23 13:02 flipflop97

I fixed this with adb shell wm set-fix-to-user-rotation enabled

works well for me

Sqaaakoi avatar Apr 30 '23 23:04 Sqaaakoi

I fixed this with adb shell wm set-fix-to-user-rotation enabled

Thank you, this actually helped, in multi screen mode

Priteshlip10 avatar May 18 '23 15:05 Priteshlip10

https://play.google.com/store/apps/details?id=org.crape.rotationcontrol&hl=en&gl=US

this app did the job这个应用程序完成了这项工作

it work for me

DreamMaoMao avatar Aug 16 '23 06:08 DreamMaoMao

Had simmilar problem. You can force screen rotation via adb with: adb shell settings put system user_rotation 0 This worked for me.

MaciejMalczyk avatar Dec 15 '23 10:12 MaciejMalczyk

@skeydan I'm new to waydroid, but the app may not be allowing itself to be displayed in windowed mode. I was trying to run Equate and nothing happened when I pressed F11. I went to developer settings and enabled "Force Activities to be Resizable" and then F11 began working. Note that you may have to toggle the function of the F11 button from switching keyboard inputs to emitting the F11 keystroke by holding Fn while you press it.

this fixed it. the multi window solution didn't.

polocatfan avatar Mar 05 '24 12:03 polocatfan