您尚未登录。

#1 2021-07-15 06:57:46

leafh
会员
注册时间: 2020-12-14
帖子: 9

nvidia-prime使用的一些疑惑

已安装nvidia相关驱动包,使用nvidia-prime运行firefox后,查看nvidia-smi输出,发现一直是0%

neofetch 
                   -`                    yeh@ArchLinux 
                  .o+`                   ------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: 81LE Lenovo Legion Y7000P-1060 
               `+oooooo:                 Kernel: 5.12.15-arch1-1 
               -+oooooo+:                Uptime: 28 mins 
             `/:-:++oooo+:               Packages: 789 (pacman) 
            `/++++/+++++++:              Shell: fish 3.3.1 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: Plasma 5.22.3 
         ./ooosssso++osssssso+`          WM: KWin 
        .oossssso-````/ossssss+`         Theme: Breeze Dark [Plasma], Breeze [GTK2/3] 
       -osssssso.      :ssssssso.        Icons: [Plasma], breeze-dark [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: konsole 
     /ossssssss/        +ssssooo/-       CPU: Intel i5-8300H (8) @ 4.000GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: NVIDIA GeForce GTX 1060 Mobile 
  `+sso+:-`                 `.-/+oso:    GPU: Intel CoffeeLake-H GT2 [UHD Graphics 630] 
 `++:.                           `-/+/   Memory: 1392MiB / 15879MiB 
 .`                                 `/
pacman -Qs nvidia
local/egl-wayland 1.1.7-1
    EGLStream-based Wayland external platform
local/lib32-nvidia-utils 465.31-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 465.31-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/libxnvctrl 465.31-1
    NVIDIA NV-CONTROL X extension
local/nvidia 465.31-14
    NVIDIA drivers for linux
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 465.31-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 465.31-1
    NVIDIA drivers utilities
local/opencl-nvidia 465.31-1
    OpenCL implemention for NVIDIA
prime-run firefox
[GFX1-]: Failed GL context creation for WebRender: 0
[GFX1-]: FEATURE_FAILURE_WEBRENDER_INITIALIZE_UNSPECIFIED
[GFX1-]: Failed to connect WebRenderBridgeChild.
[GFX1-]: Fallback WR to SW-WR
nvidia-smi
Thu Jul 15 06:38:55 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.31       Driver Version: 465.31       CUDA Version: 11.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   52C    P8     2W /  N/A |     39MiB /  6078MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       441      G   /usr/lib/Xorg                      34MiB |
|    0   N/A  N/A      1215      G   /usr/lib/firefox/firefox            1MiB |
+-----------------------------------------------------------------------------+

最近编辑记录 leafh (2021-07-15 09:44:34)

离线

#2 2021-07-15 12:44:40

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 6,783
个人网站

Re: nvidia-prime使用的一些疑惑

不要用 prime 跑火狐,你看它回退到软件渲染了。(chrom* 也不要)

离线

#3 2021-07-15 16:39:26

leafh
会员
注册时间: 2020-12-14
帖子: 9

Re: nvidia-prime使用的一些疑惑

依云 说:

不要用 prime 跑火狐,你看它回退到软件渲染了。(chrom* 也不要)

好的,感谢依云的答疑。我之前使用的是optimus-manager方式,卸载后安装的prime,还以为受影响了,导致不正常

最近编辑记录 leafh (2021-07-15 16:40:29)

离线

页脚