waydroid
waydroid copied to clipboard
Rotated apps are unusable on desktops/laptops
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.
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.
The multi-widow prop is not needed anymore, you can jsut press F11 (make sure you have run waydroid upgrade though)
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.
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.
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).
I fixed this with adb shell wm set-fix-to-user-rotation enabled
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.
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.
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 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.
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)
I used scrcpy to have a vertical/horizontal resizable window (can only open one app at a time)
- 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
inDrawing
inDeveloper Options
and set it to380 dp
nvm just waydroid prop set persist.waydroid.multi_windows true
works way better
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?
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
https://play.google.com/store/apps/details?id=org.crape.rotationcontrol&hl=en&gl=US
this app did the job
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
I fixed this with adb shell wm set-fix-to-user-rotation enabled
works well for me
I fixed this with adb shell wm set-fix-to-user-rotation enabled
Thank you, this actually helped, in multi screen mode
https://play.google.com/store/apps/details?id=org.crape.rotationcontrol&hl=en&gl=US
this app did the job这个应用程序完成了这项工作
it work for me
Had simmilar problem. You can force screen rotation via adb with:
adb shell settings put system user_rotation 0
This worked for me.
@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.