Re: what triggers wakeup from suspend?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux