Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From time to time opensuse 12.3 starts to wake up from sleep immediately. I have created a service in /etc/init.d be able to wake up from keyboard and mouse with the following code:

echo enabled > /sys/bus/usb/devices/usb5/power/wakeup
echo enabled > /sys/bus/usb/devices/5-1/power/wakeup
echo enabled > /sys/bus/usb/devices/5-2/power/wakeup

I've also added this option in grub:


I have nvidia card with 319.32 drivers installed. Most of the time going to sleep and resuming works fine, but after some period of time it just keeps waking up immediately and only rebooting the system helps.

share|improve this question

Copy this script in:


and make it executable.

# Revision: 21.12.2009
# Author: Sandro Mani

function unbind_usb {
    for driver in ehci ohci uhci; do
        cd "/sys/bus/pci/drivers/${driver}_hcd";
        ids=$(ls | grep :);
        echo $ids > /tmp/DISABLED_$driver;
        for id in $ids; do
            echo -n "$id" > unbind;

function bind_usb {
    for driver in ehci ohci uhci; do
        cd "/sys/bus/pci/drivers/${driver}_hcd";
        for id in $(cat /tmp/DISABLED_$driver); do
            echo -n "$id" > bind;
        rm /tmp/DISABLED_$driver;

case "$1" in
    exit 1;
exit 0;

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.