Arma 3 OpenGL 4.1 Hatası Ubuntu

Başlatan barbarossa208, 24 Ağustos 2016 - 21:28:03

« önceki - sonraki »

0 Üyeler ve 3 Ziyaretçi konuyu incelemekte.

barbarossa208

Komutlari eksiksiz hatasiz yazdim. Ancak yine salt okunur hatasi verdi.

mendirec

@barbarossa208, şu komutu yürüttükten sonra diğer komutları dener misin?
mount -o rw,remount /

http://wiki.ubuntu-tr.net/index.php?title=Ubuntu%27da_sistem_kurtarma

barbarossa208

Son komut sayesinde artik salt okunur hatasi gitti.bugra9 un komutlarini tekrar denedim. Sadece son iki komutta bir seyler yazdi.
sudo apt-get clean ppa-purge

sudo apt-get update

plazma

komut çıktılarını ekran görüntüsü değilte pastebin ile gönderin
https://help.ubuntu.com/community/Pastebinit

sudo apt-get install pastebinit

ile kurun

barbarossa208

#79
Alıntı yapılan: plazma - 01 Eylül 2016 - 17:52:07
komut çıktılarını ekran görüntüsü değilte pastebin ile gönderin
https://help.ubuntu.com/community/Pastebinit

sudo apt-get install pastebinit

ile kurun
Bilgisayara erisemedigim icin ekran goruntusu atiyorum. Yine de tesekkurler.
Not:bir seyler yuklemeye calisirken "bazi arsivler alinamiyor" diyor. Update komutunu verince "birden fazla kez yapilandirilmis" diyor. Neynefes Bey ordaysaniz yardim eder misiniz ?

mendirec

@barbarossa208, farklı çekirdek sürümleri ile komut satırına düştükten sonra şu komutları dener misin?
mount -o rw,remount /
sudo apt-get purge nvidia*
sudo apt-get purge nvidia-settings
sudo apt-get purge nvidia-prime


http://askubuntu.com/questions/774398/cant-boot-into-ubuntu-after-installation-of-nvidia-driver

barbarossa208

Alıntı yapılan: mendirec - 02 Eylül 2016 - 09:47:49
@barbarossa208, farklı çekirdek sürümleri ile komut satırına düştükten sonra şu komutları dener misin?
mount -o rw,remount /
sudo apt-get purge nvidia*
sudo apt-get purge nvidia-settings
sudo apt-get purge nvidia-prime


http://askubuntu.com/questions/774398/cant-boot-into-ubuntu-after-installation-of-nvidia-driver
Oha cok tesekkur ederim bilgisayarima gunler sonunda eristim :)

mendirec

@barbarossa208, rica ederim :) Şimdi şu komutların çıktılarını eksiksiz bir biçimde kod etiketi içerisinde alalım.
lspci -nnk | grep "VGA\|3D\|Display" -A2
glxinfo | grep render
xrandr
dpkg -l | egrep "nvidia|bumblebee|nvidia-prime|fglrx"
apt-cache search nvidia
ubuntu-drivers list

barbarossa208

lspci -nnk | grep "VGA\|3D\|Display" -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
Subsystem: ASUSTeK Computer Inc. 3rd Gen Core processor Graphics Controller [1043:1457]
Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF119M [GeForce 610M] [10de:1058] (rev a1)
Subsystem: ASUSTeK Computer Inc. GF119M [GeForce 610M] [1043:1457]
Kernel driver in use: nouveau

glxinfo | grep render
direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_MESA_texture_signed_rgba, GL_NV_conditional_render, GL_NV_depth_clamp,
    GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
    GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_light_max_exponent,
    GL_OES_fbo_render_mipmap, GL_OES_get_program_binary, GL_OES_mapbuffer,

xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1366x768      60.00*+
   1360x768      59.80    59.96 
   1280x720      60.00 
   1024x768      60.00 
   1024x576      60.00 
   960x540       60.00 
   800x600       60.32    56.25 
   864x486       60.00 
   640x480       59.94 
   720x405       60.00 
   680x384       60.00 
   640x360       60.00 
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

