Gönderen Konu: [Nasıl] Linux Mint 17.x - Intel + Nvidia Hibrit GPU İçin Bumblebee Kurulumu  (Okunma sayısı 190188 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
Paketleri eksik kurmuşsunuz. Siz isterseniz aşağıdaki komutla bumblebee uygulamasını kaldırın.

Kod: [Seç]
sudo apt-get purge bumblebee
Aşağıdaki komutlar ile nvidia-prime ve nvidia-331 paketlerini yükleyin.
(Not: Aşağıdaki komutlar Linux Mint 17 için geçerlidir, diğer sürümlere uygulamayınız.)

Kod: [Seç]
sudo apt-get install nvidia-331
sudo apt-get install nvidia-prime

Aşağıdaki komutlar ile Nvidia ve Intel GPU arasında geçiş yapmayı kolaylaştıran prime-indicator uygulamacığını kurabilirsiniz.

Kod: [Seç]
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install prime-indicator



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

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

Çevrimdışı İnternet Çocuğu

  • Yeni Penguen
  • *
  • İleti: 41
  • Dağıtım: Linux Mint 17
Tamamdır.Sağolun  :)

Ç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
Tamamdır.Sağolun  :)

Prime uygulamacığı ile sistem çekmesinden Nvidia ekran kartını sorunsuz etkinleştirebiliyor musunuz?
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı fedaye

  • Çok Yeni Penguen
  • *
  • İleti: 5
Bir bakar mısınız?

*****

Kod: [Seç]
kb pars # optirun -vvv glxgears
[ 1114.476676] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1114.477404] [DEBUG]optirun version 3.2.1 starting...
[ 1114.477429] [DEBUG]Active configuration:
[ 1114.477437] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1114.477444] [DEBUG] X display: :8
[ 1114.477451] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-331:/usr/lib32/nvidia-331
[ 1114.477457] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1114.477464] [DEBUG] Accel/display bridge: auto
[ 1114.477471] [DEBUG] VGL Compression: proxy
[ 1114.477477] [DEBUG] VGLrun extra options:
[ 1114.477484] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 1114.477560] [DEBUG]Using auto-detected bridge primus
[ 1114.478854] [INFO]Response: Yes. X is active.

[ 1114.478878] [INFO]Running application using primus.
[ 1114.479061] [DEBUG]Process glxgears started, PID 3636.
294 frames in 5.0 seconds = 58.612 FPS
300 frames in 5.0 seconds = 59.977 FPS
300 frames in 5.0 seconds = 59.977 FPS
300 frames in 5.0 seconds = 59.977 FPS
300 frames in 5.0 seconds = 59.978 FPS
primus: warning: dropping a frame to avoid deadlock
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 37 requests (37 known processed) with 0 events remaining.
primus: warning: dropping a frame to avoid deadlock
primus: warning: timeout waiting for display worker
[ 1144.195806] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 1144.195840] [DEBUG]Socket closed.
[ 1144.195855] [DEBUG]Killing all remaining processes.

(bu işlemi yarıda kestim hep 60 civarı oluyor)

*****

Kod: [Seç]
kb pars # 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=
# 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-current
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-current/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

*****

Kod: [Seç]
kb pars # 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
*****

Kod: [Seç]
kb pars # dpkg -l | egrep 'nvidia|bumblebee'
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.79-0ubuntu1~xedgers14.04.1                      amd64        NVIDIA binary driver - version 331.79
ii  nvidia-prime                                0.6.2linuxmint1                                     amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             340.17-0ubuntu1~xedgers14.04.1                      amd64        Tool for configuring the NVIDIA graphics driver

Bir sorun var sanki Nvidia'yı görmüyor heralde, sıcaklık değerleri windows 8 e göre 3-5 derece daha yüksek gibi.



Düzenleme : Çıktılar kod etiketi içine alındı.
« Son Düzenleme: 12 Haziran 2014, 16:30:23 Gönderen: Butterfly »

Ç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
Bir bakar mısınız?

Öncelikle aşağıdaki komut ile nvidia-prime paketini kaldırınız.

Kod: [Seç]
sudo apt-get purge nvidia-prime
Sonra  aşağıdaki komut ile bumblebee.conf dosyasını açıp,
(Not : Mate masaüstü için gedit yerine pluma yazmalısınız.)

Kod: [Seç]
sudo gedit /etc/bumblebee/bumblebee.conf
aşağıdaki satırları bulunuz,

