Perma-Setting Dedicated Graphics Card
Tofloor
poster avatar
onur
deepin
2017-06-07 13:26
Author
Edited by onur at 2017-6-7 05:27

Hello everyone,

I have an Optimus notebook and Bumblebee is installed by default. However, I want my dedicated graphic card work all the time -like permanent- instead of switching between integrated and dedicated. Does anybody know how to do that?

Reply Favorite View the author
All Replies
jingle
deepin
2017-06-07 16:42
#1
Reply View the author
liujianfeng
deepin
2017-06-07 17:44
#2
Bumblebee can't do it
Prime could support that but deepin doesn't support prime now
Reply View the author
liujianfeng
deepin
2017-06-07 19:16
#3
本帖最后由 liujianfeng 于 2017-6-7 11:18 编辑

If you still want prime, you can follow the steps below:
1, make sure your tty or ssh is usable in case you have to fix something when X crashes
2, sudo apt-get remove bumblebee bumblebee-nvidia
3, edit a config file /etc/X11/xorg.conf.d/nvidia.conf according to the instruction
4, config the lightdm start script according to this instruction
5, reboot and your system is running on your nvidia card if anything is ok

I've just tried prime on a optimus laptop with GTX860m.It seems that bumblebee's score is higher than prime's:

Reply View the author
onur
deepin
2017-06-08 11:32
#4
https://bbs.deepin.org/post/140657
本帖最后由 liujianfeng 于 2017-6-7 11:18 编辑

If you still want prime, you can follow the steps b ...

Liujianfeng thank you for your response, but I am a newbie to Linux and I don't think I can follow that guide. The main reason I wanted to make dedicated graphics default is that it seems I can not run games with it through Bumblebee.

The game, in this case, is a steam game and given my rig it should be no problem running it with high fps. Yet it seems I can not make it run with the Nvidia card. I have tried putting this "primusrun %command%" in the launcher options, but then the game does not load. I have had the feedback file attached, I hope you can help me solve this.
Reply View the author
liujianfeng
deepin
2017-06-08 17:08
#5
https://bbs.deepin.org/post/140657
Liujianfeng thank you for your response, but I am a newbie to Linux and I don't think I can follow ...

what't the output when you simplely run
  1. primusrun dde-file-manager
Copy the Code

