LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-01-2018, 10:58 AM   #16
BradReed
Member
 
Registered: Apr 2015
Location: Earth
Distribution: Slackware-current
Posts: 39

Rep: Reputation: 12

Quote:
Originally Posted by Cristiano Urban View Post
First of all, happy new year to everyone!

Inspecting the output of dmesg and lsmod I've found something else:
Code:
bash-4.3# dmesg | grep nvidia
[    5.769452] nvidia: module license 'NVIDIA' taints kernel.
[    5.778638] nvidia 0000:04:00.0: enabling device (0006 -> 0007)
[    5.778919] nvidia-nvlink: Nvlink Core is being initialized, major device number 245
[    5.794660] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  375.39  Tue Jan 31 19:41:48 PST 2017
[    6.844080] [drm] [nvidia-drm] [GPU ID 0x00000400] Loading driver
That looks ok to me...although it is a bit different than what I see on my box. I see this, although I am using a different NVIDIA version (384.98):
Code:
[    7.540884] nvidia: loading out-of-tree module taints kernel.
[    7.540888] nvidia: module license 'NVIDIA' taints kernel.
[    7.547889] nvidia-nvlink: Nvlink Core is being initialized, major device number 249
[    7.548035] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    7.548103] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    7.548166] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  384.98  Thu Oct 26 15:16:01 PDT 2017 (using threaded interrupts)

With regard to this:
Code:
bash-4.3# lsmod | grep nvidia
nvidia_drm             44041  0
nvidia_modeset        783360  1 nvidia_drm
nvidia              12124768  1 nvidia_modeset
drm_kms_helper        119004  2 i915,nvidia_drm
drm                   323286  6 i915,drm_kms_helper,nvidia_drm
i2c_core               47925  14 drm,i915,i2c_i801,elan_i2c,i2c_dev,i2c_hid,i2c_designware_core,i2c_designware_platform,drm_kms_helper,i2c_algo_bit,eeprom,nvidia,v4l2_common,videodev
It seems odd that you have both i915 and nvida modules loaded at the same time.
When I am using my i915 I do not see nvidia at all. I also do not seem to load the nvidia_modeset module.
Code:
10:24 # lsmod | grep nvidia
10:24 #
10:24 # lsmod | grep i915
i915                 1482752  15
i2c_algo_bit           16384  1 i915
drm_kms_helper        131072  1 i915
drm                   315392  7 i915,drm_kms_helper
intel_gtt              20480  1 i915
i2c_core               49152  8 i2c_algo_bit,videodev,i2c_i801,psmouse,i915,i2c_dev,drm_kms_helper,drm
However if I am using the nvidia card I see the modules:
Code:
10:31 # primusrun glxgears &
[1] 28206
10:32 # lsmod | grep nvidia
nvidia              13045760  207
i2c_core               49152  9 i2c_algo_bit,nvidia,videodev,i2c_i801,psmouse,i915,i2c_dev,drm_kms_helper,drm
Have you tried stopping bumblebee, manually unloading the nvidia modules so that they are not seen in the lsmod, then restarting bumblebee? Maybe even blacklisting them so they don't autoload on boot?


Code:
bash-4.3# dmesg | grep bbswitch
[   11.991415] bbswitch: version 0.8
[   11.991421] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[   11.991428] bbswitch: Found discrete VGA device 0000:04:00.0: \_SB_.PCI0.RP05.PXSX
[   11.991440] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[   11.991448] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[   11.991511] bbswitch: No suitable _DSM call found.
I don't know what to make of the above. It almost seems like your card is not recognized. Hopefully this would go away if both nvidia and i915 weren't both seemingly active at the same time?

For comparison, this is what I see:
Code:
10:35 # dmesg | grep bbswitch
[   54.365631] bbswitch: version 0.8
[   54.365635] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[   54.365639] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[   54.366015] bbswitch: detected an Optimus _DSM function
[   54.366027] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[   54.378866] bbswitch: disabling discrete graphics
[  182.276455] bbswitch: enabling discrete graphics
 
