pause on suspend/hibernate

Bug #769598 reported by Danielle Foré
56
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Audience
Triaged
Medium
Unassigned
Noise
Confirmed
Wishlist
Unassigned

Bug Description

On suspend or hibernate, pause should be sent out to all media players.

Nothing like closing your notebook at home, and opening it somewhere else with your music blaring XD

Related branches

Revision history for this message
Allen Lowe (lallenlowe) wrote :

is there a dbus api that all music players share for this or something? Or am I only gonna support BeatBox?

Changed in pantheon-session:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Danielle Foré (danrabbit) wrote :

If it's possible, we should do whatever happens when you press the pause media key on the keyboard. In that way it's respected by music and video players.

Revision history for this message
Cris Dywan (kalikiana) wrote :

The best choice should be MPRIS. BeatBox is going to support as far as I was told, and further more Audacious, Banshee, Rhythmbox, XMMS and VLC support it (to different degrees):

http://xmms2.org/wiki/MPRIS

Cody Garver (codygarver)
affects: pantheon-session → elementaryos
Changed in elementaryos:
milestone: none → 0.3-beta1
Cody Garver (codygarver)
Changed in elementaryos:
milestone: isis-beta1 → isis+1-beta1
Revision history for this message
Jason Anderson (ertain) wrote :

I have tried tackling this problem.

It looks like we need to add a script to /etc/pm/sleep.d

Revision history for this message
Jason Anderson (ertain) wrote :

...and use dbus to pause the media players. When the computer is about to go to sleep it fires off a signal on dbus to the listening programs. I have enclosed the script which may make this work.

Revision history for this message
Jason Anderson (ertain) wrote :

Okay, I think this little feature is ready for testing. If anyone wants, they can clone my branch and test it out.

Revision history for this message
Cameron Norman (cameronnemo) wrote :

You need to listen for the PrepareForSleep() signal in Noise and pause the music when you get that signal.

www.freedesktop.org/wiki/Software/systemd/inhibit/

affects: elementaryos → noise
Changed in noise:
milestone: loki-beta1 → none
milestone: none → loki-beta1
Changed in audience:
milestone: none → loki-beta1
status: New → Confirmed
Cody Garver (codygarver)
Changed in audience:
importance: Undecided → Medium
Changed in audience:
milestone: loki-beta1 → none
Changed in noise:
milestone: loki-beta1 → none
Revision history for this message
Zisu Andrei (matzipan) wrote :

I believe this should be a system-wide pause command (MPRIS) and should not be limited to only VLC. I don't think the player should care what sleep state the system is in.

Revision history for this message
Zisu Andrei (matzipan) wrote :

Sorry, read should not be limited only to Noise.

summary: - send pause on suspend/hibernate
+ pause on suspend/hibernate
Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :
Changed in audience:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.