انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


توزیع گنو/لینوکس اوبونتو ۲۰ ساله شد 🎉

نویسنده موضوع: کار نکردن bumblebee بعد از نصب  (دفعات بازدید: 8679 بار)

0 کاربر و 1 مهمان درحال مشاهده موضوع.

آفلاین ساسان

  • Hero Member
  • *
  • ارسال: 991
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #15 : 27 آبان 1392، 08:11 ب‌ظ »
توی اوبونتو چطور میشه گفت تنظیمات اولیه بسته نصب بشه؟ با dpkg-reconfigure ؟
این رو بزن و بعد ریست کن:
sudo dpkg-reconfigure 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-current-updates
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-304
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-304:/usr/lib32/nvidia-304
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-304/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
و بعد:
sudo service bumblebeed restart
برای تماس با من: hello [at] sasan.me

آفلاین v.taghavi68

  • Hero Member
  • *
  • ارسال: 915
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #16 : 27 آبان 1392، 09:04 ب‌ظ »
آقا بازم نشد اینم خروجی دستور sudo /usr/sbin/bumblebeed -vv --driver nvidia
[  271.173055] [DEBUG]Found card: 01:00.0 (discrete)
[  271.173112] [DEBUG]Found card: 00:02.0 (integrated)
[  271.173164] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  271.173593] [INFO]Configured driver: nvidia
[  271.173632] [DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[  271.173802] [DEBUG]Process /sbin/modprobe started, PID 3001.
[  271.173893] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[  271.176030] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  271.176160] [DEBUG]bbswitch has been detected.
[  271.176194] [INFO]Switching method 'bbswitch' is available and will be used.
[  271.176228] [DEBUG]Active configuration:
[  271.176250] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  271.176278] [DEBUG] X display: :8
[  271.176299] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-304:/usr/lib32/nvidia-304
[  271.176326] [DEBUG] Socket path: /var/run/bumblebee.socket
[  271.176348] [DEBUG] pidfile: /var/run/bumblebeed.pid
[  271.176377] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[  271.176397] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d
[  271.176420] [DEBUG] ModulePath: /usr/lib/nvidia-304/xorg,/usr/lib/xorg/modules
[  271.176443] [DEBUG] GID name: bumblebee
[  271.176472] [DEBUG] Power method: auto
[  271.176492] [DEBUG] Stop X on exit: 1
[  271.176514] [DEBUG] Driver: nvidia
[  271.176537] [DEBUG] Driver module: nvidia-304
[  271.176563] [DEBUG] Card shutdown state: 1
[  271.176700] [DEBUG]Process /sbin/modprobe started, PID 3002.
[  271.176744] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[  271.178718] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  271.178776] [ERROR]Module 'nvidia-304' is not found.
اما بعد از این رفتم دوباره nvidia-current-update  رو نصب کردم و فایل 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-304-updates
# 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-current-updates
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-304-updates
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-304-updates:/usr/lib32/nvidia-304-updates
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-304-updates/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
و خروجی دستور sudo /usr/sbin/bumblebeed -vv --driver nvidia :
[  656.458586] [DEBUG]Found card: 01:00.0 (discrete)
[  656.458645] [DEBUG]Found card: 00:02.0 (integrated)
[  656.458698] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  656.459142] [INFO]Configured driver: nvidia-304-updates
[  656.459182] [DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[  656.459348] [DEBUG]Process /sbin/modprobe started, PID 3138.
[  656.459442] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[  656.460532] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  656.460650] [DEBUG]bbswitch has been detected.
[  656.460701] [INFO]Switching method 'bbswitch' is available and will be used.
[  656.460724] [DEBUG]Active configuration:
[  656.460752] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  656.460774] [DEBUG] X display: :8
[  656.460803] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-304-updates:/usr/lib32/nvidia-304-updates
[  656.460829] [DEBUG] Socket path: /var/run/bumblebee.socket
[  656.460848] [DEBUG] pidfile: /var/run/bumblebeed.pid
[  656.460870] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[  656.460897] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d
[  656.460918] [DEBUG] ModulePath: /usr/lib/nvidia-304-updates/xorg,/usr/lib/xorg/modules
[  656.460945] [DEBUG] GID name: bumblebee
[  656.460967] [DEBUG] Power method: auto
[  656.460995] [DEBUG] Stop X on exit: 1
[  656.461017] [DEBUG] Driver: nvidia
[  656.461044] [DEBUG] Driver module: nvidia-304-updates
[  656.461065] [DEBUG] Card shutdown state: 1
[  656.461213] [DEBUG]Process /sbin/modprobe started, PID 3139.
[  656.461266] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[  656.462230] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  656.462245] [DEBUG]Configuration test passed.
[  656.462339] [ERROR]Daemon already running, pid 1417
که هم driver-304-update  رو شناخت و هم bumblebee.socket هم ساخته شده ولی وقتی optirun glxgear رو که میزنم این خروجی رو میده :
[  864.935261] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  864.935310] [ERROR]Aborting because fallback start is disabled.
وای بر شما اگر این علم اندک وسیله ای برای طغیانتان شود

