{"action":"created","issue":{"url":"https://api.github.com/repos/Bumblebee-Project/Bumblebee/issues/666","labels_url":"https://api.github.com/repos/Bumblebee-Project/Bumblebee/issues/666/labels{/name}","comments_url":"https://api.github.com/repos/Bumblebee-Project/Bumblebee/issues/666/comments","events_url":"https://api.github.com/repos/Bumblebee-Project/Bumblebee/issues/666/events","html_url":"https://github.com/Bumblebee-Project/Bumblebee/issues/666","id":83936750,"number":666,"title":"Sony Vaio VPCZ13 needs manual workarounds to prevent system freeze on bbswitch","user":{"login":"rubenvb","id":308670,"avatar_url":"https://avatars.githubusercontent.com/u/308670?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenvb","html_url":"https://github.com/rubenvb","followers_url":"https://api.github.com/users/rubenvb/followers","following_url":"https://api.github.com/users/rubenvb/following{/other_user}","gists_url":"https://api.github.com/users/rubenvb/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenvb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenvb/subscriptions","organizations_url":"https://api.github.com/users/rubenvb/orgs","repos_url":"https://api.github.com/users/rubenvb/repos","events_url":"https://api.github.com/users/rubenvb/events{/privacy}","received_events_url":"https://api.github.com/users/rubenvb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T09:29:41Z","updated_at":"2015-06-02T12:16:24Z","closed_at":null,"body":"Using bumblebee as is on my laptop (Intel+NVIDIA GT330M) freezes the system whenever I use optirun or try to manually switch the card (or even read its status) using `/proc/acpi/bbswitch`. I have figured out how it does work, but it seems this is contrary to what bumblebee does by design. I use the proprietary driver as I need CUDA/OpenCL. I run Arch Linux.\r\n\r\nThese are all from a fresh boot, only the Intel module is integrated into the initramfs, this has no effect on anything. The `bumblebee` package is installed, but the service is not enabled.\r\n1. fresh boot, `modprobe bbswitch`, do anything with `/proc/acpi/bbswitch` => freeze. `cat /proc/acpi/bbswitch` gives garbage.\r\n2. fresh boot, `modprobe nvidia`, `modprobe bbswitch`, `rmmod nvidia` => bbswitch is functional.\r\n3. fresh boot, `modprobe nvidia`, `systemctl start bumblebeed` => all is well.\r\n\r\nSo it seems that at least on my laptop, the nvidia driver needs to be loaded before loading the bbswitch module, or else the system freezes whenever the latter is used.\r\n\r\nI currently have modified/overridden the `bumblebeed.service` by using `systemctl edit bumblebeed.service` and added\r\n\r\n    [Unit]\r\n    Requires=load_nvidia.service\r\n    After=load_nvidia.service\r\n\r\nto the `/etc/systemd/system/bumblebeed.service.d/override.conf` file this opens.\r\nThis service just loads the `nvidia` module:\r\n\r\n    [Unit]\r\n    Description=load_nvidia\r\n\r\n    [Service]\r\n    type=oneshot\r\n    ExecStart=/usr/bin/modprobe nvidia\r\n\r\nAdditionally, to let bumblebee/optirun turn off the card again, I needed to add a `.conf` file in `/etc/modprobe.d` with \r\n\r\n    remove nvidia modprobe -r --ignore-remove nvidia-uvm nvidia\r\n\r\nas suggested in https://github.com/Bumblebee-Project/Bumblebee/issues/565#issuecomment-39069551\r\nThis required me to update to bumblebee-git from the AUR because the last release in the repos still uses `rmmod`, whereas the git version uses `modprobe -r` (see the above link).\r\n\r\nNow everything is working as it should, and I can just `systemctl enable bumblebeed` and use `optirun` for my CUDA applications, resting assured the card is off when I stop my work.\r\n\r\nI'm writing this down here in case anyone else is running into a similar issue and in the hopes of a fix being possible for this first generation (at least I think it is) Primus laptop."},"comment":{"url":"https://api.github.com/repos/Bumblebee-Project/Bumblebee/issues/comments/107933491","html_url":"https://github.com/Bumblebee-Project/Bumblebee/issues/666#issuecomment-107933491","issue_url":"https://api.github.com/repos/Bumblebee-Project/Bumblebee/issues/666","id":107933491,"user":{"login":"amonakov","id":1997391,"avatar_url":"https://avatars.githubusercontent.com/u/1997391?v=3","gravatar_id":"","url":"https://api.github.com/users/amonakov","html_url":"https://github.com/amonakov","followers_url":"https://api.github.com/users/amonakov/followers","following_url":"https://api.github.com/users/amonakov/following{/other_user}","gists_url":"https://api.github.com/users/amonakov/gists{/gist_id}","starred_url":"https://api.github.com/users/amonakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amonakov/subscriptions","organizations_url":"https://api.github.com/users/amonakov/orgs","repos_url":"https://api.github.com/users/amonakov/repos","events_url":"https://api.github.com/users/amonakov/events{/privacy}","received_events_url":"https://api.github.com/users/amonakov/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T12:16:24Z","updated_at":"2015-06-02T12:16:24Z","body":"Thanks. Can you make a Github gist with your ACPI tables obtained by `acpidump`?"}}