📜 ⬆️ ⬇️

Intel / AMD Switchable graphics [Ubuntu 12.04 - 12.10]

Good day!

Finally it turned out to achieve adequately working so-called. "Hybrid graphics" on Ubuntu 12.04 LTS (true for 12.10, also probably for this "manual" will work for other Debian-based systems)

There are solutions on the net, but to be honest, none of them helped me, as I have not tried.
For example, there is a year-old manual from Alexislavie on the “Ubuntu Forums” - to be honest, this method “killed” the system 3 times in a row. Most likely the problem is in the xorg update offered there. And the driver there is given at the moment is very old. Although this instruction is the closest to the truth. The method I have described is literally a bit different :-) But it works.

So, what ultimately helped to succeed:
')
1) Installed (for the purity of the experiment - from scratch) Ubuntu 12.04 LTS (x64) with all updates until May 10, 2013.

2) Next, we take the driver on the manufacturer’s website (in my case, the last one available for my VK line is amd-catalyst-13.4-linux-x86.x86_64.run ).

3) Install the missing packages:
sudo apt-get install dpkg-dev execstack debhelper dh-modaliases lib32gcc1 libc6-i386 dkms 

4) Next, perform: (Thanks to the instructions Alexislavie!)
  cd /usr ; sudo ln -svT lib /usr/lib64 

5) We give the rights to execute the downloaded .run file:
 chmod +x amd-catalyst-13.4-linux-x86.x86_64.run 

6) Create packages:
 sudo sh ./amd-catalyst-13.4-linux-x86.x86_64.run --buildpkg Ubuntu/precise 

7) Install
 sudo dpkg -i fglrx*.deb 

8) Configure Xserver:
 sudo aticonfig --initial -f 

9) Reboot.

10) Check the switching of video cards:
 sudo aticonfig --px-dgpu 

11) Reboot.

12) Rule config:
 gksu gedit /etc/X11/Xsession.d/10fglrx 

13) Add the following directory to LIBGL_DRIVERS_PATH : / usr / lib / x86_64-linux-gnu / dri / (delimiter " : ").

14) Reboot. Now on the discrete VC,

Switching VK is performed by the following commands
 aticonfig --pxl # List current activated GPU sudo aticonfig --px-dgpu # Activate discrete GPU (High-Performance mode) sudo aticonfig --px-igpu # Activate integrated GPU (Power-Saving mode) 

In order for the changes to take effect, you need to restart Xserver! Unfortunately there is no "hot" solution :-(

For my convenience, I added a couple of aliases to .bashrc.
 alias gpuamd='sudo aticonfig —px-dgpu && sudo pkill X' alias gpuint='sudo aticonfig —px-igpu && sudo pkill X' 


You can check the rendered example, for example:
 glxinfo | egrep render 


Yes, I almost forgot, DO NOT use the appropriate item (switching VC) in the CCC menu!
If at some stage the system does not boot, dying off with a “black screen” - go to the console, delete (or just restore the backup) xorg.conf and reboot.

If you already had fglrx packages installed, you should definitely clean the system from them, for example:
 sudo apt-get purge fglrx* 


I hope this will help someone :-)

In my case, a trace is used. iron:
CPU: Intel Core i5 2430m (Intel HD3000 GPU 0x0116)
VGA: AMD Radeon HD 6650m 2GB GDDR5

PS: At the expense of Ubuntu 12.10 - on the manufacturer's website declared support for 12.10, although in the "beta" stage!
PPS: For the killed system and / or data loss, if something went "wrong", I can not vouch. All at your own risk.

Source: https://habr.com/ru/post/179279/


All Articles