Gönderen Konu: [Çözüldü] bumblebee güncelleme sonrası yaşadığım sorun  (Okunma sayısı 5649 defa)

Çevrimdışı yyz

  • Çaylak Penguen
  • **
  • İleti: 111
  • Dağıtım: Linux Mint 19.3 64bit
  • Masaüstü Ortamı: Cinnamon
Merhaba; bir kaç gün önce bumblebee 3.2.1-91 sürümüne güncelleme yönetici aracılığıyla güncellendi. Bu güncellemeden sonra, en azından kendi laptop'ım için bir sorun ortaya çıktı. Asus n61jv laptop'ım var ve kenarlarında yanan ışık sayesinde hangi gpu'nun kullanıldığını anlayabiliyorsunuz. Intel kullanılırken ışık mavi, nvidia kullanılırken beyaz oluyor.

Normalde optirun komutuyla bir uygulama çalıştırınca, olması gerektiği gibi ışıklar beyaz yanıyor ve açılan uygulamayı da kapatınca  tekrar maviye dönüyordu. Ancak bumblebee güncellemesinden sonra ışıklar beyaz kalıyor ve sistemi yeniden başlatana kadar maviye dönmüyor.

Işıklar maviye dönmüyor ama sistem yine de intel gpu kullanıyor; bunu da glxgears ile anlayabiliyorsunuz.

Kod: [Seç]
$ optirun glxgears
4625 frames in 5.0 seconds = 924.822 FPS
4611 frames in 5.0 seconds = 922.131 FPS
4621 frames in 5.0 seconds = 924.089 FPS
4703 frames in 5.0 seconds = 940.410 FPS
3180 frames in 5.0 seconds = 635.833 FPS
2530 frames in 5.0 seconds = 505.928 FPS
[VGL] ERROR: in readback--
[VGL]    247: Window has been deleted by window manager

Kod: [Seç]
glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.400 FPS
299 frames in 5.0 seconds = 59.687 FPS
299 frames in 5.0 seconds = 59.689 FPS
299 frames in 5.0 seconds = 59.688 FPS
299 frames in 5.0 seconds = 59.688 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 5351 requests (5351 known processed) with 0 events remaining.

Görüldüğü gibi fps'ler farklı...

Ayrıca, beyaz ışıklar yanarken sistem de eskiye göre oldukça yavaş kapanıyor.

Kod: [Seç]
$ dpkg -l | egrep 'nvidia|bumblebee|primus|prime|virtualgl'
ii  bumblebee                                   3.2.1-91~trustyppa1                                 amd64        NVIDIA Optimus support
ii  bumblebee-nvidia                            3.2.1-91~trustyppa1                                 amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  nvidia-331                                  331.113-0ubuntu0.0.4                                amd64        NVIDIA binary driver - version 331.113
ii  nvidia-settings                             346.72-0ubuntu1                                     amd64        Tool for configuring the NVIDIA graphics driver
ii  primus                                      20150328-1~trustyppa1                               amd64        client-side GPU offloading for NVIDIA Optimus
ii  primus-libs:amd64                           20150328-1~trustyppa1                               amd64        Shared libraries for primus
ii  primus-libs:i386                            20150328-1~trustyppa1                               i386         Shared libraries for primus
ii  primus-libs-ia32                            20150328-1~trustyppa1                               i386         Shared libraries for primus (32-bit)
ii  virtualgl                                   2.3.3-1~trustyppa1                                  amd64        Toolkit for displaying OpenGL applications to thin clients
ii  virtualgl-libs:amd64                        2.3.3-1~trustyppa1                                  amd64        Library files for virtualgl

Kod: [Seç]
$ lspci | egrep 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
01:00.0 VGA compatible controller: NVIDIA Corporation GT216M [GeForce GT 325M] (rev a2)

Sorun ne olabilir? Teşekkürler...




« Son Düzenleme: 31 Temmuz 2015, 20:47:17 Gönderen: yyz »

