Rotate screen on NUC

Hi, I have been following the guide to run graphical applications in a container running on an intel nuc. The container starts like it should and works in normal orientation but for my use case I need to rotate the screen 90 degrees. After rotating the screen either using the device variable, after the fact using xrandr, in the xcfe settings and with xorg configuration files the screen always stays black with the mouse visible. Rotating the screen to either normal or inverted seems to work but not left and right. Here are the logs produced when starting the x session even when xcfe starts:

STARTING X
hostname: No address associated with hostname
xauth: (stdin):1:  bad display name "4c39f61:0" in "add" command


X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.10.0-5-amd64 x86_64 Debian
Current Operating System: Linux 4c39f61 5.10.43-yocto-standard #1 SMP PREEMPT Wed Jun 16 16:00:47 UTC 2021 x86_64
Kernel command line: BOOT_IMAGE=/boot/bzImage root=UUID=ba1eadef-1b54-4b00-ab72-afb412efc23a rootwait
Build Date: 15 April 2021  11:19:14AM
xorg-server 2:1.19.2-1+deb9u8 (https://www.debian.org/support) 
Current version of pixman: 0.34.0
       Before reporting problems, check http://wiki.x.org
       to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
       (++) from command line, (!!) notice, (II) informational,
       (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 14 09:12:58 2021
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory
failed to load driver: i965
gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory
failed to load driver: kms_swrast
gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory
failed to load swrast driver
couldn't get display device

I have tried to add intel drivers but did not solve anything.
Here is my xrandr -q out put:

Screen 0: minimum 320 x 200, current 1280 x 800, maximum 16384 x 16384
HDMI-1 disconnected primary (normal left inverted right x axis y axis)
HDMI-2 connected 1280x800+0+0 (normal left inverted right x axis y axis) 217mm x 136mm
   1280x800      60.00*+  59.99  
   1920x1200     59.95  
   1920x1080     60.00    60.00    50.00    59.94  
   1280x720      60.00    59.94  
   1024x768      60.00  
   800x600       60.32    56.25  
   720x576       50.00  
   800x500       59.50  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
   720x400       70.08  
Screen 0: minimum 320 x 200, current 800 x 1280, maximum 16384 x 16384
HDMI-1 disconnected primary (normal left inverted right x axis y axis)
HDMI-2 connected 800x1280+0+0 left (normal left inverted right x axis y axis) 217mm x 136mm
   1280x800      60.00*+  59.99  
   1920x1200     59.95  
   1920x1080     60.00    60.00    50.00    59.94  
   1280x720      60.00    59.94  
   1024x768      60.00  
   800x600       60.32    56.25  
   720x576       50.00  
   800x500       59.50  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
   720x400       70.08  

I don’t need the full xcfe desktop as the app I am trying to run should be able to run on its own using startx. I have tried to modify the container to how I would like it but in the best cases it encounters the same issue with rotating.

If anyone has any tips or a direction to point me in to try and solve this it would be greatly appreciated.

I was unable to fix this running on debian. However, switching to an ubuntu image worked for me.

@carl-bb,

Thanks for reporting in. I’m glad you found the base image to get your project going. I’ve noted to the team that we should maybe improve our UX and docs to indicate a better way to find what users need. Glad you’re digging into your balenaOS use case on x86.