I am attempting to run an AvaloniaUI application on a version of Debian(Buster) on an ASUS TinkerBoard. The display I am using is a 7 inch 1920x1080p touchscreen display.
The application runs in a portrait-like mode(i.e. it runs at 1080x1920), so I have been attempting to rotate the display to so that the application can run as such.
Using xrandr to rotate the display has given me very little success. When I execute:
xrandr --output HDMI-1 --rotate left
or
xrandr --output HDMI-1 --rotate right
It blanks the screen briefly but has no effect. I am able to invert the screen using the same command, however that doesn't exactly help the issue. I also tried altering the resolution using xrandr and various other commands I had found but have been unsuccessful as of yet.
I have also attempted to add:
echo 1 > /sys/class/graphics/fbcon/rotate
To the /etc/rc.local script. When using 'echo 3', this will actually cause the commands which run on screen at boot to be rotated successfully. However, upon booting into the OS, the display is no longer rotated and is back to being 'landscape' (i.e. 1920x1080). Trying to run it as a shell script or as a service has also been unsuccessful.
I can't seem to find much information online on how else to rotate the display other than the basic 'xrandr' commands. I apologise for my poor explanation, as I am still relatively new to Linux.
Here's the output of:
xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 255mm x 255mm
   1920x1080     60.00*+
   1024x600      60.04 +
   1600x900      60.00
   1440x810      59.98
   1360x768      59.80
   1280x720      60.00
   1152x648      60.01
   1024x576      59.97
   800x450       60.05
A xrandr command which does what I expect would be:
xrandr --output HDMI-1 --rotate inverted
This successfully inverts the screen.
dmesgorjournalctl -xecontain any errors after you've tried to usexrandr? Can you add the full output listing ofxrandr(without any arguments) to your quesiton?xrandrcommand that does what you expect, and perhaps the ouput of runningxrandrwithout any arguments.