Ask / Submit

[question] How can I switch ambiences from terminal? [answered]

asked 2015-04-02 21:35:19 +0300

LVPVS gravatar image

updated 2015-09-29 21:31:10 +0300



I added the solution. Original post is kept for reference.

dbus-send --session --type=method_call --print-reply --dest=com.jolla.ambienced /com/jolla/ambienced com.jolla.ambienced.setAmbience string:'file:///usr/share/ambience/'$2'/'$2'.ambience'

Where '$2' is the name of the ambience.

End of EDIT

Please, somebody, tell me how I can switch ambiences from terminal (dbus?).

Thank you,

LVPVS out.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by simo
close date 2015-04-04 06:45:55.072497


Hi LVPVS, I got it working with the "dbus-send" method. Many thanks!

Holger ( 2015-10-01 12:24:35 +0300 )edit

Hei @Holger, Thanks for the feedback! :)

If, by any chance, you happen to find out where the user-created ambiences are stored, please let me know. :)

LVPVS over.

LVPVS ( 2015-10-01 13:53:13 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-04-02 22:57:09 +0300

Ramirez gravatar image

In the gist is my script written in Python using DBus to switch ambiences - provide ambience name as an argument.

That was my first script I wrote when my Jolla arrived in 2013. I figured it out how to do it by watching output of dbus-monitor (run it as root) while manually switching ambiences. Absolutely love it <3

edit flag offensive delete publish link more


@Ramirez Thank you! :) LVPVS out.

LVPVS ( 2015-04-03 12:52:02 +0300 )edit

And one more thing, where are my custom Ambiences stored? LVPVS out.

LVPVS ( 2015-04-03 13:09:39 +0300 )edit

What would it look like with the dbus-send command? LVPVS out.

LVPVS ( 2015-04-03 14:56:40 +0300 )edit

Question tools



Asked: 2015-04-02 21:35:19 +0300

Seen: 606 times

Last updated: Sep 29 '15