From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 6256C3858D1E for ; Mon, 30 Jan 2023 18:50:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6256C3858D1E Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pMZEY-0009Vj-Tm for cygwin@cygwin.com; Mon, 30 Jan 2023 19:50:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com From: Franz Fehringer Subject: Re: Cygwin X11 on second (Nvidia) graphics card Date: Mon, 30 Jan 2023 19:50:20 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 In-Reply-To: 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 List-Id: 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).