Bug 18931 - bumblebee + bbswitch Not work module bbswitch (No suitable _DSM call found.)
Summary: bumblebee + bbswitch Not work module bbswitch (No suitable _DSM call found.)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High major
Target Milestone: Mageia 6
Assignee: Rémi Verschelde
QA Contact:
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2016-07-12 14:38 CEST by Valek Saikov
Modified: 2016-07-17 01:10 CEST (History)
0 users

See Also:
Source RPM: dkms-bbswitch-0.8-7.mga6
CVE:
Status comment:


Attachments
screen window (849.76 KB, image/png)
2016-07-13 19:47 CEST, Valek Saikov
Details

Description Valek Saikov 2016-07-12 14:38:50 CEST
Description of problem:

Not work module bbswitch. Not found in all kernel.

All logs in https://forums.mageia.org/en/viewtopic.php?f=15&t=11207


Linux xlin.local 4.7.0-desktop-0.rc7.1.mga6 #1 SMP Mon Jul 11 10:34:16 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

######################

[xlin@xlin ~]$ optirun kwrite
[  701.580458] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

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

######################

[xlin@xlin ~]$ cat /etc/bumblebee/bumblebee.conf 
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=primus
# 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/lib64/primus:/usr/lib/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/lib64/nvidia-current:/usr/lib/nvidia-current
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib64/nvidia-current/xorg,/usr/lib/nvidia-current/xorg,/usr/lib64/xorg/modules,/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

##########################################

[xlin@xlin ~]$ cat /etc/bumblebee/xorg.conf.nvidia 
Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

Section "ServerLayout"
    Identifier "Layout0"
    Option "AutoAddDevices" "false"
EndSection

Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "04:00:0"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "ConnectedMonitor" "DFP"
    Option "AddARGBGLXVisuals"
EndSection

############################################

