We have moved to a new Sailfish OS Forum. Please start new discussions there.
49

Command line equivalents of GUI commands

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

this post is marked as community wiki

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

updated 2018-12-03 01:30:30 +0200

FireFly 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?

Android

Assorted

  • SFOS Cheat Sheet: not strictly GUI-equivalent things, but covers package management, restarting certain services, and other bits and bobs. Generally a handy reference.
edit retag flag offensive close delete

Comments

3

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;

http://linuxcommand.org/learning_the_shell.php

Regards,

Spam Hunter ( 2014-12-11 17:52:43 +0200 )edit
2

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 +0200 )edit
3

@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 +0200 )edit

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

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

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 +0200 )edit

1 Answer

Sort by » oldest newest most voted
5

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

cuh7b5 gravatar image

Put phone into Silent mode:

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

Change back to Normal mode:

dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"general"
edit flag offensive delete publish link more

Comments

Please help, how to enable GPS device with cmd line?

brinZ ( 2018-11-06 19:01:54 +0200 )edit

@brinZ - already answered here by @Philippe De Swert and @Schturman;

https://together.jolla.com/question/56437/i-would-like-to-toggle-internet-connectivity-via-terminal-with-dbus/

NOTE: You must add devel-su to the start of each command or you will get permission denied error

Spam Hunter ( 2018-12-03 13:45:20 +0200 )edit
Login/Signup to Answer

Question tools

Follow
45 followers

Stats

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

Seen: 7,381 times

Last updated: Dec 03 '18