آفلاین ساسان

  • Hero Member
  • *
  • ارسال: 991
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #17 : 27 آبان 1392، 09:49 ب‌ظ »
کاری که باید انجام بشه معرفی ماژول مناسب درایور nvidia به bumblebee هست تا لودش کنه.
موقتا nvidia-current-update فراموش کن. نگران درایورهای به روز نباش.
این دو دستور وارد کن:
sudo apt-get install linux-headers-$(uname -r)
sudo dpkg-reconfigure nvidia-current
خروجی دستور آخر رو به دقت بررسی کن. آخرش میگه ماژولی که build میشه اسمش چیه. (باید nvidia_current باشه)
شاید لازم بشه dpkg.log رو هم بررسی کنی.
لازمه اسم ماژول و path ها براساس ماژولی که ساخته میشه توی 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
Module=nvidia
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

برای محکم کاری خروجی زیر دستور زیرو رو هم بزار:
ls /usr/lib/ | grep -i nvidia
نقل‌قول
که هم driver-304-update  رو شناخت و هم bumblebee.socket هم ساخته شده ولی وقتی optirun glxgear رو که میزنم
نه نشناخته چون کانفیگت اشتباست. این قسمت رو توجه نکردی:
# 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
« آخرین ویرایش: 27 آبان 1392، 09:50 ب‌ظ توسط ساسان »
برای تماس با من: hello [at] sasan.me

آفلاین v.taghavi68

  • Hero Member
  • *
  • ارسال: 915
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #18 : 28 آبان 1392، 09:49 ق‌ظ »
خروجی دستور اول sudo apt-get install linux-headers-$(uname -r) :
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-3.8.0-33-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 422 not upgraded.
و دستور sudo dpkg-reconfigure nvidia-current این هم هیچ خروجی نداره (بلافاصله اعلان خط فرمان میادش)
خروجی دستور ls /usr/lib/ | grep -i nvidia :
nvidia
nvidia-304
nvidia-settings-304
تو فایل bumblebee با nvidia-current زدم . به این شکل :
# 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_current
# 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
Module=nvidia
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
خروجی دستور optirun glxgear اینه :
[  200.354374] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[  200.354415] [ERROR]Could not connect to bumblebee daemon - is it running?
« آخرین ویرایش: 28 آبان 1392، 10:02 ق‌ظ توسط v.taghavi68 »
وای بر شما اگر این علم اندک وسیله ای برای طغیانتان شود

آفلاین ساسان

  • Hero Member
  • *
  • ارسال: 991
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #19 : 28 آبان 1392، 10:22 ق‌ظ »
نقل‌قول
و دستور sudo dpkg-reconfigure nvidia-current این هم هیچ خروجی نداره (بلافاصله اعلان خط فرمان میادش)
این چطور؟
sudo dpkg-reconfigure nvidia-304
نقل‌قول
تو فایل bumblebee با nvidia-current زدم . به این شکل :
باز هم میگم کانفیگی که می‌نویسی اشتباست. تو اگر در بخش bumblebeed درایور رو روی nvidia_current بزاری پایین تر دنبال سکشن nvidia_current میگرده که همچین چیزی وجود نداره. بزارش رو nvidia باشه.
برای تماس با من: hello [at] sasan.me

آفلاین v.taghavi68

  • Hero Member
  • *
  • ارسال: 915
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #20 : 28 آبان 1392، 10:39 ق‌ظ »
دستور sudo dpkg-reconfigure nvidia-304 :
Removing all DKMS Modules
Done.
INFO:Enable nvidia-304
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-304-304.88 DKMS files...
Building only for 3.8.0-33-generic
Building for architecture x86_64
Building initial module for 3.8.0-33-generic
Done.

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

depmod....

DKMS: install completed.
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
الان با این خروجی دقیقا من فایل bumblebee م رو چطور تنظیم کنم ممنون میشم فایل تنظیم رو برام بذاری چون من با هر چی بود تست کردم ولی جواب نگرفتم
وای بر شما اگر این علم اندک وسیله ای برای طغیانتان شود

آفلاین ساسان

  • Hero Member
  • *
  • ارسال: 991
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #21 : 28 آبان 1392، 10:49 ق‌ظ »
اوکی حالا اسم ماژول و دایرکتوری ها رو داری. یه کانفیگ بر اساس‌شون بنویس.
من باید برم بانک. برگشتم برات میسازم.
برای تماس با من: hello [at] sasan.me

