Sunday, February 12, 2017

[Sequel] Switching graphics on MSI GP62 6QE Leopard Pro in Fedora 25

It seems that none of the linux distributions are stable yet, on this particular piece of hardware and my earlier blog post got a bit old. So, I've decided to post a new one.
This time I have created a github repository to smoothen things up. I encourage you people to use it as a starting point and make/suggest necessary changes. This is a pretty straighforward method of setting things up but the important point is that it works. :)

So, you can start of by cloning the repository:

Then follow the steps given in readme.md. I'll repost it for you.

Prequisites:

1. You need to have make, git, dkms and kernel-devel installed.
# dnf update
# dnf install make git dkms kernel-devel
# reboot


2. You will need to clone the bbswitch git repository.
# git clone https://github.com/Bumblebee-Project/bbswitch
3. You need to install the bbswitch module. I'd recommend to install it in such a way that it survives kernel upgrades and hence saves you from the trouble of having to set it up everytime you update your system. Change your current directory to bbswitch directory and execute the following command.
# make -f Makefile.dkms
# reboot

4. You need to set up your system to have passwordless sudo access.
# sudo visudo
Then move to line where it says:
# %wheel ALL=(ALL) ALL
Comment out that line and add the following lines at the end of the file (or anywhere you want :-P)
# %wheel ALL=(ALL) NOPASSWD: ALL
# YOUR_USERNAME ALL=(ALL) NOPASSWD: ALL
Replace YOUR_USERNAME with your username.

Further Instructions:

Now that you're done with prequisites let's move ahead and run the install script (assuming that you've already cloned or downloaded the files and changed your current directory to this one.)
# chmod 755 install.sh
# ./install.sh
Edit: I use xfce as my window manager in fedora 25. So, I can't guarantee that the code will work with other Window managers. For that you need to check where the autostart configuration file is stored. (The file/folder related to Session and Autostart Applications.

Update 1: Here's yet another sequel: https://bumblebeesky.tumblr.com/post/161314575892/setting-up-ubuntu-1704-on-a-laptop-with-hybrid

No comments:

Post a Comment