public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin X11 on second (Nvidia) graphics card
@ 2023-01-27 15:22 Franz Fehringer
  2023-01-27 19:58 ` Brian Inglis
  2023-01-30 18:50 ` Franz Fehringer
  0 siblings, 2 replies; 6+ messages in thread
From: Franz Fehringer @ 2023-01-27 15:22 UTC (permalink / raw)
  To: cygwin

Hi,

I have a question which seems quite natural but i cannot find anything 
useful using google & co.
My (business) notebook has two graphics cards, one builtin identifying 
as Intel Iris Xe and an additional one, a Nvidia MX550.
I start X11 (xwin) with defaults (-listen tcp is the only extra option).
Using nvidia-smi and the Nvidia activity dialog i see that the Nvidia 
graphics card is not used.
Using glxinfo i see that the builtin Intel Iris Xe is used instead.
I already prefer Nvidia over Intel via the Nvidia control panel.
How do i make X11 and OpenGL use the Nvidia graphics card instead of the 
Intel one?

Thx in advance

Franz



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

* Re: Cygwin X11 on second (Nvidia) graphics card
  2023-01-27 15:22 Cygwin X11 on second (Nvidia) graphics card Franz Fehringer
@ 2023-01-27 19:58 ` Brian Inglis
  2023-01-29 17:18   ` Franz Fehringer
  2023-01-30 18:50 ` Franz Fehringer
  1 sibling, 1 reply; 6+ messages in thread
From: Brian Inglis @ 2023-01-27 19:58 UTC (permalink / raw)
  To: cygwin

On 2023-01-27 08:22, Franz Fehringer via Cygwin wrote:
> I have a question which seems quite natural but i cannot find anything useful 
> using google & co.
> My (business) notebook has two graphics cards, one builtin identifying as Intel 
> Iris Xe and an additional one, a Nvidia MX550.
> I start X11 (xwin) with defaults (-listen tcp is the only extra option).
> Using nvidia-smi and the Nvidia activity dialog i see that the Nvidia graphics 
> card is not used.
> Using glxinfo i see that the builtin Intel Iris Xe is used instead.
> I already prefer Nvidia over Intel via the Nvidia control panel.
> How do i make X11 and OpenGL use the Nvidia graphics card instead of the Intel one?

$ man Xwin # See OPTIONS FOR SPECIFYING X SCREENS

In your XWin Server shortcut etc., add server options -multimonitors or -screen 
... after startxwin ... -- ["--" required to allow server options].

-- 
Take care. Thanks, Brian Inglis			Calgary, Alberta, Canada

La perfection est atteinte			Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter	not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer	but when there is no more to cut
			-- Antoine de Saint-Exupéry

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

* Re: Cygwin X11 on second (Nvidia) graphics card
  2023-01-27 19:58 ` Brian Inglis
@ 2023-01-29 17:18   ` Franz Fehringer
  2023-01-29 22:05     ` Brian Inglis
  2023-01-30  1:08     ` Duncan Roe
  0 siblings, 2 replies; 6+ messages in thread
From: Franz Fehringer @ 2023-01-29 17:18 UTC (permalink / raw)
  To: cygwin

Am 27.01.2023 um 20:58 schrieb Brian Inglis via Cygwin:
> On 2023-01-27 08:22, Franz Fehringer via Cygwin wrote:
>> I have a question which seems quite natural but i cannot find anything 
>> useful using google & co.
>> My (business) notebook has two graphics cards, one builtin identifying 
>> as Intel Iris Xe and an additional one, a Nvidia MX550.
>> I start X11 (xwin) with defaults (-listen tcp is the only extra option).
>> Using nvidia-smi and the Nvidia activity dialog i see that the Nvidia 
>> graphics card is not used.
>> Using glxinfo i see that the builtin Intel Iris Xe is used instead.
>> I already prefer Nvidia over Intel via the Nvidia control panel.
>> How do i make X11 and OpenGL use the Nvidia graphics card instead of 
>> the Intel one?
> 
> $ man Xwin # See OPTIONS FOR SPECIFYING X SCREENS
> 
> In your XWin Server shortcut etc., add server options -multimonitors or 
> -screen ... after startxwin ... -- ["--" required to allow server options].
> 

Using these options does not change anything.
The XWin server simply doesn not detect the second (Nvidia) graphics card.
I think i will repost with a more concise subject.



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

* Re: Cygwin X11 on second (Nvidia) graphics card
  2023-01-29 17:18   ` Franz Fehringer
