Ask / Submit
46

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 2016-12-19 14:42:14 +0200

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?

Android

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,

Edz ( 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
Login/Signup to Answer

Question tools

Follow
39 followers

Stats

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

Seen: 4,874 times

Last updated: Dec 19 '16