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

Reply via email to