dpkg -l | egrep "nvidia|bumblebee|nvidia-prime|fglrx" (Bir şey yazmadı)

apt-cache search nvidia
dmraid - Device-Mapper Software RAID support tool
nvidia-prime - Tools to enable NVIDIA's Prime
nvidia-settings - Tool for configuring the NVIDIA graphics driver
ubuntu-drivers-common - Detect and install additional Ubuntu driver packages
nvidia-304 - NVIDIA legacy binary driver - version 304.131
nvidia-304-dev - NVIDIA binary Xorg driver development files
nvidia-304-updates - NVIDIA legacy binary driver - version 304.131
nvidia-304-updates-dev - NVIDIA binary Xorg driver development files
nvidia-331 - Transitional package for nvidia-331
nvidia-331-dev - Transitional package for nvidia-340-dev
nvidia-331-updates - Transitional package for nvidia-340
nvidia-331-updates-dev - Transitional package for nvidia-340-dev
nvidia-331-updates-uvm - Transitional package for nvidia-340
nvidia-331-uvm - Transitional package for nvidia-340
nvidia-340 - NVIDIA binary driver - version 340.96
nvidia-340-dev - NVIDIA binary Xorg driver development files
nvidia-340-updates - Transitional package for nvidia-340
nvidia-340-updates-dev - Transitional package for nvidia-340-dev
nvidia-340-updates-uvm - Transitional package for nvidia-340-updates
nvidia-340-uvm - Transitional package for nvidia-340
nvidia-346 - Transitional package for nvidia-346
nvidia-346-dev - Transitional package for nvidia-352-dev
nvidia-346-updates - Transitional package for nvidia-346-updates
nvidia-346-updates-dev - Transitional package for nvidia-352-updates-dev
nvidia-352 - Transitional package for nvidia-361
nvidia-352-dev - Transitional package for nvidia-361-dev
nvidia-352-updates - Transitional package for nvidia-361
nvidia-352-updates-dev - Transitional package for nvidia-361-dev
nvidia-361 - NVIDIA binary driver - version 361.42
nvidia-361-dev - NVIDIA binary Xorg driver development files
nvidia-361-updates - Transitional package for nvidia-361
nvidia-361-updates-dev - Transitional package for nvidia-361-dev
nvidia-current - Transitional package for nvidia-current
nvidia-current-dev - Transitional package for nvidia-current-dev
nvidia-current-updates - Transitional package for nvidia-current-updates
nvidia-current-updates-dev - Transitional package for nvidia-current-updates-dev
nvidia-experimental-304 - Transitional package for nvidia-experimental-304
nvidia-experimental-304-dev - Transitional package for nvidia-experimental-304-dev
nvidia-opencl-icd-304 - NVIDIA OpenCL ICD
nvidia-opencl-icd-304-updates - NVIDIA OpenCL ICD
nvidia-opencl-icd-340 - NVIDIA OpenCL ICD
nvidia-opencl-icd-361 - NVIDIA OpenCL ICD
boinc-client-nvidia-cuda - metapackage for CUDA-savvy BOINC client and manager
bumblebee - NVIDIA Optimus support for Linux
bumblebee-nvidia - NVIDIA Optimus support using the proprietary NVIDIA driver
conky-all - highly configurable system monitor (all features enabled)
conky-all-dbg - highly configurable system monitor (all features enabled - debug)
cpufreqd - fully configurable daemon for dynamic frequency and voltage scaling
flashrom - Identify, read, write, erase, and verify BIOS/ROM/flash chips
hobbit-plugins - plugins for the Xymon network monitor
kubuntu-driver-manager - Driver Manager for Kubuntu
kubuntu-driver-manager-dbg - Driver Manager for Kubuntu -- debug symbols
libnvtt-bin - NVIDIA Texture Tools (Binaries)
mate-optimus - MATE Desktop applet for controlling NVIDIA Optimus graphics cards
mate-sensors-applet - Display readings from hardware sensors in your MATE panel
mate-sensors-applet-nvidia - Display readings from hardware sensors in your MATE panel (NVIDIA sensors)
mate-sensors-applet-nvidia-dbg - Display readings from hardware sensors in your MATE panel (NVIDIA, dbg package)
nvidia-common - transitional package for ubuntu-drivers-common
nvtv - tool to control TV chips on NVidia cards under Linux
psensor - display graphs for monitoring hardware temperature
psensor-server - Psensor server for monitoring hardware sensors remotely
pyrit - GPGPU-driven WPA/WPA2-PSK key cracker
pyrit-opencl - OpenCL extension module for Pyrit
sensors-applet - Display readings from hardware sensors in your Gnome panel
trigger-rally-data - free 3D rally racing car game - data files
libcg - Nvidia Cg core runtime library
libcggl - Nvidia Cg Opengl runtime library
nouveau-firmware - Firmware for nVidia graphics cards
nvidia-cg-dev - Cg Toolkit - GPU Shader Authoring Language (headers)
nvidia-cg-doc - Cg Toolkit - GPU Shader Authoring Language (documentation)
nvidia-cg-toolkit - Cg Toolkit - GPU Shader Authoring Language
nvidia-cuda-dev - NVIDIA CUDA development files
nvidia-cuda-doc - NVIDIA CUDA and OpenCL documentation
nvidia-cuda-gdb - NVIDIA CUDA Debugger (GDB)
nvidia-cuda-toolkit - NVIDIA CUDA development toolkit
nvidia-libopencl1-304 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-libopencl1-304-updates - NVIDIA OpenCL Driver and ICD Loader library
nvidia-libopencl1-331 - Transitional package for nvidia-libopencl1-340
nvidia-libopencl1-331-updates - Transitional package for nvidia-libopencl1-340
nvidia-libopencl1-340 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-libopencl1-340-updates - Transitional package for nvidia-libopencl1-340
nvidia-libopencl1-346 - Transitional package for nvidia-libopencl1-352
nvidia-libopencl1-346-updates - Transitional package for nvidia-libopencl1-352-updates
nvidia-libopencl1-352 - Transitional package for nvidia-libopencl1-361
nvidia-libopencl1-352-updates - Transitional package for nvidia-libopencl1-361
nvidia-libopencl1-361 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-libopencl1-361-updates - Transitional package for nvidia-libopencl1-361
nvidia-modprobe - utility to load NVIDIA kernel modules and create device nodes
nvidia-nsight - NVIDIA Nsight Eclipse Edition
nvidia-opencl-dev - NVIDIA OpenCL development files
nvidia-opencl-icd-331 - Transitional package for nvidia-opencl-icd-340
nvidia-opencl-icd-331-updates - Transitional package for nvidia-opencl-icd-340
nvidia-opencl-icd-340-updates - Transitional package for nvidia-opencl-icd-340
nvidia-opencl-icd-346 - Transitional package for nvidia-opencl-icd-352
nvidia-opencl-icd-346-updates - Transitional package for nvidia-opencl-icd-352-updates
nvidia-opencl-icd-352 - Transitional package for nvidia-opencl-icd-361
nvidia-opencl-icd-352-updates - Transitional package for nvidia-opencl-icd-361
nvidia-opencl-icd-361-updates - Transitional package for nvidia-opencl-icd-361
nvidia-persistenced - daemon to maintain persistent software state in the NVIDIA driver
nvidia-profiler - NVIDIA Profiler for CUDA and OpenCL
nvidia-visual-profiler - NVIDIA Visual Profiler for CUDA and OpenCL
python-pycuda - Python module to access Nvidia's CUDA parallel computation API
python-pycuda-dbg - Python module to access Nvidia's CUDA API (debug extensions)
python-pycuda-doc - module to access Nvidia's CUDA computation API (documentation)
python3-pycuda - Python 3 module to access Nvidia's CUDA parallel computation API
python3-pycuda-dbg - Python 3 module to access Nvidia's CUDA API (debug extensions)

