PDA

View Full Version : [GUIDE} G750JS Linux Fedora 21 With NVidia Optimus



aoryx
04-18-2015, 07:16 AM
I looked everywhere, trying to I install Nvidia drivers and didn't find a good tutorial that works, and after days of pain, I finally got it working and decided to share this.
So lets start,
My setup:
Asus G750JS;870m, Broadcom WIFI,250Gbs SSD, 750GBS Hdd.
48477


Download and install fedora workstation. For Linux newbies Id recommend the following partitioning scheme
/ on ssd >=25gbs for your data and apps
swap on ssd>=6gbs
/boot on hdd200mbs so u can turn boot loader on and off from bios without missing windows efis boot on ssd
/boot/efi soyoud have an ufi boot.


After installation, you will boot into fedora and unfortunately first problem to tackle is the wifi., our broadcom wifi is not natively supported.

1) First Broadcom driver installation
1.a) Gain internet access via ethernet or usb wifi.
1.a) First update the kernel to 3.19 which we will need to compile and build our drivers.

sudo yum install kernel-devel-3.19.3-200.fc21.x86_64 kernel-modules-3.19.3-200.fc21.x86_64 kernel-3.19.3-200.fc21.x86_64 kernel-headers-3.19.3-200.fc21.x86_64 kernel-core-3.19.3-200.fc21.x86_64

1.b) After update restart and remove the old kernel

yum uninstall kernel-3.17.4-301.fc21.x86_64 (http://mirror.sfo12.us.leaseweb.net/fedora/linux/releases/21/Everything/x86_64/os/Packages/k/kernel-3.17.4-301.fc21.x86_64.rpm) kernel-core-3.17.4-301.fc21.x86_64 (http://mirror.sfo12.us.leaseweb.net/fedora/linux/releases/21/Everything/x86_64/os/Packages/k/kernel-core-3.17.4-301.fc21.x86_64.rpm) kernel-devel-3.17.4-301.fc21.x86_64 (http://mirror.sfo12.us.leaseweb.net/fedora/linux/releases/21/Everything/x86_64/os/Packages/k/kernel-devel-3.17.4-301.fc21.x86_64.rpm) kernel-headers-3.17.4-301.fc21.x86_64 (http://mirror.sfo12.us.leaseweb.net/fedora/linux/releases/21/Everything/x86_64/os/Packages/k/kernel-headers-3.17.4-301.fc21.x86_64.rpm)


1.c) Install the repos and the wifi driver

sudo rpm Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-21.noarch.rpm (http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-21.noarch.rpm)http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-21.noarch.rpm (http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-21.noarch.rpm)


sudo yum install broadcom-wl-6.30.223.248-2.fc21 (http://download1.rpmfusion.org/nonfree/fedora/releases/21/Everything/x86_64/os/repoview/broadcom-wl.html) kmod-wl-6.30.223.248-5.fc21 (http://download1.rpmfusion.org/nonfree/fedora/releases/21/Everything/x86_64/os/repoview/kmod-wl.html) akmod-wl (http://download1.rpmfusion.org/nonfree/fedora/updates/21/x86_64/repoview/akmod-wl.html)kmod-wl-3.19.2-200.fc21.x86_64 (http://download1.rpmfusion.org/nonfree/fedora/updates/21/x86_64/repoview/kmod-wl-3.19.2-200.fc21.x86_64.html)

1.d)Reboot and disable secure boot since the wifi kernel mod isnot signed
You should have wifi running

Before the Nvidia drivers, please do a full system update, Id recommend that now so you would avoid breaking the nvnida drivers.

sudoyum update


Now the fun part, At this point id recommend making a backup with clonzilla


Because our muxless Optimus laptop, the internal display is driven by the integrated GPU. And after installing the driver, Xserver will use Nvidia GPU and will fail to output to out display and you will end up with error, no screen found!,
It's important that the X server not be configured to use the NVIDIA X driver after the driver is installed. Instead, the correct driver for the integrated GPU should be used. Often, and only use Nvidia on command to process graphics and pass it to the internal GPU to display it.


2.a) Install dependencies and the driver

yum -y install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora21/noarch/bumblebee-release-1.2-1.noarch.rpm (http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora21/noarch/bumblebee-release-1.2-1.noarch.rpm)http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee-nonfree/fedora21/noarch/bumblebee-nonfree-release-1.2-1.noarch.rpm (http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee-nonfree/fedora21/noarch/bumblebee-nonfree-release-1.2-1.noarch.rpm)


yum-config-manager--add-repo=http://negativo17.org/repos/fedora-nvidia.repo

yum install -y libbsd-devel libbsd glibc-devel libX11-devel help2man autoconf gittar glib2 glib2-devel automake gcc gtk2-devel dkms gnome-desktop (http://www.rpmfind.net//linux/RPM/sourceforge/r/ra/ramonelinux/Rel_0.99/releases/x86_64/packages/gnome-desktop-3.12.2-1.ram0.99.x86_64.html) VirtualGL.i686 cuda cuda-devel cuda-cublas cuda-driver acpica-tools


yum install bbswitch bumblebee bumblebee-nvidia primus primus.i686

bumblebee and bbswitch manage optimus functionality, Id recommend you read about them

aoryx
04-18-2015, 07:16 AM
iii) Edit [COLOR="#FF0000"]/etx/bumblebee/bumblebee-nvidia[ (http://pastebin.com/8T8RTY7T)/COLOR]


I cant edit this post since yesterday

You don't have permission to access "http://rog.asus.com/forum/editpost.php?" on this server.

Reference #18.a329d242.1429372865.2522e2d

aoryx
04-18-2015, 07:25 AM
The following steps are extremely important:

2.b) Edit these files to have the integrated gpu handle display
i) In/etc/X11/init/xinitrc
add

xrandr--setprovideroutputsource Intel NVIDIA-0[/CODE][CODE]
xrandr--auto

ii) Edit /etx/bumblebee/xorg.conf.nvidia
to loox exaclty like

Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:01:00:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "intel"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection

aoryx
04-18-2015, 07:30 AM
reserved!

@mods I keep getting:

You don't have permission to access "http://rog.asus.com/forum/editpost.php?" on this server.

Reference #18.a329d242.1429372865.2522e2d

_
04-22-2015, 01:37 AM
We're checking the issue regarding your post edit.