Add custom driver DB
This commit is contained in:
parent
73e3c6da53
commit
067cf28bef
@ -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"
|
|
100
driver-db.json
Normal file
100
driver-db.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user