ubuntu-drivers list
nvidia-340
nvidia-361
nvidia-304-updates
nvidia-304
intel-microcode

Bir şey soracağım komutlarda Nvidia'yı kaldırdık sanırsam. Ben mi yanlış anladım ?

mendirec

Evet sahipli sürücüleri kaldırdık. Gördüğüm kadarıyla Prime yöntemi 16.04 ile pek sağlıklı çalışmıyor. Bumblebee projesine yönelelim.

sudo apt install nvidia-361 nvidia-prime
sudo prime-select intel
sudo apt install bumblebee bumblebee-nvidia primus linux-headers-generic


gksu gedit /etc/modprobe.d/bumblebee.conf
Açılan pencerede aşağıdaki satırlar var ise elleme. Yok ise en alt satıra ekle ve kaydet.
# 361
blacklist nvidia-361
blacklist nvidia-361-updates
blacklist nvidia-experimental-361


Daha sonra bumblebee dosyası üzerinde düzenleme yapalım.
gksu gedit /etc/bumblebee/bumblebee.conf

Açılan penceredeki "Driver, KernelDriver, LibraryPath, XorgModulePath" satırlarını aşağıdaki gibi değiştir.
Driver=nvidia
KernelDriver=nvidia-361
LibraryPath=/usr/lib/nvidia-361:/usr/lib32/nvidia-361
XorgModulePath=/usr/lib/nvidia-361/xorg,/usr/lib/xorg/modules