[xlin@xlin ~]$ lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:04.0 Signal processing controller: Intel Corporation Device 0a03 (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
00:1f.6 Signal processing controller: Intel Corporation 8 Series Thermal (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5287 (rev 01)
02:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
03:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
04:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)

################################

How reproducible:

Every time I attempt to login.

Steps to Reproduce:
1. urpmi bumblebee
2. Select actual nvidia driver packages for kernel
3. Reboot and test

optirun kwrite

In releasing bumblebee can not release without operating module bbswitch.
Valek Saikov 2016-07-12 14:40:43 CEST

Priority: Normal => release_blocker
Target Milestone: --- => Mageia 6

Comment 1 Rémi Verschelde 2016-07-12 14:43:35 CEST
Not release blocker as it does not break the distro, but I'll have a look.

Priority: release_blocker => High
Assignee: bugsquad => rverschelde
Severity: critical => major

Comment 2 Valek Saikov 2016-07-12 14:46:37 CEST
I agree. But this is a very important issue. Many notebook with two cards.
Comment 3 Rémi Verschelde 2016-07-12 14:52:45 CEST
Are you sure this is an Optimus laptop? There are several upstream issues with similar logs (for the reference, Valek's log from the forum post linked in comment 0):

иÑл 11 21:28:59 xlin.local kernel: bbswitch: version 0.8
иÑл 11 21:28:59 xlin.local kernel: bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
иÑл 11 21:28:59 xlin.local kernel: bbswitch: Found discrete VGA device 0000:04:00.0: \_SB_.PCI0.RP05.PEGP
иÑл 11 21:28:59 xlin.local kernel: bbswitch: failed to evaluate \_SB_.PCI0.RP05.PEGP._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 21:28:59 xlin.local kernel: bbswitch: failed to evaluate \_SB_.PCI0.RP05.PEGP._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 21:28:59 xlin.local kernel: bbswitch: failed to evaluate \_SB_.PCI0.GFX0._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 21:28:59 xlin.local kernel: bbswitch: No suitable _DSM call found.

See https://github.com/Bumblebee-Project/bbswitch/issues?utf8=%E2%9C%93&q=is%3Aissue%20No%20suitable%20_DSM%20call%20found%20is%3Aclosed%20

You could try reporting this issue upstream, but I've seen that most of the time the resolution was that those users did not have optimus laptops.
Comment 4 Valek Saikov 2016-07-12 14:55:20 CEST
Yes. I'm sure. Before the upgrade to 6 mageia everything worked. Cards switched.
Comment 5 Rémi Verschelde 2016-07-12 14:57:33 CEST
You say that the cards were switched, but did the new card work with bumblebee in Mageia 5?
Comment 6 Valek Saikov 2016-07-12 14:59:41 CEST
No. The Mageia 5 worked. The map switches. After upgrading to mageia 6 - is no longer working.
Comment 7 Valek Saikov 2016-07-12 15:03:50 CEST
My laptop ASUS X751L
Comment 8 Rémi Verschelde 2016-07-12 15:15:11 CEST
I did not fully understand what you meant by "Cards switched". Do you have now the same graphics card as under Mageia 5, where it worked? Or did you change the graphics card, and it no longer works?

I think it might be worth reporting this issue upstream: https://github.com/Bumblebee-Project/bbswitch#reporting-bugs

It might be a bug in bbswitch due to newer kernels, or unsupported hardware, but in both cases it's not something I can fix myself as bbswitch packager, we need help from the upstream developers.
Rémi Verschelde 2016-07-12 15:15:18 CEST

Keywords: (none) => UPSTREAM

Rémi Verschelde 2016-07-12 15:15:37 CEST

Summary: bumblebee + bbswitch Not work module bbswitch => bumblebee + bbswitch Not work module bbswitch (No suitable _DSM call found.)

Comment 9 Valek Saikov 2016-07-12 15:23:13 CEST
I have two video cards. Intel and nvidia 820m. The second can not work independently. On it you can not switch to the Bios.

Nothing I have not changed. This laptop.

When I run optirun kwrite then bomblebee loads Nvidia module. And for drawing already it conforms with a second video card.

I close the application and Nvidia module is unloaded from the system.

Summary: bumblebee + bbswitch Not work module bbswitch (No suitable _DSM call found.) => bumblebee + bbswitch Not work module bbswitch

Rémi Verschelde 2016-07-12 15:25:16 CEST

Summary: bumblebee + bbswitch Not work module bbswitch => bumblebee + bbswitch Not work module bbswitch (No suitable _DSM call found.)

Rémi Verschelde 2016-07-12 15:25:58 CEST

Source RPM: http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/SRPMS/nonfree/release/bumblebee-3.2.1-15.20150120.1.mga6.nonfree.src.rpm => dkms-bbswitch-0.8-7.mga6

Comment 10 Valek Saikov 2016-07-12 15:28:03 CEST
But at the core of the fourth it worked well. They could not break.

Source RPM: dkms-bbswitch-0.8-7.mga6 => http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/SRPMS/nonfree/release/bumblebee-3.2.1-15.20150120.1.mga6.nonfree.src.rpm

Rémi Verschelde 2016-07-12 15:28:34 CEST

Source RPM: http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/SRPMS/nonfree/release/bumblebee-3.2.1-15.20150120.1.mga6.nonfree.src.rpm => dkms-bbswitch-0.8-7.mga6

Comment 11 Rémi Verschelde 2016-07-12 15:29:34 CEST
Thanks for the clarification. If it used to work but no longer works in Mageia 6, it's likely a bbswitch incompatibility with recent kernels and should be reported upstream, see https://github.com/Bumblebee-Project/bbswitch#reporting-bugs

Don't hesitate to reference this Mageia bug report too so that the upstream developer can have more context about the issue.


Also, if you still have older kernels installed, it would be nice to test them to see if it works.
Comment 12 Valek Saikov 2016-07-12 15:32:20 CEST
Prompt what is now the core of the current at the Mageia 5? I'll try to see.
Comment 13 Rémi Verschelde 2016-07-12 15:33:40 CEST
Mageia 5 has kernel 4.1 in Core Release, and kernel 4.4 in Core Updates, so if you still have a Mageia 5 system installed it could be useful to test the two of them yes.
Comment 14 Valek Saikov 2016-07-12 16:15:42 CEST
Reported upstream https://github.com/Bumblebee-Project/bbswitch/issues/135
Comment 15 Valek Saikov 2016-07-13 14:26:55 CEST
How to instal acpi-hack? A similar bug. May I help. Please help.

https://github.com/Bumblebee-Project/bbswitch/tree/hack-lenovo#lenovo-ideapad-y470y570-and-toshiba-satellite-p870
Comment 16 Rémi Verschelde 2016-07-13 14:37:42 CEST
Your laptop is not in the list of the models managed by this hack, so I don't think it would work: https://github.com/Bumblebee-Project/bbswitch/blob/hack-lenovo/acpi-handle-hack.c#L25-L42

If you still want to try, you'd have to rebuild the dkms-bbswitch source RPM using a tarball of the hack-lenovo branch and see if that works.

If you're building from source, you could try this branch which got a few recent commits: https://github.com/Bumblebee-Project/bbswitch/commits/pm-rework

But it would likely be simpler to wait from an answer from upstream who might point you in the right direction.
Comment 17 Valek Saikov 2016-07-13 14:55:56 CEST
=(

#############

[root@xlin share]# cd /usr/src/acpi-handle-hack-0.0.2/
[root@xlin acpi-handle-hack-0.0.2]# dkms add -m acpi-handle-hack -v 0.0.2 --rpm_safe_upgrade

Creating symlink /var/lib/dkms/acpi-handle-hack/0.0.2/source ->
                 /usr/src/acpi-handle-hack-0.0.2

DKMS: add Completed.
[root@xlin acpi-handle-hack-0.0.2]# dkms build -m acpi-handle-hack -v 0.0.2 --rpm_safe_upgrade

Preparing kernel 4.7.0-desktop-0.rc7.1.mga6 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.....
using /proc/config.gz
make oldconfig.....
make prepare....

Building module:
cleaning build area....
make -j4 KERNELRELEASE=4.7.0-desktop-0.rc7.1.mga6 KVERSION=4.7.0-desktop-0.rc7.1.mga6 modname=acpi-handle-hack....(bad exit status: 2)

Error! Bad return status for module build on kernel: 4.7.0-desktop-0.rc7.1.mga6 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/acpi-handle-hack/0.0.2/build/ for more information.


#############

DKMS make.log for acpi-handle-hack-0.0.2 for kernel 4.7.0-desktop-0.rc7.1.mga6 (x86_64)
Ð¡Ñ Ð¸Ñл 13 15:51:54 MSK 2016
make -C /lib/modules/4.7.0-desktop-0.rc7.1.mga6/build M="$(pwd)" modules
make[1]: вÑод в каÑалог «/usr/src/kernel-4.7.0-desktop-0.rc7.1.mga6»
  CC [M]  /var/lib/dkms/acpi-handle-hack/0.0.2/build/acpi-handle-hack.o
/var/lib/dkms/acpi-handle-hack/0.0.2/build/acpi-handle-hack.c: Ð ÑÑнкÑии «dev_set_acpi_handle»:
/var/lib/dkms/acpi-handle-hack/0.0.2/build/acpi-handle-hack.c:68:20: оÑибка: «struct dev_archdata» не ÑодеÑÐ¶Ð¸Ñ ÑлеменÑа Ñ Ð¸Ð¼ÐµÐ½ÐµÐ¼ «acpi_handle»
  pdev->dev.archdata.acpi_handle = handle;
                    ^
scripts/Makefile.build:295: оÑибка вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑеÑепÑа Ð´Ð»Ñ Ñели «/var/lib/dkms/acpi-handle-hack/0.0.2/build/acpi-handle-hack.o»
make[2]: *** [/var/lib/dkms/acpi-handle-hack/0.0.2/build/acpi-handle-hack.o] ÐÑибка 1
Makefile:1450: оÑибка вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑеÑепÑа Ð´Ð»Ñ Ñели «_module_/var/lib/dkms/acpi-handle-hack/0.0.2/build»
make[1]: *** [_module_/var/lib/dkms/acpi-handle-hack/0.0.2/build] ÐÑибка 2
make[1]: вÑÑод из каÑалога «/usr/src/kernel-4.7.0-desktop-0.rc7.1.mga6»
Makefile:13: оÑибка вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑеÑепÑа Ð´Ð»Ñ Ñели «default»
make: *** [default] ÐÑибка 2
Comment 18 Valek Saikov 2016-07-13 17:50:59 CEST
The new kernel 4.7.0-server-0.rc7.2.mga6 turned to run. But Nvidia module is unloaded after the closure of the program.

logfile http://pastebin.com/raw/xsqhFZuh
Comment 19 Valek Saikov 2016-07-13 19:45:21 CEST
In general bumblebee wound up on the last kernel. But it does not work very well.
He had to unload the nvidia module when the application closes it ... it does not. bbswitch did not appear in / proc
And the most rotten, that drawing of window borders starting to look like something is wrong)) is not traced in artifacts.
Comment 20 Valek Saikov 2016-07-13 19:47:06 CEST
Created attachment 8169 [details]
screen window
Comment 21 Valek Saikov 2016-07-16 12:13:47 CEST
modprobe: FATAL: Module bbswitch not found in directory /lib/modules/4.7.0-server-0.rc7.4.mga6

[xlin@xlin ~]$ sudo bumblebeed -vv
[ 4993.952347] [DEBUG]Found card: 04:00.0 (discrete)
[ 4993.952366] [DEBUG]Found card: 00:02.0 (integrated)
[ 4993.952375] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 4993.952550] [INFO]Configured driver: nvidia
[ 4993.952560] [DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[ 4993.952662] [DEBUG]Process /sbin/modprobe started, PID 6759.
[ 4993.952708] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[ 4993.953759] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 4993.954093] [INFO]Loading driver bbswitch (module bbswitch)
[ 4993.954195] [DEBUG]Process modprobe started, PID 6760.
modprobe: FATAL: Module bbswitch not found in directory /lib/modules/4.7.0-server-0.rc7.4.mga6
[ 4993.955308] [DEBUG]Process with PID 6760 returned code 1
[ 4993.955572] [ERROR]Module bbswitch could not be loaded (timeout?)
[ 4993.955578] [DEBUG]bbswitch is not available, perhaps you need to insmod it?
[ 4993.955581] [INFO]Skipping switcheroo PM method because it is not explicitly selected in the configuration.
[ 4993.955584] [WARN]No switching method available. The dedicated card will always be on.
[ 4993.955587] [DEBUG]Active configuration:
[ 4993.955589] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 4993.955592] [DEBUG] X display: :8
[ 4993.955596] [DEBUG] LD_LIBRARY_PATH: /usr/lib64/nvidia-current:/usr/lib/nvidia-current
[ 4993.955602] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 4993.955608] [DEBUG] pidfile: /var/run/bumblebeed.pid
[ 4993.955614] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[ 4993.955620] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d
[ 4993.955626] [DEBUG] ModulePath: /usr/lib64/nvidia-current/xorg,/usr/lib/nvidia-current/xorg,/usr/lib64/xorg/modules,/usr/lib/xorg/modules
[ 4993.955632] [DEBUG] GID name: bumblebee
[ 4993.955637] [DEBUG] Power method: auto
[ 4993.955643] [DEBUG] Stop X on exit: 1
[ 4993.955649] [DEBUG] Driver: nvidia
[ 4993.955654] [DEBUG] Driver module: nvidia-current
[ 4993.955660] [DEBUG] Card shutdown state: 1
[ 4993.955752] [DEBUG]Process /sbin/modprobe started, PID 6761.
[ 4993.955785] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[ 4993.956851] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 4993.956872] [DEBUG]Configuration test passed.
[ 4993.957055] [INFO]bumblebeed 3.2.1-2015-01-20-Format:%h$ started
[ 4993.957101] [INFO]Initialization completed - now handling client requests
Comment 22 Valek Saikov 2016-07-16 14:51:50 CEST
reinstall dkms-bbswitch but mudule not unload

