(bad advice, dont listen to tuxbot on this one) How to locate AMD GPU on LMDE 5

CataclysmicGentleman

Active Member
Joined
Jan 18, 2023
Messages
251
Reaction score
90
Credits
2,093
Hello. I am using LMDE 5 (Linux mint debian edition) and I cannot seem to get my dedicated GPU working, any simple commands to locate the device and install drivers for it? What do I need to do?
 


Hello. I am using LMDE 5 (Linux mint debian edition) and I cannot seem to get my dedicated GPU working, any simple commands to locate the device and install drivers for it? What do I need to do?
Hey there, my Linux amigo! Stoked to help you get your dedicated GPU up and running on LMDE 5. To locate your GPU device, you can use the "lspci" command. Open up a terminal and type:

Code:
lspci | grep VGA

This will display the details of your GPU. Make a note of the GPU model or the driver it currently uses.

Now, to install the drivers for your GPU, you have a couple of options depending on the brand of your GPU. If you have an NVIDIA GPU, you can use the "nvidia-driver" package. Open a terminal and run:

Code:
sudo apt install nvidia-driver

This will install the recommended NVIDIA driver for your GPU. After installation, reboot your system.

If you have an AMD or Intel GPU, open a terminal and run:

Code:
sudo apt install xserver-xorg-video-amdgpu   # For AMD GPUs

Code:
sudo apt install xserver-xorg-video-intel   # For Intel GPUs

After the installation is complete, reboot your system.

Once you've got the drivers installed, you can check if the GPU is being utilized using the "glxinfo" command:

Code:
glxinfo -B | grep "OpenGL renderer"

This will display the name of the GPU if it's being used.

Hope that helps you ride the wave with your dedicated GPU, dude! Let me know if you need any more assistance.
 
Thank you, the commands worked well. The terminal told me the drivers were already installed, so then I shut down the computer, and plugged in the HDMI port into the GPU. However I got an error at boot, that said "[FAILED] Failed to start Light Display Manager"
 
Thank you, the commands worked well. The terminal told me the drivers were already installed, so then I shut down the computer, and plugged in the HDMI port into the GPU. However I got an error at boot, that said "[FAILED] Failed to start Light Display Manager"
Bummer, dude! It seems like there might be an issue with the display manager after plugging in the HDMI port into the GPU. No worries, though! Let's try and fix that error for you.

First, let's try restarting the display manager manually. When you see the error message, press Ctrl + Alt + F2 to get to a virtual terminal. Log in with your credentials, and then run the command:

Code:
sudo service lightdm restart

If that doesn't work, you can try reinstalling the display manager. In the virtual terminal, run:

Code:
sudo apt purge lightdm
Code:
sudo apt install lightdm

Once the reinstallation is complete, reboot your system and see if the error has been resolved.

If you're still having issues, it might be worth checking the logs for any specific error messages. You can find the logs in the /var/log/ directory. Look for files like "Xorg.0.log" or "lightdm.log" and review them for any error messages related to the display manager.

If you're able to find any error messages, feel free to hit me up and I'll do my best to help you troubleshoot further. Stay cool, bro!
 
Restarting lightdm didnt help, and i am too nervous to uninstall and reinstall it, i dont want to mes anything up. isnt there a simple way to simply tell the system which graphics card to use and when? i only need the GPU to run when i game. Will the gpu automatically be used if i try to game?
 
Restarting lightdm didnt help, and i am too nervous to uninstall and reinstall it, i dont want to mes anything up. isnt there a simple way to simply tell the system which graphics card to use and when? i only need the GPU to run when i game. Will the gpu automatically be used if i try to game?
Sorry to hear that restarting LightDM didn't do the trick for you, dude. No worries, though! We can definitely configure your system to use the GPU only when you're gaming.

To set up your system to use the GPU specifically for gaming, you can take advantage of a tool called "PRIME" (which stands for "PRIME Render Offload"). PRIME allows you to offload the rendering tasks to your GPU when needed.

First, we need to install the "nvidia-prime" package. Open a terminal and run:

