Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   what triggers wakeup from suspend? (http://www.linux-archive.org/fedora-user/565221-what-triggers-wakeup-suspend.html)

Andras Simon 08-17-2011 02:08 PM

what triggers wakeup from suspend?
 
And, more importantly, how to change it.

I have two types of netbooks (an Asus Eee 701, and an Acer Aspire
One), both running F14. The Acer can be woken up by pressing any key
on the keyboard; on the Eee, I have to push the Power button. Since
that button seems to be dying, I'd like to be able to emulate the
Acer's behavior. Is that doable? Or is this hardware-dependent?

There's no gnome/kde/whatever on the Eee, just plain icewm.

Andras
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Chris Adams 08-17-2011 02:30 PM

what triggers wakeup from suspend?
 
Once upon a time, Andras Simon <szajmi@gmail.com> said:
> I have two types of netbooks (an Asus Eee 701, and an Acer Aspire
> One), both running F14. The Acer can be woken up by pressing any key
> on the keyboard; on the Eee, I have to push the Power button. Since
> that button seems to be dying, I'd like to be able to emulate the
> Acer's behavior. Is that doable? Or is this hardware-dependent?

It is system-dependent. I haven't messed with it on portable computers
(which tend to have more system-specific config), but on desktops, there
is usually a BIOS screen for what type of events can wake the system
(PS/2 keyboard, USB device, LAN, alarm, etc.).

For a USB keyboard, I have to enable the USB device option in the BIOS,
and then I have to set Linux to leave the right USB controller enabled
when the system goes to sleep. I have to figure out which USB
controller is needed and add a line to /etc/rc.d/rc.local to echo the
right one into /proc/acpi/wakeup (e.g. "echo USB3 > /proc/acpi/wakeup").

On a system that I for some reason kept plugging and unplugging the
keyboard (and ending up with it in different USB ports), I used the
following bit of shell code:

################################################## ######################
# Set USB keyboards to allow wakeup
for dev in $(grep -l '^01$' /sys/bus/usb/devices/*/bInterfaceProtocol); do
dir=$(cd $(echo "$dev" | sed 's!/[^/]*$!!'); pwd -P)
pci=$(echo $dir | cut -d/ -f5)
for pdev in $(grep "disabled *pci:$pci" /proc/acpi/wakeup | cut -d' ' -f1); do
echo "$pdev" > /proc/acpi/wakeup
done
done
################################################## ######################

--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Tim 08-17-2011 03:17 PM

what triggers wakeup from suspend?
 
On Wed, 2011-08-17 at 09:30 -0500, Chris Adams wrote:
> on desktops, there is usually a BIOS screen for what type of events
> can wake the system (PS/2 keyboard, USB device, LAN, alarm, etc.).

And there may be jumpers on the motherboard to set which devices are
still powered up in standby mode. If the keyboard's plugged into a port
that's totally shut down, in standby mode, the keyboard is not going to
be able to be used to wake the computer back up again.

I doubt any non-desktop computer would have jumpers for that, but may
have the same limitation: That something might be completely powered
off, and the keyboard circuitry might be considered too much of a power
drain to be left running, opting for the simplicity of whatever monitors
just the power button.

--
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored. I
read messages from the public lists.



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Andras Simon 08-17-2011 03:22 PM

what triggers wakeup from suspend?
 
2011/8/17, Chris Adams <cmadams@hiwaay.net>:
> Once upon a time, Andras Simon <szajmi@gmail.com> said:
>> I have two types of netbooks (an Asus Eee 701, and an Acer Aspire
>> One), both running F14. The Acer can be woken up by pressing any key
>> on the keyboard; on the Eee, I have to push the Power button. Since
>> that button seems to be dying, I'd like to be able to emulate the
>> Acer's behavior. Is that doable? Or is this hardware-dependent?
>
> It is system-dependent. I haven't messed with it on portable computers
> (which tend to have more system-specific config), but on desktops, there
> is usually a BIOS screen for what type of events can wake the system
> (PS/2 keyboard, USB device, LAN, alarm, etc.).

There's nothing in the BIOS options about this, so it looks a lost cause.

Thanks,
Andras
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Roberto Ragusa 08-17-2011 07:58 PM

what triggers wakeup from suspend?
 
On 08/17/2011 04:30 PM, Chris Adams wrote:

> ################################################## ######################
> # Set USB keyboards to allow wakeup
> for dev in $(grep -l '^01$' /sys/bus/usb/devices/*/bInterfaceProtocol); do
> dir=$(cd $(echo "$dev" | sed 's!/[^/]*$!!'); pwd -P)
> pci=$(echo $dir | cut -d/ -f5)
> for pdev in $(grep "disabled *pci:$pci" /proc/acpi/wakeup | cut -d' ' -f1); do
> echo "$pdev" > /proc/acpi/wakeup
> done
> done
> ################################################## ######################
>

Nice trick, thank you for teaching me about /proc/acpi/wakeup.
I researched the topic a little and found that there is a cleaner
interface to that file (acpitool -w, acpitool -W).

--
Roberto Ragusa mail at robertoragusa.it
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


All times are GMT. The time now is 09:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.