Some updates. First: I tried mainline now, and the issue is the same with 3.17.1-utopic. (BTW I tested that kernel without bcmwl proprietary driver.)
Second: I took a look at /proc/acpi/wakeup. It turned out that LID0 and XHC1 were able to wake up the computer. I disabled XHC1 now, and after that the computer never woke up on its own again. Power button and lid opening still work to wake up the computer. Here I want to rise a question: Why is USB allowed to wake up a laptop with closed lid in the first place? You should disable it by default (or add an option to the settings menu). from /proc/acpi/wakeup: XHC1 S3 *disabled pci:0000:00:14.0 from lspci: 00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1391476 Title: [MacBookPro11,1] Laptop wakes up while lid closed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1391476/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs