====Target : solve problem x11vnc can't be use to manage Asportal App. when NAS was boot without a screen connected
==== Actual situation (F.Y.I.)
... when the NAS boot and NO screen is connected in HDMI ... x11vnc can't run as well ... so using Chrome or managing Kodi from remote is not directly possible (except if a specific inside tool exist)
here after the status of screen after a reboot without screen connected
Just after boot or reboot
Code: Select all
# xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
ASUSTOR 4k resolution 30Hz 30.00
ASUSTOR 4k resolution 60Hz 60.00
==== Solution proposed : ADD at Xorg start a VIRTUAL screen directly from base configuration AND using the VIRTUAL screen include in Intel graphic driver (so announced with a better support for acceleration, etc. etc.)
... To do this (TO BE DONE ONLY ONE TIME or to REDO AFTER UPDATE of Xorg) :
First add virtual screen (by adding device) permanently to Xorg using : /usr/local/AppCentral/xorg/usr/share/X11/xorg.conf.d/ folder (SO MUST BE REDO AT Xorg APKG update)
ex. add a file named : 20-intel.conf containing (this example add potentially 2 virtual screen max.) :
Code: Select all
Section "Device"
Identifier "intelgpu0"
Driver "intel"
Option "VirtualHeads" "2"
EndSection
... result is (after reboot without real screen ... in fact same result as connect / disconnect real screen ... but without the need to do it )
Add new Virtual definition after reboot (best) or reload of Xorg ... using /usr/local/AppCentral/xorg/CONTROL/start-stop.sh reload
Code: Select all
# xrandr
Screen 0: minimum 8 x 8, current 1024 x 768, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
ASUSTOR 4k resolution 30Hz 30.00
ASUSTOR 4k resolution 60Hz 60.00
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
... creating a shell script is the best to redo easily this when necessary
... 1 generate a modeline (screen definition mode) Asustor provide cvt tool build to do it.
generate a Modeline for 1920x1080 screen resolution for VIRTUAL1 using cvt tool
Code: Select all
# cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Code: Select all
xrandr -d :0 --output VIRTUAL1 --primary --auto
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VIRTUAL1 "1920x1080_60.00"
Code: Select all
xrandr
Screen 0: minimum 8 x 8, current 8 x 8, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
ASUSTOR 4k resolution 30Hz 30.00
ASUSTOR 4k resolution 60Hz 60.00
VIRTUAL1 connected primary (normal left inverted right x axis y axis)
1920x1080_60.00 59.96
VIRTUAL2 disconnected (normal left inverted right x axis y axis)
Code: Select all
xrandr --fb 1920x1080 -display :0
Code: Select all
xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
ASUSTOR 4k resolution 30Hz 30.00
ASUSTOR 4k resolution 60Hz 60.00
VIRTUAL1 connected primary (normal left inverted right x axis y axis)
1920x1080_60.00 59.96
VIRTUAL2 disconnected (normal left inverted right x axis y axis)
Code: Select all
/usr/local/AppCentral/asportal/CONTROL/start-stop.sh reload
How to used Xorg command in A.D.M. easily (ex. cvt / xrandr / xdotool / etc.)
1 ... create in safe place the small shell script here after :
named : x_command
Code: Select all
#!/bin/sh
source /usr/local/AppCentral/xorg/CONTROL/env.sh
$(basename $0) $@
Code: Select all
ln -s /path/to/x_command cvt
ln -s /path/to/x_command xrandrd
ln -s /path/to/x_command setxkeymap
ln -s /path/to/x_command edid-decode
ln -s /path/to/x_command xdotool
ln -s /path/to/x_command ..... etc.
If I get some free time, I will be create a patch to do this automatically ... just be patient.
Philippe.