Disabling Graphic Driver – Linux/Fedora


Hello all, I was facing a trouble with the graphic driver in Linux for the past few months. When I did the installation as per the previous post in my blog, there are some issues like missing library packages, unable to install the package etc,. After searching the net for a while, I found out the following solution for the graphic driver problems which will completely turn off the graphic card while we work in Linux based systems. This is the best way I found out by which I can work on Linux for hours together with out any battery drain  or over heating problems.

In the following steps we will be disabling the graphic card temporarily by making changes in the kernel files. For that just follow the instructions given here.

1) The changes which we will make to the kernel needs root access, so open a terminal as a root user.

2) Navigate to the vgaswitcheroo folder placed in the kernel.

cd /sys/kernel/debug/vgaswitcheroo

In the vgaswitcheroo folder you can see a file called switch which controls the GPU of your system. When you don’t change any thing of that file you will get some thing like this when you open the switch file:

0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Pwr:0000:01:00.0

Here in this file, the first one corresponds to the Intel GPU and the second one is the external graphic card which is a problem if we don’t have the graphic driver installed in Linux/Fedora. If we turn off the power supply for the graphic card then it is not at all a problem when working in Linux/Fedora

3) For turning off the graphic card just change the value of the switch file by executing the following command in the terminal as a root.

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

After doing this you can see the change in the value of the switch file to:

0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Off:0000:01:00.0

Now wait for a few minutes and see the battery status. You can see the change in the amount of backup time.

Permanent Solution using the above procedure

If you follow the above procedure, you need to do the above process every time. If you think that is an un-necessary task every time when you log in to the system, just follow the below procedure. 🙂

Open a terminal as a root and just paste the following commands in the terminal:

cd 
gedit .bashrc

Now .bashrc file will open and just copy the following to the .bashrc file.

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

Now, just save the file and exit. The thing what you did just now is you have added the above line to the .bashrc file which will be loaded on the system boot-up. This will directly execute the above command when the system files get loaded.

That’s it, I think this will resolve the problem of the graphic card. 🙂

Just please give me the feedback regarding the post in the comments.

Hope this helps. 🙂