UB
Universal Blueβ€’13mo ago
Aru

Force orientation in desktop mode on Bazzite deck?

Is there a way to permanently force orientation in desktop mode? Currently running Bazzite deck on the Legion Go, and no matter how many times I correct the screen rotation in display settings, it still always opens upside-down on desktop mode.
Solution:
Try disabling wayland, edit /etc/default/wayland-desktop to be false
Jump to solution
26 Replies
Solution
Kyle Gospo
Kyle Gospoβ€’13mo ago
Try disabling wayland, edit /etc/default/wayland-desktop to be false
Aru
AruOPβ€’13mo ago
That seems to have fixed the issue. Nested Desktop still working too πŸ‘ @MikeNS this might be useful for you too
d3Xt3r
d3Xt3rβ€’13mo ago
@Aru If you're on KDE and want to use Wayland, I've got a script that can fix this issue.
Aru
AruOPβ€’13mo ago
oh? yeah, i'd definitely be interested btw the rotation problem seems to be a non-issue on deck-gnome. or at least, I didn't encounter the issue when I ran deck-gnome before switching to KDE
MikeNS
MikeNSβ€’13mo ago
Yes, please share you script I am ready to try.
d3Xt3r
d3Xt3rβ€’13mo ago
@Aru @MikeNS https://github.com/d3-X-t3r/LinuxThings/blob/main/bazzite-rotation-fix.sh - Save this script somewhere and mark it as executabe (chmod +x ./bazzite-rotation-fix.sh) - Add it to your KDE Autostart config (Menu > search for Autostart > Add)
GitHub
LinuxThings/bazzite-rotation-fix.sh at main Β· d3-X-t3r/LinuxThings
Misc scripts/fixes/tweaks/notes for varions Linux things - d3-X-t3r/LinuxThings
MikeNS
MikeNSβ€’13mo ago
Great, I will try and report back after my Turkey
MikeNS
MikeNSβ€’13mo ago
No description
MikeNS
MikeNSβ€’13mo ago
I'm confused on the second part Add the fix Bazitte sh to the autostart folder or?
d3Xt3r
d3Xt3rβ€’13mo ago
Just add it from KDE's Autostart settings. Settings > Startup and Shutdown > Autostart. Click the "Add..." button > Add application and type the path to the script (or use the browse button) .
MikeNS
MikeNSβ€’13mo ago
Sorry, can you please share a quick video or screenshot
d3Xt3r
d3Xt3rβ€’13mo ago
No description
No description
MikeNS
MikeNSβ€’13mo ago
No description
No description
MikeNS
MikeNSβ€’13mo ago
The orientation is now flip landscape
d3Xt3r
d3Xt3rβ€’13mo ago
Just edit the script and change the direction, the comment shows value
Aru
AruOPβ€’13mo ago
Thanks, I'll test this as well once I get a chance. I wonder if this would affect nested desktop? πŸ€”
d3Xt3r
d3Xt3rβ€’13mo ago
Good question. I don't use nested desktop myself so if you test it out, lemme know how that goes. πŸ™‚
Aru
AruOPβ€’13mo ago
I'm assuming I might need to add an extra check for gamescope session, which shouldn't be too hard
MikeNS
MikeNSβ€’13mo ago
Sorry, what line in the script is the orientation?
d3Xt3r
d3Xt3rβ€’13mo ago
Line 32 Change "normal" to right, normal, left or inverted
MikeNS
MikeNSβ€’13mo ago
Changing to left did the trick.
d3Xt3r
d3Xt3rβ€’13mo ago
Nice πŸ™‚
MikeNS
MikeNSβ€’13mo ago
Is it possible to add steam patch to autostart, for the controller?
d3Xt3r
d3Xt3rβ€’13mo ago
Sure, just follow the same process, just add to Autostarts.
MikeNS
MikeNSβ€’13mo ago
I need to convert from .toml to .sh
Aru
AruOPβ€’13mo ago
It does indeed affect nested desktop. Fix was simple though, just add an if statement for the entire script body:
IS_GAMEMODE="$(cat /proc/*/comm | grep gamescope-ses*)"

if [[ -z "$IS_GAMEMODE" ]] ;
then
IS_GAMEMODE="$(cat /proc/*/comm | grep gamescope-ses*)"

if [[ -z "$IS_GAMEMODE" ]] ;
then
Want results from more Discord servers?
Add your server