Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.2 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[Solved] Getting bumblebee to work on Dell G3 3579

Post Reply
User avatar
toquinho
Forum Novice
Forum  Novice
Posts: 3
Joined: Mon Jan 21, 2019 2:10 pm

[Solved] Getting bumblebee to work on Dell G3 3579

#1

Post by toquinho » Mon Jan 21, 2019 2:41 pm

After trying to install Debian Stretch on my G3 3579, I am giving MX a try continuing the discussion from:
http://forums.debian.net/viewtopic.php?f=17&t=139769

I installed MX18 and did the following after installation:

Code: Select all

root@mx:~# history
    1  dpkg --add-architecture i386
    2  apt-get update
    3  apt-get upgrade
    6  ddm-mx -i nvidia
    7  shutdown -r now
    8  ddm-mx -i fixbumblebee
    9  shutdown -r now
   10  ddm-mx -i nvidia
As the original installation of the nvidia driver using ddm-mx did not bring the card to life, I gave it a second try. inxi now reports:

Code: Select all

toquinho@mx:~
$ inxi -G
Graphics:  Device-1: Intel driver: i915 v: kernel 
           Device-2: NVIDIA GP106M [GeForce GTX 1060] driver: N/A 
           Display: x11 server: X.Org 1.19.2 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) 
           v: 4.5 Mesa 18.2.6 
toquinho@mx:~
$ optirun inxi -G
[ 1778.285793] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card

[ 1778.285868] [ERROR]Aborting because fallback start is disabled.
toquinho@mx:~
$ primusrun inxi -G
/usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
Graphics:  Device-1: Intel driver: i915 v: kernel 
           Device-2: NVIDIA GP106M [GeForce GTX 1060] driver: N/A 
           Display: x11 server: X.Org 1.19.2 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           Message: No advanced graphics data found on this system. 
toquinho@mx:~
When I reinstall the nvidia driver, I get this:

Code: Select all

root@mx:/# ddm-mx -i nvidia
creating lock ...
===================================
Install drivers for: nvidia
Start at (m/d/y): 01/21/2019 16:37:33
===================================
Refreshing Sources with apt-get update

Continue?
  1) yes (default)
  2) no
Press <Enter> for the default entry
Use 'q' to quit

Hit:1 http://ftp.br.debian.org/debian stretch-updates InRelease
Ign:2 http://ftp.br.debian.org/debian stretch InRelease
Hit:3 http://ftp.br.debian.org/debian stretch Release
Hit:5 http://security.debian.org stretch/updates InRelease
Hit:6 http://mirror.adct.be/mx/antix/stretch stretch InRelease
Hit:7 http://mirror.adct.be/mx/mx/repo stretch InRelease
Reading package lists...

nvidia-optimus detected

Candidate is:  3.2.1-17~mx17+1
Installed is:  3.2.1-17~mx17+1

Would you like to check debian-backports for a later version?

Yes or No?

1: Yes
2: No

Enter Number of selection
1
Ok...
Enabling backports repo
Running apt-get update...
Hit:1 http://ftp.br.debian.org/debian stretch-updates InRelease
Ign:2 http://ftp.br.debian.org/debian stretch InRelease
Hit:3 http://ftp.br.debian.org/debian stretch Release
Hit:4 http://security.debian.org stretch/updates InRelease
Get:6 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:7 http://mirror.adct.be/mx/antix/stretch stretch InRelease
Hit:8 http://mirror.adct.be/mx/mx/repo stretch InRelease
Get:9 http://ftp.debian.org/debian stretch-backports/main amd64 Packages [564 kB]
Get:10 http://ftp.debian.org/debian stretch-backports/main i386 Packages [558 kB]
Get:11 http://ftp.debian.org/debian stretch-backports/main Translation-en [436 kB]
Get:12 http://ftp.debian.org/debian stretch-backports/contrib amd64 Packages [9,868 B]
Get:13 http://ftp.debian.org/debian stretch-backports/contrib i386 Packages [9,496 B]
Get:14 http://ftp.debian.org/debian stretch-backports/contrib Translation-en [6,693 B]
Get:15 http://ftp.debian.org/debian stretch-backports/non-free amd64 Packages [33.3 kB]
Get:16 http://ftp.debian.org/debian stretch-backports/non-free i386 Packages [27.5 kB]
Get:17 http://ftp.debian.org/debian stretch-backports/non-free Translation-en [37.0 kB]
Fetched 1,773 kB in 2s (616 kB/s)
Reading package lists...

