LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to inhibit only auto suspend when certain apps are active? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-inhibit-only-auto-suspend-when-certain-apps-are-active-939100/)

LionHater 04-10-2012 10:09 AM

How to inhibit only auto suspend when certain apps are active?
 
Hi...

I find this weird in Linux:

With auto-suspend enabled, the unattended computer goes to sleep even though a music player (or any other process) is active.

This is annoying when I want to leave computer on and listen to some music or when I want to use it as HTPC.

System: INTEL Core i3-2100, Asus P8H67-M EVO INTEL H67 and a SSD. (And I don't have a swap partition.)

Should I do something in BIOS or are there other solutions including an app? (Caffeine inhibits screensaver as well and I don't want that.) A DE agnostic solution would be preferable (I'm on Lubuntu).

Thanks.

r0b0 04-12-2012 03:35 AM

You can send signals to power manager dbus interfaces, have a look at this post. Exact names of interfaces might have changed since that, you can figure them out using qdbusviewer

LionHater 04-12-2012 09:14 AM

Thanks rObO, but I can't believe that Linux in general isn't able to offer an easy, in fact default option for such a basic thing. I've asked some music player developers to embed such a feature, but they couldn't. I'll choose to manually disable it everytime I listen to music or use the computer as HTPC. This is simply ridiculous. Linux is NOOB in that respect.


All times are GMT -5. The time now is 08:40 PM.