Sistemi yeniden başlatmadan önce tüm komutların çıktılarını ve ayrıca şu komutların çıktılarını buraya geç lütfen.
cat /etc/bumblebee/bumblebee.conf
cat /etc/modprobe.d/bumblebee.conf


Sistemi yeniden başlat ve şu komutun çıktısını ver.
optirun firefox


barbarossa208

#85
@mendirec
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-361
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-361:/usr/lib32/nvidia-361
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-361/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

cat /etc/modprobe.d/bumblebee.conf
# This file is installed by bumblebee, do NOT edit!
# to be used by kmod / module-init-tools, and installed in /etc/modprobe.d/
# or equivalent

# do not automatically load nouveau as it may prevent nvidia from loading
blacklist nouveau
# do not automatically load nvidia as it's unloaded anyway when bumblebeed
# starts and may fail bumblebeed to disable the card in a race condition.
# Debian
blacklist nvidia
blacklist nvidia-current
blacklist nvidia-legacy-304xx
blacklist nvidia-legacy-340xx
# Ubuntu
blacklist nvidia
blacklist nvidia-current
blacklist nvidia-current-updates
# 304
blacklist nvidia-304
blacklist nvidia-304-updates
blacklist nvidia-experimental-304
# 310
blacklist nvidia-310
blacklist nvidia-310-updates
blacklist nvidia-experimental-310
# 313
blacklist nvidia-313
blacklist nvidia-313-updates
blacklist nvidia-experimental-313
# 319
blacklist nvidia-319
blacklist nvidia-319-updates
blacklist nvidia-experimental-319
# 325
blacklist nvidia-325
blacklist nvidia-325-updates
blacklist nvidia-experimental-325
# 331
blacklist nvidia-331
blacklist nvidia-331-updates
blacklist nvidia-experimental-331
# 334
blacklist nvidia-334
blacklist nvidia-334-updates
blacklist nvidia-experimental-334
# 337
blacklist nvidia-337
blacklist nvidia-337-updates
blacklist nvidia-experimental-337
# 340
blacklist nvidia-340
blacklist nvidia-340-updates
blacklist nvidia-experimental-340
# 343
blacklist nvidia-343
blacklist nvidia-343-updates
blacklist nvidia-experimental-343
# 346
blacklist nvidia-346
blacklist nvidia-346-updates
blacklist nvidia-experimental-346
# 349
blacklist nvidia-349
blacklist nvidia-349-updates
blacklist nvidia-experimental-349
# 352
blacklist nvidia-352
blacklist nvidia-352-updates
blacklist nvidia-experimental-352
# 355
blacklist nvidia-355
blacklist nvidia-355-updates
blacklist nvidia-experimental-355
# Workaround to make sure nvidia-uvm is removed as well
remove nvidia rmmod nvidia-uvm nvidia
# 361
blacklist nvidia-361
blacklist nvidia-361-updates
blacklist nvidia-experimental-361

