delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/01/30/13:51:44

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1533385840E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1675104665;
bh=6Nu4qLL8j9CtEkqSxv1GchTuEjwmMDQMF/qPya8I05s=;
h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=p4rlWAiROAP63mLPC3RtnrwqoEmFRx+WSbCMFcOa6RKgZwyYv01RGDzoolO64LwNE
HsXtmOwfthEa8T8StA8SN4vpUgDvM9QrDa16ciL8jsRR/RlX0WI1QMbSx+xPxBMBeT
RLrxJt3Lo7ZwW7F0zRKerkIA224qqoubO4VfK7qw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6256C3858D1E
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin X11 on second (Nvidia) graphics card
Date: Mon, 30 Jan 2023 19:50:20 +0100
Message-ID: <tr93hc$bn4$1@ciao.gmane.io>
References: <tr0q79$5tu$1 AT ciao DOT gmane DOT io>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
In-Reply-To: <tr0q79$5tu$1@ciao.gmane.io>
X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,
FORGED_GMAIL_RCVD, FORGED_MUA_MOZILLA, FREEMAIL_FORGED_FROMDOMAIN,
FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A,
NML_ADSP_CUSTOM_MED, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Franz Fehringer via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Franz Fehringer <fehrin2 AT gmail DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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).



-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019