0

i don't want settings turned to never. I also tried the Caffeine app but couldn't even get it to start, and so here I am.

Thanks in advance!

1

1 Answer 1

0

Go to settings. Battery. You should see options for when you want computer to sleep, shutoff, ect. I suggest only setting it to never when you are powered via ac. You could write a little shell script to detect when the barttery percentage is below x%, and send the cutoff signal to your music program. Just a thought.

2
  • Yeah, the problem is that I have to manually change settings every time I want to listen to music and leave the computer. What I'm try to do tho is some kinds of automation for when, let's say, app X is running, don't ever turn off. Is that possible? Jun 16, 2014 at 21:25
  • I'm not certain on that one. You could design a little shell script to do the job. You could have the script launch on startup, and when program with window title x starts up, disable autosleep. just some suggestions. If you need help with the code, head over to stackoverflow.com
    – coltonon
    Jun 18, 2014 at 19:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .