 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

28th February 2010, 10:02 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 133

|
|
|
Can't wake from sleep with USB keyboard or mouse
I've configured my F12 system to go to sleep when idle for a period of time and so far everything has been working out well except that it appears that the USB ports are completely dead with the system is put into sleep. I can't wake it using keyboard or mouse. only with the power button. Anyoen else experience this or know how to allow sleep from keyboard/mouse?
|

1st March 2010, 07:11 AM
|
|
Registered User
|
|
Join Date: Feb 2009
Posts: 2,535

|
|
|
Some details about your hardware could help diagnosing your problem. Are you using Gnome or KDE?
|

1st March 2010, 10:45 AM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 85

|
|
Quote:
Originally Posted by wangmaster
I've configured my F12 system to go to sleep when idle for a period of time and so far everything has been working out well except that it appears that the USB ports are completely dead with the system is put into sleep. I can't wake it using keyboard or mouse. only with the power button. Anyoen else experience this or know how to allow sleep from keyboard/mouse?
|
same problem here..already opened a fedora-thread but no one answers..
|

1st March 2010, 11:07 AM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 1,158

|
|
|
On my ThinkPad, it is the Fn button that I use to wake from Suspend to RAM (or I can open the display lid if it is closed). For Hibernation to Disc, I have to use the Power button. This is normal for a ThinkPad laptop. The TrackPoint mouse will only turn the screen backlight back on when using display power management. The TrackPoint mouse will not wake from Suspend or Hibernate.
__________________
Fedora 18 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)
|

1st March 2010, 12:03 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 2,769

|
|
|
It's normal for any motherboard to remove the +5V power from the USB ports when sleeping in the S3 state. I use the power button to wake mine up.
|

1st March 2010, 02:01 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 133

|
|
Quote:
Originally Posted by JEO
It's normal for any motherboard to remove the +5V power from the USB ports when sleeping in the S3 state. I use the power button to wake mine up.
|
Aahh. Do you know how this works in windows? Do they not use S3 state?
|

1st March 2010, 03:49 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 85

|
|
Quote:
Originally Posted by JEO
It's normal for any motherboard to remove the +5V power from the USB ports when sleeping in the S3 state. I use the power button to wake mine up.
|
Hallo, i dont use usb mouse/keyboard but use ps2 input devices, but im having problems (or is this enables for fedora?). i cant wakeup my PC (not laptop) using keyboard/mouse, i need to switch power button..this is what i dont like now..
|

1st March 2010, 04:00 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 2,769

|
|
|
If it is waking up in Windows then it may only be in the S1 standby state, which doesn't shut as much down as S3 sleep state.
If your PS/2 devices aren't waking, check your motherboard manual, usually there is a jumper to provide power to the ps/2 devices (an option) or it might be a BIOS option (allow wake on ps/2).
|

1st March 2010, 04:07 PM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
Quote:
Originally Posted by green-cat-fed
Hallo, i dont use usb mouse/keyboard but use ps2 input devices, but im having problems (or is this enables for fedora?). i cant wakeup my PC (not laptop) using keyboard/mouse, i need to switch power button..this is what i dont like now..
|
Why the angry smiley? at least your PC wakes up (unlike mine)
|

1st March 2010, 05:16 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 133

|
|
Quote:
Originally Posted by leigh123linux
Why the angry smiley? at least your PC wakes up (unlike mine) 
|
No kidding. F12 was the first Fedora release where ACPI sleep actually worked on my machines since the APM days  .
Quote:
If it is waking up in Windows then it may only be in the S1 standby state, which doesn't shut as much down as S3 sleep state.
If your PS/2 devices aren't waking, check your motherboard manual, usually there is a jumper to provide power to the ps/2 devices (an option) or it might be a BIOS option (allow wake on ps/2)
|
I did some more googling and prior to Vista, Windows just didn't go into S3 when USB devices existed. It looks like in Vista and Windows 7 though, they've blacklisted known bad USB devices, and are able to do S3 sleep with USB wake.
I know my BIOS is configured to allow USB wake. Wonder if there's a deficiency in the Linux kernel somewhere. I'll do some more digging when I have time.
This is all for my desktop system, and I no longer have ps/2 devices unfortunately. [what is this legacy ps/2 thing you refer to  ]
I usually wake my thinkpad t61p by either opening the lid or pushing the power button, but even back in APM days, laptop keyboards wouldn't wake the system so that I'm used to.
|

