From: Mark Knecht <markknecht@gmail.com>
To: Gentoo User <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Virtual Desktop with a Virtual Monitor?
Date: Mon, 8 Nov 2021 09:34:11 -0700 [thread overview]
Message-ID: <CAK2H+ecNfMv45Psa_PsuAsxiR-xN1T3tdZrEKzbo_sKZ--5u1g@mail.gmail.com> (raw)
In-Reply-To: <b7792151-e803-169c-c7fb-25427b8b919e@youngman.org.uk>
On Sun, Nov 7, 2021 at 2:04 PM Wol <antlists@youngman.org.uk> wrote:
>
> 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
>
It seems so far that it's even a little more onerous than that:
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.
If I ssh into the RP4 when it's running RPi OS (previously called
Raspbian apparently) but with the monitor DISCONNECTED when I boot
then screenfetch says there's no GPU. Plugging in the monitor after
it's booted doesn't change anything:
mark@science:~$ ssh -X pi@192.168.86.84
pi@192.168.86.84's password:
Linux raspberrypi 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l
<SNIP>
pi@raspberrypi:~ $ screenfetch -nN
pi@raspberrypi
OS: Raspbian 10 buster
Kernel: armv7l Linux 5.10.63-v7l+
Uptime: 0m
Packages: 2038
Shell: 723
Resolution: 5760x1080
DE: KDE5
WM: KWin
CPU: ARMv7 rev 3 (v7l) @ 4x 1.5GHz [29.6°C]
GPU:
RAM: 61MiB / 7898MiB
pi@raspberrypi:~ $ lspci -vm -k
Device: 00:00.0
Class: PCI bridge
Vendor: Broadcom Limited
Device: Device 2711
Rev: 10
Driver: pcieport
Device: 01:00.0
Class: USB controller
Vendor: VIA Technologies, Inc.
Device: VL805 USB 3.0 Host Controller
SVendor: VIA Technologies, Inc.
SDevice: VL805 USB 3.0 Host Controller
Rev: 01
ProgIf: 30
Driver: xhci_hcd
pi@raspberrypi:~ $
However, booting with the monitor ATTACHED now shows the GPU, or at
least a DRM framebuffer possibly, in screenfetch. The PCI devices are
the same:
pi@raspberrypi:~ $ screenfetch -nN
pi@raspberrypi
OS: Raspbian 10 buster
Kernel: armv7l Linux 5.10.63-v7l+
Uptime: 0m
Packages: 2038
Shell: 935
Resolution: 3840x1080
DE: KDE5
WM: OpenBox
CPU: ARMv7 rev 3 (v7l) @ 4x 1.5GHz [37.9°C]
GPU: vc4drmfb
RAM: 144MiB / 7898MiB
pi@raspberrypi:~ $
pi@raspberrypi:~ $ lspci -vm -k
Device: 00:00.0
Class: PCI bridge
Vendor: Broadcom Limited
Device: Device 2711
Rev: 10
Driver: pcieport
Device: 01:00.0
Class: USB controller
Vendor: VIA Technologies, Inc.
Device: VL805 USB 3.0 Host Controller
SVendor: VIA Technologies, Inc.
SDevice: VL805 USB 3.0 Host Controller
Rev: 01
ProgIf: 30
Driver: xhci_hcd
pi@raspberrypi:~ $
I will repeat this experiment using Ubuntu in a little while to see if
the missing GPU is an OS or hardware thing. In this hardware it looks
like the GPU hardware is behind the PCI bridge.
Still to look into Neil's x2go suggestion.
Mark
next prev parent reply other threads:[~2021-11-08 16:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 20:39 [gentoo-user] Virtual Desktop with a Virtual Monitor? Mark Knecht
2021-11-07 21:03 ` Wol
2021-11-07 22:31 ` Mark Knecht
2021-11-08 16:34 ` Mark Knecht [this message]
2021-11-08 19:22 ` Andreas Stiasny
2021-11-08 19:48 ` Mark Knecht
2021-11-08 20:30 ` Laurence Perkins
2021-11-09 14:36 ` Mark Knecht
2021-11-07 22:33 ` Neil Bothwick
2021-11-07 23:06 ` Mark Knecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAK2H+ecNfMv45Psa_PsuAsxiR-xN1T3tdZrEKzbo_sKZ--5u1g@mail.gmail.com \
--to=markknecht@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox