Giter Site home page Giter Site logo

Driver promt / location about larbs HOT 6 CLOSED

lukesmithxyz avatar lukesmithxyz commented on July 21, 2024
Driver promt / location

from larbs.

Comments (6)

LukeSmithxyz avatar LukeSmithxyz commented on July 21, 2024 1

A driver? What do you mean? A driver for what?

from larbs.

NicTanghe avatar NicTanghe commented on July 21, 2024

The driver wich i am referring to is the video card driver.

check if nvidia or amd
then ask Nouveau or propreitairy nvidia driver.
And download driver accordingly / use adjusted config files.

might make a fork if i can find where all is located

(Ok i diden't mean to react with a heart emoji and no reply it ws just becouse it was unclear in terminal browser how to react.)

from larbs.

LukeSmithxyz avatar LukeSmithxyz commented on July 21, 2024

If someone pushes a quick test to determine what video card driver is needed, I'll merge it, but I don't particularly know how to determine which one is appropriate for everyone's computer.

from larbs.

NicTanghe avatar NicTanghe commented on July 21, 2024

i have created some code but the final part is failing (if and is not working) also right now it only works for newer gfx cards.

Edit: updated code

#!/bin/sh

#currently only works for relativly new models.

#function calling


#maybe more options with older drivers but i wanted to also just make it check automatically.
Option1="Empty"
Option2="Empty" 
Driver="Empty"
Card="Empty"
 
if lspci | grep -q NVIDIA; then
  Option1="Proprietary NVIDIA driver"
  Option2="Open source nouveau driver"
  Card="Nvidia"
elif lspci | grep -q Amd; then
  Option1="Proprietary Catalyst driver"
  Option2="Open Source AMDGPU driver"
  Card="Amd"
elif lspci | grep -q Intel; then
	 instal="xf86-video-intel"
 else
 	echo It can not be!
fi

echo $Option1
echo $Option2

 cmd=(dialog --separate-output --checklist "Select Gfx driver using space:" 22 76 16)
 options=(1 "$Option1" on    # any option can be set to default to "on"
          2 "$Option2" off)
 choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
 clear
 for choice in $choices
 do
     case $choice in
         1)
             echo "First Option"
             selection="1"
             ;;
         2)
             echo "Second Option"
             selection="2"
             ;;
     esac
done

if [ "$Card"=="Amd" ] && [ "$selection"=="1" ];then
  instal="Catalyst"
elif [ "$Card"=="Amd" ] && [ "$selection"=="2" ];then
  instal="AMDGPU"
elif [ "$Card"=="Nvidia" ] && [ "$selection"=="1" ];then
  instal="NVIDIA"
elif [ "$Card"=="Nvidia" ] && [ "$selection"=="2" ];then
  instal="nouveau"
else echo you found a bug
fi

pacman -S $instal

from larbs.

kaitsubaka avatar kaitsubaka commented on July 21, 2024

this code never install the intel driver, because you don'nt use the var Driver in the pacman -S at last

from larbs.

NicTanghe avatar NicTanghe commented on July 21, 2024

@kaizetsubaki i didn't really care about intel drivers yet.
Also, the script simply didn't work.

@LukeSmithxyz Did u close because u fixed or because of inactivity on my part ?
I ended up manually installing it at the time.
And later switched to windows now i wanna dual boot but lost a lot of my know-how.

from larbs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.