Gönderen Konu: [Nasıl] Linux Mint 17.x - Intel + Nvidia Hibrit GPU İçin Bumblebee Kurulumu  (Okunma sayısı 193587 defa)

Çevrimdışı Butterfly

  • Proje Sorumlusu
  • Guru
  • *****
  • İleti: 18863
  • Linux Mint Türkiye
  • Dağıtım: Linux Mint 20 & LMDE 4
  • Masaüstü Ortamı: Cinnamon 4.6 & Xfce 4.14
  • Grafik Kartı: Nvidia GF 9500
  • İşlemci: AMD X3
optirun -vvv glxgears Yanıt:
Kod: [Seç]
[  358.097145] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  358.097679] [INFO]Configured driver: nvidia
[  358.097750] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[  358.097762] [DEBUG]Socket closed.
[  358.097781] [ERROR]Could not connect to bumblebee daemon - is it running?

Sistemi yeniden başlattıktan sonra tekrar dener misiniz?
Elimizden geldiğince dilimizin döndüğünce...

[info] Konu Açarken Dikkat Edilmesi Gerekenler  |  Forum Kuralları  |  Kod Etiketi Kullanımı[/info]

Çevrimdışı Çağrı07

  • Penguen
  • ***
  • İleti: 391
    • Kayıt Formu
  • Dağıtım: Linux Mint 19.1
  • Masaüstü Ortamı: XFCE
  • Grafik Kartı: Nvidia GeForce GT 730m (4 GB VRAM)
  • İşlemci: İntel Core i7 3630QM
Sistemim yeniden başladı ancak hala aynı cevap
optirun -vvv glxgears
Kod: [Seç]
[   51.452704] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   51.453239] [INFO]Configured driver: nvidia
[   51.453310] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[   51.453322] [DEBUG]Socket closed.
[   51.453340] [ERROR]Could not connect to bumblebee daemon - is it running?
Yaşlanıyorum...

Çevrimdışı Çağrı07

  • Penguen
  • ***
  • İleti: 391
    • Kayıt Formu
  • Dağıtım: Linux Mint 19.1
  • Masaüstü Ortamı: XFCE
  • Grafik Kartı: Nvidia GeForce GT 730m (4 GB VRAM)
  • İşlemci: İntel Core i7 3630QM
file:///home/aspire/Masa%C3%BCst%C3%BC/20140731_120359.jpg
Yaşlanıyorum...

Çevrimdışı Butterfly

  • Proje Sorumlusu
  • Guru
  • *****
  • İleti: 18863
  • Linux Mint Türkiye
  • Dağıtım: Linux Mint 20 & LMDE 4
  • Masaüstü Ortamı: Cinnamon 4.6 & Xfce 4.14
  • Grafik Kartı: Nvidia GF 9500
  • İşlemci: AMD X3
Aşağıdaki komutun çıktısını tekrar paylaşınız. Sonrasında Bumblebee ve Nvidia ile ilgili tüm paketleri kaldırıp tekrar kurmayı deneyelim.

Kod: [Seç]
dpkg -l | egrep 'nvidia|bumblebee|primus'
Elimizden geldiğince dilimizin döndüğünce...

[info] Konu Açarken Dikkat Edilmesi Gerekenler  |  Forum Kuralları  |  Kod Etiketi Kullanımı[/info]

Çevrimdışı Çağrı07

  • Penguen
  • ***
  • İleti: 391
    • Kayıt Formu
  • Dağıtım: Linux Mint 19.1
  • Masaüstü Ortamı: XFCE
  • Grafik Kartı: Nvidia GeForce GT 730m (4 GB VRAM)
  • İşlemci: İntel Core i7 3630QM