Old 01-01-2018, 03:00 PM   #17
Cristiano Urban
Member
 
Registered: Jul 2013
Location: Gonars (UD), Italy
Distribution: Slackware 14.2 x86_64
Posts: 53

Original Poster
Rep: Reputation: 4
Thank you for the hints, BradReed.

Quote:
Originally Posted by BradReed
It seems odd that you have both i915 and nvida modules loaded at the same time.
When I am using my i915 I do not see nvidia at all. I also do not seem to load the nvidia_modeset module.
I don't know what to say concerning this point. The only thing I can observe is that if I boot with the kernel 4.4.75, after launching the script and rebooting, all seems to work fine, despite having both the modules (intel and nvidia) loaded.
With the 4.4.75 the situation is the one below:
Code:
bash-4.3# lsmod | grep nvidia
nvidia_drm             44041  0
nvidia_modeset        783360  1 nvidia_drm
nvidia              12124768  1 nvidia_modeset
drm_kms_helper        118812  2 i915,nvidia_drm
drm                   323222  7 i915,drm_kms_helper,nvidia_drm
i2c_core               47925  14 drm,i915,i2c_i801,elan_i2c,i2c_dev,i2c_hid,i2c_designware_core,i2c_designware_platform,drm_kms_helper,i2c_algo_bit,eeprom,nvidia,v4l2_common,videodev
Furthermore, here bbswitch, apparently, is working fine:
Code:
bash-4.3# dmesg | grep bbswitch
[   12.294231] bbswitch: version 0.8
[   12.294237] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[   12.294243] bbswitch: Found discrete VGA device 0000:04:00.0: \_SB_.PCI0.RP05.PEGP
[   12.294393] bbswitch: detected an Optimus _DSM function
[   12.294401] bbswitch: Succesfully loaded. Discrete card 0000:04:00.0 is on
Quote:
Have you tried stopping bumblebee, manually unloading the nvidia modules so that they are not seen in the lsmod, then restarting bumblebee?
Yes, I've tried with the kernel 4.4.88, but this doesn't seem to fix the issue.
 
Old 01-02-2018, 02:27 AM   #18
BradReed
Member
 
Registered: Apr 2015
Location: Earth
Distribution: Slackware-current
Posts: 39

Rep: Reputation: 12
I'm running out of ideas. Random thoughts:

Did you change the kernel configs between the two?
Did you change options passed to the kernel via lilo/elilo/grub2 etc.?
Did you upgrade X or mesa after installing bumblebee?

Any interesting output in /var/log/Xorg.8.log
Code:
$ sudo tail -n 250 Xorg.8.log | grep -i nvidia
[368127.146] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[368127.146] (**) |   |-->Device "DiscreteNvidia"
[368127.146] (++) ModulePath set to "/usr/lib64/nvidia-bumblebee/xorg/modules,/usr/lib64/xorg/modules,/usr/lib64/xorg/modules/drivers"
[368127.148] (II) Loading /usr/lib64/nvidia-bumblebee/xorg/modules/extensions/libglx.so
[368127.150] (II) Module glx: vendor="NVIDIA Corporation"
[368127.150] (II) NVIDIA GLX Module  384.98  Thu Oct 26 14:35:55 PDT 2017
[368127.150] (II) LoadModule: "nvidia"
[368127.150] (II) Loading /usr/lib64/nvidia-bumblebee/xorg/modules/drivers/nvidia_drv.so
[368127.151] (II) Module nvidia: vendor="NVIDIA Corporation"
[368127.151] (II) NVIDIA dlloader X Driver  384.98  Thu Oct 26 14:06:45 PDT 2017
[368127.151] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[368127.161] (II) NVIDIA(0): Creating default Display subsection in Screen section
[368127.161] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[368127.161] (==) NVIDIA(0): RGB weight 888
[368127.161] (==) NVIDIA(0): Default visual is TrueColor
[368127.161] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[368127.161] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[368127.161] (**) NVIDIA(0): Option "UseEDID" "false"
[368127.161] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[368127.161] (**) NVIDIA(0): Enabling 2D acceleration
[368127.161] (**) NVIDIA(0): Ignoring EDIDs
[368127.161] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[368127.161] (**) NVIDIA(0):     mode
[368128.032] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 765M (GK106) at PCI:1:0:0 (GPU-0)
[368128.032] (--) NVIDIA(0): Memory: 2097152 kBytes
[368128.032] (--) NVIDIA(0): VideoBIOS: 80.06.64.00.01
[368128.032] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[368128.032] (II) NVIDIA(0): Validated MetaModes:
[368128.032] (II) NVIDIA(0):     "NULL"
[368128.032] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[368128.032] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[368128.032] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[368128.032] (II) NVIDIA: Using 6144.00 MB of virtual memory for indirect memory
[368128.033] (II) NVIDIA:     access.
[368128.054] (II) NVIDIA(0): Setting mode "NULL"
[368128.059] (==) NVIDIA(0): Disabling shared memory pixmaps
[368128.059] (==) NVIDIA(0): Backing store enabled
[368128.059] (==) NVIDIA(0): Silken mouse enabled
[368128.059] (==) NVIDIA(0): DPMS enabled
[368128.059] (WW) NVIDIA(0): Option "NoLogo" is not used
[368128.059] (II) NVIDIA(0): [DRI2] Setup complete
[368128.059] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[368128.616] (II) NVIDIA(GPU-0): Deleting GPU-0

