[GH-ISSUE #516] Check for external volume change #330

Closed
opened 2026-02-27 19:30:02 +03:00 by kerem · 3 comments
Owner

Originally created by @DementevAlex on GitHub (Aug 3, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/516

Hello!
Just got librespot to control volume through the ALSA mixer with no problems.
I also have IR receiver attached to my Raspberry PI to do some stuff including volume control. It also works with ALSA mixer.

And as I understand it seems like librespot doesn't check the volume value. For example I set volume on my phone to 60% then changed it to 30% via IR. After that I still see 60% on my phone.

Is it possible to add the volume value reading?

Originally created by @DementevAlex on GitHub (Aug 3, 2020). Original GitHub issue: https://github.com/librespot-org/librespot/issues/516 Hello! Just got librespot to control volume through the ALSA mixer with no problems. I also have IR receiver attached to my Raspberry PI to do some stuff including volume control. It also works with ALSA mixer. And as I understand it seems like librespot doesn't check the volume value. For example I set volume on my phone to 60% then changed it to 30% via IR. After that I still see 60% on my phone. Is it possible to add the volume value reading?
kerem 2026-02-27 19:30:02 +03:00
Author
Owner

@ashthespy commented on GitHub (Aug 4, 2020):

This is on my #todo list. The bits and bobs are there, I hacked up a solution some time ago, but it's a waste of resources, as it spins up a thread just to poll for volume changes..

<!-- gh-comment-id:668497918 --> @ashthespy commented on GitHub (Aug 4, 2020): This is on my [#todo list](https://github.com/librespot-org/librespot/pull/443#issuecomment-596521336). The bits and bobs are there, I hacked up a solution some time ago, but it's a waste of resources, as it spins up a thread just to poll for volume changes..
Author
Owner

@DementevAlex commented on GitHub (Aug 4, 2020):

Well that's good news, thanks.
After some googling I found the spotcontrol. If I can set up lirc to control volume through it (not through ALSA directly) and volume level will be shown on my phone or desktop app then it would fit me as a tmp solution.
But it's going to be even more waste of resources :)

<!-- gh-comment-id:668786270 --> @DementevAlex commented on GitHub (Aug 4, 2020): Well that's good news, thanks. After some googling I found the spotcontrol. If I can set up lirc to control volume through it (not through ALSA directly) and volume level will be shown on my phone or desktop app then it would fit me as a tmp solution. But it's going to be even more waste of resources :)
Author
Owner

@celismax commented on GitHub (Feb 20, 2021):

Hi @AlexanderShevelev !
Did you find a workaround unsing ALSA ?

<!-- gh-comment-id:782757336 --> @celismax commented on GitHub (Feb 20, 2021): Hi @AlexanderShevelev ! Did you find a workaround unsing ALSA ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#330
No description provided.