Bug#763272: bumblebee fails to disable discrete graphics card after upgrade to kernel 3.16

Robert Lange rcl24 at drexel.edu
Sun Sep 28 18:46:13 UTC 2014


Package: bumblebee
Version: 3.2.1-5
Severity: important

Dear Maintainer,

I am running testing and Bumblebee was working properly to enable and disable
my Nvidia graphics chip when I was running kernel 3.14-X-amd64. Last night I
dist-upgraded and got kernel 3.16. This morning I noticed my laptop was
constantly running hot, so I investigated and discovered that the discrete
graphics was always on.

rlange at iset:~$ cat /proc/acpi/bbswitch
0000:01:00.0 ON

root at iset:~# cat /proc/acpi/bbswitch
0000:01:00.0 ON
root at iset:~# echo OFF > /proc/acpi/bbswitch
root at iset:~# cat /proc/acpi/bbswitch
0000:01:00.0 ON


Bumblebee still is able to load the nvidia kernel module and unload it.
However, it cannot actually turn off the discrete graphics chip.

# when no optirun processes are running:
rlange at iset:~$ lsmod | grep -i nvidia
# no output, therefore module not loaded
# fire up an optirun process and check again:
rlange at iset:~$ optirun glxgears&
rlange at iset:~$ lsmod | grep -i nvidia
nvidia              10490776  36
i2c_core               46012  8
drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvidia,v4l2_common,videodev
# now, we terminate glxgears and check again:
lsmod | grep -i nvidia
# no output, therefore module has been unloaded
rlange at iset:~$ cat /proc/acpi/bbswitch
0000:01:00.0 ON


I see an error when I check the bumblebeed systemd status. I do not understand
how permission can be denied because bumblebeed runs as root:

rlange at iset:~$ sudo systemctl status bumblebeed.service
bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/lib/systemd/system/bumblebeed.service; enabled)
   Active: active (running) since Sun 2014-09-28 14:27:39 EDT; 34s ago
 Main PID: 6673 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           └─6673 /usr/sbin/bumblebeed

Sep 28 14:27:39 iset systemd[1]: Started Bumblebee C Daemon.
Sep 28 14:27:39 iset bumblebeed[6673]: [ 8888.726306]
[INFO]/usr/sbin/bumblebeed 3.2.1 started
Sep 28 14:27:57 iset bumblebeed[6673]: [ 8888.726838] [WARN]Unable to disable
discrete card.[ 8906.095249] [ERROR][XORG] (EE) /dev/dri/card0: failed to set
DRM interface version 1.4: Permission denied
Sep 28 14:27:57 iset bumblebeed[6673]: [ 8906.095270] [WARN][XORG] (WW)
Unresolved symbol: fbGetGCPrivateKey
Sep 28 14:27:57 iset bumblebeed[6673]: [ 8906.095276] [WARN][XORG] (WW)
NVIDIA(0): Unable to get display device for DPI computation.
Sep 28 14:27:57 iset bumblebeed[6673]: [ 8906.095285] [ERROR][XORG] (EE)
/dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Sep 28 14:28:03 iset bumblebeed[6673]: [ 8912.164217] [WARN]Unable to disable
discrete card.[ 8912.164251] [ERROR][XORG] (EE) Server terminated successfully
(0). Closing log file.

rlange at iset:~$ ps -ef | grep -i [b]umblebee
root      6673     1  0 14:27 ?        00:00:00 /usr/sbin/bumblebeed
rlange at iset:~$ ls -Al /dev/dri/card0
crw-rw----+ 1 root video 226, 0 Sep 28 13:46 /dev/dri/card0
rlange at iset:~$ getfacl /dev/dri/card0
getfacl: Removing leading '/' from absolute path names
# file: dev/dri/card0
# owner: root
# group: video
user::rw-
user:rlange:rw-
group::rw-
mask::rw-
other::---


When I looked in /var/log/messages, I found some snippets that seem relevant:

