Ask / Submit

Command line equivalents of GUI commands

asked 2014-12-11 17:00:40 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2016-12-19 14:42:14 +0300

cuh7b5 gravatar image

Are there command-line tools that would allow for remote execution and doing actions ie. like modifying a contact parameters, creating new and others?


edit retag flag offensive close delete



D-bus commands for things like GUI actions; This one turns on Bluetooth dbus-send --type=method_call --dest=com.jolla.Bluetooth /com/jolla/Bluetooth com.jolla.Bluetooth.startSession

This command allows you to create a new file with contents; cat > makenew.file enter 'add contents' - ctrl+c to finish.

The net is littered with info on this type of thing, as Jolla basically runs on GNU/Linux and I'm certainly a novice when it comes to CLI environments.

This site is a good guide, but remember that not all commands there apply to Sailfish;


Edz ( 2014-12-11 17:52:43 +0300 )edit

Well, I feel quite comfortable in command line, I was actually looking for some remotely triggered automation - over ssh ie. - hence the question.

piero ( 2014-12-15 00:30:43 +0300 )edit

@piero, there are many valuable threads started by @schturman. We might want to add them here. I am happy to have found your wiki, as I was tempted to start a duplicate already.

lakutalo ( 2015-12-22 13:30:24 +0300 )edit

@lakutalo, thanks, indeed. Feel free to extend the list. It's a wiki after all.

piero ( 2015-12-23 02:40:36 +0300 )edit

Usb mode setting can also be done from the command line, there is the usb_moded_util

Get the supported modes: usb_moded_util -m Get the currently set mode: usb_moded_util -q Set a new mode: usb_moded_util -s <mode_name> Set a new mode by default: usb_moded_util -c <mode_name></mode_name></mode_name>

usb_moded_util -h will give you a complete list of options

Philippe De Swert ( 2016-01-14 00:33:52 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2016-08-15 18:13:51 +0300

cuh7b5 gravatar image

Put phone into Silent mode:

dbus-send --type=method_call /com/nokia/profiled string:"silent"

Change back to Normal mode:

dbus-send --type=method_call /com/nokia/profiled string:"general"
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2014-12-11 17:00:40 +0300

Seen: 4,593 times

Last updated: Dec 19 '16