dpkg -l | egrep 'nvidia|bumblebee|primus'
Kod: [Seç]
ii  bumblebee                                   3.2.1-90~trustyppa1                                     amd64        NVIDIA Optimus support
ii  bumblebee-nvidia                            3.2.1-90~trustyppa1                                     amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
rc  nvidia-304                                  304.123-0ubuntu1~xedgers14.04.1                         amd64        NVIDIA legacy binary driver - version 304.123
ii  nvidia-331                                  331.89-0ubuntu1~xedgers14.04.2                          amd64        NVIDIA binary driver - version 331.89
ii  nvidia-libopencl1-340                       340.24-0ubuntu1~xedgers14.04.1                          amd64        NVIDIA OpenCL Driver and ICD Loader library
ii  nvidia-opencl-icd-340                       340.24-0ubuntu1~xedgers14.04.1                          amd64        NVIDIA OpenCL ICD
ii  nvidia-settings                             340.24-0ubuntu1~xedgers14.04.1                          amd64        Tool for configuring the NVIDIA graphics driver
ii  primus                                      20131127-1~trustyppa1                                   amd64        client-side GPU offloading for NVIDIA Optimus
ii  primus-libs:amd64                           20131127-1~trustyppa1                                   amd64        Shared libraries for primus
Yaşlanıyorum...

Çevrimdışı Butterfly

  • Proje Sorumlusu
  • Guru
  • *****
  • İleti: 18863
  • Linux Mint Türkiye
  • Dağıtım: Linux Mint 20 & LMDE 4
  • Masaüstü Ortamı: Cinnamon 4.6 & Xfce 4.14
  • Grafik Kartı: Nvidia GF 9500
  • İşlemci: AMD X3
Aşağıdaki komut ile kurulu paketleri kaldıralım.

Kod: [Seç]
sudo apt-get purge bumblebee bumblebee-nvidia nvidia-304 nvidia-331 nvidia-libopencl1-340 nvidia-opencl-icd-340 nvidia-settings primus primus-libs
Şimdi aşağıdaki komut ile daha önce yüklenmiş ilgili paketleri sistemimizden temizleyelim.

Kod: [Seç]
sudo apt-get autoclean
Şimdi aşağıdaki komut ile yeniden kurulum gerçekleştirelim.

Kod: [Seç]
sudo apt-get update && sudo apt-get install bumblebee nvidia-331 nvidia-settings bumblebee-nvidia primus linux-headers-`uname -r`
Sonrasında aşağıdaki komut ile bumblebee.conf dosyasını açınız.

Kod: [Seç]
sudo gedit /etc/bumblebee/bumblebee.conf
Dosya içeriğini tamamen silip aşağıdaki satırları kopyalayıp dosyaya yapıştırınız ve kaydediniz.

Kod: [Seç]
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-331
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-331:/usr/lib32/nvidia-331
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-331/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia


## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

Aşağıdaki komutla bumblebee servisini yeniden başlatınız.

Kod: [Seç]
sudo service bumblebeed restart
Aşağıdaki komut ile kontrol yapınız.

Kod: [Seç]
optirun -vvv glxgears
Elimizden geldiğince dilimizin döndüğünce...

[info] Konu Açarken Dikkat Edilmesi Gerekenler  |  Forum Kuralları  |  Kod Etiketi Kullanımı[/info]

Çevrimdışı Çağrı07

  • Penguen
  • ***
  • İleti: 391
    • Kayıt Formu
  • Dağıtım: Linux Mint 19.1
  • Masaüstü Ortamı: XFCE
  • Grafik Kartı: Nvidia GeForce GT 730m (4 GB VRAM)
  • İşlemci: İntel Core i7 3630QM
Çıktılar şöyle
optirun -vvv glxgears
Kod: [Seç]
[  690.549247] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  690.549781] [INFO]Configured driver: nvidia
[  690.550006] [DEBUG]optirun version 3.2.1 starting...
[  690.550021] [DEBUG]Active configuration:
[  690.550029] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  690.550036] [DEBUG] X display: :8
[  690.550043] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-331:/usr/lib32/nvidia-331
[  690.550049] [DEBUG] Socket path: /var/run/bumblebee.socket
[  690.550056] [DEBUG] Accel/display bridge: auto
[  690.550062] [DEBUG] VGL Compression: proxy
[  690.550068] [DEBUG] VGLrun extra options:
[  690.550075] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[  690.550147] [DEBUG]Using auto-detected bridge primus
[  692.759283] [INFO]Response: Yes. X is active.