I found a few old threads talking about \_SB_.PCI0.RP05.PXSX and suggesting the person having the issues try some patches related to ACPI, but they were from 2013, so I assume they were incorporated by now.

I also found some threads where a single person commented that that nvidia card is supported better after kernel 4.7, however it is working for you in 4.4.75.

All my examples were from my laptop currently running kernel 4.14.4 and NVIDIA 384.98.

Any chance you could try a kernel more recent than 4.4? or even a recent 4.4 kernel? 4.4.108 is out now.
 
1 members found this post helpful.
Old 01-02-2018, 04:04 PM   #19
Cristiano Urban
Member
 
Registered: Jul 2013
Location: Gonars (UD), Italy
Distribution: Slackware 14.2 x86_64
Posts: 53

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by BradReed
Did you change the kernel configs between the two?
Did you change options passed to the kernel via lilo/elilo/grub2 etc.?
Did you upgrade X or mesa after installing bumblebee?
I think the answer is "No" for all the three questions.
Quote:
Originally Posted by BradReed
I found a few old threads talking about \_SB_.PCI0.RP05.PXSX and suggesting the person having the issues try some patches related to ACPI, but they were from 2013, so I assume they were incorporated by now.
Yes, me too, mainly on issues discussions opened on GitHub.
Quote:
Originally Posted by BradReed
Any chance you could try a kernel more recent than 4.4? or even a recent 4.4 kernel? 4.4.108 is out now.
Since I use the stable branch of Slackware, I would prefer to keep the system as is.
The best solution for now, is to keep both the 4.4.75 and the 4.4.88 kernels, so that when I need to use the nvidia card I boot the 4.4.75.
 
Old 01-02-2018, 07:04 PM   #20
BradReed
Member
 
Registered: Apr 2015
Location: Earth
Distribution: Slackware-current
Posts: 39

Rep: Reputation: 12
Quote:
Originally Posted by Cristiano Urban View Post

Since I use the stable branch of Slackware, I would prefer to keep the system as is.
The best solution for now, is to keep both the 4.4.75 and the 4.4.88 kernels, so that when I need to use the nvidia card I boot the 4.4.75.
You could try a newer version of the NVIDIA driver. It is not that hard to change. Although NVidia keeps moving their download locations for the necessary bits.

I use a script like this to grab the files I need (change /tmp/NVIDIA to someplace suitable for you)
Code:
#!/usr/bin/bash

mkdir /tmp/NVIDIA
cd /tmp/NVIDIA
rm -f latest.txt