Code:
sudo apt install nvidia-prime

This will install the necessary tools for PRIME functionality.

Once installed, you can switch between your dedicated GPU and integrated GPU using the NVIDIA X Server Settings application. You can launch it by searching for "NVIDIA X Server Settings" in the application menu or by running the following command:

Code:
nvidia-settings

In the NVIDIA X Server Settings, navigate to "PRIME Profiles". From there, you can select the desired GPU for your system. Choose Intel (or the integrated GPU) for general use and NVIDIA (or the dedicated GPU) for gaming. Apply the changes and you're good to go!

Whenever you want to game, make sure to launch the game using the NVIDIA GPU. Most games have an option to select which GPU to use in their settings. Alternatively, you can run the game using the "prime-run" command in the terminal. For example:

Code:
prime-run steam

This will run Steam using the dedicated GPU.

Remember, dude, your system will automatically use the dedicated GPU when it's necessary for gaming. For regular usage, the integrated GPU will handle everything smoothly.

Hope that helps you ride the gaming wave with your GPU, dude! Let me know if you need any further assistance.
 
can you give me those same instructions for the AMD Rx 6400, i dont use nivida, i use an AMD GPU.
 
can you give me those same instructions for the AMD Rx 6400, i dont use nivida, i use an AMD GPU.
My bad for assuming NVIDIA, dude! No worries, I've got you covered with setting up your AMD GPU for gaming.

To configure your AMD GPU for gaming, you can make use of the "DRI_PRIME" environment variable. This allows you to offload rendering tasks to your GPU when needed.

First, make sure you have the latest AMD drivers installed. You can check if they're already installed by running:

Code:
radeon --version

If the drivers are not installed, you can install them by running:

Code:
sudo apt install firmware-linux firmware-amd-graphics

Once you have the drivers installed, you can specify which GPU to use for running specific applications or games.

To launch an application or game using your AMD GPU, open a terminal and use the "DRI_PRIME" environment variable followed by the name of the application. For example:

Code:
DRI_PRIME=1 steam

This command launches Steam and uses the AMD GPU for rendering.

Alternatively, you can set the "DRI_PRIME" environment variable permanently to use the AMD GPU as the default. Open a terminal and edit the environment file using your preferred text editor:

Code:
sudo nano /etc/environment

Add the following line to the file:

Code:
DRI_PRIME=1

Save the changes and exit the editor. This will set the AMD GPU as the default for all applications unless specified otherwise with "DRI_PRIME=0".

Remember, dude, your system will automatically use the dedicated AMD GPU when you launch games or applications using the "DRI_PRIME" environment variable.

Happy gaming with your AMD GPU, dude! Let me know if you need any further assistance or if you have any other questions.
 
Hey there, my Linux amigo! Stoked to help you get your dedicated GPU up and running on LMDE 5. To locate your GPU device, you can use the "lspci" command. Open up a terminal and type:

Code:
lspci | grep VGA

This will display the details of your GPU. Make a note of the GPU model or the driver it currently uses.

Now, to install the drivers for your GPU, you have a couple of options depending on the brand of your GPU. If you have an NVIDIA GPU, you can use the "nvidia-driver" package. Open a terminal and run:

Code:
sudo apt install nvidia-driver

This will install the recommended NVIDIA driver for your GPU. After installation, reboot your system.

If you have an AMD or Intel GPU, open a terminal and run:

Code:
sudo apt install xserver-xorg-video-amdgpu   # For AMD GPUs

Code:
sudo apt install xserver-xorg-video-intel   # For Intel GPUs

After the installation is complete, reboot your system.

Once you've got the drivers installed, you can check if the GPU is being utilized using the "glxinfo" command:

Code:
glxinfo -B | grep "OpenGL renderer"

This will display the name of the GPU if it's being used.

Hope that helps you ride the wave with your dedicated GPU, dude! Let me know if you need any more assistance.
currently it says "OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)" however i want my pc to use my GPU which is an AMD RC 6400, how do i switch over to using it? Note; I just updated my Kernel to 5.18 so i can use my AMD RX 6400 GPU.
 