Ç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
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #1 : 31 Temmuz 2015, 16:46:37 »
Aşağıdaki komutların da çıktılarına bakalım.

Kod: [Seç]
optirun -vvv glxgears
cat /etc/bumblebee/bumblebee.conf
cat /etc/bumblebee/xorg.conf.nvidia
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı yyz

  • Çaylak Penguen
  • **
  • İleti: 111
  • Dağıtım: Linux Mint 19.3 64bit
  • Masaüstü Ortamı: Cinnamon
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #2 : 31 Temmuz 2015, 16:51:01 »
Buyur hocam...

Kod: [Seç]
optirun -vvv glxgears
[  235.746380] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  235.746970] [INFO]Configured driver: nvidia
[  235.747290] [DEBUG]optirun version 3.2.1 starting...
[  235.747332] [DEBUG]Active configuration:
[  235.747363] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  235.747394] [DEBUG] X display: :8
[  235.747422] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-331:/usr/lib32/nvidia-331
[  235.747451] [DEBUG] Socket path: /var/run/bumblebee.socket
[  235.747480] [DEBUG] Accel/display bridge: auto
[  235.747509] [DEBUG] VGL Compression: proxy
[  235.747538] [DEBUG] VGLrun extra options:
[  235.747567] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[  235.747705] [DEBUG]Using auto-detected bridge virtualgl
[  238.251659] [INFO]Response: Yes. X is active.

[  238.251687] [INFO]Running application using virtualgl.
[  238.251856] [DEBUG]Process vglrun started, PID 3877.
4672 frames in 5.0 seconds = 934.366 FPS
4742 frames in 5.0 seconds = 948.291 FPS
4651 frames in 5.0 seconds = 930.096 FPS
3494 frames in 5.0 seconds = 698.216 FPS
2887 frames in 5.0 seconds = 577.387 FPS
[VGL] ERROR: in readback--
[VGL]    247: Window has been deleted by window manager
[  267.546967] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  267.547064] [DEBUG]Socket closed.
[  267.547099] [DEBUG]Killing all remaining processes.

Kod: [Seç]
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

Kod: [Seç]
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

Ç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
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #3 : 31 Temmuz 2015, 17:04:26 »
Bumblebee'nin çalışmasında bir sorun görünmüyor.

Aşağıdaki komutlar ile paketlerin sürümünü düşürmeyi deneyebilirsiniz.

Kod: [Seç]
sudo apt-get install ppa-purge
sudo apt-get remove virtualgl
sudo ppa-purge -d trusty ppa:bumblebee/stable
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı yyz

  • Çaylak Penguen
  • **
  • İleti: 111
  • Dağıtım: Linux Mint 19.3 64bit
  • Masaüstü Ortamı: Cinnamon
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #4 : 31 Temmuz 2015, 17:29:39 »
Yaptım, sistemi yeniden de başlattım. Evet artık ışıklar maviye dönüyor ancak glxgears değerleri öncekine göre düşük...

Kod: [Seç]
optirun -vvv glxgears
[  281.541077] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  281.541480] [INFO]Configured driver: nvidia
[  281.541714] [DEBUG]optirun version 3.2.1 starting...
[  281.541733] [DEBUG]Active configuration:
[  281.541738] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  281.541743] [DEBUG] X display: :8
[  281.541748] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-331:/usr/lib32/nvidia-331
[  281.541752] [DEBUG] Socket path: /var/run/bumblebee.socket
[  281.541758] [DEBUG] Accel/display bridge: auto
[  281.541762] [DEBUG] VGL Compression: proxy
[  281.541767] [DEBUG] VGLrun extra options:
[  281.541771] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[  281.541830] [DEBUG]Using auto-detected bridge primus
[  283.813800] [INFO]Response: Yes. X is active.

