Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a System 76 laptop with Oneiric. I just tried to turn the volume down using fn+F5 but I accidentally pressed fn+F4 and suspended the system instead. Is there a way to disable that so I won't make the mistake again?

share|improve this question

2 Answers

If you look into this directory

ls /etc/acpi/events/

then there should be somewhere a sleep-button-file. In this file you could disable the action when this event is sent.

share|improve this answer
there is indeed /etc/acpi/events/sleepbtn but commenting out suspend action in it has no effect. – artm Mar 3 at 10:25

I could only solve this issue by
1) Editing the file /etc/acpi/sleep.sh (gksu gedit /etc/acpi/sleep.sh) and
2) Putting # before pm-suspend.

enter image description here

If you are lazy, just paste this on a terminal (a backup will be created):

sudo sed -i".bak" 's/pm-suspend/\#pm-suspend/' /etc/acpi/sleep.sh   
share|improve this answer

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.