I have a huge problem and cannot wrap my mind aroudn that, so maybe you could help?
Currently I am working on using an IL9341 display as primary display from one of my Docker Containers, which worked out great (basically I was using my own write up from https://www.nico-maas.de/?p=1646 as a starting point and worked from that…)
I did manage to make that work following way:
added to /mnt/boot/config.txt
disable_overscan=1 dtoverlay=rpi-display-woutts,speed=32000000,fps=25,rotate=180 dtoverlay=ads7846,cs=1,penirq=25,speed=2000000,xohms=100
changed in /usr/share/X11/xorg.conf.d/99-fbturbo.conf the fb dev to 1
Section "Device" Identifier "Allwinner A10/A13 FBDEV" Driver "fbturbo" Option "fbdev" "/dev/fb1" Option "SwapbuffersWait" "true" EndSection
and added /usr/share/X11/xorg.conf.d/99-calibration.conf
Section "InputClass" Identifier "calibration" MatchProduct "ADS7846 Touchscreen" Option "Calibration" "373 3876 3771 171" Option "SwapAxes" "0" EndSection
for the touchscreen after installing xserver-xorg-input-evdev.
So that works, primary display was the TFT and everythings great.
However, as this display only drives at 320x240 pixels and I need the doubled size, I thought about virtually resizing it with xandr which failed very much: Turned out, due to the LCD driver, this is not supported / notros fbtft does not gives and possibilty to use that.
The last straw which I turned to is the old famous fbcp: So I undid all changes and only did following in the config.txt:
dtoverlay=rpi-display-woutts,speed=32000000,fps=15,rotate=0 dtoverlay=ads7846,cs=1,penirq=25,speed=2000000,xohms=100 hdmi_force_hotplug=1 hdmi_group=2 hdmi_mode=4
with this, I set my HDMI display to 640x480, which is now my primary screen again.
I downloaded https://github.com/tasanakorn/rpi-fbcp and build it, which worked - and installed rsyslog to get a syslog server. If I turn on my basic app as shown in my weblog entry above, everything works on the main HDMI screen: It comes on at 640x480, shows the app, everything alright, even the TFT/LCD screen has backlight on and both /dev/fb0 and /dev/fb1 show up in the container. However - starting fbcp results in the program directly stopping. With or without DISPLAY=:0 as variable ( DISPLAY=:0 fbcp ) -and syslogs shows follwing error:
fbcp: Unable to open primary display
Any idea on how to get this working?
I am out of options here and have no clue what to do…
Maybe @petrosagg knows something :(?
Thank you all and have a great day!