<SNIP>
Sep 28 09:58:19 iset kernel: [    4.578748] bbswitch: version 0.8
Sep 28 09:58:19 iset kernel: [    4.578754] bbswitch: Found integrated VGA
device 0000:00:02.0: \_SB_.PCI0.VID_
Sep 28 09:58:19 iset kernel: [    4.578760] bbswitch: Found discrete VGA device
0000:01:00.0: \_SB_.PCI0.PEG_.VID_
Sep 28 09:58:19 iset kernel: [    4.578795] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 09:58:19 iset kernel: [    4.579126] bbswitch: detected an Optimus _DSM
function
Sep 28 09:58:19 iset kernel: [    4.579139] pci 0000:01:00.0: enabling device
(0004 -> 0007)
Sep 28 09:58:19 iset kernel: [    4.579180] bbswitch: Succesfully loaded.
Discrete card 0000:01:00.0 is on
Sep 28 09:58:19 iset kernel: [    4.580341] bbswitch: disabling discrete
graphics
Sep 28 09:58:19 iset kernel: [    4.580350] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
<SNIP>
Sep 28 10:00:44 iset kernel: [  150.646261] nvidia: module license 'NVIDIA'
taints kernel.
Sep 28 10:00:44 iset kernel: [  150.646264] Disabling lock debugging due to
kernel taint
Sep 28 10:00:44 iset kernel: [  150.666255] vgaarb: device changed decodes:
PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
Sep 28 10:00:44 iset kernel: [  150.666440] NVRM: loading NVIDIA UNIX x86_64
Kernel Module  340.32  Tue Aug  5 20:58:26 PDT 2014
Sep 28 10:00:44 iset kernel: [  150.787511] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:44 iset kernel: [  150.787588] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:44 iset kernel: [  150.787642] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:44 iset kernel: [  150.787693] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:44 iset kernel: [  150.787744] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:44 iset kernel: [  150.787932] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:44 iset kernel: [  150.788099] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:44 iset kernel: [  150.788152] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:45 iset kernel: [  150.981678] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:45 iset kernel: [  151.236053] thinkpad_acpi: asked for hotkey
mask 0x0070ffbf, but firmware forced it to 0x0070ffbb
Sep 28 10:00:52 iset kernel: [  158.822282] bbswitch: disabling discrete
graphics
Sep 28 10:00:52 iset kernel: [  158.822289] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:00:52 iset kernel: [  158.822539] ------------[ cut here
]------------
Sep 28 10:00:52 iset kernel: [  158.822545] WARNING: CPU: 0 PID: 806 at /build
/linux-P15SNz/linux-3.16.3/drivers/pci/pci.c:1535
pci_disable_device+0x9a/0xb0()
Sep 28 10:00:52 iset kernel: [  158.822545] pci 0000:01:00.0: disabling
already-disabled device
Sep 28 10:00:52 iset kernel: [  158.822546] Modules linked in: ctr ccm
bbswitch(O) cpufreq_userspace bnep cpufreq_powersave cpufreq_conservative
cpufreq_stats binfmt_misc xt_hl ip6t_rt nf_conntrack_ipv6 nf_defrag_ipv6
ipt_REJECT xt_LOG xt_limit xt_tcpudp xt_addrtype nf_conntrack_ipv4
nf_defrag_ipv4 xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns
nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack
iptable_filter ip_tables x_tables snd_hda_codec_hdmi uvcvideo ecb
videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common btusb videodev
bluetooth media 6lowpan_iphc joydev arc4 nls_utf8 nls_cp437 vfat fat
x86_pkg_temp_thermal intel_powerclamp intel_rapl coretemp kvm_intel kvm
crc32_pclmul iwlmvm snd_hda_codec_realtek iTCO_wdt iTCO_vendor_support
snd_hda_codec_generic mac80211 ghash_clmulni_intel i915 aesni_intel
snd_hda_intel aes_x86_64 snd_hda_controller lrw gf128mul iwlwifi glue_helper
efi_pstore evdev psmouse ablk_helper drm_kms_helper snd_hda_codec drm cryptd
mei_me snd_hwdep serio_raw pcspkr mei snd_pcm_oss cfg80211 efivars
snd_mixer_oss lpc_ich i2c_algo_bit i2c_i801 snd_pcm mfd_core thinkpad_acpi
i2c_core snd_timer shpchp nvram snd soundcore wmi rfkill ac battery tpm_tis tpm
video intel_smartconnect button processor fuse ecryptfs parport_pc ppdev lp
parport autofs4 ext4 crc16 mbcache jbd2 dm_mod uvesafb sg sd_mod sr_mod
crc_t10dif cdrom crct10dif_generic crct10dif_pclmul crct10dif_common
crc32c_intel ahci libahci ehci_pci libata ehci_hcd xhci_hcd sdhci_pci sdhci
scsi_mod e1000e mmc_core ptp usbcore pps_core usb_common thermal thermal_sys
[last unloaded: nvidia]
Sep 28 10:00:52 iset kernel: [  158.822583] CPU: 0 PID: 806 Comm: bumblebeed
Tainted: P           O  3.16-2-amd64 #1 Debian 3.16.3-2
Sep 28 10:00:52 iset kernel: [  158.822584] Hardware name: LENOVO
20BGCTO1WW/20BGCTO1WW, BIOS GNET61WW (2.09 ) 02/18/2014
Sep 28 10:00:52 iset kernel: [  158.822585]  0000000000000009 ffffffff81506188
ffff88046a823e48 ffffffff81065707
Sep 28 10:00:52 iset kernel: [  158.822587]  ffff88046d568000 ffff88046a823e98
0000000000000028 ffff88046a823f58
Sep 28 10:00:52 iset kernel: [  158.822588]  0000000000000006 ffffffff8106576c
ffffffff8175b648 ffff880400000028
Sep 28 10:00:52 iset kernel: [  158.822589] Call Trace:
Sep 28 10:00:52 iset kernel: [  158.822593]  [<ffffffff81506188>] ?
dump_stack+0x41/0x51
Sep 28 10:00:52 iset kernel: [  158.822596]  [<ffffffff81065707>] ?
warn_slowpath_common+0x77/0x90
Sep 28 10:00:52 iset kernel: [  158.822598]  [<ffffffff8106576c>] ?
warn_slowpath_fmt+0x4c/0x50
Sep 28 10:00:52 iset kernel: [  158.822600]  [<ffffffff812ddaea>] ?
pci_disable_device+0x9a/0xb0
Sep 28 10:00:52 iset kernel: [  158.822602]  [<ffffffffa084b1e0>] ?
bbswitch_off+0x90/0x250 [bbswitch]
Sep 28 10:00:52 iset kernel: [  158.822604]  [<ffffffffa084b5c5>] ?
bbswitch_proc_write+0x95/0xac [bbswitch]
Sep 28 10:00:52 iset kernel: [  158.822607]  [<ffffffff81203709>] ?
proc_reg_write+0x39/0x70
Sep 28 10:00:52 iset kernel: [  158.822610]  [<ffffffff811a52f2>] ?
vfs_write+0xb2/0x1f0
Sep 28 10:00:52 iset kernel: [  158.822612]  [<ffffffff811a5e32>] ?
SyS_write+0x42/0xa0
Sep 28 10:00:52 iset kernel: [  158.822614]  [<ffffffff8150e308>] ?
page_fault+0x28/0x30
Sep 28 10:00:52 iset kernel: [  158.822616]  [<ffffffff8150c26d>] ?
system_call_fast_compare_end+0x10/0x15
Sep 28 10:00:52 iset kernel: [  158.822617] ---[ end trace 38c90126c410b845
]---
Sep 28 10:00:52 iset kernel: [  158.836969] pci 0000:01:00.0: Refused to change
power state, currently in D0
<SNIP>
Sep 28 10:27:08 iset kernel: [ 1735.468177] vgaarb: device changed decodes:
PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
Sep 28 10:27:08 iset kernel: [ 1735.468331] NVRM: loading NVIDIA UNIX x86_64
Kernel Module  340.32  Tue Aug  5 20:58:26 PDT 2014
Sep 28 10:27:08 iset kernel: [ 1735.484545] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.484624] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.484678] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.484746] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.484799] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.484993] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.485165] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.485219] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.612113] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:27:08 iset kernel: [ 1735.860354] thinkpad_acpi: asked for hotkey
mask 0x0070ffbf, but firmware forced it to 0x0070ffbb
Sep 28 10:28:58 iset kernel: [ 1845.628199] bbswitch: disabling discrete
graphics
Sep 28 10:28:58 iset kernel: [ 1845.628208] ACPI Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI
requires [Package] (20140424/nsarguments-95)
Sep 28 10:28:58 iset kernel: [ 1845.641820] pci 0000:01:00.0: Refused to change
power state, currently in D0
<SNIP>


My computer is a ThinkPad w540 with an Intel Core i7-4700MQ CPU with integrated
graphics and an Nvidia Quadro K1100M discrete graphics card running the latest
Nvidia proprietary driver available in testing.  All of the packages on my
system are from testing.

My /proc/cmdline is:

BOOT_IMAGE=/boot/vmlinuz-3.16-2-amd64
root=UUID=1fe17317-4e03-4bc1-8463-015ed156427e ro quiet splash

Please let me know any other information you can use to debug this.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bumblebee depends on:
ii  bbswitch-dkms        0.8-1
ii  init-system-helpers  1.21
ii  libbsd0              0.7.0-2
ii  libc6                2.19-11
ii  libglib2.0-0         2.40.0-5
ii  libx11-6             2:1.6.2-3

Versions of packages bumblebee recommends:
ii  primus  0~20131127-2

Versions of packages bumblebee suggests:
ii  bumblebee-nvidia  3.2.1-5

-- Configuration Files:
/etc/bumblebee/bumblebee.conf changed:
[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d
[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false
[driver-nvidia]
KernelDriver=nvidia-current
PMMethod=auto
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau


-- no debconf information



More information about the pkg-nvidia-devel mailing list