wget https://download.nvidia.com/XFree86/Linux-x86_64/latest.txt

version=$(head -1 latest.txt| cut -d\  -f1)

echo "Downloading NVIDIA version $version"

wget -nc --show-progress https://download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version.run
wget -nc --show-progress https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-$version.tar.bz2
wget -nc --show-progress https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-$version.tar.bz2

echo "Done!"
That will download the latest NVidia driver, xconfig, and settings files you need.

Replace the NVIDIA-Linux-x86_64-XXX.XX.run file in the nvidia-kernel folder of the Bumblebee-Slackbuilds with the newly downloaded .run file.

Replace the nvidia-settings and nvidia-xconfig in the nvidia-bumblebee folder of the Bumblebee-Slackbuilds with the newly downloaded nvidia-settings and nvidia-xconfig files. Also udate the symlink in that directory to correctly point to the new NVIDIA-Linux-x86_64-XXX.XX.run file in the ../nvidia-kernel directory.

rerun the nvidia-kernel.Slackbuild and nvidia-bumblebee.Slackbuild and hope that it works.
 
1 members found this post helpful.
Old 01-03-2018, 01:12 AM   #21
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,764

Rep: Reputation: 2641Reputation: 2641Reputation: 2641Reputation: 2641Reputation: 2641Reputation: 2641Reputation: 2641Reputation: 2641Reputation: 2641Reputation: 2641Reputation: 2641
Quote:
Originally Posted by BradReed View Post
I use a script like this to grab the files I need (change /tmp/NVIDIA to someplace suitable for you)
Code:
#!/usr/bin/bash

mkdir /tmp/NVIDIA
cd /tmp/NVIDIA
rm -f latest.txt

wget https://download.nvidia.com/XFree86/Linux-x86_64/latest.txt

version=$(head -1 latest.txt| cut -d\  -f1)

echo "Downloading NVIDIA version $version"

wget -nc --show-progress https://download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version.run
wget -nc --show-progress https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-$version.tar.bz2
wget -nc --show-progress https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-$version.tar.bz2

echo "Done!"
Unrelated to the issue, but a minor change you could make to your script to not require downloading latest.txt to your harddrive is to use curl.

Code:
version=$(curl -s "https://download.nvidia.com/XFree86/Linux-x86_64/latest.txt" | cut -d\  -f1)
 
1 members found this post helpful.
Old 01-03-2018, 04:10 PM   #22
Cristiano Urban
Member
 
Registered: Jul 2013
Location: Gonars (UD), Italy
Distribution: Slackware 14.2 x86_64
Posts: 53

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by BradReed
You could try a newer version of the NVIDIA driver. [...]
Thank you for the tips, I'll try it in the next days.
 
Old 01-03-2018, 10:01 PM   #23
BradReed
Member
 
Registered: Apr 2015
Location: Earth
Distribution: Slackware-current
Posts: 39

Rep: Reputation: 12
Quote:
Originally Posted by bassmadrigal View Post
Unrelated to the issue, but a minor change you could make to your script to not require downloading latest.txt to your harddrive is to use curl.

Code:
version=$(curl -s "https://download.nvidia.com/XFree86/Linux-x86_64/latest.txt" | cut -d\  -f1)
Thanks for the tip!
 
Old 01-04-2018, 05:12 PM   #24
lazardo
Member
 
Registered: Feb 2010
Location: SF Bay Area
Posts: 189

Rep: Reputation: Disabled
Based on 877 boots across 71 discrete 4.6 - 4.9 kernels, it is likely that what you're seeing is either a)not strictly kernel_vers+bbswitch, or b) a 4.4 edge case. In the end I traded run time for graphics so no bumblebee, but here's what works.
Compiled as follows with each new kernel:
Code:
if [ -d ../bbswitch ]; then
	pushd ../bbswitch
	make KVERSION=$KVER
	sudo make install KVERSION=$KVER
	popd