Kod: [Seç]
Driver=
KernelDriver=nvidia-current
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules

sırasıyla aşağıdaki şekilde düzenleyip dosyayı kaydediniz.

Kod: [Seç]
Driver=nvidia
KernelDriver=nvidia-331
LibraryPath=/usr/lib/nvidia-331:/usr/lib32/nvidia-331
XorgModulePath=/usr/lib/nvidia-331/xorg,/usr/lib/xorg/modules

Düzenleme sonrası aşağıdaki komutla bumblebee servisini yeniden başlatınız.

Kod: [Seç]
sudo service bumblebeed restart
İstediğiniz uygulamayı Nvidia GPU ile ilişkilendirmek için konuda anlatıldığı biçimde bumblebee-ui uygulamasını kurabilirsiniz.
FPS değerinin 60 civarı görünmesi Vsync (Vertical synchronization; yani dikey senkronizasyon) özelliğinin etkin olmasından kaynaklanıyor.

Aradaki farkı aşağıdaki komutlar ile görebilirsiniz.

Entegre GPU için

Kod: [Seç]
glxgears
vblank_mode=0 glxgears

Nvidia Optimus GPU için

Kod: [Seç]
optirun glxgears
vblank_mode=0 optirun glxgears
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı fedaye

  • Çok Yeni Penguen
  • *
  • İleti: 5
çok teşekkür ederim
dizüstünün sıcaklığı normal gibi ama 2 sorum daha var:
1-şarj süresi biraz düştü cpu ya yüklenme oranını düşürmek gibi yapılabilecek birşeyler var mı ?
2-4k video oynatırken biraz takılma olabiliyor normal mi bu(nvidia ile denemedim heralde intel çalışıyor) ? sürücülerden kaynaklanıyor heralde
size soruyorum çünkü daha önce pardus kullanmıştım ve sistem bir çöktü mü geri kurtaramıyodum çok vakit gidiyodu yanlış birşeyler yapmak istemiyorum  o yüzden

Ç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
Farklı sorularınız için istediğiniz kadar konu açabilirsiniz. Aynı konu içinde birden fazla sorunun çözümü uygun olmuyor. Bu konu Nvidia Optimus ve Linux desteği ile alakalı, fazla karıştırmayalım derim. CPU'yu enerji tasarrufu modunda kullanmak ile ilgili olarak buradaki mesajı inceleyebilirsiniz.

Video takılması ile ilgili olarak önce konuda bahsedildiği gibi bumblebee-ui uygulamasını kurunuz. Sonra bu uygulama yardımıyla, video seyrettiğiniz uygulamayı Nvidia kart ile ilişkilendirip optimus desteği ile açılmasını sağmayı deneyiniz.

Sorunlar bu şekilde çözelmezse, ilgili sorunlar için farklı bir konu açmanızı rica edeceğim.
« Son Düzenleme: 12 Haziran 2014, 18:10:16 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ışı fedaye

  • Çok Yeni Penguen
  • *
  • İleti: 5
pardon.
konu ile ilgili bir sorun daha var nvidia ya geçiş yapmıyor üstteki şeyleri kurdum ama bumblebee application setting ten firefox u discrete graphic ten çalıştır için işaretlediğim halde bir işe yaramıyor yeniden açtığımda da işaretsiz görünüyor ayrıca prime indicator de de hep using: mesa DRI intel(R) ivybridge mobile gibi birşey yazıyor quick switch graphics e tıklamama rağmen değişmiyor

Ç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
Nvidia Prime ve Bumblebee uygulamalarını birarada kullanamazsınız. Siz her ikisini de kurmuşsunuz sanırım. Nvidia-prime paketi kaldırılınca prime-indicator kullanılamaz olur. Aşağıdaki komutun çıktısını paylaşınız.

Kod: [Seç]
cat /etc/X11/xorg.conf
Firefox'u aşağıdaki komut ile çalıştırmayı dener misiniz?

Kod: [Seç]
optirun firefox
Ek olarak, aşağıdaki komut ile Prime İndicator uygulamasını da kaldırınız.

Kod: [Seç]
sudo apt-get purge prime-indicator
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı fedaye

  • Çok Yeni Penguen
  • *
  • İleti: 5
kb pars # cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: Böyle bir dosya ya da dizin yok


kb pars # optirun firefox

(process:2663): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

(firefox:2663): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised

(firefox:2663): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised

