Jump to content

Banana Pi M5 rotating the desktop


Badger

Recommended Posts

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.

Link to comment
Share on other sites

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 by SoSie
New solution
Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines