From 067cf28bef6235ae35bfd77eff7a9cb5d7674ef6 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Fri, 23 Feb 2024 01:34:16 +0300 Subject: [PATCH] Add custom driver DB --- data/generate_driver_definitions.sh | 35 ---------- driver-db.json | 100 ++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 35 deletions(-) delete mode 100755 data/generate_driver_definitions.sh create mode 100644 driver-db.json diff --git a/data/generate_driver_definitions.sh b/data/generate_driver_definitions.sh deleted file mode 100755 index fb4887e..0000000 --- a/data/generate_driver_definitions.sh +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/bash - -### Get traditional ubuntu-driver list -DRIVERS="$(ubuntu-drivers list | grep -vi -server)" - -### Put mesa driver flaours in the list -DRIVERS="$DRIVERS mesa-hybrid mesa-stable mesa-git" - -### Check if the amdgpu module is loaded -### advanced micro devices graphics cards with "radeon" module only do not support the additional drivers -if inxi -G | grep driver | grep -i amdgpu &> /dev/null -then - DRIVERS="$DRIVERS pika-rocm-meta vulkan-amdgpu-pro amf-amdgpu-pro amdvlk opencl-legacy-amdgpu-pro-icd amdgpu-pro-oglp" -fi - -### Check for xbox equipment -if lsusb | grep -i xbox &> /dev/null -then - DRIVERS="$DRIVERS xone-dkms" -fi - -### Check for Intel GPUs -if inxi -G | grep driver | grep -i intel &> /dev/null -then - DRIVERS="$DRIVERS intel-gpu-compute" -fi - -### If no drivers were found set them to random hash to trigger no drivers needed dialog in gui app -if [[ -z $DRIVERS ]] -then - DRIVERS=emScuM8rsa6kuhMePtR5bT8s4z9s -fi - -### Print result -echo -e "$DRIVERS" | tr ' ' '\n' | grep "\S" \ No newline at end of file diff --git a/driver-db.json b/driver-db.json new file mode 100644 index 0000000..b84c840 --- /dev/null +++ b/driver-db.json @@ -0,0 +1,100 @@ +{ + "drivers": { + "pika-rocm-meta": { + "driver": "pika-rocm-meta", + "icon": "amd", + "experimental": false, + "detection": "inxi -G | grep driver | grep -i amdgpu" + }, + "vulkan-amdgpu-pro": { + "driver": "vulkan-amdgpu-pro", + "icon": "amd", + "experimental": false, + "detection": "inxi -G | grep driver | grep -i amdgpu" + }, + "amf-amdgpu-pro": { + "driver": "amf-amdgpu-pro", + "icon": "amd", + "experimental": false, + "detection": "inxi -G | grep driver | grep -i amdgpu" + }, + "amdvlk": { + "driver": "amdvlk", + "icon": "amd", + "experimental": false, + "detection": "inxi -G | grep driver | grep -i amdgpu" + }, + "opencl-legacy-amdgpu-pro-icd": { + "driver": "opencl-legacy-amdgpu-pro-icd", + "icon": "amd", + "experimental": false, + "detection": "inxi -G | grep driver | grep -i amdgpu" + }, + "amdgpu-pro-oglp": { + "driver": "amdgpu-pro-oglp", + "icon": "amd", + "experimental": false, + "detection": "inxi -G | grep driver | grep -i amdgpu" + }, + "nvidia-driver-525": { + "driver": "nvidia-driver-525", + "icon": "nvidia", + "experimental": false, + "detection": "lspci -D | grep -iE 'VGA|3D' | grep -i nvidia | cut -d: -f 4" + }, + "nvidia-driver-525-open": { + "driver": "nvidia-driver-525-open", + "icon": "nvidia", + "experimental": true, + "detection": "lspci -D | grep -iE 'VGA|3D' | grep -i nvidia | cut -d: -f 4" + }, + "nvidia-driver-535": { + "driver": "nvidia-driver-535", + "icon": "nvidia", + "experimental": false, + "detection": "lspci -D | grep -iE 'VGA|3D' | grep -i nvidia | cut -d: -f 4" + }, + "nvidia-driver-535-open": { + "driver": "nvidia-driver-535-open", + "icon": "nvidia", + "experimental": true, + "detection": "lspci -D | grep -iE 'VGA|3D' | grep -i nvidia | cut -d: -f 4" + }, + "nvidia-driver-545": { + "driver": "nvidia-driver-545", + "icon": "nvidia", + "experimental": false, + "detection": "lspci -D | grep -iE 'VGA|3D' | grep -i nvidia | cut -d: -f 4" + }, + "nvidia-driver-545-open": { + "driver": "nvidia-driver-545-open", + "icon": "nvidia", + "experimental": true, + "detection": "lspci -D | grep -iE 'VGA|3D' | grep -i nvidia | cut -d: -f 4" + }, + "nvidia-driver-550": { + "driver": "nvidia-driver-550", + "icon": "nvidia", + "experimental": true, + "detection": "lspci -D | grep -iE 'VGA|3D' | grep -i nvidia | cut -d: -f 4" + }, + "nvidia-driver-550-open": { + "driver": "nvidia-driver-550-open", + "icon": "nvidia", + "experimental": true, + "detection": "lspci -D | grep -iE 'VGA|3D' | grep -i nvidia | cut -d: -f 4" + }, + "xone-dkms": { + "driver": "xone-dkms", + "icon": "input-gaming", + "experimental": false, + "detection": "lsusb | grep -i xbox" + }, + "intel-gpu-compute": { + "driver": "intel-gpu-compute", + "icon": "intel", + "experimental": false, + "detection": "inxi -G | grep driver | grep -i intel" + } + } +} \ No newline at end of file