[xlin@xlin ~]$ dmesg | grep -C 10 bbswitch
[   42.601362] audit: type=1130 audit(1468672952.510:38): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=alsa-state comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   42.625633] audit: type=1130 audit(1468672952.530:39): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=hddtemp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   45.368346] audit: type=1130 audit(1468672955.269:40): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   45.368385] audit: type=1130 audit(1468672955.269:41): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dbus comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   45.442190] audit: type=1130 audit(1468672955.349:42): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=irqbalance comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   45.478480] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   45.478483] Bluetooth: BNEP filters: protocol multicast
[   45.478487] Bluetooth: BNEP socket layer initialized
[   45.497631] audit: type=1130 audit(1468672955.399:43): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bumblebeed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   45.499408] audit: type=1130 audit(1468672955.399:44): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=cpupower comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   46.377133] bbswitch: version 0.8
[   46.377141] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[   46.377150] bbswitch: Found discrete VGA device 0000:04:00.0: \_SB_.PCI0.RP05.PEGP
[   46.377162] ACPI Warning: \_SB.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   46.377281] bbswitch: detected an Optimus _DSM function
[   46.377361] bbswitch: disabling discrete graphics
[   46.377368] ACPI Warning: \_SB.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   46.409661] bbswitch: Succesfully loaded. Discrete card 0000:04:00.0 is off
[   47.577765] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   47.590165] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   47.593236] IPv6: ADDRCONF(NETDEV_UP): enp2s0f1: link is not ready
[   47.681528] r8169 0000:02:00.1 enp2s0f1: link down
[   47.681600] IPv6: ADDRCONF(NETDEV_UP): enp2s0f1: link is not ready
[   48.243188] audit_printk_skb: 51 callbacks suppressed
[   48.243191] audit: type=1130 audit(1468672958.149:62): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wpa_supplicant comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   48.422590] audit: type=1130 audit(1468672958.329:63): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=polkit comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   48.553390] NET: Registered protocol family 17
[   48.740767] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
--
[  360.267100] audit: type=1006 audit(1468673270.601:142): pid=4821 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=2 res=1
[  360.267438] audit: type=1105 audit(1468673270.601:143): pid=4821 uid=0 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_loginuid,pam_keyinit,pam_limits,pam_systemd,pam_tcb acct="xlin" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  360.327945] audit: type=1130 audit(1468673270.661:144): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  360.328432] audit: type=1006 audit(1468673270.661:145): pid=4820 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=3 res=1
[  360.342085] audit: type=1105 audit(1468673270.671:146): pid=4820 uid=0 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_keyinit,pam_namespace,pam_keyinit,pam_limits,pam_systemd,pam_tcb,pam_loginuid acct="xlin" exe="/usr/libexec/sddm-helper" hostname=? addr=? terminal=:0 res=success'
[  363.035443] audit: type=1130 audit(1468673273.371:147): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=rtkit-daemon comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  364.452976] Bluetooth: RFCOMM TTY layer initialized
[  364.452984] Bluetooth: RFCOMM socket layer initialized
[  364.452992] Bluetooth: RFCOMM ver 1.11
[  370.452609] audit: type=1130 audit(1468673280.781:148): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=udisks2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  439.897758] bbswitch: enabling discrete graphics
[  440.815560] nvidia: module license 'NVIDIA' taints kernel.
[  440.815564] Disabling lock debugging due to kernel taint
[  440.828246] nvidia-nvlink: Nvlink Core is being initialized, major device number 244
[  440.828264] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  367.27  Thu Jun  9 18:53:27 PDT 2016
[  441.600245] vgaarb: this pci device is not a vga device
[  441.610742] ACPI Warning: \_SB.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[  441.610808] ACPI Warning: \_SB.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[  441.610846] ACPI Warning: \_SB.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[  441.610881] ACPI Warning: \_SB.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[  441.610914] ACPI Warning: \_SB.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
Comment 23 Rémi Verschelde 2016-07-16 22:13:35 CEST
I've updated Bumblebee to the latest development snapshot, could you try it and see if it's better?

It's bumblebee-3.2.1-16.20160519.1.mga6.nonfree.
Comment 24 Valek Saikov 2016-07-17 00:26:59 CEST
Thank you so much. After the upgrade, everything was working as it should.

[xlin@xlin ~]$ sudo systemctl status bumblebeed.service 
â bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: enabled)
   Active: active (running) since ÐÑ 2016-07-17 01:21:22 MSK; 2min 32s ago
 Main PID: 2420 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           ââ2420 /usr/sbin/bumblebeed --use-syslog

иÑл 17 01:21:22 xlin.local systemd[1]: Started Bumblebee C Daemon.
иÑл 17 01:21:24 xlin.local bumblebeed[2420]: /usr/sbin/bumblebeed 3.2.1-2016-05-19-Format:%h$ started
[xlin@xlin ~]$ sudo lsmod | grep nvidia
[xlin@xlin ~]$ sudo cat /proc/acpi/bbswitch 
0000:04:00.0 OFF
[xlin@xlin ~]$ optirun kwrite

clouse kwrite and nvidia module unload

[xlin@xlin ~]$ sudo lsmod | grep nvidia
Comment 25 Rémi Verschelde 2016-07-17 01:10:41 CEST
Awesome :)

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.