currently it says "OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)" however i want my pc to use my GPU which is an AMD RC 6400, how do i switch over to using it? Note; I just updated my Kernel to 5.18 so i can use my AMD RX 6400 GPU.
Hey there, my Linux amigo! If you want to switch over to using your AMD RX 6400 GPU instead of the integrated Intel graphics, I've got you covered!

To ensure that your AMD GPU is being utilized, you'll need to make sure that your system is using the appropriate drivers and the correct kernel version. Since you've already updated your kernel to 5.18, that's a great start!

Next, you'll need to install the AMDGPU drivers specifically for your AMD RX 6400 GPU. These drivers are part of the Linux kernel, so in most cases, you won't need to install anything extra.

To verify that the drivers are installed and your AMD GPU is being recognized, you can use the lspci command again:

Code:
lspci | grep VGA

You should see your AMD RX 6400 GPU listed. If it appears, that's a good sign!

Now, to make sure your system uses the AMD GPU instead of the integrated Intel graphics, you can set the environment variable DRI_PRIME.

To launch an application using the AMD GPU, open a terminal and use the DRI_PRIME environment variable followed by the name of the application. For example:

Code:
DRI_PRIME=1 glxinfo

This command runs glxinfo using the AMD GPU. You can replace glxinfo with the name of any application or game you want to run using the GPU.

Remember, dude, your system will automatically use the integrated graphics for regular use to save power, so you'll need to specify the DRI_PRIME variable for any specific applications or games that you want to run on the AMD GPU.

Hope that helps you make the switch and ride the wave with your AMD RX 6400 GPU! Let me know if you need any more assistance.
 
Hey there, my Linux amigo! If you want to switch over to using your AMD RX 6400 GPU instead of the integrated Intel graphics, I've got you covered!

To ensure that your AMD GPU is being utilized, you'll need to make sure that your system is using the appropriate drivers and the correct kernel version. Since you've already updated your kernel to 5.18, that's a great start!

Next, you'll need to install the AMDGPU drivers specifically for your AMD RX 6400 GPU. These drivers are part of the Linux kernel, so in most cases, you won't need to install anything extra.

To verify that the drivers are installed and your AMD GPU is being recognized, you can use the lspci command again:

Code:
lspci | grep VGA

You should see your AMD RX 6400 GPU listed. If it appears, that's a good sign!

Now, to make sure your system uses the AMD GPU instead of the integrated Intel graphics, you can set the environment variable DRI_PRIME.

To launch an application using the AMD GPU, open a terminal and use the DRI_PRIME environment variable followed by the name of the application. For example:

Code:
DRI_PRIME=1 glxinfo

This command runs glxinfo using the AMD GPU. You can replace glxinfo with the name of any application or game you want to run using the GPU.

Remember, dude, your system will automatically use the integrated graphics for regular use to save power, so you'll need to specify the DRI_PRIME variable for any specific applications or games that you want to run on the AMD GPU.

Hope that helps you make the switch and ride the wave with your AMD RX 6400 GPU! Let me know if you need any more assistance.
when I did the command
"lspci | grep VGA" it said
"00:02.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630]
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 743f (rev c7)" unless my AMD RX 6400 is the "AMD device 743f" I don't think its detected.
 
when I did the command
"lspci | grep VGA" it said
"00:02.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630]
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 743f (rev c7)" unless my AMD RX 6400 is the "AMD device 743f" I don't think its detected.
My bad, dude! It looks like your AMD RX 6400 GPU is not being detected properly. In that case, we need to make sure the necessary drivers are installed for your AMD GPU.

To install the drivers for your AMD RX 6400 GPU, you can use the open-source AMDGPU driver, which is included in the Linux kernel. However, since the RX 6400 is a newer GPU, you might need to update the kernel to a more recent version to ensure compatibility.

First, let's update your system to the latest packages by running the following commands:

Code:
sudo apt update
sudo apt upgrade

Once your system is up to date, let's proceed with installing a more recent kernel version that includes support for your AMD RX 6400 GPU.

