From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FSL_HELO_HOME autolearn=no autolearn_force=no version=3.4.1 Date: Fri, 2 Jun 2017 00:25:19 +0200 From: Konstantin Lepikhov To: devel@lists.altlinux.org Message-ID: <20170601222519.GA9702@lks.home> Mail-Followup-To: devel@lists.altlinux.org References: <20170531202338.GA3165@lks.home> <2321057.GFU4Eiinca@summoner.malta.altlinux.ru> <20170601124955.GA32746@lks.home> <7963929.ALNggYNRin@summoner.malta.altlinux.ru> <20170601131811.GA4428@lks.home> <20170601153038.GC29253@imap.altlinux.org> <9b831214-7fd6-ab95-e6cf-c9b71c49f600@basealt.ru> <20170601173427.GA4187@lks.home> <20170601182359.GA13028@lks.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170601182359.GA13028@lks.home> X-Operation-System: ALT Linux starter kit (Trientalis) 4.8.0-lks-wks-alt2 User-Agent: Mutt/1.6 (2015-08-30) Subject: Re: [devel] Q: libGL* transition to GLVND X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2017 22:25:23 -0000 Archived-At: List-Archive: List-Post: > > Section "OutputClass" > > Identifier "nvidia" > > MatchDriver "nvidia-drm" > > Driver "nvidia" > > Option "AllowEmptyInitialConfiguration" > > Option "PrimaryGPU" "yes" > > ModulePath "/usr/lib64/X11/nvidia" > > EndSection > Чтобы это работало, еще нужно обновить xorg-server. Попробую его тоже > собрать. Да, работает: $ cat /etc/X11/xorg.conf.d/10-nvidia.conf Section "OutputClass" Identifier "nvidia" MatchDriver "nvidia-drm" Driver "nvidia" Option "AllowEmptyInitialConfiguration" Option "PrimaryGPU" "yes" Option "ConnectToAcpid" "0" ModulePath "/usr/lib64/X11/nvidia" EndSection И выдержка из /var/log/Xorg.0.log ... [ 1199.204] (==) Using config directory: "/etc/X11/xorg.conf.d" [ 1199.204] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 1199.204] (==) No Layout section. Using the first Screen section. [ 1199.204] (==) No screen section available. Using defaults. [ 1199.204] (**) |-->Screen "Default Screen Section" (0) [ 1199.204] (**) | |-->Monitor "" [ 1199.204] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 1199.204] (==) Automatically adding devices [ 1199.204] (==) Automatically enabling devices [ 1199.204] (==) Automatically adding GPU devices [ 1199.204] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 1199.204] (==) FontPath set to: catalogue:/etc/X11/fontpath.d [ 1199.204] (==) ModulePath set to "/usr/lib64/X11/modules" ... [ 1199.205] (II) xfree86: Adding drm device (/dev/dri/card0) [ 1199.205] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib64/X11/nvidia,/usr/lib64/X11/modules" [ 1199.205] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU [ 1199.206] (--) PCI:*(0:1:0:0) 10de:1c03:0000:0000 rev 161, Mem @ 0xfd000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072 [ 1199.206] (II) LoadModule: "glx" [ 1199.252] (II) Loading /usr/lib64/X11/nvidia/libglx.so [ 1199.602] (II) Module glx: vendor="NVIDIA Corporation" [ 1199.602] compiled for 4.0.2, module version = 1.0.0 [ 1199.602] Module class: X.Org Server Extension [ 1199.616] (II) NVIDIA GLX Module 381.22 Thu May 4 00:17:15 PDT 2017 [ 1199.636] (II) Applying OutputClass "nvidia" to /dev/dri/card0 [ 1199.636] loading driver: nvidia [ 1199.636] (==) Matched nvidia as autoconfigured driver 0 [ 1199.636] (==) Matched nouveau as autoconfigured driver 1 [ 1199.636] (==) Matched nv as autoconfigured driver 2 [ 1199.636] (==) Matched nouveau as autoconfigured driver 3 [ 1199.636] (==) Matched nv as autoconfigured driver 4 [ 1199.636] (==) Matched modesetting as autoconfigured driver 5 [ 1199.636] (==) Matched fbdev as autoconfigured driver 6 [ 1199.637] (==) Matched vesa as autoconfigured driver 7 [ 1199.637] (==) Assigned the driver to the xf86ConfigLayout [ 1199.637] (II) LoadModule: "nvidia" [ 1199.637] (II) Loading /usr/lib64/X11/modules/drivers/nvidia_drv.so [ 1199.700] (II) Module nvidia: vendor="NVIDIA Corporation" ... Патченный xorg лежит тут - http://git.altlinux.org/people/lakostis/packages/?p=xorg-server.git;a=shortlog;h=refs/heads/server-1.19/glvnd Также могу пересобрать livecd чтобы проверить работу с несколькими GPU. -- WBR et al.