More > JRiver Media Center 21 for Linux
MC21 not preventing system standby during playback
mwillems:
--- Quote from: terrym@nz on August 30, 2015, 03:37:09 pm ---Can I just get clarification that this idling to sleep/suspend is only affecting Debian 8.1 Jessie (AMD64 and i386)?
--- End quote ---
It definitely affects other distros (I can personally attest to Arch being affected). I suspect that any systemd-based distro would be affected, which is almost all modern distros (other than gentoo and slackware).
Based on what Bob was saying, things might be working on Debian Wheezy which was pre-systemd. I'm not sure I'd want to use Wheezy for a daily use system (although for a dedicated MC box it might be just fine).
terrym@tassie:
@mwillems, thanks for the info, yes it seems a bit regressive to go back to Wheezy.
I guess if there isn't a fix for MC21 any time soon then I'll just have to get my head around Python scripting and write a workaround script that detects MC playing and use the dbus to inhibit suspend.
So @Bob is this likely to be fixed a) within 3 months, b) sometime in the lifespan of MC21 or c) never?
This will enable me to judge whether it is worth putting the effort into the work around, thanks.
bob:
--- Quote from: terrym@nz on August 30, 2015, 06:37:14 pm ---@mwillems, thanks for the info, yes it seems a bit regressive to go back to Wheezy.
I guess if there isn't a fix for MC21 any time soon then I'll just have to get my head around Python scripting and write a workaround script that detects MC playing and use the dbus to inhibit suspend.
So @Bob is this likely to be fixed a) within 3 months, b) sometime in the lifespan of MC21 or c) never?
This will enable me to judge whether it is worth putting the effort into the work around, thanks.
--- End quote ---
Love to change that and started on a fix (which should be easy) but I can't see how to prevent the sleep generically in the MC app even after reading the links above.
Perhaps someone would like to fill me in with more detail?
terrym@tassie:
Hi Bob I am afraid the only help I can give is the following code stub for Python using the dbus:
--- Code: ---import dbus
pm = dbus.SessionBus().get_object("org.freedesktop.PowerManagement", "/org/freedesktop/PowerManagement/Inhibit")
print(pm.HasInhibit()) # 0
inhibited = pm.Inhibit("Me", "I said so")
print(pm.HasInhibit()) # 1
pm.UnInhibit(inhibited)
print(pm.HasInhibit()) # 0
--- End code ---
The other method is to call systemd-inhibit with privilege see http://www.freedesktop.org/wiki/Software/systemd/inhibit/
Hopefully some folks with a lot more programming knowledge and familiarity with linux can help with this one.
Mike Noe?
Mike Noe:
--- Quote from: bob on August 31, 2015, 01:41:08 pm ---Love to change that and started on a fix (which should be easy) but I can't see how to prevent the sleep generically in the MC app even after reading the links above.
Perhaps someone would like to fill me in with more detail?
--- End quote ---
When you say "generically", do you mean a method that takes into account an install/distro that doesn't use a DE, ie. server mode only?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version