How to wake up SuSe 12.1 64bit from sleep by clicking mouse or via keyboard

I want to know ho to set up that my SuSE 12.1 will be able to wake up from sleep state by mouse click or via any key on keyboard. Thanks a lot.

I know it is an old and stupid one, but I could not resist:
http://hcvv.home.xs4all.nl/Snap_Hit.jpg
But I am also curious. When you read e.g. Wikipedia about “stand by”, “sleep” anf “hibernate”, there seem to be an awfull lot of combinations. Is what the BIOS allowes part of an answer to the OP’s question?

I am not understand you much. Not long ago I have Win7 and normylly if I have Os in sleep, hibernation etc. state I could simple wake it up by pressign any key on keyboard o presiing mouse, even only by mouse move. I’ve made no BIOS power management changes since that.

Well, apart from the cartoon (better forgetthat part of ny post), I tried to trigger people (not specifically you) into providing technical information about this.

But when you say that you can do this in anothe operating system, I guess your hardware supports this.
I still hope other with more knowledge tune in here.

On 07/31/2012 02:06 PM, uzivak wrote:
>
> Not long ago I have Win7 and normylly if
> I have Os in sleep, hibernation etc. state I could simple wake it up by
> pressign any key on keyboard o presiing mouse, even only by mouse move.
> I’ve made no BIOS power management changes since that.

it is not unusual for Windows engineers and hardware maker engineers to
work together sharing secret which allows Windows to do things via
drivers that Linux developers must spend lots of time trying to figure
out how…

so, i have an Acer nettop that i wish would wake up with any key, or
mouse movement–but, it won’t–what i can do is wake up a ‘suspend to
RAM’ with most keys, but i can only wake up ‘suspend to disk’ with a
momentary press of the machines power button…

as far as i know there is nothing i can do to change that…and, i am
sure NOT going back to Windows just so i can wake with any key!!

but, some things you could tell us which might be what it takes for a
real guru (i’m not) to fix you up, are:

  1. has this machine always shown this symptom with openSUSE, or did it
    suddenly stop working as you wish?

  2. you mentioned “BIOS power management” and that you have not changed
    it since Win7–but, did you change it while using Win7? If so, what did
    you change from and to? And if you go back to the machines default BIOS
    settings, does it then wake up as you wish? [WARNING: Wrongly setting
    your BIOS can cause problems…so remember what you change,
    exactly…so, in case it stops working altogether, you can backtrack.]

  3. sometimes hardware makers update their BIOS because things like wake
    from sleep does not do as expected–have you checked your maker’s site
    to see if they have released a BIOS update for your machine? [WARNING:
    Updating a BIOS is a kinda risky thing…it should go well but you
    MUST carefully follow the makers instruction, or you may ruin your
    machine! (i’m not sure i would take the chance just to be able to wake
    up with any key, rather than a power button push–i would, however, do
    it to avoid Windows)]

  4. since you installed openSUSE: have you made changes in GNOME to the
    systems power management? (i don’t use gnome but guess you can find
    those settings in (something like) Personal - Settings > Hardware >
    Power Management

  5. i guess yours is a laptop, if so: does the ability to wake up the
    machine vary if it is plugged in, or not?

  6. please don’t make us guess about your hardware: tell us the brand
    and model number, CPU, and etc

and, by the way: there is no such thing as “SuSe 12.1”, nor is there a
“SuSE 12.1”, nor an OpenSUSE 12.1 or other variations other than
openSUSE 12.1 and if you write “Os” i guess you meant to write “oS” but
even then . . .


dd http://tinyurl.com/DD-Caveat

This might help:

http://blob.inf.ed.ac.uk/chris/2011/03/04/linux-sleep-how-to-wake-with-a-key-press-or-mouse-click/

Very interesting info on the subject. Thanks.

I went to the site that I had previous linked to, tried what it suggested and it didn’t work.

What did work, however, was this:

http://higgs.cygnusx-1.org/~edgan/wakeonusb/56-wakeupusb.rules

Copy this into a text editor and save it as /etc/udev/rules.d/56-wakeupsub.rules.

http://higgs.cygnusx-1.org/~edgan/wakeonusb/usb-wakeup

Copy this into the text editor and save as /usr/local/sbin/usb-wakeup.

Make both files executable (do all this as root, of course).

Reboot.

It looks like this should work for usb mouse and usb keyboard. It works for my usb mouse. I have a PS/2 keyboard so I have not been able to test it or figure a way to make that work.

Thank for posting this.

But I must add that making the first one /etc/udev/rules.d/56-wakeupsub.rules executable is big nonsense. It is no executable at all, it is a configuration file. And when you doubt, none of the other rule files there are executable.

My mistake. I plead ignorance. I was just relaying information that I had found elsewhere. Not being all that familiar with udev I didn’t realize that it was just a configuration file. It worked on my system, though, so it must not make any difference.

As long as it is readable by the process using it, it does what you intended to do. But “it works” is not the same as “it works and it is done in the correct way”. :wink: And as this thread is intended to help others (and you understand that because you were so kind to post your solution), we try to do it also as correct as possible.