calinb
When my quadra is connected to my monitor/TV, I can setup nomachine remote desktop resolution exactly how I want it, as follows.

quadra: Settings >> Display >> 1280 x 720 / no scaling.
laptop client: Settings >> Display: 1920 x 1280 / 0.8 scaling.
nomachine >> Display >> Change Settings >> Resolution (slider): 1280 x 720.
nomachine Scale-to-Window and Fullscreen (when desired) selected.

Unfortunately, when I unplug the monitor and reboot headless, I cannot achieve the above desired settings. The nomachine Display >> Change Settings >> Resolution (slider): 1280 x 720 is no longer available and the quadra Settings >> Display utility does not function (the utility's window is incomplete, scrambled and unusable). The quadra desktop is rescaled to lower resolution than I desire and, at best, I can only rescale it on the remote nomachine display to an ugly low-res mess with a distorted width:height ratio.

My quadra's /etc/X11/xorg.conf.d/01-armbian-defaults.conf file is still the default:
Section "Monitor"
Identifier "Monitor0"
Option "DPMS" "false"
EndSection
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection


I've done amazing things with X11/xorg.conf files in the distant past but, like ALSA, these systems are complex and the learning curves (trial and error) are steep! I suspect that the right xorg.conf file incantations and fairy dust would deliver the desired behavior.

I'm running HamPi but I think it uses the standard quadra/Armbian display setup.

If anyone has some suggestions for me, I'd sure appreciate them before I join the nomachine forum. The information in this FAQ is not very encouraging. It appears that in headless use, nomachine substitutes its own virtual display for the X server and the nomachine virtual display doesn't not appear to support the 1280 x 720 mode that I desire.

https://kb.nomachine.com/AR03P00973?s=xorg

I've not used VNC in years but, in the past, it was very flexible with screen resolutions and there were plenty on online xorg.conf examples available to study and copy. Despite all the nice features offered by nomachine, display appearance is the most important thing when using the HamPi aps!

Cal  AD8Q
calinb
I'm writing a reply to my own thread, because I've made some progress that could help others who are unsatisfied with the nomachine headless Quadra display server behavior.

I've learned that nomachine uses the display manager in use on the server when a remote client connects. In the case of the Quadra (and most Armbian built machines I suspect), it uses the X11 display server that's configured at boot time. If there was an HDMI monitor / TV connected at boot, then the monitor's EDID reveals the screen modes to the display server and they will be available for use on a remote nomachine client.

The problem (limitation) with Armbian is it is built to configure a lower resolution screen resolution default when no HDMI monitor is present at boot-time and the nomachine server will use it. Thus, the nomachine client is stuck using only a reduced screen resolution that's available from Quadra display server when the Quadra is run headless.

It should be possible to change the headless display mode that's programmed into u-boot using Armbian, but the entire Armbian build environment appears to be necessary to re-compile u-boot (or even just the boot.scr file). Relevant information is published here:
https://forum.armbian.com/topic/3749-how-to-change-resolution-hdmi-display-armbian527/
https://docs.armbian.com/Hardware_Allwinner/#how-to-reconfigure-video-output
https://docs.armbian.com/Developer-Guide_Build-Preparation/

Looks like a PITA rocky road, eh?!!!

Continuing my research on the nomachine site and forum, I learned of perhaps the easiest solution--an HDMI "faker." Priced well under ten bucks (for only one faked resolution) these little dongles can also report a wide range display modes via HDMI EDID to uboot and then the X11 display server will be configured and available to nomachine as if a monitor is attached:
https://kb.nomachine.com/AR03P00973

Multiple res settings (I think):
https://www.amazon.com/s?k=hdmi%2Bmonitor%2Bfaker&crid=1R63PH1BL61QR&

Ten bucks (a single 1080p setting):
https://www.amazon.com/Emulator-Compatible-1920x1080P-Multiple-Resolutions/dp/B0B64ZCSMT/ref=psdc_306629011_t2_B07C4TWZRM?th=1

However, manually disabling the X-server after boot is the solution I'm currently using. It appears that the "Workstation" version of nomachine provides an automated or turnkey version of this solution that starts onemachine's own display server. Specifically, what I've adopted is listed under solution #3 here:
https://kb.nomachine.com/AR02M00836

I use ssh to connect to the Quadra from the remote client to issue the following commands before even starting onemachine for headless use:
sudo systemctl stop display-manager
sudo /etc/NX/nxserver --restart

It should be possible to automate the above at logon or boot.

When starting onemachine, I checked the box to start its own display server when it complained that a display server wasn't found (because I stopped it). Now the 1280 x 720 screen that I desired is available to me when running headless!

Cal AD8Q
Reply 0 0
calinb
Here's how I automated using X11 when an HDMI monitor is connected vs. the nomachine virtual frame buffer for a headless connection. I can think of other potential methods that could potentially provide the selection and control during logon with lightdm or other display manager but the following works for me on the Quadra and it's simple.

I had already setup my network to allow any user to connect via Ethernet and wifi I also had my Quadra configured to auto logon ("autologin" in Debian speak) the user pi. I'm using HamPi but autologin should work for the Quadra user when using the Quadra image too,

For autologin, I changed the line in
/etc/lightdm/lightdm.conf to the following:
autologin-user=pi


To provide automatic display server selection, I created a /home/pi/.config/ use_nomachine_vfb.sh file and gave it execute permissions (chmod 755 /home/pi/.config/use_nomachine_vfb.sh)
#!/bin/bash
if [[ $(cat /sys/class/drm/card0-HDMI-A-1/status) == "disconnected" ]]; then
   if pidof lightdm; then
   sudo systemctl stop lightdm
   sudo /etc/NX/nxserver --restart
   fi
fi


and to execute the script at logon, I created /home/pi/.config/autostart/use_nomachine_vfb.desktop with the following contents:
[Desktop Entry]
Type=Application
Name=use_nomachine_vfb
Exec=/home/pi/.config/use_nomachine_vfb.sh
Terminal=false
Hidden=false


By default the pi user in HamPi has root permissions using "sudo" without the necessity to type a password when initiating a sudo command. If the sudoers file requires typing a password, the permissions of the script gets more complicated--particularly for the systemctl command.

If anything goes wrong or for testing, debug using ssh pi@<ip address> from the client works well.

Using the nomachine video frame buffer, I have 18 selections for headless video modes ranging from 640x480 up to 1920x1200 in a variety of aspect ratios. I decided that I like the 1536x864 default. When I connect a monitor, the 1280x720 X11 mode that I like is still available to nomachine.

Cal AD8Q
Reply 0 0
Reply