fi
Triggered from /etc/rc.local with a delay to allow settling [did not always work correctly otherwise]:
Code:
( sleep 10; modprobe bbswitch load_state=0 unload_state=1 ) &
Code:
# for i in 201[678][0-9]*; do
  egrep 'Linux vers|bbswitch' $i/dmesg
  done | sort -u -k4
[   30.827435] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[   30.827425] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[   30.954461] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off
[   30.827632] bbswitch: detected an Optimus _DSM function
[   30.827766] bbswitch: disabling discrete graphics
[   25.160855] bbswitch: loading out-of-tree module taints kernel.
[   30.827413] bbswitch: version 0.8
[    0.000000] Linux version 4.6.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #12 SMP Sun May 15 22:31:40 PDT 2016
[    0.000000] Linux version 4.6.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #15 SMP Tue May 17 13:41:36 PDT 2016
[    0.000000] Linux version 4.6.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #16 SMP Tue May 17 15:22:40 PDT 2016
[    0.000000] Linux version 4.6.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #17 SMP Tue May 17 17:09:57 PDT 2016
[    0.000000] Linux version 4.6.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #18 SMP Tue May 17 19:55:30 PDT 2016
[    0.000000] Linux version 4.6.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #19 SMP Wed May 18 23:27:51 PDT 2016
[    0.000000] Linux version 4.6.0-rc4 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #2 SMP Wed Apr 27 13:43:13 PDT 2016
[    0.000000] Linux version 4.6.0-rc4 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #3 SMP Wed Apr 27 14:48:41 PDT 2016
[    0.000000] Linux version 4.6.0-rc4 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #5 SMP Mon Apr 18 22:08:59 PDT 2016
[    0.000000] Linux version 4.6.0-rc5 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #2 SMP Mon Apr 25 08:29:17 PDT 2016
[    0.000000] Linux version 4.6.0-rc5 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #5 SMP Fri Apr 29 11:35:23 PDT 2016
[    0.000000] Linux version 4.6.0-rc5 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #6 SMP Fri Apr 29 12:42:27 PDT 2016
[    0.000000] Linux version 4.6.0-rc6 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #7 SMP Wed May 4 14:12:36 PDT 2016
[    0.000000] Linux version 4.6.0-rc6 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #9 SMP Wed May 4 15:19:20 PDT 2016
[    0.000000] Linux version 4.6.0-rc7 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #10 SMP Wed May 11 20:26:24 PDT 2016
[    0.000000] Linux version 4.6.0-rc7 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #11 SMP Sat May 14 22:12:16 PDT 2016
[    0.000000] Linux version 4.6.0a (lazardo@msi) (gcc version 5.3.0 (GCC) ) #20 SMP Wed May 25 14:47:31 PDT 2016
[    0.000000] Linux version 4.6.0b (lazardo@msi) (gcc version 5.3.0 (GCC) ) #21 SMP Wed May 25 16:14:55 PDT 2016
[    0.000000] Linux version 4.6.0c (lazardo@msi) (gcc version 5.3.0 (GCC) ) #22 SMP Wed May 25 19:52:04 PDT 2016
[    0.000000] Linux version 4.6.1 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #1 SMP Mon Jun 6 18:45:53 PDT 2016
[    0.000000] Linux version 4.6.2 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #2 SMP Thu Jun 9 21:12:02 PDT 2016
[    0.000000] Linux version 4.6.3 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #3 SMP Mon Jun 27 20:08:28 PDT 2016
[    0.000000] Linux version 4.7.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #1 SMP Sun Jul 24 22:46:28 PDT 2016
[    0.000000] Linux version 4.7.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #2 SMP Mon Jul 25 12:03:51 PDT 2016
[    0.000000] Linux version 4.7.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #3 SMP Tue Jul 26 14:43:39 PDT 2016
[    0.000000] Linux version 4.7.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #4 SMP Tue Jul 26 15:25:07 PDT 2016
[    0.000000] Linux version 4.7.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #5 SMP Wed Jul 27 10:27:57 PDT 2016
[    0.000000] Linux version 4.7.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #6 SMP Thu Aug 11 09:58:43 PDT 2016
[    0.000000] Linux version 4.7.0-rc5 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #2 SMP Mon Jun 27 20:29:34 PDT 2016
[    0.000000] Linux version 4.7.10 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #12 SMP Fri Nov 11 16:14:44 PST 2016
[    0.000000] Linux version 4.7.3 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #7 SMP Wed Sep 14 12:44:16 PDT 2016
[    0.000000] Linux version 4.7.3 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #8 SMP Thu Sep 22 12:25:24 PDT 2016
[    0.000000] Linux version 4.7.3 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #9 SMP Fri Sep 23 20:49:09 PDT 2016
[    0.000000] Linux version 4.7.5 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #10 SMP Sat Sep 24 09:45:47 PDT 2016
[    0.000000] Linux version 4.7.6 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #11 SMP Tue Oct 4 19:07:39 PDT 2016
[    0.000000] Linux version 4.8.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #1 SMP Mon Oct 3 13:16:46 PDT 2016
[    0.000000] Linux version 4.8.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #3 SMP Mon Oct 3 14:28:04 PDT 2016
[    0.000000] Linux version 4.8.0huge (lazardo@msi) (gcc version 5.3.0 (GCC) ) #4 SMP Mon Oct 3 20:43:19 PDT 2016
[    0.000000] Linux version 4.8.14 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #5 SMP Mon Dec 12 16:56:21 PST 2016
[    0.000000] Linux version 4.8.14 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #6 SMP Tue Dec 13 12:20:22 PST 2016
[    0.000000] Linux version 4.8.17 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #9 SMP Thu Jan 12 21:47:56 PST 2017
[    0.000000] Linux version 4.9.0 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #1 SMP Sun Dec 18 13:24:00 PST 2016
[    0.000000] Linux version 4.9.10 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #5 SMP Wed Feb 15 18:05:25 PST 2017
[    0.000000] Linux version 4.9.11 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #6 SMP Mon Feb 20 10:22:53 PST 2017
[    0.000000] Linux version 4.9.13 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #7 SMP Fri Mar 3 10:02:47 PST 2017
[    0.000000] Linux version 4.9.13pwr (lazardo@msi) (gcc version 5.3.0 (GCC) ) #8 SMP Fri Mar 3 10:48:47 PST 2017
[    0.000000] Linux version 4.9.13pwr (lazardo@msi) (gcc version 5.3.0 (GCC) ) #9 SMP Fri Mar 3 12:45:57 PST 2017
[    0.000000] Linux version 4.9.15 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #10 SMP Fri Mar 17 11:39:45 PDT 2017
[    0.000000] Linux version 4.9.15pwr (lazardo@msi) (gcc version 5.3.0 (GCC) ) #11 SMP Fri Mar 17 11:45:51 PDT 2017
[    0.000000] Linux version 4.9.17 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #13 SMP Sat Mar 25 01:37:55 PDT 2017
[    0.000000] Linux version 4.9.17pwr (lazardo@msi) (gcc version 5.3.0 (GCC) ) #12 SMP Fri Mar 24 21:14:19 PDT 2017
[    0.000000] Linux version 4.9.20 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #14 SMP Tue Apr 4 14:16:02 PDT 2017
[    0.000000] Linux version 4.9.21 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #15 SMP Mon Apr 10 10:11:16 PDT 2017
[    0.000000] Linux version 4.9.22 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #16 SMP Mon Apr 17 19:15:44 PDT 2017
[    0.000000] Linux version 4.9.24 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #17 SMP Fri Apr 21 19:04:40 PDT 2017
[    0.000000] Linux version 4.9.27 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #18 SMP Mon May 8 00:15:11 PDT 2017
[    0.000000] Linux version 4.9.28 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #19 SMP Fri May 19 14:56:54 PDT 2017
[    0.000000] Linux version 4.9.29 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #20 SMP Mon May 22 20:52:11 PDT 2017
[    0.000000] Linux version 4.9.31 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #22 SMP Tue Jun 13 21:31:20 PDT 2017
[    0.000000] Linux version 4.9.36 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #23 SMP Tue Jul 11 11:23:43 PDT 2017
[    0.000000] Linux version 4.9.38 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #24 SMP Mon Jul 17 23:27:11 PDT 2017
[    0.000000] Linux version 4.9.39 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #25 SMP Mon Jul 24 23:30:39 PDT 2017
[    0.000000] Linux version 4.9.44 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #26 SMP Thu Aug 17 00:33:33 PDT 2017
[    0.000000] Linux version 4.9.45 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #27 SMP Sun Aug 27 10:06:02 PDT 2017
[    0.000000] Linux version 4.9.47 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #28 SMP Tue Sep 5 22:54:23 PDT 2017
[    0.000000] Linux version 4.9.5 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #2 SMP Sun Jan 22 21:46:05 PST 2017
[    0.000000] Linux version 4.9.51 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #29 SMP Wed Sep 20 11:32:07 PDT 2017
[    0.000000] Linux version 4.9.54 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #30 SMP Wed Oct 11 18:58:20 PDT 2017
[    0.000000] Linux version 4.9.60 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #31 SMP Sat Nov 4 01:08:52 PDT 2017
[    0.000000] Linux version 4.9.64 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #32 SMP Tue Nov 21 20:03:07 PST 2017
[    0.000000] Linux version 4.9.7 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #3 SMP Sat Feb 4 11:37:11 PST 2017
[    0.000000] Linux version 4.9.9 (lazardo@msi) (gcc version 5.3.0 (GCC) ) #4 SMP Sat Feb 11 13:55:04 PST 2017
 
