| Summary: | bumblebee + bbswitch Not work module bbswitch (No suitable _DSM call found.) | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Valek Saikov <saikov.vb> |
| Component: | RPM Packages | Assignee: | Rémi Verschelde <rverschelde> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | High | Keywords: | UPSTREAM |
| Version: | Cauldron | ||
| Target Milestone: | Mageia 6 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | dkms-bbswitch-0.8-7.mga6 | CVE: | |
| Status comment: | |||
| Attachments: | screen window | ||
|
Description
Valek Saikov
2016-07-12 14:38:50 CEST
Valek Saikov
2016-07-12 14:40:43 CEST
Priority:
Normal =>
release_blocker Not release blocker as it does not break the distro, but I'll have a look. Priority:
release_blocker =>
High I agree. But this is a very important issue. Many notebook with two cards. 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. Yes. I'm sure. Before the upgrade to 6 mageia everything worked. Cards switched. You say that the cards were switched, but did the new card work with bumblebee in Mageia 5? No. The Mageia 5 worked. The map switches. After upgrading to mageia 6 - is no longer working. My laptop ASUS X751L 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.) 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 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 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. Prompt what is now the core of the current at the Mageia 5? I'll try to see. 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. Reported upstream https://github.com/Bumblebee-Project/bbswitch/issues/135 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 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. =(
#############
[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
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 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. Created attachment 8169 [details]
screen window
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 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) 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. 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
Awesome :) Status:
NEW =>
RESOLVED |