Eğer doğruysa yeniden başlatıyorum

mendirec

@barbarossa208, ilk üç komutun çıktısını vermemişsin. İstersen yeniden başlat.

barbarossa208

Yeniden başlattım. İlk üç komut için kusruma bakma.
optirun firefox
[   85.113018] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[   85.113072] [ERROR]Aborting because fallback start is disabled.

mendirec

@barbarossa208, komutun çıktısını görelim.
sudo apt-get install bumblebee nvidia-361 nvidia-settings bumblebee-nvidia primus linux-headers-$(uname -r) -y

barbarossa208

Paket listeleri okunuyor...
Bağımlılık ağacı oluşturuluyor...
Durum bilgisi okunuyor...
nvidia-settings zaten en yeni sürümde (361.42-0ubuntu1).
nvidia-settings elle kurulmuş olarak ayarlandı.
nvidia-361 zaten en yeni sürümde (361.42-0ubuntu2).
bumblebee zaten en yeni sürümde (3.2.1-10).
bumblebee-nvidia zaten en yeni sürümde (3.2.1-10).
primus zaten en yeni sürümde (0~20150328-1).
linux-headers-4.4.0-36-generic zaten en yeni sürümde (4.4.0-36.55).
linux-headers-4.4.0-36-generic elle kurulmuş olarak ayarlandı.
Aşağıdaki paketler otomatik olarak kurulmuş ve artık bu paketlere gerek duyulmuyor:
  libllvm3.8 libllvm3.8:i386 linux-headers-4.4.0-21
  linux-headers-4.4.0-21-generic linux-headers-4.4.0-31
  linux-headers-4.4.0-31-generic linux-image-4.4.0-21-generic
  linux-image-4.4.0-31-generic linux-image-extra-4.4.0-21-generic
  linux-image-extra-4.4.0-31-generic linux-signed-image-4.4.0-31-generic
  xserver-xorg-legacy
Bu paketleri kaldırmak için 'sudo apt autoremove' komutunu kullanın.
0 paket yükseltilecek, 0 yeni paket kurulacak, 0 paket kaldırılacak ve 22 paket yükseltilmeyecek.

mendirec


barbarossa208

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

mendirec


barbarossa208

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

mendirec

sudo dpkg-reconfigure bbswitch-dkms
sudo dpkg-reconfigure nvidia-361
sudo service bumblebeed restart
optirun glxgears

barbarossa208

sudo dpkg-reconfigure bbswitch-dkms
-------- Uninstall Beginning --------
Module:  bbswitch
Version: 0.8
Kernel:  4.4.0-34-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

bbswitch.ko:
- Uninstallation
   - Deleting from: /lib/modules/4.4.0-34-generic/updates/dkms/
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module:  bbswitch
Version: 0.8
Kernel:  4.4.0-36-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

bbswitch.ko:
- Uninstallation
   - Deleting from: /lib/modules/4.4.0-36-generic/updates/dkms/
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 0.8
completely from the DKMS tree.
------------------------------
Done.
Loading new bbswitch-0.8 DKMS files...
Building only for 4.4.0-36-generic
Building initial module for 4.4.0-36-generic
Done.

bbswitch:
Running module version sanity check.
- Original module
   - No original module exists within this kernel
- Installation
   - Installing to /lib/modules/4.4.0-36-generic/updates/dkms/

depmod....

DKMS: install completed.
Tetikleyiciler işleniyor: shim-signed (1.18~16.04.1+0.8-0ubuntu2) ...

sudo dpkg-reconfigure nvidia-361
Stopping nvidia-persistenced
nvidia-persistenced: hiçbir işlem bulunamadı
Done.
Removing all DKMS Modules
Done.
INFO:Enable nvidia-361
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Loading new nvidia-361-361.42 DKMS files...
Building only for 4.4.0-36-generic
Building for architecture x86_64
Building initial module for 4.4.0-36-generic
Done.

nvidia_361:
Running module version sanity check.
- Original module
   - No original module exists within this kernel
- Installation
   - Installing to /lib/modules/4.4.0-36-generic/updates/dkms/

