Skip to content

Commit

Permalink
feat: update gpu installation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Aug 15, 2023
1 parent 41a93f9 commit a751580
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/gpu-intel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ usage() {
'
}

export dependencies=('gpu')

main_pacman() {
require_pacman intel-media-driver
}
Expand All @@ -26,5 +28,6 @@ main_brew() {
}

main() {
return 0
vainfo
vdpauinfo
}
5 changes: 5 additions & 0 deletions scripts/gpu-nvidia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ main_pacman() {

msg 'please set the nvidia-drm.modeset=1 as kernel parameter in /boot/loader/entries/*.conf' 'notice'
}

main() {
vainfo
vdpauinfo
}
34 changes: 34 additions & 0 deletions scripts/gpu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
usage() {
echo "Tools required for having fun with your GPU without knowing its brand"

# shellcheck disable=1004,2016
echo '
__ _ _ __ _ _
/ _` | |_ \| | | |
| (_| | |_) | |_| |
\__, | .__/ \__,_|
|___/|_|
'
}

main_pacman() {
require_pacman libva-utils vdpauinfo
}

main_apt() {
return 1
}

main_brew() {
return 1
}

main() {
return 0
}

main_parham() {
return 0
}

0 comments on commit a751580

Please sign in to comment.