Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My external keyboard does not have a suspend button. Is there any way I can set up Ubuntu to use a different key (or any key for that matter) to wake the PC if it has been suspended.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

If you run the following command you will see a list of usb devices and if they are enabled to wake up the system.

cat /proc/acpi/wakeup

You will see a list of items such as the the one seen below.

USB0      S3    *disabled   pci:0000:00:12.0

Once you have established which device is the keyboard lets say USB0 run this command.

sudo su
echo USB0 > /proc/acpi/wakeup

Now if you run the command from the start again you should see enabled next to the device.

USB0      S3    *enabled   pci:0000:00:12.0

That worked for me, I can wake up my dektop with any key.

share|improve this answer
    
It worked like a charm - Thank you very much. My USB keyboard was called UAR1, so I suppose chances are good that USB devices always start with a 'U', but the rest can be anything. –  JacobusR Oct 23 '12 at 20:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.