Linux Dual Graphics problem ...

Source: Internet
Author: User

The test machine is Acer 4750g, gt540m

Transfer from http://www.linuxidc.com/Linux/2012-07/66193.htm

and http://duxyng.wordpress.com/2012/01/26/finally-working-nvidia-optimus-on-fedora-16/

Some places have made minor changes to the situation I have encountered, a little clearer.

Fedora 17 under Nvidia dual graphics closed source driver installation, execute command lspci|grap VGA

See if you can identify two card requires, no, don't install it.

Some Nvidia graphics cards will be identified as errors, such as my gt540m is recognized as gt555m, it's okay to recognize the line

1. Add Rpmfusion Source

32-bit Yum Localinstall--nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-branched.noarch.rpm http:// download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-branched.noarch.rpm # # OR # # 64 bit Yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/ rpmfusion-free-release-branched.noarch.rpmYum localinstall --nogpgcheck http:// download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-branched.noarch.rpm 

2. Install some necessary components

sudo yum install-y libbsd-devel libbsd glibc-devel libx11-devel help2man autoconf git tar glib2 glib2-devel kernel-devel Kernel-headers automake gcc dkms

3. Install NVIDIA graphics driver

sudo yum install libbsd-develsudo yum install akmod-nvidiasudo yum install dkms

After installing Akmod-nvidia, remove/etc/x11/xorg.conf,

/etc/x11/xorg.conf.d/00-nvidia.conf

and/etc/modprobe.d/blacklist-nouveau.conf

(Can be deleted using the command gvfs-trash/etc/x11/xorg.conf)

Enable the system to use the Nouveau driver by default

Remove the parameters of the current kernel from/etc/grub2.cfg "nouveau.modeset=0 Rd.driver.blacklist=nouveau"

5. Download the latest version of Bbswitch

Https://github.com/Bumblebee-Project/bbswitch/downloads

6. Compiling and installing Bbswitch via dkms

Go to download Bbswitch directory

Tar xvzf bbswitch-0.4.2.tar.gzsudo cp-rv bbswitch-0.4.2/usr/srcln-s/usr/src/bbswitch-0.4.2/dkms/dkms.conf/usr/src/ Bbswitch-0.4.2/dkms.confsudo dkms add-m bbswitch-v 0.4.2sudo dkms build-m bbswitch-v 0.4.2sudo dkms install-m BBSWITC H-v 0.4.2

7. Download and install the latest VIRTUALGL RPM

Address: Http://www.virtualgl.org/Downloads/VirtualGL

I am a 32-bit, 64-bit download of 64-bit files

32 Guests

sudo yum localinstall virtualgl-2.3.1.i386.rpm

64 guests

sudo yum localinstall virtualgl-2.3.1.x86_64.rpm

9. Compiling and installing Bumblebee

Tar xvzf bumblebee-3.0.tar.gzcd bumblebee-3.0./configure--prefix=/usr--sysconfdir=/etc make sudo make install sudo cp SC Ripts/systemd/bumblebeed.service/lib/systemd/system

Edit the/lib/systemd/system/bumblebeed.service so that its seventh line becomes:

Execstart=/usr/sbin/bumblebeed--config/etc/bumblebee/bumblebee.conf

Edit/etc/bumblebee/bumblebee.conf

Find driver=

Into

Driver=nvidia

In the [Driver-nvidia] section:

Kerneldriver=nvidia

Edit/etc/bumblebee/xorg.conf.nvidia

Add at the beginning

32 Guests

section "Files"   modulepath "/usr/lib/xorg/modules/extensions/nvidia"   Modulepath "/usr/lib/xorg/modules" Endsection

64 guests

section "Files"   modulepath "/usr/lib64/xorg/modules/extensions/nvidia"   Modulepath "/usr/lib64/xorg/ Modules "Endsection

Add at the end:

Section "screen" Identifier "Screen1" Device "Device1" endsection

10. Add the Bumblebee user group and add yourself to the user group

sudo groupadd bumblebeesudo usermod-a-G Bumblebee $USER

11. Start the Bumblebee service

sudo systemctl enable Bumblebeed.servicesudo systemctl start Bumblebeed.service

12. Running the program with NVIDIA graphics card

Optirun xxx

For example

Optirun Glxgears

13. Correction of some files, preferably after each yum update

1.su-c "/ETC/LD.SO.CONF.D/NVIDIA-LIB64.CONF; Ldconfig "

2.sudo mv/usr/lib64/xorg/modules/extensions/nvidia/usr/lib64/xorg

3. Set "Librarypath=/usr/lib64/nvidia" in/etc/bumblebee/bumblebee.conf

4. Change Modulepath to "/usr/lib64/xorg/nvidia" in/etc/bumblebee/xorg.conf.nvidia

5. Restart

Installation drive

Http://rpmfusion.org/Howto/nVidia#Installing_the_drivers

Installation

Try Bumblebee.


Http://bumblebee-project.org/index.html


Https://fedoraproject.org/wiki/Bumblebee


If the above configuration is not, refer to this Http://techies.ncsu.edu/wiki/bumblebee

Add source

Yum-y--nogpgcheck Install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/rhel7/noarch/ bumblebee-release-1.0-1.noarch.rpm

Yum-y--nogpgcheck Install http://mirrors.hustunique.com/epel/7/x86_64/e/epel-release-7-1.noarch.rpm

Yum-y--nogpgcheck Install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee-nonfree/rhel7/noarch/ bumblebee-nonfree-release-1.0-1.noarch.rpm

Yum-y Install bumblebee Bbswitch bumblebee-nvidia Primus

Restart your computer

Linux Dual Graphics problem ...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.