Installing latest nvidia-detect package

Reading package lists...
Building dependency tree...
Reading state information...
nvidia-detect is already the newest version (390.87-6~bpo9+1).
The following packages were automatically installed and are no longer required:
  libva-drm1 libva-wayland1 libva-x11-1 libva1
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded.

Candidate is:  3.2.1-17~mx17+1
Debian backports candidate is:   3.2.1-17~mx17+1
Installed is:  3.2.1-17~mx17+1

nvidia driver already installed

Reinstall or quit?

1: Reinstall
2: quit

Enter Number of selection
1
reinstalling...


Need driver: bumblebee-nvidia (3.2.1-17~mx17+1)
 packages to install are  bumblebee-nvidia nvidia-driver nvidia-kernel-dkms primus primus-libs-ia32:i386 nvidia-settings virtualgl virtualgl-libs:i386

Continue?
  1) yes (default)
  2) no
Press <Enter> for the default entry
Use 'q' to quit

Frontend: 
Nvidia command  = apt-get install --reinstall -y --force-yes   bumblebee-nvidia nvidia-driver nvidia-kernel-dkms primus primus-libs-ia32:i386 nvidia-settings virtualgl virtualgl-libs:i386
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  libva-drm1 libva-wayland1 libva-x11-1 libva1
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/700 kB of archives.
                                                                                                                After this operation, 0 B of additional disk space will be used.
