{"action":"created","issue":{"url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/140","repository_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch","labels_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/140/comments","events_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/140/events","html_url":"https://github.com/Bumblebee-Project/bbswitch/issues/140","id":181914244,"number":140,"title":"bbswitch is broken with kernel 4.8 pcie port power management","user":{"login":"nathanielwarner","id":4626345,"avatar_url":"https://avatars3.githubusercontent.com/u/4626345?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielwarner","html_url":"https://github.com/nathanielwarner","followers_url":"https://api.github.com/users/nathanielwarner/followers","following_url":"https://api.github.com/users/nathanielwarner/following{/other_user}","gists_url":"https://api.github.com/users/nathanielwarner/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielwarner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielwarner/subscriptions","organizations_url":"https://api.github.com/users/nathanielwarner/orgs","repos_url":"https://api.github.com/users/nathanielwarner/repos","events_url":"https://api.github.com/users/nathanielwarner/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielwarner/received_events","type":"User","site_admin":false},"labels":[{"id":383441586,"url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/labels/ACPI%20Power%20Resources","name":"ACPI Power Resources","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2016-10-09T21:50:16Z","updated_at":"2017-03-02T22:54:53Z","closed_at":null,"body":"I just upgraded to kernel 4.8, and bbswitch 0.8-1 no longer works properly. When I try to run something with primusrun, it fails with \"bumblebee could not enable discrete graphics card\" or something, and I get this in dmesg:\n\n```\nbbswitch: enabling discrete graphics\npci 0000:01:00.0: Refused to change power state, currently in D3\npci 0000:01:00.0: Refused to change power state, currently in D3\n```\n\nWhen I use the kernel command line option `pcie_port_pm=off` primusrun works again, and I get this in dmesg upon using primusrun:\n\n```\nbbswitch: enabling discrete graphics\nnvidia-nvlink: Nvlink Core is being initialized, major device number 242\nNVRM: loading NVIDIA UNIX x86_64 Kernel Module  370.28  Thu Sep  1 19:45:04 PDT 2016\nvgaarb: this pci device is not a vga device\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nnvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  370.28  Thu Sep  1 19:18:48 PDT 2016\nnvidia-modeset: Allocated GPU:0 (GPU-33c835cf-d564-600a-037b-c7ecb9188d7c) @ PCI:0000:01:00.0\nnvidia-modeset: Freed GPU:0 (GPU-33c835cf-d564-600a-037b-c7ecb9188d7c) @ PCI:0000:01:00.0\nvgaarb: this pci device is not a vga device\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\nnvidia-modeset: Unloading\nnvidia-nvlink: Unregistered the Nvlink Core, major device number 242\nbbswitch: disabling discrete graphics\nACPI Warning: \\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)\npci 0000:01:00.0: Refused to change power state, currently in D0\n```\n\nIs lack of support for Kernel 4.8 default configuration an issue that anyone else is having? I'm running Manjaro with Kernel 4.8.1-1, Nvidia driver 370.28, bbswitch 0.8-1.\n"},"comment":{"url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/comments/283809440","html_url":"https://github.com/Bumblebee-Project/bbswitch/issues/140#issuecomment-283809440","issue_url":"https://api.github.com/repos/Bumblebee-Project/bbswitch/issues/140","id":283809440,"user":{"login":"chadfurman","id":635170,"avatar_url":"https://avatars2.githubusercontent.com/u/635170?v=3","gravatar_id":"","url":"https://api.github.com/users/chadfurman","html_url":"https://github.com/chadfurman","followers_url":"https://api.github.com/users/chadfurman/followers","following_url":"https://api.github.com/users/chadfurman/following{/other_user}","gists_url":"https://api.github.com/users/chadfurman/gists{/gist_id}","starred_url":"https://api.github.com/users/chadfurman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadfurman/subscriptions","organizations_url":"https://api.github.com/users/chadfurman/orgs","repos_url":"https://api.github.com/users/chadfurman/repos","events_url":"https://api.github.com/users/chadfurman/events{/privacy}","received_events_url":"https://api.github.com/users/chadfurman/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T22:54:53Z","updated_at":"2017-03-02T22:54:53Z","body":"`GRUB_CMDLINE_LINUX_DEFAULT=\"resume=/dev/nvme0n1p6 splash=silent quiet showopts pcie_port_pm=off\"`\r\n\r\nI'm using the recommended flag here, I also do have powertop on but I've toggled the Runtime PM for NVIDIA Quadro M2000M to off.\r\n\r\nWhen I do `sudo tee /proc/acpi/bbswitch <<<ON` and then `cat /proc/acpi/bbswitch` I see it is still off.\r\n\r\nThis is what I see in dmesg: \r\n`[  303.819713] pci 0000:01:00.0: Refused to change power state, currently in D3`\r\n\r\nMy uname string: `Linux linux-tb94 4.10.1-1-default #1 SMP PREEMPT Sun Feb 26 12:43:10 UTC 2017 (1ecd5af) x86_64 x86_64 x86_64 GNU/Linux`\r\n\r\nVersion: bumblebeed (Bumblebee) 3.2.1\r\n\r\nI'm sure you've guessed, but this is the output of `bumblebeed --debug`:\r\n```\r\nlotus@linux-tb94:~> sudo bumblebeed --debug\r\n[  380.716976] [DEBUG]bbswitch has been detected.\r\n[  380.716989] [INFO]Switching method 'bbswitch' is available and will be used.\r\n[  380.716991] [DEBUG]Active configuration:\r\n[  380.716993] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf\r\n[  380.716995] [DEBUG] X display: :8\r\n[  380.716996] [DEBUG] LD_LIBRARY_PATH: \r\n[  380.716998] [DEBUG] Socket path: /var/run/bumblebee.socket\r\n[  380.716999] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nouveau\r\n[  380.717001] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d\r\n[  380.717002] [DEBUG] ModulePath: \r\n[  380.717003] [DEBUG] GID name: bumblebee\r\n[  380.717005] [DEBUG] Power method: auto\r\n[  380.717006] [DEBUG] Stop X on exit: 1\r\n[  380.717008] [DEBUG] Driver: nouveau\r\n[  380.717010] [DEBUG] Driver module: nouveau\r\n[  380.717011] [DEBUG] Card shutdown state: 1\r\n[  380.717080] [DEBUG]Process /sbin/modprobe started, PID 2864.\r\n[  380.717128] [DEBUG]Hiding stderr for execution of /sbin/modprobe\r\n[  380.717877] [DEBUG]SIGCHILD received, but wait failed with No child processes\r\n[  380.717881] [DEBUG]Configuration test passed.\r\n[  380.718049] [INFO]bumblebeed 3.2.1 started\r\n[  380.718081] [INFO]Initialization completed - now handling client requests\r\n[  390.194784] [DEBUG]Accepted new connection\r\n[  390.195181] [INFO]Switching dedicated card ON [bbswitch]\r\n[  390.195303] [ERROR]Could not enable discrete graphics card\r\n[  390.195487] [DEBUG]Socket closed.\r\n```\r\n\r\nThis happens when I run `optirun glxspheres`\r\n\r\nIf this isn't related, I'll open a new ticket.  Seems related, though.\r\n"}}
{"actor":{"display_login":"chadfurman"}}