{"action":"created","issue":{"url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/114","labels_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/114/comments","events_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/114/events","html_url":"https://github.com/Bumblebee-Project/bbswitch/issues/114","id":100713026,"number":114,"title":"segfault after attempt to switch back ON nvidia card on ul30vt","user":{"login":"hamacekh","id":8758068,"avatar_url":"https://avatars.githubusercontent.com/u/8758068?v=3","gravatar_id":"","url":"https://api.github.com/users/hamacekh","html_url":"https://github.com/hamacekh","followers_url":"https://api.github.com/users/hamacekh/followers","following_url":"https://api.github.com/users/hamacekh/following{/other_user}","gists_url":"https://api.github.com/users/hamacekh/gists{/gist_id}","starred_url":"https://api.github.com/users/hamacekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamacekh/subscriptions","organizations_url":"https://api.github.com/users/hamacekh/orgs","repos_url":"https://api.github.com/users/hamacekh/repos","events_url":"https://api.github.com/users/hamacekh/events{/privacy}","received_events_url":"https://api.github.com/users/hamacekh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T08:21:22Z","updated_at":"2015-08-14T12:13:10Z","closed_at":null,"body":"I tried following:\r\n```\r\n# modprobe bbswitch\r\n# echo OFF > /proc/acpi/bbswitch\r\n# echo ON > /proc/acpi/bbswitch\r\n```\r\nOFF seems to be working fine. Power consumption drops. Card seems to be offline.\r\nON doesnt turn on the card.\r\nOther ways to achieve same goal fail as well.\r\n```\r\n# modprobe bbswitch load_state=0 unload_state=1\r\n# modprobe -r bbswitch\r\n```\r\nagain, bbswitch loads ok, turns card off ok.\r\nit cannot unload with message: device or resource busy\r\n\r\nIncluding system information as described in https://github.com/Bumblebee-Project/bbswitch#reporting-bugs\r\nLinux hami-laptop-lin 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux\r\nVideo driver: nouveau 1:1.0.11-1\r\nVideo card: geforce 210m\r\nXorg version: 1:7.7+7\r\nDistribution: Debian 8 stable\r\nSystem info: https://bugs.launchpad.net/lpbugreporter/+bug/752542/+attachment/4444002/+files/ASUSTeK_Computer_Inc.-UL30VT.tar.gz\r\n\r\ndump_info:\r\n0000:00:00.0 060000 \r\n0000:00:01.0 060400 \\_SB_.PCI0.P0P1\r\n0000:00:02.0 030000 \\_SB_.PCI0.VGA_\r\n0000:00:1a.0 0c0300 \\_SB_.PCI0.USB3\r\n0000:00:1a.1 0c0300 \\_SB_.PCI0.USB4\r\n0000:00:1a.2 0c0300 \\_SB_.PCI0.USB6\r\n0000:00:1a.7 0c0320 \\_SB_.PCI0.USBE\r\n0000:00:1b.0 040300 \\_SB_.PCI0.HDAC\r\n0000:00:1c.0 060400 \\_SB_.PCI0.P0P2\r\n0000:00:1c.1 060400 \\_SB_.PCI0.P0P3\r\n0000:00:1c.5 060400 \\_SB_.PCI0.P0P8\r\n0000:00:1d.0 0c0300 \\_SB_.PCI0.USB0\r\n0000:00:1d.1 0c0300 \\_SB_.PCI0.USB1\r\n0000:00:1d.2 0c0300 \\_SB_.PCI0.USB2\r\n0000:00:1d.7 0c0320 \\_SB_.PCI0.EUSB\r\n0000:00:1e.0 060401 \\_SB_.PCI0.P0P9\r\n0000:00:1f.0 060100 \\_SB_.PCI0.SBRG\r\n0000:00:1f.2 010601 \\_SB_.PCI0.IDE0\r\n0000:03:00.0 028000 \\_SB_.PCI0.P0P3.WLAN\r\n0000:04:00.0 020000 \\_SB_.PCI0.P0P8.LAN_\r\n\r\n```\r\ndmesg | grep -C 10 bbswitch:\r\n```\r\n```\r\n[   39.933460] wlan0: authenticated\r\n[   39.936134] wlan0: associate with 10:fe:ed:39:c2:26 (try 1/3)\r\n[   39.940598] wlan0: RX AssocResp from 10:fe:ed:39:c2:26 (capab=0x431 status=0 aid=2)\r\n[   39.948913] wlan0: associated\r\n[   39.948945] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready\r\n[  328.272593] perf interrupt took too long (2516 > 2500), lowering kernel.perf_event_max_sample_rate to 50000\r\n[  482.901377] Key type dns_resolver registered\r\n[  482.914694] FS-Cache: Netfs 'cifs' registered for caching\r\n[  482.914737] Key type cifs.spnego registered\r\n[  482.914749] Key type cifs.idmap registered\r\n[ 1372.492485] bbswitch: version 0.8\r\n[ 1372.492502] bbswitch: Found integrated VGA device 0000:00:02.0: \\_SB_.PCI0.VGA_\r\n[ 1372.492525] bbswitch: Found discrete VGA device 0000:01:00.0: \\_SB_.PCI0.P0P1.VGA_\r\n[ 1372.492545] ACPI Warning: \\_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)\r\n[ 1372.492626] ACPI Warning: \\_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)\r\n[ 1372.492772] bbswitch: detected a nVidia _DSM function\r\n[ 1372.492795] pci 0000:01:00.0: enabling device (0000 -> 0003)\r\n[ 1372.492865] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on\r\n[ 1416.523643] bbswitch: disabling discrete graphics\r\n[ 1416.536138] ACPI Warning: \\_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)\r\n[ 1416.572941] pciehp 0000:00:01.0:pcie04: Card not present on Slot(16)\r\n[ 1416.666697] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=none,decodes=io+mem:owns=none\r\n[ 1440.120452] Monitor-Mwait will be used to enter C-2 state\r\n[ 1440.120463] Monitor-Mwait will be used to enter C-3 state\r\n[ 1454.733253] BUG: unable to handle kernel paging request at 000000003d5f8038\r\n[ 1454.736143] IP: [<ffffffffa0911035>] dis_dev_get+0x15/0x40 [bbswitch]\r\n[ 1454.737009] PGD 7205f067 PUD 721f0067 PMD 0 \r\n[ 1454.737009] Oops: 0000 [#1] SMP \r\n[ 1454.737009] Modules linked in: bbswitch(O) md4 hmac nls_utf8 cifs dns_resolver ctr ccm binfmt_misc bnep pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) snd_hda_codec_hdmi nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc joydev snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support mxm_wmi ecb uvcvideo btusb bluetooth videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common 6lowpan_iphc videodev media arc4 iwldvm mac80211 coretemp kvm_intel kvm evdev psmouse serio_raw pcspkr iwlwifi snd_hda_intel snd_hda_controller lpc_ich mfd_core snd_hda_codec i915 snd_hwdep snd_pcm cfg80211 snd_timer snd soundcore drm_kms_helper asus_laptop sparse_keymap drm rfkill i2c_algo_bit input_polldev shpchp tpm_tis i2c_core tpm wmi acpi_cpufreq ac video battery processor button\r\n```"},"comment":{"url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/comments/131089092","html_url":"https://github.com/Bumblebee-Project/bbswitch/issues/114#issuecomment-131089092","issue_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/114","id":131089092,"user":{"login":"Lekensteyn","id":164530,"avatar_url":"https://avatars.githubusercontent.com/u/164530?v=3","gravatar_id":"","url":"https://api.github.com/users/Lekensteyn","html_url":"https://github.com/Lekensteyn","followers_url":"https://api.github.com/users/Lekensteyn/followers","following_url":"https://api.github.com/users/Lekensteyn/following{/other_user}","gists_url":"https://api.github.com/users/Lekensteyn/gists{/gist_id}","starred_url":"https://api.github.com/users/Lekensteyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lekensteyn/subscriptions","organizations_url":"https://api.github.com/users/Lekensteyn/orgs","repos_url":"https://api.github.com/users/Lekensteyn/repos","events_url":"https://api.github.com/users/Lekensteyn/events{/privacy}","received_events_url":"https://api.github.com/users/Lekensteyn/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T12:13:10Z","updated_at":"2015-08-14T12:13:10Z","body":"This is the problematic part, can you show the full trace following the `BUG`?\r\n```\r\n[ 1454.733253] BUG: unable to handle kernel paging request at 000000003d5f8038\r\n[ 1454.736143] IP: [<ffffffffa0911035>] dis_dev_get+0x15/0x40 [bbswitch]\r\n[ 1454.737009] PGD 7205f067 PUD 721f0067 PMD 0 \r\n[ 1454.737009] Oops: 0000 [#1] SMP \r\n[ 1454.737009] Modules linked in: bbswitch(O) md4 hmac nls_utf8 cifs dns_resolver ctr ccm binfmt_misc bnep pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) snd_hda_codec_hdmi nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc joydev snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support mxm_wmi ecb uvcvideo btusb bluetooth videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common 6lowpan_iphc videodev media arc4 iwldvm mac80211 coretemp kvm_intel kvm evdev psmouse serio_raw pcspkr iwlwifi snd_hda_intel snd_hda_controller lpc_ich mfd_core snd_hda_codec i915 snd_hwdep snd_pcm cfg80211 snd_timer snd soundcore drm_kms_helper asus_laptop sparse_keymap drm rfkill i2c_algo_bit input_polldev shpchp tpm_tis i2c_core tpm wmi acpi_cpufreq ac video battery processor button\r\n```\r\n\r\nBy the way, where does \"3.16.7-ckt11-1+deb8u3\" come from? Are you actually running that -ck kernel or the default one included with Debian?"}}