(firefox:2663): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised

(firefox:2663): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised

(firefox:2663): GnomeUI-WARNING **: While connecting to session manager:
None of the authentication protocols specified are supported.

(firefox:2663): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(firefox:2663): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(firefox:2663): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(firefox:2663): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(firefox:2663): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(firefox:2663): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Bağlantı kapalı

(firefox:2663): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


böyle yapınca hata vermesine rağmen nvidia çalışıyor 4k ve sıcaklıktan anladım şöyle diyor:
firefox için ayarlar saklanırken bir hata oluştu. Ayarlarınızın bazıları düzgün uygulanmayabilir.
ayrıntılar=>
Çalışan D-BUS hizmeti yok

Çalışan D-BUS hizmeti yok

Çalışan D-BUS hizmeti yok

Çalışan D-BUS hizmeti yok

ayrıca hoparlörden ses çıkarken kulaklıktan ses gelmiyor


Ç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
@fedaye, aşağıdaki komutun çıktısını tekrar paylaşınız.

Kod: [Seç]
optirun -vvv glxgears
Ses sorunu ile ilgili ayrı bir konu açınız lütfen.
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı fedaye

  • Çok Yeni Penguen
  • *
  • İleti: 5
@fedaye, aşağıdaki komutun çıktısını tekrar paylaşınız.

Kod: [Seç]
optirun -vvv glxgears
Ses sorunu ile ilgili ayrı bir konu açınız lütfen.
yok yanlış anladınız normalde sorun yok ama nvidia ile çalışırken kulaklıktan ses gelmiyordu ama neyse çok da önemli değil
düzenleme:
şimdi ses de geliyor oldukça kararlı görünüyor sistem sıcaklık değerleri de windowsla birebir gibi bu kadarını beklemiyordum doğrusu
yardımlarınız için teşekkürler
« Son Düzenleme: 13 Haziran 2014, 10:37:50 Gönderen: fedaye »

Çevrimdışı pervane2

  • Çok Yeni Penguen
  • *
  • İleti: 18
  • Dağıtım: Linux Mint Mate 17
Çıktılarım şöyle ve bir sorun olduğunu düşünüyorum. Çünkü 2 komut çıktısı arasında herhangi bir fark yok.

Kod: [Seç]
ugur@AKTAS ~ $ optirun glxgears
293 frames in 5.0 seconds = 58.489 FPS
300 frames in 5.0 seconds = 59.827 FPS
300 frames in 5.0 seconds = 59.827 FPS
300 frames in 5.0 seconds = 59.825 FPS
300 frames in 5.0 seconds = 59.829 FPS
300 frames in 5.0 seconds = 59.825 FPS
300 frames in 5.0 seconds = 59.824 FPS
primus: warning: dropping a frame to avoid deadlock
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 37 requests (37 known processed) with 0 events remaining.
primus: warning: dropping a frame to avoid deadlock
primus: warning: timeout waiting for display worker

Kod: [Seç]
ugur@AKTAS ~ $ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.532 FPS
300 frames in 5.0 seconds = 59.826 FPS
300 frames in 5.0 seconds = 59.827 FPS
300 frames in 5.0 seconds = 59.826 FPS
300 frames in 5.0 seconds = 59.826 FPS
300 frames in 5.0 seconds = 59.827 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 5960 requests (5960 known processed) with 0 events remaining.

Ekran kartım NVIDIA GEFORCE GT520M

Ç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
Çıktılarım şöyle ve bir sorun olduğunu düşünüyorum. Çünkü 2 komut çıktısı arasında herhangi bir fark yok.


FPS değerinin 60 civarı görünmesi Vsync (Vertical synchronization; yani dikey senkronizasyon) özelliğinin etkin olmasından kaynaklanıyor.

Aradaki farkı aşağıdaki komutlar ile görebilirsiniz.

Entegre GPU için

Kod: [Seç]
glxgears
vblank_mode=0 glxgears

Nvidia Optimus GPU için

Kod: [Seç]
optirun glxgears
vblank_mode=0 optirun glxgears
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı pervane2

  • Çok Yeni Penguen
  • *
  • İleti: 18
  • Dağıtım: Linux Mint Mate 17
Teşekkür ederim. Bu komutları girince farklı FPS değerleri çıktı. Bu durumdan ekran kartının doğru yüklendiğini ve bumblebee'nin sorunsuz çalıştığını anlıyorum.