آفلاین v.taghavi68

  • Hero Member
  • *
  • ارسال: 915
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #22 : 28 آبان 1392، 11:16 ق‌ظ »
اینجوری ویرایشش کردم. درسته؟؟ :
# 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_304
Module=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-304:/usr/lib32/nvidia-304
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-304/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
ولی بازم نشد و خروجی optirun glxgear :
(gedit:2843): IBUS-WARNING **: The owner of /home/vahid/.config/ibus/bus is not root!
vahid@Z500-Ubuntu13:~$ optirun glxgear
[  275.883684] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  275.883738] [ERROR]Aborting because fallback start is disabled.
و اینم خروجی دستور sudo /usr/sbin/bumblebeed -vv --driver nvidia :
[  327.277434] [DEBUG]Found card: 01:00.0 (discrete)
[  327.277463] [DEBUG]Found card: 00:02.0 (integrated)
[  327.277472] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  327.277879] [INFO]Configured driver: nvidia
[  327.277899] [DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[  327.278043] [DEBUG]Process /sbin/modprobe started, PID 2894.
[  327.278115] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[  327.280239] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  327.280407] [DEBUG]bbswitch has been detected.
[  327.280453] [INFO]Switching method 'bbswitch' is available and will be used.
[  327.280492] [DEBUG]Active configuration:
[  327.280537] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  327.280572] [DEBUG] X display: :8
[  327.280606] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-304:/usr/lib32/nvidia-304
[  327.280642] [DEBUG] Socket path: /var/run/bumblebee.socket
[  327.280676] [DEBUG] pidfile: /var/run/bumblebeed.pid
[  327.280711] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[  327.280746] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d
[  327.280781] [DEBUG] ModulePath: /usr/lib/nvidia-304/xorg,/usr/lib/xorg/modules
[  327.280818] [DEBUG] GID name: bumblebee
[  327.280853] [DEBUG] Power method: auto
[  327.280889] [DEBUG] Stop X on exit: 1
[  327.280923] [DEBUG] Driver: nvidia
[  327.280958] [DEBUG] Driver module: nvidia_304
[  327.280994] [DEBUG] Card shutdown state: 1
[  327.281161] [DEBUG]Process /sbin/modprobe started, PID 2895.
[  327.281197] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[  327.283090] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  327.283137] [DEBUG]Configuration test passed.
[  327.283257] [ERROR]Daemon already running, pid 1592
ممنون میشم برگشتی برام بسازی.چک داری بگو خودم شر خر بفرستم نقدش کنه... ;D ;)
وای بر شما اگر این علم اندک وسیله ای برای طغیانتان شود

آفلاین ساسان

  • Hero Member
  • *
  • ارسال: 991
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #23 : 28 آبان 1392، 02:47 ب‌ظ »
محتوی فایل زیر رو برام بزار:
/etc/bumblebee/xorg.conf.nvidia
برای تماس با من: hello [at] sasan.me

آفلاین v.taghavi68

  • Hero Member
  • *
  • ارسال: 915
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #24 : 28 آبان 1392، 03:13 ب‌ظ »
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
اینم خروجی دستور lspci | egrep 'VGA':
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)و این خروجی دستور lspci | egrep 'VGA|3D' :
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev ff)
فقط نمیدونم بین این ۲ دستور بالا چه فرقی هست که اولی nvidia 740m  رو نمیشناسه ولی دومی میشناسه..!!
« آخرین ویرایش: 28 آبان 1392، 03:27 ب‌ظ توسط v.taghavi68 »
وای بر شما اگر این علم اندک وسیله ای برای طغیانتان شود

آفلاین ساسان

  • Hero Member
  • *
  • ارسال: 991
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #25 : 28 آبان 1392، 04:02 ب‌ظ »
متوجه شدم مشکل کجاست. فقط درک نمی‌کنم چرا ابونتو اصرار داره همه چی رو پچ کنه.
از این 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
اگر بالایی جواب نداد این رو تست کن:
# 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-304
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-304:/usr/lib32/nvidia-304
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-304/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
یادت نره بعد از هربار عوض کردن کانفیگ سرویس رو ریست کنی.
نقل‌قول
فقط نمیدونم بین این ۲ دستور بالا چه فرقی هست که اولی nvidia 740m  رو نمیشناسه ولی دومی میشناسه..!!
دومی درست تره چون 740m به عنوان 3D controller شناخته میشه و نه VGA compatible controller
« آخرین ویرایش: 28 آبان 1392، 04:04 ب‌ظ توسط ساسان »
برای تماس با من: hello [at] sasan.me