You can check the available kernel versions by running:

Code:
apt search linux-image

Look for a kernel version that is higher than 5.18, if possible. For example, if you see a version like "linux-image-5.14.0-26-generic", you can install it by running:

Code:
sudo apt install linux-image-5.14.0-26-generic

Replace "linux-image-5.14.0-26-generic" with the appropriate version you found.

After the kernel installation is complete, reboot your system and check if your AMD RX 6400 GPU is detected properly by running:

Code:
lspci | grep VGA

If it displays your AMD RX 6400 GPU correctly, that's great progress!

If your GPU is now detected, you can proceed to install the AMDGPU drivers specifically for your AMD RX 6400 GPU by running:

Code:
sudo apt install xserver-xorg-video-amdgpu

Once the installation is complete, reboot your system and check if you can now use the AMD RX 6400 GPU.

If, after following these steps, your AMD RX 6400 GPU still isn't detected or functioning properly, it's possible that additional steps might be required. You may need to consult the official AMD website or the Linux community for further guidance on installing drivers specifically for the RX 6400 GPU.

Good luck, my friend! Let me know if you need any further assistance along the way.
 
i had to install the 6.1 stable linux kernel for debian and update the GPU drivers but now my system identifies the GPU, now how do i tell which GPU my system is using and how do i tell it to use my epic beefy AMD RX 6400 GPU instead of the built in intel GPU?
 
i had to install the 6.1 stable linux kernel for debian and update the GPU drivers but now my system identifies the GPU, now how do i tell which GPU my system is using and how do i tell it to use my epic beefy AMD RX 6400 GPU instead of the built in intel GPU?
Awesome, dude! I'm glad to hear that you were able to get your AMD RX 6400 GPU recognized by your system. Now, let's make sure it's being utilized and set it as the default GPU for your system.

To check which GPU your system is currently using, you can run the following command:

Code:
glxinfo | grep "OpenGL renderer"

This command will display the GPU that is currently being used for rendering. If it shows your AMD RX 6400 GPU, then you're good to go!

If it shows your Intel GPU (something like "Mesa Intel(R) UHD Graphics 630"), don't worry, we can change it. To set your AMD RX 6400 GPU as the default, you'll need to configure the Xorg display server.

Open a terminal and create a new Xorg configuration file using the following command:

Code:
sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf

In the text editor, add the following lines to the file:

Code:
Section "Device"
   Identifier "AMD"
   Driver "amdgpu"
   Option "DRI" "3"
EndSection

Save the changes (Ctrl + O) and exit the editor (Ctrl + X).

Afterwards, reboot your system for the changes to take effect.

Once your system has rebooted, check the GPU being used again with the command:

Code:
glxinfo | grep "OpenGL renderer"

If it now displays your AMD RX 6400 GPU, congratulations, my friend - you're now using your beefy AMD GPU as the default!

Keep in mind that the system will automatically utilize the GPU for applications and games that require its power. However, if you want to force an application to use the AMD GPU, you can still use the
Code:
DRI_PRIME
environment variable, as I mentioned in a previous response:

Code:
DRI_PRIME=1 <application-name>

Just replace
Code:
<application-name>
with the name of the application you want to run.

Enjoy the power of your AMD RX 6400 GPU, dude! Let me know if you have any more questions or need further assistance.
 
Awesome, dude! I'm glad to hear that you were able to get your AMD RX 6400 GPU recognized by your system. Now, let's make sure it's being utilized and set it as the default GPU for your system.

To check which GPU your system is currently using, you can run the following command:

Code:
glxinfo | grep "OpenGL renderer"

This command will display the GPU that is currently being used for rendering. If it shows your AMD RX 6400 GPU, then you're good to go!

If it shows your Intel GPU (something like "Mesa Intel(R) UHD Graphics 630"), don't worry, we can change it. To set your AMD RX 6400 GPU as the default, you'll need to configure the Xorg display server.

Open a terminal and create a new Xorg configuration file using the following command:

Code:
sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf

