Hi,
I've been playing with a Raspberry Pi 4 as a utility divice for a
couple of purposes - a backup server for here at home as well as an astrophotography manager to run my camera and mount. So far everything
is fine when I have a monitor attached. I can ssh in and run X apps,
and I can run the VNC client and control the desktop.
What I find, however, is that when I boot the RP4 without the
monitor attached, which I would be doing most all the time, I lose the desktop functionality through VNC. I can still ssh X apps, and both
xdpyinfo and xrandr still say the X resolution is 1920 x 1280, but
there doesn't appear to be a real desktop for VNC to latch onto.
I get that this must be possible as essentially VirtualBox is able
to do this. I wonder if there's a way for mere mortals to do something similar?
On Sun, 7 Nov 2021 13:39:34 -0700, Mark Knecht wrote:
I've been playing with a Raspberry Pi 4 as a utility divice for a
couple of purposes - a backup server for here at home as well as an astrophotography manager to run my camera and mount. So far everything
is fine when I have a monitor attached. I can ssh in and run X apps,
and I can run the VNC client and control the desktop.
What I find, however, is that when I boot the RP4 without the
monitor attached, which I would be doing most all the time, I lose the desktop functionality through VNC. I can still ssh X apps, and both xdpyinfo and xrandr still say the X resolution is 1920 x 1280, but
there doesn't appear to be a real desktop for VNC to latch onto.
Try x2go instead of VNC. It uses SSH to establish the connection and
start a desktop session, so there is no need for the user to have a
desktop running on the remote machine beforehand.
I've been playing with a Raspberry Pi 4 as a utility divice for a
couple of purposes - a backup server for here at home as well as an astrophotography manager to run my camera and mount. So far everything
is fine when I have a monitor attached. I can ssh in and run X apps,
and I can run the VNC client and control the desktop.
What I find, however, is that when I boot the RP4 without the
monitor attached, which I would be doing most all the time, I lose the desktop functionality through VNC. I can still ssh X apps, and both
xdpyinfo and xrandr still say the X resolution is 1920 x 1280, but
there doesn't appear to be a real desktop for VNC to latch onto.
On 07/11/2021 20:39, Mark Knecht wrote:
Hi,
I've been playing with a Raspberry Pi 4 as a utility divice for a couple of purposes - a backup server for here at home as well as an astrophotography manager to run my camera and mount. So far everything
is fine when I have a monitor attached. I can ssh in and run X apps,
and I can run the VNC client and control the desktop.
What I find, however, is that when I boot the RP4 without the
monitor attached, which I would be doing most all the time, I lose the desktop functionality through VNC. I can still ssh X apps, and both xdpyinfo and xrandr still say the X resolution is 1920 x 1280, but
there doesn't appear to be a real desktop for VNC to latch onto.
I get that this must be possible as essentially VirtualBox is able
to do this. I wonder if there's a way for mere mortals to do something similar?
I'm guessing the reason there isn't a virtual desktop is because
nobody's logged in AT THE PI and started one!
Just start Xorg over ssh, or plasma-wayland, or whatever. Sorry I don't
(yet) know how to do it, I need to find out because I want to do exactly
the same :-)
Cheers,
Wol
On 07/11/2021 20:39, Mark Knecht wrote:
Hi,
I've been playing with a Raspberry Pi 4 as a utility divice for a couple of purposes - a backup server for here at home as well as an astrophotography manager to run my camera and mount. So far everything
is fine when I have a monitor attached. I can ssh in and run X apps,
and I can run the VNC client and control the desktop.
What I find, however, is that when I boot the RP4 without the
monitor attached, which I would be doing most all the time, I lose the desktop functionality through VNC. I can still ssh X apps, and both xdpyinfo and xrandr still say the X resolution is 1920 x 1280, but
there doesn't appear to be a real desktop for VNC to latch onto.
I get that this must be possible as essentially VirtualBox is able
to do this. I wonder if there's a way for mere mortals to do something similar?
I'm guessing the reason there isn't a virtual desktop is because
nobody's logged in AT THE PI and started one!
Just start Xorg over ssh, or plasma-wayland, or whatever. Sorry I don't
(yet) know how to do it, I need to find out because I want to do exactly
the same :-)
Cheers,
Wol
In the case where the monitor is detached at boot two modules are not
loaded - fuse & nvmem_rmem. Other than that the module list appears identical.
On 08.11.21 17:34, Mark Knecht wrote:
In the case where the monitor is detached at boot two modules are not loaded - fuse & nvmem_rmem. Other than that the module list appears identical.
At the moment I can't help you to solve this in software but there may
be a hardware solution. There are fake monitor plugs. This is just a
plug without a cable that makes the device think that there is a monitor attached even if there isn't. Search for "HDMI dummy plug" or similar.
Andreas
-----Original Message-----
From: Mark Knecht <markknecht@gmail.com>
Sent: Monday, November 8, 2021 11:48 AM
To: Gentoo User <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Virtual Desktop with a Virtual Monitor?
On Mon, Nov 8, 2021 at 12:23 PM Andreas Stiasny <gentoo@lists.stiasny.priv.at> wrote:
On 08.11.21 17:34, Mark Knecht wrote:
In the case where the monitor is detached at boot two modules are
not loaded - fuse & nvmem_rmem. Other than that the module list
appears identical.
At the moment I can't help you to solve this in software but there may
be a hardware solution. There are fake monitor plugs. This is just a
plug without a cable that makes the device think that there is a
monitor attached even if there isn't. Search for "HDMI dummy plug" or similar.
Andreas
Actually, if it works and I have little doubt it does, that's a great solution for my needs. I see Amazon has 1920x1080 plugs but also has virtual 4K plugs. All under $10.
Thanks!
Mark
So, I don't use the PI variants with GUI or even with a monitor very often, but as I recall if the HDMI port isn't attached at boot it then disables it to save the video memory.
If you then try to use one of the VNC servers that's designed to share the running X session, you'll find that there isn't a running X session.
But what you should still be able to do is install the "vncserver" command to fire up an X server that isn't attached to the physical output, only the VNC.
You may need to configure it to also start your preferred display manager, etc depending on whether or not the distro you're running does that automatically for you.
If you want to be able to plug in a monitor later though you'll probably need one of the dummy plugs to prevent the output from being switched off and ignored.
LMP
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 443 |
Nodes: | 16 (2 / 14) |
Uptime: | 67:04:46 |
Calls: | 9,194 |
Calls today: | 10 |
Files: | 13,475 |
Messages: | 6,052,403 |