[  283.813836] [INFO]Running application using primus.
[  283.814064] [DEBUG]Process glxgears started, PID 4153.
291 frames in 5.0 seconds = 58.114 FPS
299 frames in 5.0 seconds = 59.688 FPS
299 frames in 5.0 seconds = 59.685 FPS
299 frames in 5.0 seconds = 59.688 FPS
299 frames in 5.0 seconds = 59.689 FPS
299 frames in 5.0 seconds = 59.689 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
[  317.456146] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  317.456202] [DEBUG]Socket closed.
[  317.456234] [DEBUG]Killing all remaining processes.

Kod: [Seç]
optirun glxgears
291 frames in 5.0 seconds = 58.183 FPS
299 frames in 5.0 seconds = 59.688 FPS
299 frames in 5.0 seconds = 59.688 FPS
299 frames in 5.0 seconds = 59.688 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

Intel gpu gibi değerler veriyor...



Ç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
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #5 : 31 Temmuz 2015, 17:40:24 »
Paketleri PPA deposundan ana depodaki sürüme düşürdük. Bunu yaparken sorun olmaması için ana depoda olmayan virtualgl paketini sildik. Virtualgl ve primus uygulamaları Nvidia GPU'ya geçiş için köprü vazifesi gören uygulamalar. Bunlardan virtualglde dikey senkrenizasyon varsayılan olarak etkin değil, primusda ise etkin geliyor. Şimdi sistem köprü olarak primus kullandığı ve dikey senkrenizasyon etkin olduğu için böyle bir sonuç aldınız. Bu performansı etkilemez, olası görüntü yırtılmalarını engellemek için FPS'yi sınırlandırır.
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı yyz

  • Çaylak Penguen
  • **
  • İleti: 111
  • Dağıtım: Linux Mint 19.3 64bit
  • Masaüstü Ortamı: Cinnamon
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #6 : 31 Temmuz 2015, 17:45:30 »
O zaman yapılacak başka bişey yok yani eğer bu bir sorun değilse? Peki ben artık bumblebee'yi güncellemeyecek miyim? Şu anda bumblebee/stable deposu aktif değil, bu şekilde mi kalsın?

Ç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
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #7 : 31 Temmuz 2015, 17:52:05 »
İsterseniz sisteminize uygun virtualgl .deb paketini buradan indirip sağ tık Gdebi ile kurabilirsiniz.

Bumblebee konu anlatımına PPA deposunu virtualgl paketi kurulumunu da sağlaması için eklemiştim. Nedenini ise yukarıda açıkladım. Bu PPA deposundaki paketler bir süre sonra ana depoya girebiliyor.

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

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

Çevrimdışı yyz

  • Çaylak Penguen
  • **
  • İleti: 111
  • Dağıtım: Linux Mint 19.3 64bit
  • Masaüstü Ortamı: Cinnamon
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #8 : 31 Temmuz 2015, 19:35:40 »
Dediğiniz yerden virtualgl.deb paketini indirip kurdum, fps'ler eskisi gibi oldu, geçişlerde de sorun yok. Bu durumda ben bumblebee/stable deposundaki sürümü değil, ana depodaki sürümü kullanacağım ve eğer ana depodan güncelleme olursa güncelleyebilirim; doğru mu anladım?

Ç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
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #9 : 31 Temmuz 2015, 20:29:41 »
Evet doğru anlamışsınız.

Sorun çözüldü ise konuyu etiketleyebilirsiniz. Çözülen başlıkların etiketlenmesi hakkında
Elimizden geldiğince dilimizin döndüğünce...

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

Çevrimdışı yyz

  • Çaylak Penguen
  • **
  • İleti: 111
  • Dağıtım: Linux Mint 19.3 64bit
  • Masaüstü Ortamı: Cinnamon
Ynt: bumblebee güncelleme sonrası yaşadığım sorun
« Yanıtla #10 : 31 Temmuz 2015, 20:47:05 »
Teşekkürler... Her sorunla karşılaşınca - sizin yardımlarınızla da çözünce - linux'u daha da iyi anlıyorum.   ;)