in terminal?
which game on steam did you run?
Reply View the author
onur
deepin
2017-06-09 02:41
#6
  1. /usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
  2. "dtkwidget" can not find qm files
  3. "dde-file-manager" can not find qm files
  4. 2017-06-08, 13:40:10.657 [Debug  ] [qsettingbackend.cpp  Dtk::QSettingBackend::QSettingBackend 36] create config "/home/onur/.config/deepin/dde-file-manager/dde-file-manager.conf"
  5. 2017-06-08, 13:40:10.660 [Debug  ] [singleapplication.cpp SingleApplication::userServerName   104] "/run/user/1000/dde-file-manager"
  6. 2017-06-08, 13:40:10.661 [Debug  ] [main.cpp             main                                172] true (DUrl("computer:///"))
  7. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           46] "/usr/bin/plugins"
  8. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           50] load plugin in:  "/usr/bin/plugins/menu"
  9. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           50] load plugin in:  "/usr/bin/plugins/view"
  10. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           78] menu plugin size: 0
  11. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           79] expand info size: 0
  12. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           80] view size: 0
  13. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           46] "/usr/bin/plugins"
  14. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           50] load plugin in:  "/usr/bin/plugins/menu"
  15. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           50] load plugin in:  "/usr/bin/plugins/view"
  16. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           78] menu plugin size: 0
  17. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           79] expand info size: 0
  18. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           80] view size: 0
  19. 2017-06-08, 13:40:10.661 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/searchhistory.json" : "No such file or directory"
  20. 2017-06-08, 13:40:10.662 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  21. 2017-06-08, 13:40:10.662 [Debug  ] [searchhistroymanager.cpp SearchHistroyManager::load          39] Couldn't open search data file!
  22. 2017-06-08, 13:40:10.662 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/bookmark.json" : "No such file or directory"
  23. 2017-06-08, 13:40:10.662 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  24. 2017-06-08, 13:40:10.698 [Debug  ] [networkmanager.cpp   NetworkManager::NetworkManager      74] Create NetworkManager
  25. 2017-06-08, 13:40:10.699 [Debug  ] [gvfsmountclient.cpp  GvfsMountClient::GvfsMountClient    24] Create GvfsMountClient
  26. 2017-06-08, 13:40:10.699 [Debug  ] [secretmanager.cpp    SecretManager::SecretManager        17] Create SecretManager
  27. 2017-06-08, 13:40:10.699 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/samba.json" : "No such file or directory"
  28. 2017-06-08, 13:40:10.699 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  29. 2017-06-08, 13:40:10.699 [Debug  ] [secretmanager.cpp    SecretManager::loadCache            138] Couldn't write samba file!
  30. QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
  31. QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
  32. 2017-06-08, 13:40:10.721 [Debug  ] [gvfsmountmanager.cpp GvfsMountManager::updateDiskInfos   812] QMap()
  33. 2017-06-08, 13:40:10.723 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/FMState.json" : "No such file or directory"
  34. 2017-06-08, 13:40:10.723 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  35. 2017-06-08, 13:40:10.723 [Debug  ] [basemanager.cpp      BaseManager::readCacheFromFile      47] "/home/onur/.config/deepin/dde-file-manager/fmstate.json"
  36. 2017-06-08, 13:40:10.724 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/sort.json" : "No such file or directory"
  37. 2017-06-08, 13:40:10.724 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  38. 2017-06-08, 13:40:10.724 [Debug  ] [basemanager.cpp      BaseManager::readCacheFromFile      47] "/home/onur/.config/deepin/dde-file-manager/sort.json"
  39. 2017-06-08, 13:40:10.724 [Debug  ] [basemanager.cpp      BaseManager::readCacheFromFile      51] "/home/onur/.config/deepin/dde-file-manager/sort.json" isn't exists!
  40. 2017-06-08, 13:40:10.724 [Debug  ] [fmstatemanager.cpp   FMStateManager::loadSortCache       88] QMap()
  41. 2017-06-08, 13:40:10.797 [Warning] [                                                         0] QLayout: Attempting to add QLayout "" to DFileManagerWindow "", which already has a layout
  42. 2017-06-08, 13:40:10.803 [Debug  ] [                                                         0] Unknown property paddings
  43. 2017-06-08, 13:40:10.807 [Warning] [                                                         0] QObject::connect: Cannot connect Dtk::Widget::DTitlebar::minimumClicked() to (null)::showMinimized()
  44. 2017-06-08, 13:40:10.807 [Warning] [                                                         0] QObject::connect: Cannot connect Dtk::Widget::DTitlebar::maximumClicked() to (null)::showMaximized()
  45. 2017-06-08, 13:40:10.807 [Warning] [                                                         0] QObject::connect: Cannot connect Dtk::Widget::DTitlebar::restoreClicked() to (null)::showNormal()
  46. 2017-06-08, 13:40:10.807 [Warning] [                                                         0] QObject::connect: Cannot connect Dtk::Widget::DTitlebar::closeClicked() to (null)::close()
  47. 2017-06-08, 13:40:10.877 [Warning] [                                                         0] QWidget::setMinimumSize: (/QLabel) Negative sizes (-1,-1) are not possible
  48. 2017-06-08, 13:40:10.880 [Debug  ] [dcrumbwidget.cpp     DCrumbWidget::setCrumb              148] DUrl("") QWidget(0x0)
  49. 2017-06-08, 13:40:10.881 [Debug  ] [dfileview.cpp        DFileView::setRootUrl               1770] This scheme isn't support
  50. 2017-06-08, 13:40:10.881 [Debug  ] [dfilemanagerwindow.cpp DFileManagerWindow::preHandleCd     343] DUrl("computer:///") 7 QSet("computer") QMap(("fileview0", DFileView(0x55e66c4513d0, name="FileView"))) true
  51. 2017-06-08, 13:40:10.889 [Debug  ] [computerview.cpp     ComputerView::volumeAdded           600] ===========volumeAdded============= "/" false false
  52. 2017-06-08, 13:40:10.935 [Debug  ] [dfilemanagerwindow.cpp DFileManagerWindow::showPluginView  430] Delay create view "computer0" ComputerView(0x55e66c8508c0)
  53. 2017-06-08, 13:40:10.943 [Debug  ] [dcrumbwidget.cpp     DCrumbWidget::setCrumb              148] DUrl("computer:///") QWidget(0x0)
  54. 2017-06-08, 13:40:10.945 [Debug  ] [dcrumbbutton.cpp     DCrumbIconButton::checkStateSet     126] Check state changed:  true
  55. 2017-06-08, 13:40:10.945 [Debug  ] [dbookmarkscene.cpp   DBookmarkScene::currentUrlChanged   427] DBookmarkScene(0x55e66c4a0160) window id: 104857604 source: 7 url DUrl("computer:///") urlList{ }
  56. 2017-06-08, 13:40:10.950 [Debug  ] [                                                         0] Unknown property paddings
  57. 2017-06-08, 13:40:10.950 [Debug  ] [                                                         0] Unknown property paddings
  58. 2017-06-08, 13:40:10.955 [Debug  ] [windowmanager.cpp    WindowManager::showNewWindow        147] new window 104857604 DUrl("computer:///")
  59. 2017-06-08, 13:40:11.720 [Debug  ] [mimesappsmanager.cpp MimesAppsManager::initMimeTypeApps  518] getMimeTypeApps in QThread(0x55e66c4946d0) QThread(0x55e66c1e9ce0)
  60. 2017-06-08, 13:40:11.743 [Debug  ] [dcrumbwidget.cpp     DCrumbWidget::setCrumb              148] DUrl("computer:///") QWidget(0x0)
  61. 2017-06-08, 13:40:11.744 [Debug  ] [dcrumbbutton.cpp     DCrumbIconButton::checkStateSet     126] Check state changed:  true
  62. Mounting AVFS on /home/onur/.avfs...
  63. 2017-06-08, 13:40:13.842 [Debug  ] [usersharemanager.cpp UserShareManager::addCurrentUserToSambashareGroup 364] add "onur" to sambashare group true
  64. 2017-06-08, 13:40:13.847 [Debug  ] [usersharemanager.cpp UserShareManager::restartSambaService 374] restartSambaService true
