Fix volume adjustment by employing DBus #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for this great app, @HaarigerHarald !
Unfortunately, volume adjustment using the volume buttons did not work for me.
After some debugging I found that the command
echo -n +>>/dev/shm/.r_input 2>/dev/null
generated by the app upon button press does not change the volume.However I was able to control the volume on the command line in a manually started
/usr/bin/omxplayer.bin -b -o local --vol 0 video.mp4
process.Also it seems that
dev/shm/.r_input
or/tmp/.r_input
are always owned by pi even though I am using a different user for SSH (and X obviously).Eventually I found that omxplayer accepts volume adjustments from DBus via
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.omxplayer /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Action int32:18
(and -17
respectively) and fixed it in the app.