I have bumblebee working on my mageia 1 installation.
NB: bumblebee is an nvidia-optimus controller for linux, allowing you to run apps on your nvidia card, instead of the intell one. see
https://github.com/Bumblebee-ProjectNOTE THIS WILL DISABLE YOUR 3D EFFECTS FOR YOUR INTEL CARD.
To re-enable 3d on the intel card, use Mageia Control Center Choose: Hardware -> Set up the graphical server, which will break the nvidia 3d.
Steps (thanks to bumblebee team, and Jaron Vietor who posted this
http://forum.mandriva.com/en/viewtopic.php?f=35&t=135018#p850742 on the mandriva forums)
NB: You will need;
- to be able to edit files as root user
- to install git (details below, you may skip this if you know how to install bumblebee without it)
- to install virtualGL (details below)
Notes on code (below) (Read this only if your not used to using terminal or konsole)
- All non gui code is bash script used in a linux terminal like konsole.
- To open a terminal: Find "konsole" in your applications launcher
- To run commands as root user type: su [enter], and enter you root password. (to leave root user mode type: exit [enter].
- Code here can then be simply copied and pasted into your terminal
-0: Backup your working xorg.conf file
- As root:
- Code: Select all
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.intel
-1: Install the nvidia drivers using the mageia configuration tool. (You may need to setup you Mageia repositories)
- Open: Mageia Control Center
- Choose: Hardware -> Set up the graphical server
- Click: Graphic Card and select Nvidia -> GeForce model [GeForce 400 series and later, or GeForce 6100 to GeForce 360]
- You should get a "There is a proprietary driver availabe... Do you wish to use it?" Select Yes
- Allow Mageia to install all the drivers, and select ok to the settings screen.
- DO NOT TEST!
- Select Quit, and Yes to "Keep the changes?"
!!! Do NOT restart your computer !!!
-2: Disable nvidia driver (it will not work at this stage)
- Copy the new xorg.conf file and save as xorg.conf.nvidia
As root:
- Code: Select all
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia
- Copy old conf back as main
As root:
- Code: Select all
cp /etc/X11/xorg.conf.old /etc/X11/xorg.conf
RESTART YOUR COMPUTER
-3 Install virtualgl
- Download virtual:
http://www.virtualgl.org I used
http://sourceforge.net/projects/virtualgl/files/VirtualGL/2.2.1/ and chose VirtualGL-2.2.1.x86_64.rpm
- Install. Double-click downloaded rpm
-4: Install git (You may need to setup you Mageia repositories)
(you may skip this if you know how to install bumblebee without it)
- As root:
- Code: Select all
urpmi git
-5 Install bumblebee using git
- As root:
- Code: Select all
git clone git://github.com/Bumblebee-Project/Bumblebee.git
This should create a Bumblebee folder in your current directory, before we install we need to make some modifications to the install file.
- Edit Bumblebee/install, and comment out lines like the following ( As bumblebee does not know of our distro.)
- Code: Select all
#install_step determinedistro "" "precheck build install postconfig"
#install_step "$DISTRO/setvars" "" "precheck build install postconfig"
#install_step "$DISTRO/checkdependencies" "Checking dependencies" precheck
#install_step "$DISTRO/configure" "" postconfig
- Install As root:
- Code: Select all
cd Bumblebee;./install
- Add users to the bumblebee group.
As root:
- Code: Select all
usermod -a -G bumblebee YOURUSERNAME
-6 Modify bumblebee.conf
NB: Replace "lib64" with just "lib" if you are using a 32 bit OS
- As root edit /etc/bumblebee/bumblebee.conf, and add to the bottom
# My args
LD_LIBRARY_PATH="/usr/lib64/nvidia-current"
X_DAEMON="/etc/X11/X"
X_LD_LIBRARY_PATH="/usr/lib64/xorg"
EG As root:
- Code: Select all
echo "# My args" >> /etc/bumblebee/bumblebee.conf
echo "LD_LIBRARY_PATH=\"/usr/lib64/nvidia-current\"" >> /etc/bumblebee/bumblebee.conf
echo "X_DAEMON=\"/etc/X11/X\"" >> /etc/bumblebee/bumblebee.conf
echo "X_LD_LIBRARY_PATH=\"/usr/lib64/xorg\"" >> /etc/bumblebee/bumblebee.conf
-6 Modify the xorg.conf.nvidia in /etc/bumblebee directory
NB: If your unsure of the busid for your nvidia card try
- Code: Select all
lspci -d 10de: -n | grep '030[02]:' | cut -d' ' -f1
NB: The busid will probably be "01:00:0"
- Modify /etc/bumblebee/xorg.conf.nvidia:
Add: BusID "01:00:0", and Option "AddARGBGLXVisuals", to device section.
Remove: The whole files section
So /etc/bumblebee/xorg.conf.nvidia should look like
- Code: Select all
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "01:00:0"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "ConnectedMonitor" "DFP"
Option "AddARGBGLXVisuals"
EndSection
-7 Test:
- Open 2 terminals, 1 as root and 1 as your normal user.
- In the root terminal, start the bumblebee service:
- Code: Select all
bumblebee -d
- In the user terminal test an app:
- Code: Select all
optirun kwrite
- The root terminal should show the output of starting the nvidia xorg conf, and kwrite should launch from the user terminal.
- Press cntrl-c to kill the bumblebee service in the root terminal.
- To start bumblebee in the normal way as a service:
- Code: Select all
/etc/init.d/bumblebee start
- To start at boot use the Mageia drakxservices tool. Mageia Control Center -> System -> Manage System services by ena ...
-8 To det the intel glx drivers working again (which will break the nvidia 3d drivers)
- Open: Mageia Control Center
- Choose: Hardware -> Set up the graphical server
- Choose:All the default options Mageia gives
- Select Quit, and Yes to "Keep the changes?", REBOOT
-8 To det the intel nvidia drivers working again (which will break the intel drivers)
Redo steps 1 & 2
Maybe someone could post how to use Section "path" in the nvidia xorg.conf so bumblebee can load the nvidia 3d drivers/modules?
Good luck!