Copy the Code


Counter Strike 1.6
Reply View the author
onur
deepin
2017-06-10 11:58
#7
https://bbs.deepin.org/post/140657
what't the output when you simplely run

in terminal?
  1. /usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
  2. "dtkwidget" can not find qm files
  3. "dde-file-manager" can not find qm files
  4. 2017-06-08, 13:40:10.657 [Debug  ] [qsettingbackend.cpp  Dtk::QSettingBackend::QSettingBackend 36] create config "/home/onur/.config/deepin/dde-file-manager/dde-file-manager.conf"
  5. 2017-06-08, 13:40:10.660 [Debug  ] [singleapplication.cpp SingleApplication::userServerName   104] "/run/user/1000/dde-file-manager"
  6. 2017-06-08, 13:40:10.661 [Debug  ] [main.cpp             main                                172] true (DUrl("computer:///"))
  7. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           46] "/usr/bin/plugins"
  8. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           50] load plugin in:  "/usr/bin/plugins/menu"
  9. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           50] load plugin in:  "/usr/bin/plugins/view"
  10. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           78] menu plugin size: 0
  11. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           79] expand info size: 0
  12. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           80] view size: 0
  13. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           46] "/usr/bin/plugins"
  14. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           50] load plugin in:  "/usr/bin/plugins/menu"
  15. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           50] load plugin in:  "/usr/bin/plugins/view"
  16. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           78] menu plugin size: 0
  17. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           79] expand info size: 0
  18. 2017-06-08, 13:40:10.661 [Debug  ] [pluginmanager.cpp    PluginManager::loadPlugin           80] view size: 0
  19. 2017-06-08, 13:40:10.661 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/searchhistory.json" : "No such file or directory"
  20. 2017-06-08, 13:40:10.662 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  21. 2017-06-08, 13:40:10.662 [Debug  ] [searchhistroymanager.cpp SearchHistroyManager::load          39] Couldn't open search data file!
  22. 2017-06-08, 13:40:10.662 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/bookmark.json" : "No such file or directory"
  23. 2017-06-08, 13:40:10.662 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  24. 2017-06-08, 13:40:10.698 [Debug  ] [networkmanager.cpp   NetworkManager::NetworkManager      74] Create NetworkManager
  25. 2017-06-08, 13:40:10.699 [Debug  ] [gvfsmountclient.cpp  GvfsMountClient::GvfsMountClient    24] Create GvfsMountClient
  26. 2017-06-08, 13:40:10.699 [Debug  ] [secretmanager.cpp    SecretManager::SecretManager        17] Create SecretManager
  27. 2017-06-08, 13:40:10.699 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/samba.json" : "No such file or directory"
  28. 2017-06-08, 13:40:10.699 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  29. 2017-06-08, 13:40:10.699 [Debug  ] [secretmanager.cpp    SecretManager::loadCache            138] Couldn't write samba file!
  30. QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
  31. QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
  32. 2017-06-08, 13:40:10.721 [Debug  ] [gvfsmountmanager.cpp GvfsMountManager::updateDiskInfos   812] QMap()
  33. 2017-06-08, 13:40:10.723 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/FMState.json" : "No such file or directory"
  34. 2017-06-08, 13:40:10.723 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  35. 2017-06-08, 13:40:10.723 [Debug  ] [basemanager.cpp      BaseManager::readCacheFromFile      47] "/home/onur/.config/deepin/dde-file-manager/fmstate.json"
  36. 2017-06-08, 13:40:10.724 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 811] Could not read source file  "/home/onur/.cache/dde-file-manager/sort.json" : "No such file or directory"
  37. 2017-06-08, 13:40:10.724 [Debug  ] [fileutils.cpp        FileUtils::migrateConfigFileFromCache 815] Failed to migrate config file from cache
  38. 2017-06-08, 13:40:10.724 [Debug  ] [basemanager.cpp      BaseManager::readCacheFromFile      47] "/home/onur/.config/deepin/dde-file-manager/sort.json"
  39. 2017-06-08, 13:40:10.724 [Debug  ] [basemanager.cpp      BaseManager::readCacheFromFile      51] "/home/onur/.config/deepin/dde-file-manager/sort.json" isn't exists!
  40. 2017-06-08, 13:40:10.724 [Debug  ] [fmstatemanager.cpp   FMStateManager::loadSortCache       88] QMap()
  41. 2017-06-08, 13:40:10.797 [Warning] [                                                         0] QLayout: Attempting to add QLayout "" to DFileManagerWindow "", which already has a layout
  42. 2017-06-08, 13:40:10.803 [Debug  ] [                                                         0] Unknown property paddings
  43. 2017-06-08, 13:40:10.807 [Warning] [                                                         0] QObject::connect: Cannot connect Dtk::Widget::DTitlebar::minimumClicked() to (null)::showMinimized()
  44. 2017-06-08, 13:40:10.807 [Warning] [                                                         0] QObject::connect: Cannot connect Dtk::Widget::DTitlebar::maximumClicked() to (null)::showMaximized()
  45. 2017-06-08, 13:40:10.807 [Warning] [                                                         0] QObject::connect: Cannot connect Dtk::Widget::DTitlebar::restoreClicked() to (null)::showNormal()
  46. 2017-06-08, 13:40:10.807 [Warning] [                                                         0] QObject::connect: Cannot connect Dtk::Widget::DTitlebar::closeClicked() to (null)::close()
  47. 2017-06-08, 13:40:10.877 [Warning] [                                                         0] QWidget::setMinimumSize: (/QLabel) Negative sizes (-1,-1) are not possible
  48. 2017-06-08, 13:40:10.880 [Debug  ] [dcrumbwidget.cpp     DCrumbWidget::setCrumb              148] DUrl("") QWidget(0x0)
  49. 2017-06-08, 13:40:10.881 [Debug  ] [dfileview.cpp        DFileView::setRootUrl               1770] This scheme isn't support
  50. 2017-06-08, 13:40:10.881 [Debug  ] [dfilemanagerwindow.cpp DFileManagerWindow::preHandleCd     343] DUrl("computer:///") 7 QSet("computer") QMap(("fileview0", DFileView(0x55e66c4513d0, name="FileView"))) true
  51. 2017-06-08, 13:40:10.889 [Debug  ] [computerview.cpp     ComputerView::volumeAdded           600] ===========volumeAdded============= "/" false false
  52. 2017-06-08, 13:40:10.935 [Debug  ] [dfilemanagerwindow.cpp DFileManagerWindow::showPluginView  430] Delay create view "computer0" ComputerView(0x55e66c8508c0)
  53. 2017-06-08, 13:40:10.943 [Debug  ] [dcrumbwidget.cpp     DCrumbWidget::setCrumb              148] DUrl("computer:///") QWidget(0x0)
  54. 2017-06-08, 13:40:10.945 [Debug  ] [dcrumbbutton.cpp     DCrumbIconButton::checkStateSet     126] Check state changed:  true
  55. 2017-06-08, 13:40:10.945 [Debug  ] [dbookmarkscene.cpp   DBookmarkScene::currentUrlChanged   427] DBookmarkScene(0x55e66c4a0160) window id: 104857604 source: 7 url DUrl("computer:///") urlList{ }
  56. 2017-06-08, 13:40:10.950 [Debug  ] [                                                         0] Unknown property paddings
  57. 2017-06-08, 13:40:10.950 [Debug  ] [                                                         0] Unknown property paddings
  58. 2017-06-08, 13:40:10.955 [Debug  ] [windowmanager.cpp    WindowManager::showNewWindow        147] new window 104857604 DUrl("computer:///")
  59. 2017-06-08, 13:40:11.720 [Debug  ] [mimesappsmanager.cpp MimesAppsManager::initMimeTypeApps  518] getMimeTypeApps in QThread(0x55e66c4946d0) QThread(0x55e66c1e9ce0)
  60. 2017-06-08, 13:40:11.743 [Debug  ] [dcrumbwidget.cpp     DCrumbWidget::setCrumb              148] DUrl("computer:///") QWidget(0x0)
  61. 2017-06-08, 13:40:11.744 [Debug  ] [dcrumbbutton.cpp     DCrumbIconButton::checkStateSet     126] Check state changed:  true
  62. Mounting AVFS on /home/onur/.avfs...
  63. 2017-06-08, 13:40:13.842 [Debug  ] [usersharemanager.cpp UserShareManager::addCurrentUserToSambashareGroup 364] add "onur" to sambashare group true
  64. 2017-06-08, 13:40:13.847 [Debug  ] [usersharemanager.cpp UserShareManager::restartSambaService 374] restartSambaService true
Copy the Code


The game in question is Counter Strike 1.6.
Reply View the author
onur
deepin
2017-06-13 06:52
#8
Regardless of the game, soon Albion will be released and I will need to find a way to make "primusrun" work.
Reply View the author
onur
deepin
2017-06-20 08:10
#9
Bump. Anyone?
Reply View the author