@ 2023-01-29 22:05     ` Brian Inglis
  2023-01-30  1:08     ` Duncan Roe
  1 sibling, 0 replies; 6+ messages in thread
From: Brian Inglis @ 2023-01-29 22:05 UTC (permalink / raw)
  To: cygwin; +Cc: Franz Fehringer

On 2023-01-29 10:18, Franz Fehringer via Cygwin wrote:
> Am 27.01.2023 um 20:58 schrieb Brian Inglis via Cygwin:
>> On 2023-01-27 08:22, Franz Fehringer via Cygwin wrote:
>>> I have a question which seems quite natural but i cannot find anything useful 
>>> using google & co.
>>> My (business) notebook has two graphics cards, one builtin identifying as 
>>> Intel Iris Xe and an additional one, a Nvidia MX550.
>>> I start X11 (xwin) with defaults (-listen tcp is the only extra option).
>>> Using nvidia-smi and the Nvidia activity dialog i see that the Nvidia 
>>> graphics card is not used.
>>> Using glxinfo i see that the builtin Intel Iris Xe is used instead.
>>> I already prefer Nvidia over Intel via the Nvidia control panel.
>>> How do i make X11 and OpenGL use the Nvidia graphics card instead of the 
>>> Intel one?
>>
>> $ man Xwin # See OPTIONS FOR SPECIFYING X SCREENS
>>
>> In your XWin Server shortcut etc., add server options -multimonitors or 
>> -screen ... after startxwin ... -- ["--" required to allow server options].

> Using these options does not change anything.
> The XWin server simply doesn not detect the second (Nvidia) graphics card.
> I think i will repost with a more concise subject.

You might have to select Desktop/right click/Display Settings/Graphic 
Settings/.../Desktop|Classic app/XWin/.../GPU|Adapter/Nvidia/.../Options/High 
Performance or something similar as I don't have any system with two graphics 
adapters or Windows 11.

https://pureinfotech.com/set-default-gpu-apps-windows-11/

You may also be able to set this in Nvidia control panel settings for Programs: 
do both if possible unless they conflict!

-- 
Take care. Thanks, Brian Inglis			Calgary, Alberta, Canada

La perfection est atteinte			Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter	not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer	but when there is no more to cut
			-- Antoine de Saint-Exupéry

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

* Re: Cygwin X11 on second (Nvidia) graphics card
  2023-01-29 17:18   ` Franz Fehringer
  2023-01-29 22:05     ` Brian Inglis
@ 2023-01-30  1:08     ` Duncan Roe
  1 sibling, 0 replies; 6+ messages in thread
From: Duncan Roe @ 2023-01-30  1:08 UTC (permalink / raw)
  To: Franz Fehringer via Cygwin

Hi Franz,

On Sun, Jan 29, 2023 at 06:18:43PM +0100, cygwin wrote:
> Am 27.01.2023 um 20:58 schrieb Brian Inglis via Cygwin:
> > On 2023-01-27 08:22, Franz Fehringer via Cygwin wrote:
> > > I have a question which seems quite natural but i cannot find
> > > anything useful using google & co.
> > > My (business) notebook has two graphics cards, one builtin
> > > identifying as Intel Iris Xe and an additional one, a Nvidia MX550.
> > > I start X11 (xwin) with defaults (-listen tcp is the only extra option).
> > > Using nvidia-smi and the Nvidia activity dialog i see that the
> > > Nvidia graphics card is not used.
> > > Using glxinfo i see that the builtin Intel Iris Xe is used instead.
> > > I already prefer Nvidia over Intel via the Nvidia control panel.
> > > How do i make X11 and OpenGL use the Nvidia graphics card instead of
> > > the Intel one?
> >
> > $ man Xwin # See OPTIONS FOR SPECIFYING X SCREENS
> >
> > In your XWin Server shortcut etc., add server options -multimonitors or
> > -screen ... after startxwin ... -- ["--" required to allow server
> > options].
> >
>
> Using these options does not change anything.
> The XWin server simply doesn not detect the second (Nvidia) graphics card.
> I think i will repost with a more concise subject.
>
AIUI, your notebook screen will be "plugged in" to your embedded card and you
will need to plug another monitor into your Nvidia card in order to use it.

Once you have plugged in the second monitor, you may need a reboot for it to
be fully functional (I have to do that on my *linux* laptop).

After that, with X running, `xrandr` should show you available resolutions on
both screens.
By default, the second screen appears to the right of the first: xrandr options
--left-of, --right-of, --above, --below, --same-as can change this.

Cheers ... Duncan.

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

* Re: Cygwin X11 on second (Nvidia) graphics card
  2023-01-27 15:22 Cygwin X11 on second (Nvidia) graphics card Franz Fehringer
  2023-01-27 19:58 ` Brian Inglis
