$ dkms status
nvidia/545.29.06, 5.15.0-91-generic, x86_64: installed
$ inxi -Gxx
Graphics:
Device-1: AMD vendor: Hewlett-Packard driver: N/A pcie: speed: 16 GT/s
lanes: 16 bus-ID: 05:00.0 chip-ID: 1002:15bf
Device-2: Quanta HP True Vision FHD Camera type: USB driver: uvcvideo
bus-ID: 3-1:2 chip-ID: 0408:5487
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: ati,vesa
unloaded: fbdev,modesetting,radeon gpu: N/A display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96
Monitor-1: default res: 1920x1080 size: N/A
OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits)
v: 4.5 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
$ gpu-manager
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /run/u-d-c-nvidia-was-loaded file
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.15.0-91-generic/kernel
Looking for nvidia modules in /lib/modules/5.15.0-91-generic/updates/dkms
Found nvidia.ko module in /lib/modules/5.15.0-91-generic/updates/dkms/nvidia.ko
Looking for amdgpu modules in /lib/modules/5.15.0-91-generic/kernel
Looking for amdgpu modules in /lib/modules/5.15.0-91-generic/updates/dkms
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? no
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? yes
Is amdgpu kernel module available? no
Vendor/Device Id: 1002:15bf
BusID "PCI:5@0:0:0"
Is boot vga? yes
Error: can't access /sys/bus/pci/devices/0000:05:00.0/driver
The device is not bound to any driver.
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Does it require offloading? no
last cards number = 1
I couldn't open /var/lib/ubuntu-drivers-common/last_gfx_boot for writing.
Error: can't write to /var/lib/ubuntu-drivers-common/last_gfx_boot
$ prime-select query
on-demand
$ xapp-gpu-offload
(xapp-gpu-offload:27585): XApp-CRITICAL **: 13:41:12.304: Could not get gpu info from switcheroo proxy: (0): No default GPU exists.
(xapp-gpu-offload:27585): GLib-GIO-CRITICAL **: 13:41:12.304: g_task_return_boolean: assertion '!task->ever_returned' failed
usage: xapp-gpu-offload [-h] [-i ID] [-l] [-p] [command ...]
Launch a program using an alternate GPU, or if there are no others, like a normal program.
positional arguments:
command The program to run and arguments.
options:
-h, --help show this help message and exit
-i ID, --id ID Specify the GPU to use. If omitted, the first non-
default GPU will be used.
-l, --list-gpus List available GPUs.
-p, --print-env Print the environment variables to be prepended to a
shell command. A newline is omitted.