Links2004 / x6100-armbian

tools and scripts to build armbian for the x6100
82 stars 11 forks source link

virtual display #4

Closed djbr1 closed 2 years ago

djbr1 commented 2 years ago

QT GUI app needs a display to start. Starting it with various "platform" options (eg. ./x6100_ui_v100 --platform offscreen or vnc ) does not work properly. Without recompiling it is not going to work with any desktop or window manager

Possible solution would be to create virtual (dummy) framebuffer device allowing GUI to start whereas main physical screen could be used by applications like flrig, fldigi, wsjtx. Rig control would be through CAT

Existing configuration points to LCD



# eglfs_kms config files 
export QT_QPA_EGLFS_KMS_CONFIG=/etc/qtkmsconfig.json 

[root@XIEGU-x6100:/root]# cat /etc/qtkmsconfig.json 
{ 
"device": "/dev/dri/card1", 
"hwcursor": false, 
"pbuffers": true, 
"outputs": [ 
  { 
"name": "LCD", 
"mode": "800x480" 
  } 
] 
  } 
[root@XIEGU-x6100:/root]# ```
djbr1 commented 2 years ago

Hi Markus

It is possible to start x6100_ui_v100 application without screen output

[root@x6100:/etc]# cat  qtkmsconfig.json
{
    "device": "/dev/dri/renderD128",
    "headless": "800x480"
}
[root@x6100:/etc]# 

Test was done using option "1" from boot ie without XFCE running.

Tried using WSJT from laptop over USB - application x6100_ui_v100 seems to be functional accepting CAT commands and providing sound

Think about option "4" for boot where XFCE is started, and x6100_ui_v100 is started as headless.

"Windowing" between x6100_ui_v100 and XFCE may be done by swapping qtkmsconfig.json versions and restarting x6100_ui_v100 and XFCE.

This seems to be only solution until Xiegu compiles x6100_ui_v100 with additional plugins allowing window manager

73 hb9txb

Links2004 commented 2 years ago

headless is a good idea, had a look at the platform modes. but since the APP requires openGL /EGL using the VNC backend is not possible. you only get a black screen up on connect to the VNC server which does not help.

unfortunately button 4 is broken on my device. so no way to find the GPIO pin currently. will Implement the kernel cmd line option for now

Links2004 commented 2 years ago

Button 2 will start start the APP in headless in v0.0.3