1 members found this post helpful.
Old 01-06-2018, 06:13 AM   #25
Cristiano Urban
Member
 
Registered: Jul 2013
Location: Gonars (UD), Italy
Distribution: Slackware 14.2 x86_64
Posts: 53

Original Poster
Rep: Reputation: 4
lazardo, thank you for providing further information.

I tried the latest nvidia driver (version 384.111).
In order to download all the needed I used the script provided above, with a couple of changes:
Code:
#!/usr/bin/bash

rm -rf nvidia
mkdir nvidia && cd nvidia

version=$(curl -s "https://download.nvidia.com/XFree86/Linux-x86_64/latest.txt" | cut -d\  -f1)

echo "Downloading NVIDIA version $version"

wget -nc --show-progress https://download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version.run
wget -nc --show-progress https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-$version.tar.bz2
wget -nc --show-progress https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-$version.tar.bz2
wget -nc --show-progress https://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-$version.tar.bz2

cd ..
echo "Done!"
The situation seems to be the same described in the previous posts.
I forgot to provide the content of /var/log/Xorg.8.log previously, so here below I provide four attachments that cover four different cases, according to the versions of the nvidia driver and the kernel.

Last edited by Cristiano Urban; 01-06-2018 at 06:23 AM. Reason: fixed typo
 
