Raspbian change sound mode on boot
#1
Hello there!

I have a little problem with 12.3 which I've installes today on raspbian...
As I've configured XBMC I noticed I cannot set audio output to ALL (HDMI+Analog) but instead have to chose from one or the other!
(This was possible in some OpenElec Build I've used before)

Now my raspberry is running 24/7 and plays an internet stream by default (autoexec.py with a m3u playlist & rebooting device every day)
because there's a stereo attached at the analogue out and my Antenna on the stereo is damaged.

I have searched the web, found the Audio Toggle favorite (which is working fine) and some httpapi requests, which can also toggle the output.

But I'd like to have it boot into Analog mode every time. Maybe switch with the favourite to hdmi sometimes, but after the next boot it should be again on Analog.

How can I achieve this?

what I've tried:
curl --data-binary '{ "jsonrpc" : "2.0", "method" : "Input.ExecuteAction", "params" : { "action" : "audiotoggledigital" }, "id" : 1 }' -H 'content-type: application/json;' http://localhost:8080/jsonrpc

but I can't find anything in the API about setting a specific device, it's just toggling...

thanks
Reply
#2
Ok so now I'm just replacing my guisettings.xml with a saved one in a shell script before the reboot
(which is quite bad but works for now...)
Reply

Logout Mark Read Team Forum Stats Members Help
Raspbian change sound mode on boot0