Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure dual graphics cards in Linux system

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "Linux system how to configure dual graphics card", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "Linux system how to configure dual graphics card" this article.

As we all know, since the advent of high-performance independent GPUs, many portable computers have adopted a dual graphics card design: energy-efficient core GPUs are used to render regular desktop environments, while high-performance stand-alone GPUs are responsible for rendering high-demand applications. This technology is called Optimus smart graphics card switching. But one of the reasons why Nvidia is often criticized by Linux users is that it has not been interested in the Linux platform, not only without Optimus support under Linux, but also slow driver updates.

This means that Linux users must always use core graphics cards or stand-alone graphics cards throughout a session; using core graphics cards all the time can be very energy efficient, but Hold can't live with some applications (for example, many giant 3D games have been logged on to the Linux platform through Steam), and using stand-alone graphics cards all the time will consume a lot of power, even if you are doing very simple work.

Fortunately, there is a famous third-party project on the Linux platform called Bumblebee (bumblebee). The purpose of this project is to provide support for Linux similar to Optimus technology. The project was not well known before, but a version of its installation script install.sh typed in an extra space, mistakenly deleting the entire / usr of all users, an event that quickly made it famous and gained a lot of technical support. It's a blessing in disguise to think so.

1. Configure bumblebee

All the author's instructions correspond to the 64-bit version of Arch Linux.

Stop gossiping and now officially configure our dual graphics card. First, install Nvidia's official graphics card driver:

Sudo pacman-S nvidia

Choose a driver that matches your current operating system, such as the author's Linux 4.9 kernel, I should choose a package with the word linux49. While waiting for the installation to complete, you should see similar output:

Then install the bumblebee package:

Sudo pacman-S bumblebee

After the installation is complete, remember to check that the current user is in the user group "bumblebee". If not, please add it manually. Restart the computer so that the Nvidia driver is loaded correctly and the bumblebee daemon starts.

Second, test bumblebee

Bumblebee provides an instruction optirun to enable the user to render a specified application using a stand-alone video card while the session is still rendered with an integrated graphics card. We use MC (Minecraft, my World) with a light shadow and parallax map material package to check the running status of the independent graphics card.

First of all, we started MC in the usual way, and I used the HMCL initiator:

The following is the resource package and light and shadow that compare the configuration of eating:

As can be seen from the second screenshot, MC identified our graphics card model: Intel HD Graphics 5500, which is my integrated graphics card.

Let's build a new world and go in and take a look:

This does not render correctly at all. Let's use the optirun directive to execute MC:

Enter the Light and Shadow option and find that MC has correctly identified our graphics card:

We enter a world:

Yeah. The light and shadow are working properly, and the frame rate is very high, which means that the program must be rendered by a high-performance independent graphics card.

If you can use the optirun command normally, then your configuration is complete.

Third, pay attention

If you encounter a situation where using the optirun instruction will crash the entire session, there are two places you need to check:

First, whether you have installed the correct nvidia package

Second, try to compile yourself using the code from the latest bumblebee repository, rather than using the version provided by the distribution repository.

The Bumblebee project is not compatible with Vulkan (the new graphical interface), which means that if you want to experience Vulkan, you must have the entire session rendered with a separate graphics card.

Under Steam, you can specify that the game runs on a stand-alone graphics card by changing the game's advanced startup option to: optirun% command%.

Although Bumblebee has many drawbacks, including the inability to support Vulkan, for Linux users, it is the only way to implement Optimus technology on Linux. I hope this tutorial will be helpful to some Linux users.

The above is all the contents of the article "how to configure dual graphics cards in Linux system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report