nvidia_361_modeset.ko:
Running module version sanity check.
- Original module
   - No original module exists within this kernel
- Installation
   - Installing to /lib/modules/4.4.0-36-generic/updates/dkms/

nvidia_361_uvm.ko:
Running module version sanity check.
- Original module
   - No original module exists within this kernel
- Installation
   - Installing to /lib/modules/4.4.0-36-generic/updates/dkms/

depmod....

DKMS: install completed.
Tetikleyiciler işleniyor: shim-signed (1.18~16.04.1+0.8-0ubuntu2) ...

sudo service bumblebeed restart
(Bİr şey yok)
optirun glxgears
[ 1974.411493] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 1974.411548] [ERROR]Aborting because fallback start is disabled.

mendirec

sudo update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/i386-linux-gnu/mesa/ld.so.conf
sudo update-alternatives --set x86_64-linux-gnu_egl_conf /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf
sudo update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf
sudo service bumblebeed restart
optirun glxgears

barbarossa208

sudo update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/i386-linux-gnu/mesa/ld.so.conf
(Bir şey yok)
sudo update-alternatives --set x86_64-linux-gnu_egl_conf /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf
update-alternatives: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) alternatifini sağlaması için /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf elle ayarlanmış kipte kullanılıyor

sudo update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf
(Bir şey yok)
sudo service bumblebeed restart
(Bir şey yok)
optirun glxgears
[ 2401.638724] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[ 2401.638785] [ERROR]Aborting because fallback start is disabled.

mendirec

Bilgisayarı yeniden başlattıktan sonra şu komutların çıktılarını alalım.
optirun -vvv glxgears
cat /etc/bumblebee/bumblebee.conf
cat /etc/bumblebee/xorg.conf.nvidia
cat /etc/X11/xorg.conf
dpkg -l | egrep 'nvidia|bumblebee|primus|prime|virtualgl'
lspci | egrep 'VGA|3D|Display'

barbarossa208

optirun -vvv glxgears
[   86.752459] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   86.752856] [INFO]Configured driver: nvidia
[   86.753067] [DEBUG]optirun version 3.2.1 starting...
[   86.753083] [DEBUG]Active configuration:
[   86.753097] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   86.753107] [DEBUG] X display: :8
[   86.753120] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-361:/usr/lib32/nvidia-361
[   86.753132] [DEBUG] Socket path: /var/run/bumblebee.socket
[   86.753145] [DEBUG] Accel/display bridge: auto
[   86.753158] [DEBUG] VGL Compression: proxy
[   86.753171] [DEBUG] VGLrun extra options:
[   86.753185] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[   86.753546] [DEBUG]Using auto-detected bridge primus
[   87.231482] [INFO]Response: No - error: [XORG] (EE)

[   87.231502] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[   87.231510] [DEBUG]Socket closed.
[   87.231531] [ERROR]Aborting because fallback start is disabled.
[   87.231539] [DEBUG]Killing all remaining processes.

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

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

cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: Böyle bir dosya ya da dizin yok
dpkg -l | egrep 'nvidia|bumblebee|primus|prime|virtualgl'
ii  bumblebee                                   3.2.1-10                                                    amd64        NVIDIA Optimus support for Linux
ii  bumblebee-nvidia                            3.2.1-10                                                    amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  nvidia-361                                  361.42-0ubuntu2                                             amd64        NVIDIA binary driver - version 361.42
ii  nvidia-opencl-icd-361                       361.42-0ubuntu2                                             amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                0.8.2                                                       amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             361.42-0ubuntu1                                             amd64        Tool for configuring the NVIDIA graphics driver
ii  primus                                      0~20150328-1                                                amd64        client-side GPU offloading for NVIDIA Optimus
ii  primus-libs:amd64                           0~20150328-1                                                amd64        Shared libraries for primus
ii  primus-libs:i386                            0~20150328-1                                                i386         Shared libraries for primus
ii  primus-libs-ia32:i386                       0~20150328-1                                                i386         Shared libraries for primus (32-bit)

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 GF119M [GeForce 610M] (rev a1)