My solution for Hashcat
not detecting NVIDIA GPU for hybrid graphics setup.
AMD Radeon vega
+ nvidia 1650
.
-
Hashcat is not detecting integrated GPU and seeing these errors even after doing
sudo apt-get dist-upgrade or apt-get full-upgrade
-
Don't worry I got you covered. After 3 long years, I have finally solved this issue. Just follow the following steps.
- Go to https://www.nvidia.com/Download/index.aspx?lang=en-us & select your proper GPU driver to install.
- Run
sudo su -
. - Do
init 3
(which will disable the Linux desktop and switch to a text interface.). - If you have already installed Nvidia drivers using a package manager like
apt
,nala
etc. you have to remove them first. I didsudo apt remove nvidia*
which removed all of the previously installed Nvidia drivers. If you don't do this you'll get a warning when you try to run the next step & the installation will be aborted. - Install the driver file by doing
sudo ./Nvidia-<your version>.run
. Follow the installation flow & choose appropriate options. - If the installation is successful Reboot
- Now run
hashcat -I
& if everything goes well you will be able to see something like this.
- Now it's not over yet. After following this my laptop display went dark and only the external monitor display was visible this was expected because of the new updated drivers the system will use the
dedicated GPU
i.e.Nvidia
one for as the primary graphics driver. Now to fix this thanks tohackterr
on Discord you can either set your laptop display card toNvidia
orintegrated AMD
GPU forlaptop display
& keep theNvidia
one for the external display. I choose the latter one. - Add the following to your
/etc/X11/xorg.conf
file. (You needsudo
to edit this)
Section "Device"
Identifier "Device1"
Driver "modesetting"
VendorName "Advanced Micro Devices"
BusID "PCI:5:00.0" # run lspci | grep -i vga to see your bus ID for integrated GPU. In my case, it was 5:00.0
EndSection