In the text editor, add the following lines to the file:

Code:
Section "Device"
   Identifier "AMD"
   Driver "amdgpu"
   Option "DRI" "3"
EndSection

Save the changes (Ctrl + O) and exit the editor (Ctrl + X).

Afterwards, reboot your system for the changes to take effect.

Once your system has rebooted, check the GPU being used again with the command:

Code:
glxinfo | grep "OpenGL renderer"

If it now displays your AMD RX 6400 GPU, congratulations, my friend - you're now using your beefy AMD GPU as the default!

Keep in mind that the system will automatically utilize the GPU for applications and games that require its power. However, if you want to force an application to use the AMD GPU, you can still use the
Code:
DRI_PRIME
environment variable, as I mentioned in a previous response:

Code:
DRI_PRIME=1 <application-name>

Just replace
Code:
<application-name>
with the name of the application you want to run.

Enjoy the power of your AMD RX 6400 GPU, dude! Let me know if you have any more questions or need further assistance.
hello tuxbot, It's me cataclysmicgentleman but on alt because my computer isnt working now. I ran the code you gave:

Section "Device"
Identifier "AMD"
Driver "amdgpu"
Option "DRI" "3"
EndSection

however now my system isn't able to boot into the OS and it gets stuck on [FAILED] Failed to start Light Display Manager
 
hello tuxbot, It's me cataclysmicgentleman but on alt because my computer isnt working now. I ran the code you gave:

Section "Device"
Identifier "AMD"
Driver "amdgpu"
Option "DRI" "3"
EndSection

however now my system isn't able to boot into the OS and it gets stuck on [FAILED] Failed to start Light Display Manager
Hey there, CataclysmicGentleman! Sorry to hear that your computer isn't working properly after making those changes. Let's try to troubleshoot the issue and get your system back up and running.

To resolve the boot issue, we'll need to remove the configuration file we created earlier.

1. Boot your system into recovery mode. You can usually access the recovery mode by pressing the Esc or Shift key during boot, or by selecting the advanced boot options from the GRUB screen.

2. Once you're in the recovery mode, choose the option to open a root shell or access the command line.

3. Next, navigate to the location of the configuration file using the following command:

Code:
shell
   cd /etc/X11/xorg.conf.d/

4. List the files in the directory to make sure you're in the right place:

Code:
shell
   ls

This should display the configuration files in the directory.

5. Remove the problematic configuration file using the following command:

Code:
shell
   sudo rm 20-amdgpu.conf

6. Reboot your system using the following command:

Code:
shell
   sudo reboot

Your system should now boot up properly without getting stuck at the "Failed to start Light Display Manager" error.

If you need to configure your system to use the AMD RX 6400 GPU again, we can explore other methods. However, it's important to note that modifying Xorg configuration files can be complex, and it's always advisable to create a backup or make a note of the changes you're making.

If you encounter any further issues or have any more questions, feel free to reach out!
 
Hey there, CataclysmicGentleman! Sorry to hear that your computer isn't working properly after making those changes. Let's try to troubleshoot the issue and get your system back up and running.

To resolve the boot issue, we'll need to remove the configuration file we created earlier.

1. Boot your system into recovery mode. You can usually access the recovery mode by pressing the Esc or Shift key during boot, or by selecting the advanced boot options from the GRUB screen.

2. Once you're in the recovery mode, choose the option to open a root shell or access the command line.

3. Next, navigate to the location of the configuration file using the following command:

Code:
shell
   cd /etc/X11/xorg.conf.d/

4. List the files in the directory to make sure you're in the right place:

Code:
shell
   ls

This should display the configuration files in the directory.

5. Remove the problematic configuration file using the following command:

Code:
shell
   sudo rm 20-amdgpu.conf

6. Reboot your system using the following command:

Code:
shell
   sudo reboot

Your system should now boot up properly without getting stuck at the "Failed to start Light Display Manager" error.

If you need to configure your system to use the AMD RX 6400 GPU again, we can explore other methods. However, it's important to note that modifying Xorg configuration files can be complex, and it's always advisable to create a backup or make a note of the changes you're making.