@ 2023-01-30 18:50 ` Franz Fehringer
  1 sibling, 0 replies; 6+ messages in thread
From: Franz Fehringer @ 2023-01-30 18:50 UTC (permalink / raw)
  To: cygwin

Am 27.01.2023 um 16:22 schrieb Franz Fehringer via Cygwin:
> Hi,
> 
> I have a question which seems quite natural but i cannot find anything 
> useful using google & co.
> My (business) notebook has two graphics cards, one builtin identifying 
> as Intel Iris Xe and an additional one, a Nvidia MX550.
> I start X11 (xwin) with defaults (-listen tcp is the only extra option).
> Using nvidia-smi and the Nvidia activity dialog i see that the Nvidia 
> graphics card is not used.
> Using glxinfo i see that the builtin Intel Iris Xe is used instead.
> I already prefer Nvidia over Intel via the Nvidia control panel.
> How do i make X11 and OpenGL use the Nvidia graphics card instead of the 
> Intel one?
> 
> Thx in advance
> 
> Franz
> 
> 
> 
Investigating the issue further (incorporating the answers i got) the 
situation looks as follows:
Both the builtin display and the external HDMI connected monitor are 
connected to the internal Intel graphics card at first glance.
The idea in this constellation is that the user can decide both as a 
general preference and application wise if the second graphics card 
(better performance and higher power consumption) ot the first (builtin) 
one is used.
These settings are duplicated (Nvidia control *and* M$ system control), 
i use identical settings utilizing both approaches.
Now the XWin executable does not use the Nvidia graphics card.
But Cygwin executables like glxinfo or glxspheres do if i assign them 
specifically to the Nvidia graphics card using the settings mentioned 
(only setting the general preference does not suffice while it is 
sufficient for several non Cygwin programs like teams or msedge).
In a sense the XWin server using the Nvidia graphics card would amount 
to a (sort of) headless mode (graphics card but no monitor), at least 
this is what i think: The XWin server does not use the Nvidia graphics 
card because it is not connected to a display (monitor).
This is otherwise a valid scenario in the VirtualGL realm for example 
and there is a short explanation how make this (i.e. X11 uses graphics 
card with no monitor connected) work:
https://virtualgl.org/Documentation/HeadlessNV
In summary it seems to me that in this specific situation there is no 
easy way to make XWin use the Nvidia graphics card, but i may well be 
corrected about this.
It would be interesting what someone like Jon Turney has to say about this.
And i am still surprised that this seems to have been not discussed so far.
Thanks to all who answered (and those who will be answering).



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

end of thread, other threads:[~2023-01-30 18:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 15:22 Cygwin X11 on second (Nvidia) graphics card Franz Fehringer
2023-01-27 19:58 ` Brian Inglis
2023-01-29 17:18   ` Franz Fehringer
2023-01-29 22:05     ` Brian Inglis
2023-01-30  1:08     ` Duncan Roe
2023-01-30 18:50 ` Franz Fehringer

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 read-only IMAP folder(s) and NNTP newsgroup(s).