Old 01-06-2018, 05:30 PM   #26
BradReed
Member
 
Registered: Apr 2015
Location: Earth
Distribution: Slackware-current
Posts: 39

Rep: Reputation: 12
Quote:
Originally Posted by Cristiano Urban View Post
lazardo, thank you for providing further information.

I tried the latest nvidia driver (version 384.111).
In order to download all the needed I used the script provided above, with a couple of changes:
Just curious, but what did you need nvidia-modprobe for?

I saw on an Arch forum that a user with a seemingly similar issue as yours was able to get his card to work by adding rcutree.rcu_idle_gp_delay=1 to his kernel boot options. You might try that by appending it to your append= line in /etc/lilo.conf.
 
Old 01-07-2018, 06:59 AM   #27
Cristiano Urban
Member
 
Registered: Jul 2013
Location: Gonars (UD), Italy
Distribution: Slackware 14.2 x86_64
Posts: 53

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by BradReed
Just curious, but what did you need nvidia-modprobe for?
I noticed that a file called nvidia-modprobe-375.39.tar.bz2 was present in /root/Bumblebee-SlackBuilds/nvidia-bumblebee/.
This file is used by the nvidia-bumblebee SlackBuild script, so I thought to download it also for the version 384.111.

Quote:
Originally Posted by BradReed
I saw on an Arch forum that a user with a seemingly similar issue as yours was able to get his card to work by adding rcutree.rcu_idle_gp_delay=1 to his kernel boot options. You might try that by appending it to your append= line in /etc/lilo.conf.
I've tried it with the kernel 4.4.88 and both the nvidia drivers (375.39 and 384.111), but unfortunately this doesn't fix the issue.

