ryanrudolfoba / SteamOS-Waydroid-Installer

Script to easily install / uninstall Android via Waydroid on the Steam Deck running on SteamOS.
https://www.youtube.com/watch?v=06T-h-jPVx8
480 stars 29 forks source link

How To Rotate the Screen #145

Closed DanielLester83 closed 3 months ago

DanielLester83 commented 3 months ago

You can rotate the screen by wrapping the launch commands like this. although there may be a better system such as mapping the steam deck gyro to hotkeys that would automatically rotate. Note that rotating does not change the orientation of the touch pad mouse.

/usr/bin/kscreen-doctor output.eDP.rotation.normal; waydroid app launch com.chess ; /usr/bin/kscreen-doctor output.eDP.rotation.right @@

ryanrudolfoba commented 3 months ago

kscreen-doctor doesnt seem to work in gamescope / Game Mode. works fine on X11 Desktop Mode.

the way i handle it is via waydroid prop options. its messy thats why i didnt add it to the main script yet. cant find the actual config file that waydroid prop edits / reads so it will be easier if i can modify that file directly.

here is a demo touch input is also rotated -

https://youtu.be/XEcIYBDoOZk

DanielLester83 commented 3 months ago

kscreen-doctor doesnt seem to work in gamescope / Game Mode. works fine on X11 Desktop Mode.

the way i handle it is via waydroid prop options. its messy thats why i didnt add it to the main script yet. cant find the actual config file that waydroid prop edits / reads so it will be easier if i can modify that file directly.

here is a demo touch input is also rotated -

https://youtu.be/XEcIYBDoOZk

I think it's modifying the /system/build.prop file inside of the Android OS. see: https://source.android.com/docs/core/architecture/configuration

DanielLester83 commented 3 months ago

You might experiment wlr-randr --output X11-1 --custom-mode 800x1280@60Hz --transform 90 ;

Ideally, we need a android app that could receive signals from a SteamDeckGyroDSU server and force rotation by actual rotation or something similar.

ryanrudolfoba commented 3 months ago

Yes thats what ive been using - wlr-randr.

I'll upload a separate Android Waydroid Launcher that contains rotation

DanielLester83 commented 3 months ago

kscreen-doctor doesnt seem to work in gamescope / Game Mode. works fine on X11 Desktop Mode. the way i handle it is via waydroid prop options. its messy thats why i didnt add it to the main script yet. cant find the actual config file that waydroid prop edits / reads so it will be easier if i can modify that file directly. here is a demo touch input is also rotated - https://youtu.be/XEcIYBDoOZk

I think it's modifying the /system/build.prop file inside of the Android OS. see: https://source.android.com/docs/core/architecture/configuration

I think the /system/build.prop file is inside a zipped img file located at ~/waydroid/images/system.img I would suggest making a modified copy of that image file during the install and swapping the names around before the waydroid service starts.

ryanrudolfoba commented 3 months ago

clone the repo or get the Android_Waydroid_Cage-experimental.sh from the extras folder. add to Steam and let me know how it goes.

ryanrudolfoba commented 3 months ago

Experimental launcher in action showing Waydroid rotation -

https://youtu.be/OxApPDhZn9I

ryanrudolfoba commented 3 months ago

screen rotation added. clone the repo to get the latest version, and manually add the exprimental launcher in Game Mode.