[  692.759318] [INFO]Running application using primus.
[  692.759533] [DEBUG]Process glxgears started, PID 15514.
295 frames in 5.0 seconds = 58.873 FPS
302 frames in 5.0 seconds = 60.237 FPS
302 frames in 5.0 seconds = 60.234 FPS
302 frames in 5.0 seconds = 60.237 FPS
302 frames in 5.0 seconds = 60.235 FPS
302 frames in 5.0 seconds = 60.236 FPS
302 frames in 5.0 seconds = 60.235 FPS
302 frames in 5.0 seconds = 60.236 FPS
302 frames in 5.0 seconds = 60.235 FPS
302 frames in 5.0 seconds = 60.237 FPS
302 frames in 5.0 seconds = 60.235 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 37 requests (37 known processed) with 0 events remaining.
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  154 (DRI2)
  Minor opcode of failed request:  7 (DRI2GetBuffersWithFormat )
  Resource id in failed request:  0x2e00002
  Serial number of failed request:  10358
  Current serial number in output stream:  10358
[  749.036624] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  749.036684] [DEBUG]Socket closed.
[  749.036717] [DEBUG]Killing all remaining processes.
« Son Düzenleme: 31 Temmuz 2014, 13:30:47 Gönderen: Çağrı07 »
Yaşlanıyorum...

Çevrimdışı Butterfly

  • Proje Sorumlusu
  • Guru
  • *****
  • İleti: 18863
  • Linux Mint Türkiye
  • Dağıtım: Linux Mint 20 & LMDE 4
  • Masaüstü Ortamı: Cinnamon 4.6 & Xfce 4.14
  • Grafik Kartı: Nvidia GF 9500
  • İşlemci: AMD X3
Sanırım sorun çözülmüş görünüyor. Çıktının son kısmındaki mesajlar glxgears penceresi kapandıktan sonra oluştu galiba?

Elimizden geldiğince dilimizin döndüğünce...

[info] Konu Açarken Dikkat Edilmesi Gerekenler  |  Forum Kuralları  |  Kod Etiketi Kullanımı[/info]

Çevrimdışı Çağrı07

  • Penguen
  • ***
  • İleti: 391
    • Kayıt Formu
  • Dağıtım: Linux Mint 19.1
  • Masaüstü Ortamı: XFCE
  • Grafik Kartı: Nvidia GeForce GT 730m (4 GB VRAM)
  • İşlemci: İntel Core i7 3630QM
Evet sonradan oluştu yalnız bumblebee uygulaması hala görünürde yok ve 2 adet çıktım var
optirun glxspheres64
Kod: [Seç]
[  961.195326] [ERROR]Error running "glxspheres64": No such file or directory

optirun glxspheres
Kod: [Seç]
[  982.788460] [ERROR]Error running "glxspheres": No such file or directory
Yaşlanıyorum...

Çevrimdışı Butterfly

  • Proje Sorumlusu
  • Guru
  • *****
  • İleti: 18863
  • Linux Mint Türkiye
  • Dağıtım: Linux Mint 20 & LMDE 4
  • Masaüstü Ortamı: Cinnamon 4.6 & Xfce 4.14
  • Grafik Kartı: Nvidia GF 9500
  • İşlemci: AMD X3
Bumblebee, bumblebeed olarak arkaplanda otomatik çalışan bir servistir. Bu sebeple uçbirimden çalıştırmanıza gerek yok. Nvidia ekran kartı ile çalıştırmak istediğiniz uygulamayı aşağıdaki şekilde başlatmanız gerekir.