This is how I changed the entry in /etc/lilo.conf for the kernel 4.4.88, in order to pass the parameter (the other one was already present before):
Code:
image = /boot/vmlinuz-generic-4.4.88
  initrd = /boot/initrd-4.4.88.gz
  root = /dev/sda2
  label = 4.4.88
  read-only
  append = "acpi_osi=Linux rcutree.rcu_idle_gp_delay=1"

Last edited by Cristiano Urban; 01-07-2018 at 07:01 AM.
 
Old 01-07-2018, 05:40 PM   #28
BradReed
Member
 
Registered: Apr 2015
Location: Earth
Distribution: Slackware-current
Posts: 39

Rep: Reputation: 12
Quote:
Originally Posted by Cristiano Urban View Post
I noticed that a file called nvidia-modprobe-375.39.tar.bz2 was present in /root/Bumblebee-SlackBuilds/nvidia-bumblebee/.
This file is used by the nvidia-bumblebee SlackBuild script, so I thought to download it also for the version 384.111.
Interesting. I don't have that file. I also don't see any reference to it in my scripts.

Are you using https://github.com/ryanpcmcquen/linu...re/crazybee.sh ?

Admittedly, I am using an old pull. Maybe it does use that file now. I will try a new sync and see if I see it.

(EDIT) I just downloaded a new copy and ran it unaltered. It failed to successfully build the kernel module. Perhaps nvidia 375.39 is incompatible with linux kenel 4.14. I upgraded the nvidia to latest (384.111) and reran the Slackbuilds. Now all is working well here again.

$ primusrun glxinfo | grep NVIDIA
server glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation
OpenGL core profile version string: 4.5.0 NVIDIA 384.111
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL version string: 4.5.0 NVIDIA 384.111
OpenGL shading language version string: 4.50 NVIDIA

Last edited by BradReed; 01-07-2018 at 08:11 PM.
 
Old 01-07-2018, 08:31 PM   #29
BradReed
Member
 
Registered: Apr 2015
Location: Earth
Distribution: Slackware-current
Posts: 39

Rep: Reputation: 12
Using the updated bumblebee scripts, my output is more similar to what you were seeing, Cristiano.

$ glxinfo | grep NVIDIA outputs nothing...so nvidia is not active and I am using my Intel GPU. However, I now see the nvidia modules loaded, even when it is not active.

Code:
$ lsmod | grep nv
nvidia_drm             45056  0
nvidia_modeset        851968  1 nvidia_drm
nvidia              13070336  1 nvidia_modeset
drm_kms_helper        131072  2 i915,nvidia_drm
drm                   315392  7 i915,nvidia_drm,drm_kms_helper
i2c_core               49152  9 i2c_algo_bit,nvidia,videodev,i2c_i801,psmouse,i915,i2c_dev,drm_kms_helper,drm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 14.1 Bumblebee. Can't get it working... The SIN Raven Linux - Hardware 7 12-29-2015 06:33 AM
[SOLVED] slackware64-current, xorg-1.14, kernel 3.10.11, bumblebee not working Clementine Jam Slackware 6 09-13-2013 11:14 AM
[SOLVED] bumblebee not working after upgrade to kubuntu 13.4 gerrit_daniels Linux - Hardware 0 04-26-2013 06:45 PM
Primusrun (bumblebee) not working (Slackware64 14.0) natharran Slackware 1 03-04-2013 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration