Specs
How to use decrete graphics card
# xrandr
james@t1700:~$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x47 cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 5 associated providers: 1 name:modesetting
Provider 1: id: 0x9e cap: 0x6, Sink Output, Source Offload crtcs: 4 outputs: 4 associated providers: 1 name:ATI FirePro (FireGL) Graphics Adapter @ pci:0
# glxinfo
james@t1700:~$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics P4600/P4700 (HSW GT2)
......
james@t1700:~$ DRI_PRIME=1 glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: AMD CEDAR (DRM 2.50.0 / 5.16.11-76051611-generic, LLVM 12.0.1)
......
# doom 3
james@t1700:~/Applications/dhewm3$ DRI_PRIME=1 ./dhewm3
NVIDIA NVS 310
Proprietary driver: NVIDIA-Linux-x86_64-390.147.run:
- The nouveau driver needs to be disabled first.
- At the end of the installation, there’s an error that seems to be harmless.
- The experience is not good.
Open-source driver nouveau
There are error messages in the kernel when playing games. This can be fixed by installing the proprietary firmware
james@t1700:~$ sudo dmesg -w | grep nouveau
[ 1.957847] nouveau 0000:01:00.0: enabling device (0000 -> 0003)
[ 1.958032] nouveau 0000:01:00.0: NVIDIA GF119 (0d93d0a1)
[ 2.285529] nouveau 0000:01:00.0: bios: version 75.19.67.00.11
[ 2.393669] nouveau 0000:01:00.0: fb: 512 MiB DDR3
[ 3.702038] nouveau 0000:01:00.0: DRM: VRAM: 512 MiB
[ 3.702041] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
[ 3.702044] nouveau 0000:01:00.0: DRM: TMDS table version 2.0
[ 3.702046] nouveau 0000:01:00.0: DRM: DCB version 4.0
[ 3.702048] nouveau 0000:01:00.0: DRM: DCB outp 00: 028003a6 0f220010
[ 3.702051] nouveau 0000:01:00.0: DRM: DCB outp 01: 02000362 00020010
[ 3.702053] nouveau 0000:01:00.0: DRM: DCB outp 02: 048113b6 0f220010
[ 3.702055] nouveau 0000:01:00.0: DRM: DCB outp 03: 04011372 00020010
[ 3.702057] nouveau 0000:01:00.0: DRM: DCB conn 00: 00410146
[ 3.702059] nouveau 0000:01:00.0: DRM: DCB conn 01: 00820246
[ 3.702868] nouveau 0000:01:00.0: DRM: MM: using COPY0 for buffer copies
[ 3.952875] nouveau 0000:01:00.0: DRM: allocated 1920x1080 fb: 0x60000, bo 000000004047794d
[ 3.953570] nouveau 0000:01:00.0: [drm] fb1: nouveaudrmfb frame buffer device
[ 3.953979] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1
[ 7.657607] nouveau 0000:01:00.0: Direct firmware load for nouveau/nvd9_fuc084 failed with error -2
[ 7.657619] nouveau 0000:01:00.0: Direct firmware load for nouveau/nvd9_fuc084d failed with error -2
[ 7.657620] nouveau 0000:01:00.0: msvld: unable to load firmware data
[ 7.657623] nouveau 0000:01:00.0: msvld: init failed, -19
[ 13.961405] nouveau 0000:01:00.0: Direct firmware load for nouveau/nvd9_fuc084 failed with error -2
[ 13.961416] nouveau 0000:01:00.0: Direct firmware load for nouveau/nvd9_fuc084d failed with error -2
[ 13.961418] nouveau 0000:01:00.0: msvld: unable to load firmware data
[ 13.961420] nouveau 0000:01:00.0: msvld: init failed, -19
[ 28.329585] nouveau 0000:01:00.0: Direct firmware load for nouveau/nvd9_fuc084 failed with error -2
[ 28.329599] nouveau 0000:01:00.0: Direct firmware load for nouveau/nvd9_fuc084d failed with error -2
[ 28.329601] nouveau 0000:01:00.0: msvld: unable to load firmware data
[ 28.329604] nouveau 0000:01:00.0: msvld: init failed, -19
sudo apt install nouveau-firmware