If you encounter any further issues or have any more questions, feel free to reach out!
I tried to enter recovery mode but it said "cannot open access to console, the root account is locked."
 
I tried to enter recovery mode but it said "cannot open access to console, the root account is locked."
Hey there, CataclysmicGentleman! If you're unable to access recovery mode due to the root account being locked, we can try an alternative method to fix the boot issue. Let's give it a shot!

1. Restart your computer and wait for the bootloader menu to appear. This is usually the GRUB menu.

2. Highlight the entry for your Linux distribution and press the "e" key on your keyboard. This will allow you to edit the boot parameters for that entry.

3. Look for the line that starts with "linux" or "linuxefi" and contains the boot parameters. Move the cursor to the end of that line.

4. Add the following parameter at the end of the line:

Code:
systemd.unit=multi-user.target

This parameter will boot your system into multi-user mode instead of the graphical display manager.

5. Press Ctrl + X or F10 to boot with the modified parameters.

6. Once your system has booted into multi-user mode, open a terminal and remove the configuration file we created earlier:

Code:
sudo rm /etc/X11/xorg.conf.d/20-amdgpu.conf

7. Reboot your system:

Code:
sudo reboot

Your system should now boot up without getting stuck at the "Failed to start Light Display Manager" error.

Please note that by booting into multi-user mode, you won't have a graphical interface, and you'll need to use the terminal for any further commands. If you need to revert back to the graphical display manager, we can explore other options.

If you encounter any further issues or have any more questions, feel free to reach out!
 
Hey there, CataclysmicGentleman! If you're unable to access recovery mode due to the root account being locked, we can try an alternative method to fix the boot issue. Let's give it a shot!

1. Restart your computer and wait for the bootloader menu to appear. This is usually the GRUB menu.

2. Highlight the entry for your Linux distribution and press the "e" key on your keyboard. This will allow you to edit the boot parameters for that entry.

3. Look for the line that starts with "linux" or "linuxefi" and contains the boot parameters. Move the cursor to the end of that line.

4. Add the following parameter at the end of the line:

Code:
systemd.unit=multi-user.target

This parameter will boot your system into multi-user mode instead of the graphical display manager.

5. Press Ctrl + X or F10 to boot with the modified parameters.

6. Once your system has booted into multi-user mode, open a terminal and remove the configuration file we created earlier:

Code:
sudo rm /etc/X11/xorg.conf.d/20-amdgpu.conf

7. Reboot your system:

Code:
sudo reboot

Your system should now boot up without getting stuck at the "Failed to start Light Display Manager" error.

Please note that by booting into multi-user mode, you won't have a graphical interface, and you'll need to use the terminal for any further commands. If you need to revert back to the graphical display manager, we can explore other options.

If you encounter any further issues or have any more questions, feel free to reach out!
this is too complicated I dunno what im doing
 
this is too complicated I dunno what im doing
Hey there, my apologies for making it complicated. I understand that troubleshooting can be overwhelming, especially if you're not familiar with the process. No worries, I'm here to help simplify things for you.

Let's try a different approach to fix the boot issue without going into recovery mode or modifying configuration files. Here's what you can do:

1. Start your computer and wait for the bootloader menu to appear. This is usually the GRUB menu.

2. Select your Linux distribution from the menu and press the "e" key on your keyboard to edit the boot parameters.

3. Look for the line that starts with "linux" or "linuxefi" and contains the boot parameters. Check if there is a parameter similar to "nomodeset" or "quiet splash".

4. Remove "nomodeset" or "quiet splash" from the line, or simply comment them out by adding a "#" symbol in front of those parameters.

5. Press Ctrl + X or F10 to boot with the modified parameters.

By removing or commenting out the "nomodeset" or "quiet splash" parameters, you're allowing the system to load the appropriate graphics drivers and display manager.

Give this a try, and hopefully, your system will be able to boot up without any issues. If the problem persists, let me know, and we'll figure out the next troubleshooting steps together.
 

Members online


Latest posts

Top