amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* using amdgpu headless (no monitor)
       [not found] <91667893.917091.1590651127476.ref@mail.yahoo.com>
@ 2020-05-28  7:32 ` Ian Rogers
  2020-05-28 20:29   ` Alex Deucher
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Rogers @ 2020-05-28  7:32 UTC (permalink / raw)
  To: amd-gfx

Hi,

Why can't virtual_display be used along with a physical display?

I see from here: https://bugzilla.kernel.org/show_bug.cgi?id=203339 that the intention of the virtual_display module option is to allow for virtual displays and purposely disable physical/real displays.
Is there a technical limitation that required this?

I ask because I want to be able to run a system that is sometimes headless and sometimes not.  And I'd like to be able to access a current X session (either logged in or at the login greeter) both remotely (say via VNC) and locally via the physical display (when it is plugged in).without having to reboot or lose that X session.

However I've noticed that (at least with a Ryzen 3 3200G with Radeon Vega 8) an X session does not login successfully when accessed remotely if there is no monitor connected.
I assume this is caused by something in the amdgpu driver but I haven't been able to figure out what.
So I was hoping that perhaps a solution would involve using virtual_display, but that won't work as it's currently designed because of it disabling the physical display.

But maybe I've gone down the wrong track and there is another solution.  I've tried using the xorg dummy driver in addition to amdgpu, but when doing so, I can never get a physical display working.
This is an Ubuntu 20.04 system with kernel 5.4.0.

I can provide lots more detail on what I've tried and my config where needed.

Thanks much
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: using amdgpu headless (no monitor)
  2020-05-28  7:32 ` using amdgpu headless (no monitor) Ian Rogers
@ 2020-05-28 20:29   ` Alex Deucher
  2020-06-08  4:41     ` Ian Rogers
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Deucher @ 2020-05-28 20:29 UTC (permalink / raw)
  To: Ian Rogers; +Cc: amd-gfx

On Thu, May 28, 2020 at 3:47 AM Ian Rogers <gruffhacker-insta@yahoo.com> wrote:
>
> Hi,
>
> Why can't virtual_display be used along with a physical display?
>

We've never had a use case to mix the two.

> I see from here: https://bugzilla.kernel.org/show_bug.cgi?id=203339 that the intention of the virtual_display module option is to allow for virtual displays and purposely disable physical/real displays.
> Is there a technical limitation that required this?
>

It was easier to implement them separately because they are self
contained and we don't have to deal with any interactions or
dependencies between real and fake elements of the display pipeline.

> I ask because I want to be able to run a system that is sometimes headless and sometimes not.  And I'd like to be able to access a current X session (either logged in or at the login greeter) both remotely (say via VNC) and locally via the physical display (when it is plugged in).without having to reboot or lose that X session.
>
> However I've noticed that (at least with a Ryzen 3 3200G with Radeon Vega 8) an X session does not login successfully when accessed remotely if there is no monitor connected.
> I assume this is caused by something in the amdgpu driver but I haven't been able to figure out what.

It's your display manager (X, mutter, kwin, etc.).  They generally
won't start if they doesn't detect a monitor.  You might be able to
force one via whatever configuration mechanism is provided by your
environment.

> So I was hoping that perhaps a solution would involve using virtual_display, but that won't work as it's currently designed because of it disabling the physical display.
>
> But maybe I've gone down the wrong track and there is another solution.  I've tried using the xorg dummy driver in addition to amdgpu, but when doing so, I can never get a physical display working.
> This is an Ubuntu 20.04 system with kernel 5.4.0.
>
> I can provide lots more detail on what I've tried and my config where needed.
>
> Thanks much
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: using amdgpu headless (no monitor)
  2020-05-28 20:29   ` Alex Deucher
@ 2020-06-08  4:41     ` Ian Rogers
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Rogers @ 2020-06-08  4:41 UTC (permalink / raw)
  To: Alex Deucher; +Cc: amd-gfx

Thanks much Alex for responding.

On Thursday, May 28, 2020, 04:29:16 PM EDT, Alex Deucher  wrote:

>> I ask because I want to be able to run a system that is sometimes headless and sometimes not.  And I'd like to be able to access a current X session (either logged in or at the login greeter) both remotely (say via VNC) and locally via the physical display (when it is plugged in).without having to reboot or lose that X session.
>>
>> However I've noticed that (at least with a Ryzen 3 3200G with Radeon Vega 8) an X session does not login successfully when accessed remotely if there is no monitor connected.
>> I assume this is caused by something in the amdgpu driver but I haven't been able to figure out what.
>
>It's your display manager (X, mutter, kwin, etc.).  They generally
>won't start if they doesn't detect a monitor.  You might be able to
>force one via whatever configuration mechanism is provided by your
>environment.

Yes it seems to be an issue with gnome-shell/mutter (the shell/window manager), rather than Xorg (my display server), but I will report back if the relevant developer teams of those items have any requests for amdgpu related to this issue.

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-08  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <91667893.917091.1590651127476.ref@mail.yahoo.com>
2020-05-28  7:32 ` using amdgpu headless (no monitor) Ian Rogers
2020-05-28 20:29   ` Alex Deucher
2020-06-08  4:41     ` Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).