Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Banana Pi M5 rotating the desktop

Featured Replies

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.

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

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.

 

  • Author

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?

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.