(Reading database ... 325692 files and directories currently installed.)                                                                                                        (Reading database ... 
Preparing to unpack .../build-essential_12.3_amd64.deb ...
Unpacking build-essential (12.3) over (12.3) ...
Preparing to unpack .../firmware-linux-nonfree_20180825+dfsg-1~mx17+2_all.deb ...
Unpacking firmware-linux-nonfree (20180825+dfsg-1~mx17+2) over (20180825+dfsg-1~mx17+2) ...
Preparing to unpack .../linux-headers-4.19.0-1-amd64_4.19.5-2~mx17+1_amd64.deb ...
Unpacking linux-headers-4.19.0-1-amd64 (4.19.5-2~mx17+1) over (4.19.5-2~mx17+1) ...
Setting up build-essential (12.3) ...
Setting up linux-headers-4.19.0-1-amd64 (4.19.5-2~mx17+1) ...
Setting up firmware-linux-nonfree (20180825+dfsg-1~mx17+2) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  libva-drm1 libva-wayland1 libva-x11-1 libva1
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 9 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/11.1 MB of archives.
                                                                                                                 After this operation, 0 B of additional disk space will be used.
(Reading database ... 325692 files and directories currently installed.)                                                                                                         (Reading database ... 
Preparing to unpack .../0-nvidia-driver_390.87-4~mx17+1_amd64.deb ...
Unpacking nvidia-driver (390.87-4~mx17+1) over (390.87-4~mx17+1) ...
Preparing to unpack .../1-nvidia-kernel-dkms_390.87-4~mx17+1_amd64.deb ...

-------- Uninstall Beginning --------
Module:  nvidia-current
Version: 390.87
Kernel:  4.19.0-1-amd64 (x86_64)
-------------------------------------

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

nvidia-current.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-1-amd64/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.


nvidia-current-modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-1-amd64/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.


nvidia-current-drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-1-amd64/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.


nvidia-current-uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-1-amd64/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: 390.87
completely from the DKMS tree.
------------------------------
Done.
Unpacking nvidia-kernel-dkms (390.87-4~mx17+1) over (390.87-4~mx17+1) ...
Preparing to unpack .../2-nvidia-settings_390.67-1~mx17+1_amd64.deb ...
Unpacking nvidia-settings (390.67-1~mx17+1) over (390.67-1~mx17+1) ...
Preparing to unpack .../3-bumblebee-nvidia_3.2.1-17~mx17+1_amd64.deb ...
Unpacking bumblebee-nvidia (3.2.1-17~mx17+1) over (3.2.1-17~mx17+1) ...
Preparing to unpack .../4-primus_0~20150328-4_amd64.deb ...
Unpacking primus (0~20150328-4) over (0~20150328-4) ...
Preparing to unpack .../5-primus-libs-ia32_0~20150328-4_i386.deb ...
Unpacking primus-libs-ia32:i386 (0~20150328-4) over (0~20150328-4) ...
Preparing to unpack .../6-virtualgl_2.5.2-1mx17+1_amd64.deb ...
Unpacking virtualgl (2.5.2-1mx17+1) over (2.5.2-1mx17+1) ...
Preparing to unpack .../7-virtualgl-libs_2.5.2-1mx17+1_amd64.deb ...
Unpacking virtualgl-libs:amd64 (2.5.2-1mx17+1) over (2.5.2-1mx17+1) ...
Preparing to unpack .../8-virtualgl-libs_2.5.2-1mx17+1_i386.deb ...
Unpacking virtualgl-libs:i386 (2.5.2-1mx17+1) over (2.5.2-1mx17+1) ...
Setting up primus-libs-ia32:i386 (0~20150328-4) ...
Processing triggers for nvidia-alternative (390.87-4~mx17+1) ...
Setting up primus (0~20150328-4) ...
Setting up nvidia-settings (390.67-1~mx17+1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up nvidia-kernel-dkms (390.87-4~mx17+1) ...
Loading new nvidia-current-390.87 DKMS files...
Building for 4.19.0-1-amd64
Building initial module for 4.19.0-1-amd64
Done.

nvidia-current:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.19.0-1-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.19.0-1-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.19.0-1-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.19.0-1-amd64/updates/dkms/

depmod...

DKMS: install completed.
Setting up virtualgl-libs:amd64 (2.5.2-1mx17+1) ...
Setting up virtualgl-libs:i386 (2.5.2-1mx17+1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up virtualgl (2.5.2-1mx17+1) ...
Setting up bumblebee-nvidia (3.2.1-17~mx17+1) ...
Setting up nvidia-driver (390.87-4~mx17+1) ...
Processing triggers for glx-alternative-nvidia (0.8.8~mx17+1) ...
Processing triggers for glx-alternative-mesa (0.8.8~mx17+1) ...
Processing triggers for update-glx (0.8.8~mx17+1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for glx-alternative-nvidia (0.8.8~mx17+1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-1-amd64
cryptsetup: WARNING: failed to detect canonical device of /dev/nvme0n1p2
cryptsetup: WARNING: could not determine root device from /etc/fstab
I: The initramfs will attempt to resume from /dev/nvme0n1p3
I: (UUID=f5ee98f5-0149-467d-99cd-4976d44d0341)
I: Set the RESUME variable to override this.
Processing triggers for bumblebee (3.2.1-17~mx17+1) ...
[ ok ] Restarting bumblebeed: bumblebeed.
groupadd: group 'bumblebee' already exists
groupadd: group 'video' already exists
[ ok ] Restarting bumblebeed: bumblebeed.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nvidia-xconfig' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libva-drm1 libva-wayland1 libva-x11-1 libva1
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mv: cannot stat '/etc/X11/xorg.conf': No such file or directory
Finished


Hit:1 http://ftp.br.debian.org/debian stretch-updates InRelease
Ign:2 http://ftp.br.debian.org/debian stretch InRelease                                                                                      
Hit:3 http://ftp.br.debian.org/debian stretch Release                                                                                        
Hit:5 http://security.debian.org stretch/updates InRelease                                                                            
Hit:6 http://mirror.adct.be/mx/antix/stretch stretch InRelease                     
Hit:7 http://mirror.adct.be/mx/mx/repo stretch InRelease
Reading package lists... Done                      

Press <Enter> to exit
root@mx:/# 
Last edited by toquinho on Thu Jan 24, 2019 7:46 am, edited 1 time in total.

User avatar
chrispop99
Forum Guide
Forum Guide
Posts: 2703
Joined: Tue Jan 27, 2009 3:07 pm

Re: Getting bumblebee to work on Dell G3 3579

#2

Post by chrispop99 » Mon Jan 21, 2019 3:22 pm

Welcome to the forum.

If you use the Nvidia driver installer availabe from MX Tools, it will attempt to detect an Optimus machine, and offer to install Bumblebee for you. I would not advise attempting to do this if there has been an earlier attempt at installing graphics drivers by another method; a fresh install would be the safest way.

Users have reported success using this method.

Chris
Test machines:
32-bit non-PAE - Thinkpad T41, 1.6GHz Pentium M, 1GB RAM.
32-bit PAE - DELL Latitude D610, 1.73GHz Pentium M, 2GB RAM.
64-bit - Lenovo T61, 2GHz Core 2 Duo, 2GB RAM
64-bit - Gigabyte Z77P-D3, Intel i3-3220, GeForce 8400 GS, 4GB PC3-12800.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 11059
Joined: Sun Dec 16, 2007 1:17 pm

Re: Getting bumblebee to work on Dell G3 3579

#3

Post by dolphin_oracle » Mon Jan 21, 2019 4:17 pm

chrispop99 wrote:
Mon Jan 21, 2019 3:22 pm
Welcome to the forum.

If you use the Nvidia driver installer availabe from MX Tools, it will attempt to detect an Optimus machine, and offer to install Bumblebee for you. I would not advise attempting to do this if there has been an earlier attempt at installing graphics drivers by another method; a fresh install would be the safest way.

Users have reported success using this method.

Chris
if the user wants to revert to the default state before trying to install nvidia drivers again, they can use

Code: Select all

ddm-mx -p nvidia
which will purge out the nvidia install. reboot, and then on the next attempt make sure to tell the system to install bumblebee. and remember, that second card won't kick in until you unless you use

optirun commandname



The user can also post the /var/log/ddm.log file if they did already select bumblebee and need to do some troubleshooting.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18
lenovo s21e - MX-18, antiX-17.3.1 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
toquinho
Forum Novice
Forum  Novice
Posts: 3
Joined: Mon Jan 21, 2019 2:10 pm

Re: Getting bumblebee to work on Dell G3 3579

#4

Post by toquinho » Mon Jan 21, 2019 5:35 pm

I accidentally came across this:

https://gist.github.com/s41m0n/323513c ... ac34c41c5

I followed the instructions (except for the installation of the nvidia driver and bumblebee, which were already on my system), and it seems to work now. inxi now returns:

Code: Select all

$ optirun inxi -G
Graphics:  Device-1: Intel driver: i915 v: kernel 
           Device-2: NVIDIA GP106M [GeForce GTX 1060] driver: nvidia v: 390.87 
           Display: x11 server: X.Org 1.19.2 driver: intel resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1060 with Max-Q Design/PCIe/SSE2 v: 4.6.0 NVIDIA 390.87 
And from glxspheres64 I get:

Code: Select all

$ glxspheres64 
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x107
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 GT2) 
60.476519 frames/sec - 67.491795 Mpixels/sec
59.992226 frames/sec - 66.951324 Mpixels/sec
toquinho@mx:~
$ optirun glxspheres64 
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GTX 1060 with Max-Q Design/PCIe/SSE2
273.553567 frames/sec - 305.285781 Mpixels/sec
276.275189 frames/sec - 308.323111 Mpixels/sec

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 18726
Joined: Fri Dec 15, 2006 8:07 pm

Re: Getting bumblebee to work on Dell G3 3579

#5

Post by Stevo » Tue Jan 22, 2019 7:18 pm

Great to see you found a solution!

There was someone here with a new Dell G5 that also got it working with a different method, so I bet it was just some tweak common to both methods that got both Dells working--perhaps the one for tlp. The blacklisting of nouveau and the creation of the systemd scripts wouldn't have helped with MX's default sysvinit boots and since nouveau is already blacklisted.

User avatar
toquinho
Forum Novice
Forum  Novice
Posts: 3
Joined: Mon Jan 21, 2019 2:10 pm

Re: Getting bumblebee to work on Dell G3 3579

#6

Post by toquinho » Thu Jan 24, 2019 7:42 am

Yes, thanks again for all your help. I will mark the thread as solved.

I will also update the thread in the Debian forum: http://forums.debian.net/viewtopic.php?f=17&t=139769

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 18726
Joined: Fri Dec 15, 2006 8:07 pm

Re: [Solved] Getting bumblebee to work on Dell G3 3579

#7

Post by Stevo » Fri Jan 25, 2019 6:27 pm

Looking at some Debian bugs for primus, it appears that it's not compatible with the Nvidia glvnd libraries, which are the default ones the 390.87 drivers are installing. The upstream version suggests switching to the non-glvnd libraries, but figuring that out still seems to be beyond apt, and there's the problem that primus is in main and can't reference non-free packages in Recommends (apparently primus works with nouveau, too). Aptitude can handle that tricky mess, according to reports, though. I can run glxspheres64 with

Code: Select all

__GLVND_DISALLOW_PATCHING=1 primusrun glxspheres64
and the Nvidia GPU led turns on, but the performance is that of the Intel card. Maybe I would need to link some libGL libraries, but I am not going to mess with it as long as optirun is working well. I will backport primus from Buster for the test repo to see if some of their added package conflicts help, though.

The OP tried installing Buster, but still had to perform the tweaks in his github link to get Bumblebee on his Dell G3 working there, too.

Post Reply

Return to “Hardware /Configuration”