آفلاین v.taghavi68

  • Hero Member
  • *
  • ارسال: 915
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #26 : 28 آبان 1392، 04:31 ب‌ظ »
ساسان با هر ۲تاش تست کردم بازم موقع اجرا اینو میده :
[  372.759345] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  372.759399] [ERROR]Aborting because fallback start is disabled.
امکانش رو داری با teamviewer وصل شی خودت دقیقا چک کنی ؟؟
اگر داری این id منه اددم کن تا user , pass  رو بدم با team viewer وصل شی
v.taghavi_68@yahoo.com
وای بر شما اگر این علم اندک وسیله ای برای طغیانتان شود

آفلاین ساسان

  • Hero Member
  • *
  • ارسال: 991
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #27 : 28 آبان 1392، 05:04 ب‌ظ »
دو روزه سعی می‌کنیم درایوری رو لود کنیم که اصلا از چیپ 740M پشتیبانی نمیکنه. پشتیبانی 740M از نسخه ۳۱۹ اضافه شده!
درایورهای جدیدتر از xorg edgers قابل نصبه ولی به نظرم الان بهترین زمان برای به روزرسانی به ۱۳.۱۰ باشه.
نقل‌قول
امکانش رو داری با teamviewer وصل شی خودت دقیقا چک کنی ؟؟
اگر داری این id منه اددم کن تا user , pass  رو بدم با team viewer وصل شی
v.taghavi_68@yahoo.com
نه متاسفانه حساب teamviewer ندارم. در واقع تا حالا اصلا باش کار نکردم.
« آخرین ویرایش: 28 آبان 1392، 05:11 ب‌ظ توسط ساسان »
برای تماس با من: hello [at] sasan.me

آفلاین v.taghavi68

  • Hero Member
  • *
  • ارسال: 915
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #28 : 28 آبان 1392، 05:18 ب‌ظ »
ساسان جان واقعا نمیدونم چه جوری باید ازت بخاظر این همه زحمتی که کشیدی و محبتی که به من داشتی تشکر کنم.من الان ۱۳.۱۰ رو گرفتم میخوام نصبش کنم فقط اگه دقیقا روش کار نصب درایور nvidia-331  رو به همراه bumblebee روی اوبونتو ۱۳.۱۰ رو توضیح بدی ممنونت میشم. در رابطه با بسته prime  که روی ۱۳.۱۰ اومده چیزی میدونی؟ روش خوبی هست یا همون bumblebee بهتره؟؟ این لینک توضیح prime هستش :
http://www.webupd8.org/2013/08/using-nvidia-graphics-drivers-with.html
وای بر شما اگر این علم اندک وسیله ای برای طغیانتان شود

آفلاین ساسان

  • Hero Member
  • *
  • ارسال: 991
  • جنسیت : پسر
پاسخ : کار نکردن bumblebee بعد از نصب
« پاسخ #29 : 28 آبان 1392، 05:51 ب‌ظ »
نقل‌قول
ساسان جان واقعا نمیدونم چه جوری باید ازت بخاظر این همه زحمتی که کشیدی و محبتی که به من داشتی تشکر کنم.من الان ۱۳.۱۰ رو گرفتم میخوام نصبش کنم فقط اگه دقیقا روش کار نصب درایور nvidia-331  رو به همراه bumblebee روی اوبونتو ۱۳.۱۰ رو توضیح بدی ممنونت میشم. در رابطه با بسته prime  که روی ۱۳.۱۰ اومده چیزی میدونی؟ روش خوبی هست یا همون bumblebee بهتره؟؟
خواهش می‌کنم، کاری نکردم.
اتفاقا نصب آخرین درایور و bumblebee خیلی ساده است.
اول xorg edgers رو اضافه کن:
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
و بعد راهنمای نصب بامبلی از آزادراه رو برو!
با اضافه کردن xorg edgers بسته nvidia-current که یک بسته مجازی هست به آخرین درایور nvidia اشاره می‌کنه. کانفیگ پیش‌فرض bumblebee هم حالت auto detect داره پس ماژول درست رو لود می‌کنه. فقط حواست باشه اگه نصاب درایور nvidia برات xorg.conf نوشت پاکش کنی.
اگر مشکلی پیش آمد تو این همین تاپیک با هم بررسی‌ش می‌کنیم :)
نقل‌قول
در رابطه با بسته prime  که روی ۱۳.۱۰ اومده چیزی میدونی؟ روش خوبی هست یا همون bumblebee بهتره؟؟ این لینک توضیح prime هستش :
http://www.webupd8.org/2013/08/using-nvidia-graphics-drivers-with.html
Prime یه اینترفیس بهتر برای استفاده از بامبل‌بی هست. اگر بامبل‌بی راه افتاد و با optirun تونستی برنامه‌ای رو بدون مشکل ران کنی، Prime هم قابل استفاده خواهد بود.
« آخرین ویرایش: 28 آبان 1392، 05:55 ب‌ظ توسط ساسان »
برای تماس با من: hello [at] sasan.me