opencardev / crankshaft

Crankshaft: A turnkey GNU/Linux solution that transforms a Raspberry Pi to an Android Auto head unit.
http://getcrankshaft.com
GNU General Public License v3.0
2.16k stars 262 forks source link

Saving audio volume #68

Closed priitpi closed 6 years ago

priitpi commented 6 years ago

Thanks for the great effort of making carputer projects fun again.

I tried out volume changing with gpio pins using latest release (0.2.2) and it works as expected. Tho I noticed that volume level is not saved when rpi shuts down (as brightness level does). Currently it's only way I can change volume and every time rpi starts audio is really loud by default. So it would be awesome if audio level would be saved on shutdown.

htruong commented 6 years ago

Thanks for reporting -- I understand that's a problem. It's actually not easy to save the state of the soundcard. I need to dig into it.

Maju3 commented 6 years ago

What about a Setting for "start up" volume? I mean instead of saving the last volume Level. Lets say you set "start up" volume to 10% then after shutdown and boot the volume is 10%. I think this is better as saving the last Level. What if you hear Music VERY loud? Then you shutdown the PI and on next start it blows your ears ;)

tehniemer commented 6 years ago

Also interested in this.

htruong commented 6 years ago

I have found the solution for this, this hopefully will be fixed in the next release.

hawkeyexp commented 6 years ago

With upcoming builds based on crankshaft-ng branch system will auto save and restore volume by default

hawkeyexp commented 6 years ago

Released with CS-NG