Control media and the phone
This guide covers playback and volume on the phone, Do Not Disturb, ringing the phone to find it, and its battery, SIM and Wi-Fi status.
Before you begin: the phone is paired and connected. Media controls need notification access on the phone. See Grant Android permissions.
The tether-cli examples use 5b7a as the device id. Any unique prefix of
the id from tether-cli devices works.
Control playback
- Start playback in any media app on the phone.
- In the desktop app, select the phone. The Overview tab shows a card with the title, artist and album art.
- Use the Previous, Play / pause and Next buttons, and drag the position slider to seek.
The card follows the phone’s active media session and disappears when nothing is playing.
The keyboard’s play/pause, next and previous keys and the desktop’s media applet work too, without set-up and without the Tetheron app open. The phone appears in the applet under its own name. If a media player on the desktop is also running, the desktop decides which player the keys control.
From the command line:
tether-cli media 5b7a
tether-cli media 5b7a toggle
tether-cli media 5b7a next
tether-cli media 5b7a seek 90000
Without an action, media lists the phone’s media sessions and marks the
active one with *. The actions are play, pause, toggle, next,
prev, stop and seek with a position in milliseconds.
playerctl works as well. The player’s name is tether_ followed by the
first eight characters of the device id, and it exists only while the phone is
connected and has a media session:
playerctl --list-all
playerctl --player=tether_5b7a19c0 play-pause
playerctl --player=tether_5b7a19c0 metadata
Change the phone’s volume
The volume slider on the media card (tooltip Phone media volume) sets the media volume. The other streams are available from the command line:
tether-cli volume 5b7a
music 7/15
ring 5/15
call 3/5
notification 5/15
alarm 9/15
Set a stream with its name and a level between 0 and the maximum shown:
tether-cli volume 5b7a ring 0
tether-cli volume 5b7a music 10
Switch Do Not Disturb
The phone must allow Tetheron to change the setting. Once, on the phone, open the Tetheron app, go to Settings and tap Do Not Disturb access under Special access. Until then the switch on the desktop is greyed out.
- On the Overview tab, under Phone, switch Do not disturb on.
- Optional: choose the Mode: Priority only, Alarms only or Total silence.
A change made on the phone shows on the desktop too.
tether-cli dnd 5b7a
tether-cli dnd 5b7a priority
tether-cli dnd 5b7a all
The values are all (Do Not Disturb off), priority, alarms and none
(total silence). Without a value, the command prints the current state.
Find the phone
- On the Overview tab, under Phone, click Ring phone on the Find my phone row. The phone plays an alarm at full volume, also in silent mode.
- To stop it, tap Stop on the phone or click Stop ringing on the desktop. The alarm stops by itself after 60 seconds.
tether-cli ring 5b7a
tether-cli ring 5b7a stop
To let the phone show the alert over the lock screen, tap Full-screen alerts under Special access in the phone app’s Settings once.
Check battery, SIM and Wi-Fi
The top of the Overview tab shows:
- the battery level, and Charging while the phone charges
- one entry per SIM with the carrier and the network type. Hover for the signal strength.
- the Wi-Fi network name
- Airplane mode while it is on
If the SIM entries are missing, grant Signal and SIM status in the phone app’s Settings.
The tray icon’s tooltip shows the connected phone and its battery level. The daemon posts a desktop notification once per discharge when the phone drops to 15 % or below while it is not charging.
From the command line, devices has the battery level (a + marks charging)
and status has the rest:
tether-cli devices
ID NAME KIND PAIRED CONNECTED BATTERY STATE
5b7a19c04e2d Example Phone phone yes yes 82%+ paired
tether-cli status 5b7a
name: Example Phone
connected: true (held: false)
capabilities: notifications messages media volume dnd ring connectivity clipboard
wifi: "HomeNetwork" level 3
airplane mode: false
sim 1: ExampleTel LTE 3/4 (data)
dnd: all (can change: true)
ringing: false
Related pages
- Command-line tools lists every option of the commands used here.
- D-Bus API describes the media player and the status properties.
- Make and receive calls covers pausing desktop media during calls.