Badger Posted March 12, 2023 Posted March 12, 2023 Armbian_22.08.7_Bananapim5_bullseye_edge_5.19.16_gnome_desktop Hello, I'm trying to rotate the desktop from landscape to portrait. Trying to do this in the display settings in the desktop does not work correctly as it only uses the top half of the screen. What does work is to rotate using xrandr: xrandr -o right I'm trying to do this automatically on start up so I have written a script to call from lightdm.conf The script: #!/bin/sh xrandr -o right exit 0 The parts in lightdm.conf [Seat:*] that I've edited: display-setup-script=/home/badger/screen.sh session-setup-script=/home/badger/screen.sh This works for the login screen, however it does not rotate the display. Any ideas how to do this? Thanks. 0 Quote
SoSie Posted March 14, 2023 Posted March 14, 2023 (edited) It may be working like the bananapi M3? https://forum.banana-pi.org/t/bpi-m3-how-to-rotate-display-screen/1198 i dont know if adding extra rotate param to the /boot/armbianEnv.txt works: extraargs=video=HDMI-A-1:1920x1080M@60,rotate=90 an other did Section "Monitor" Identifier "DP-1" Option "Primary" "true" #Option "Position" "1200 360" Option "Rotate" "right" #Option "PreferredMode" "1920x1200" EndSection Section "Screen" SubSection "Display" Virtual 3120 1920 EndSubSection EndSection Edited March 14, 2023 by SoSie New solution 0 Quote
Mechano Posted March 14, 2023 Posted March 14, 2023 Into /boot/armbianEnv.txt I've this line: extraargs=drm_kms_helper.edid_firmware=HDMI-A-1:edid/720x480.bin video=HDMI-A-1:720x480M@60 fbcon=rotate:0 The fbcon=rotate=x permit you to rotate, the items available are 0, 1, 2, 3. 0 Quote
SoSie Posted March 15, 2023 Posted March 15, 2023 @Mechano where did you get the drm_kms_helper module? there is no candidate apt-file search 5.19.16-meson64 | grep drm_kms_helper gives nothing. you may not be on the same kernel version 0 Quote
Mechano Posted March 15, 2023 Posted March 15, 2023 You're right, in fact I see that part gets ignored and its works anyway. 0 Quote
Badger Posted March 19, 2023 Author Posted March 19, 2023 Thank you SoSie and Mechano for your suggestions, unfortunately they did not work (just tested on a fresh install). I thought fbcon was only for the console? 0 Quote
SoSie Posted March 20, 2023 Posted March 20, 2023 @Badger , have you tried to launch your script as autostart app? 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.