When you test Bluetooth, don't just test if it's enabled or not - test
if you can see other devices (for example with sudo hcitool scan). On my
Zenbook, mainline 3.2.14 has working suspend but also no working
Bluetooth. The mainline stable releases just got another recent Asus
Bluetooth patch, but not the one fixing Zenbook Bluetooth
(http://thread.gmane.org/gmane.linux.bluez.kernel/18801).

Even mainline 3.3 does not have the Bluetooth patch, but 3.4-rc1 does
have it
(https://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=9498ba7a1d38d42eef4ef6d906ab1743c9f0fd6f).
3.4-rc1 from mainline ppa has working Bluetooth, does seem to suspend
fine unlike 3.2.0-21, but on resume it actually does a cold boot?

The weird thing is that even if one unloads ath3k, btusb before
suspending, the same problem persists with 3.2.0-21. There is also a
asus_wmi related kernel oops, attached, during the boot, which doesn't
happen on 3.2.0-20.

Please try to experiment if you find a workaround for the suspend
problem. I tried the following in /etc/pm/20_zenbook with no luck:

EHCI_BUSES="0000:00:1a.0 0000:00:1d.0"
BTUSB="1-1.8:1.0 1-1.8:1.1"
case "${1}" in
    hibernate|suspend)
        # Switch USB buses off
        rmmod ath3k
        for bus in $BTUSB; do
            echo -n $bus > /sys/bus/usb/drivers/btusb/unbind
        done
        for bus in $EHCI_BUSES; do
            echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/unbind
        done
        ;;
    resume|thaw)
        # Switch USB buses back on
        for bus in $EHCI_BUSES; do
            echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/bind
        done
        for bus in $BTUSB; do
            echo -n $bus > /sys/bus/usb/drivers/btusb/bind
        done
        modprobe ath3k
        ;;
esac

If no workaround is found, I believe the Bluetooth patch should be
reverted since suspend is more important in general than Bluetooth.
However, I also believe a working workaround would be enough to keep the
patch in, since Zenbook doesn't suspend anyway without the 20_zenbook
workaround for EHCI_BUSES (bug #962798).


** Attachment added: "boot-oops.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/969883/+attachment/3000510/+files/boot-oops.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/969883

Title:
  Asus ZenBook fail to suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/969883/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to