Kod: [Seç]
optirun uygulama_adı
Mesela Firefox için komut aşağıdaki şekilde olmalı.

Kod: [Seç]
optirun firefox
Bunun yerine konunun ilk mesajında anlatıldığı biçimde Bumblebee-ui uygulamasını kurarsanız, uçbirime gerek kalmadan istediğiniz uygulamayı Nvidia GPU ile çalışacak biçimde ayarlayabilirsiniz.

Nvidia GPU'nun sisteminizde dahili olarak bulunan Intel GPU'dan çok daha fazla sistem kaynağına ihtiyacaı olacağını unutmayınız. Bu şekilde Nvidia GPU ile açacağınız uygulamalar pil süresinin daha çabuk bitmesine neden olacaktır. Bu sebeple günlük kullanımlar için herhangi bir ayarlama yapmadan Intel GPU'yu kullanırsanız, pil kullanım süreniz de uzayacaktır.


Kod: [Seç]
[  961.195326] [ERROR]Error running "glxspheres64": No such file or directory

Aşağıdaki komut ile virtualgl paketini kurmayı deneyiniz.

Kod: [Seç]
sudo apt-get install virtualgl
« Son Düzenleme: 31 Temmuz 2014, 14:08:47 Gönderen: Butterfly »
Elimizden geldiğince dilimizin döndüğünce...

[info] Konu Açarken Dikkat Edilmesi Gerekenler  |  Forum Kuralları  |  Kod Etiketi Kullanımı[/info]

Çevrimdışı Çağrı07

  • Penguen
  • ***
  • İleti: 391
    • Kayıt Formu
  • Dağıtım: Linux Mint 19.1
  • Masaüstü Ortamı: XFCE
  • Grafik Kartı: Nvidia GeForce GT 730m (4 GB VRAM)
  • İşlemci: İntel Core i7 3630QM
2 haftadır bu problemle uğraşıyordum, bumblebee uygulamasını kurdum artık arayüzüne ulaşabiliyorum Size ne kadar teşekkür etsem az iyi ki varsınız  (:
Yaşlanıyorum...

Çevrimdışı Butterfly

  • Proje Sorumlusu
  • Guru
  • *****
  • İleti: 18863
  • Linux Mint Türkiye
  • Dağıtım: Linux Mint 20 & LMDE 4
  • Masaüstü Ortamı: Cinnamon 4.6 & Xfce 4.14
  • Grafik Kartı: Nvidia GF 9500
  • İşlemci: AMD X3
[member=575]Çağrı07[/member], rica ederiz, güle güle kullanın.
Elimizden geldiğince dilimizin döndüğünce...

[info] Konu Açarken Dikkat Edilmesi Gerekenler  |  Forum Kuralları  |  Kod Etiketi Kullanımı[/info]

Çevrimdışı Maksim

  • Yeni Penguen
  • *
  • İleti: 37
  • Dağıtım: Linux Mint 17 Cinnamon, Lİnux Mint Debian Edition
Benim sistem 64 bit. Ben şimdi
Kod: [Seç]
sudo apt-get install primus-libs-ia32 satırı
Kod: [Seç]
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee nvidia-331 nvidia-settings bumblebee-nvidia primus linux-headers-`uname -r`
satırlarından önce mi kurayım yoksa sonra mı kurayım. ya da fark etmiyormu? şimdi kurulum yaptık diyelim,  kurulum sonrası düzenleme işlemini  bilgisayarı yeniden başlatmadan öncemi yoksa yeniden başlattıktan sonramı yapayım?
There is no place like 127.0.0.1

Çevrimdışı Butterfly

  • Proje Sorumlusu
  • Guru
  • *****
  • İleti: 18863
  • Linux Mint Türkiye
  • Dağıtım: Linux Mint 20 & LMDE 4
  • Masaüstü Ortamı: Cinnamon 4.6 & Xfce 4.14
  • Grafik Kartı: Nvidia GF 9500
  • İşlemci: AMD X3
Önce Bumblebee'yi, sonra primus 32 bit uyumluluk paletini kurun.

Bumblebee.conf dosyasını kurulumdan hemen sonra düzenleyebilirsiniz.
Elimizden geldiğince dilimizin döndüğünce...

[info] Konu Açarken Dikkat Edilmesi Gerekenler  |  Forum Kuralları  |  Kod Etiketi Kullanımı[/info]

Çevrimdışı ademsahin

  • Yeni Penguen
  • *
  • İleti: 31
  • www.lojistikdefteri.com
    • Lojistik Defteri
  • Dağıtım: Linux Mint 18.3
  • Masaüstü Ortamı: KDE
  • İşlemci: Intel N3350
Merhaba arkadaşlar ,

Az önce Linux Mint 17 kurdum ve hemen peşinden kaynak sürücü falan kurmadan Bumblebee kurdum.

Ancak sanırım bir yerde hata verdim.

Ana konusunda eğer hata verdiğini düşünürseniz verdikleri kodun çıktılarını yazmamımzıı söylemişsiniz.

Umarım derdimi anlatabilmişimdir.

Kodları aşağıya ekledim.

Kod: [Seç]
lojistikdefteri ademsahin # optirun glxgears
[ 4577.700964] [ERROR]Cannot access secondary GPU, secondary X is not active.

[ 4577.701077] [ERROR]Aborting because fallback start is disabled.
lojistikdefteri ademsahin # optirun -vvv glxgears
[ 4599.735399] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 4599.735955] [INFO]Configured driver: nvidia
[ 4599.736184] [DEBUG]optirun version 3.2.1 starting...
[ 4599.736240] [DEBUG]Active configuration:
[ 4599.736265] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 4599.736289] [DEBUG] X display: :8
[ 4599.736312] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-331:/usr/lib32/nvidia-331
[ 4599.736336] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 4599.736359] [DEBUG] Accel/display bridge: auto
[ 4599.736383] [DEBUG] VGL Compression: proxy
[ 4599.736406] [DEBUG] VGLrun extra options:
[ 4599.736430] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 4599.736516] [DEBUG]Using auto-detected bridge primus
[ 4602.750138] [INFO]Response: No, secondary X is not active.

[ 4602.750158] [ERROR]Cannot access secondary GPU, secondary X is not active.

[ 4602.750162] [DEBUG]Socket closed.
[ 4602.750184] [ERROR]Aborting because fallback start is disabled.
[ 4602.750191] [DEBUG]Killing all remaining processes.
lojistikdefteri ademsahin # cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-331
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-331:/usr/lib32/nvidia-331
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-331/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

lojistikdefteri ademsahin # cat /etc/bumblebee/xorg.conf.nvidia
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
    BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection
lojistikdefteri ademsahin # dpkg -l | egrep 'nvidia|bumblebee|primus'
ii  bumblebee                                   3.2.1-90~trustyppa1                                 amd64        NVIDIA Optimus support
ii  bumblebee-nvidia                            3.2.1-90~trustyppa1                                 amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  nvidia-331                                  331.38-0ubuntu7.1                                   amd64        NVIDIA binary driver - version 331.38
ii  nvidia-settings                             331.20-0ubuntu8                                     amd64        Tool for configuring the NVIDIA graphics driver
ii  primus                                      20131127-1~trustyppa1                               amd64        client-side GPU offloading for NVIDIA Optimus
ii  primus-libs:amd64                           20131127-1~trustyppa1                               amd64        Shared libraries for primus
ii  primus-libs:i386                            20131127-1~trustyppa1                               i386         Shared libraries for primus
ii  primus-libs-ia32                            20131127-1~trustyppa1                               i386         Shared libraries for primus (32-bit)
lojistikdefteri ademsahin # lspci | egrep 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)
lojistikdefteri ademsahin #