1st March 2010, 10:31 PM
|
|
Registered User
|
|
Join Date: Jun 2008
Location: Eau Claire, WI
Age: 55
Posts: 5

|
|
|
This works for me.
Assuming you have power on the USB port (which can be confiruable through the BIOS or pins on your mobo), as suggested above...
use this command "cat /proc/acpi/wakeup" to see if your USB ports are enabled for allowing wakeup. Only my PS2 keyboard was enabled by default. Then, you can use this command to enable a device on USB0 to wake your system: "echo USB0 > /proc/acpi/wakeup". Assuming your keyboard is on USB0. Su into root to use these commands. If it works for you, you'll have to put it in one of your boot scripts. Also, the enable/disable is a toggle. Execute the echo a 2nd time to disable.
I've see better explinations for this, but can't find a good one at the moment, however, this one works:
http://www.gossamer-threads.com/list...v/users/419985
|

2nd March 2010, 02:38 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 133

|
|
Quote:
Originally Posted by hball01
Assuming you have power on the USB port (which can be confiruable through the BIOS or pins on your mobo), as suggested above...
use this command "cat /proc/acpi/wakeup" to see if your USB ports are enabled for allowing wakeup. Only my PS2 keyboard was enabled by default. Then, you can use this command to enable a device on USB0 to wake your system: "echo USB0 > /proc/acpi/wakeup". Assuming your keyboard is on USB0. Su into root to use these commands. If it works for you, you'll have to put it in one of your boot scripts. Also, the enable/disable is a toggle. Execute the echo a 2nd time to disable.
I've see better explinations for this, but can't find a good one at the moment, however, this one works:
http://www.gossamer-threads.com/list...v/users/419985
|
That did it. Thanks for the explanation. Now that I know what to look for a little directed googling finds alot of similar discussions. Was able to use /proc/acpi/wakup directly or acpitool to toggle the USB device.
It'd be nice if there was a simpler way than looking through dmesg to identify which device is attached to which USB hub (especially since modern PCs with lots of USB ports have like half a dozen or more distinct hubs) but it definitely works. Be nice if there was some way to automatically activate a class of device (say input).
But for now, figuring out which USBX device my mouse and keyboard are and activating them automatically works quite well.
|

21st February 2011, 05:56 PM
|
|
Registered User
|
|
Join Date: Aug 2007
Location: London UK
Posts: 141

|
|
|
Re: Can't wake from sleep with USB keyboard or mouse
Surely there should be a better way of doing this than Echo in a script.
Shouldn't it be configurable in Power Management under Preferences, how do I suggest this? .
This installation of F14 doesn't wake on ps2 keyboard.
Ralph
|

25th February 2011, 03:42 PM
|
|
Registered User
|
|
Join Date: Aug 2007
Location: London UK
Posts: 141

|
|
|
Slightly silly question
If I edit this file ( /proc/acpi/wakeup ) do i put 'enabled' instead of 'disabled' or some other word. Seems much better than adding lines by cat etc.
I don't know what the word is because all lines say disabled .
Thanks for any help
Last edited by RalphCC; 25th February 2011 at 03:43 PM.
Reason: add name
|

25th February 2011, 04:00 PM
|
|
Registered User
|
|
Join Date: Jun 2008
Location: Eau Claire, WI
Age: 55
Posts: 5

|
|
|
Re: Can't wake from sleep with USB keyboard or mouse
I'm not an expert, but this is the way I understand it: /proc/acpi/wakeup is not a file you can edit. It's a hook (like a pipe to a device driver maybe?) into the OS that reacts to input. (Read above) execute: "echo USB0 > /proc/acpi/wakeup" will enable USB0. Don't confuse this with overwriting a text file with a character string. This command will configure the OS to enable USB0 (change 0 to the USB # of your choice), and in return, the OS will display the current status in /proc/acpi/wakeup. You can see the current state by "cat /proc/acpi/wakeup". I know it looks like a text file, but it's not.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 06:50 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|