Received: from mail-vs1-f67.google.com (mail-vs1-f67.google.com [209.85.217.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AC392FB093 for ; Fri, 30 Jan 2026 22:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.67 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769810578; cv=none; b=g3B0Wkz8kCAG60LoV3NvQRnjY/anu3DusoxRpadT6os3eRgMnzLxdfTU2ykj3PelwrUg/f4WwrD4CRrP/DfRmlSvPISZM9zziwVEkAGkBkTLATEDv7OUu8ePlBMSkN8boSne+VqWnubDlUXvzbJVjhDaA1AKs4+OqrLHS++1kTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769810578; c=relaxed/simple; bh=0r2wsKNM5PBapatPF2vhBYVmuiX/XqJ8mELQ02dGqBY=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N/77lYaMaSsWvQ4bPAQ4xxPVcnBcivQTRj+pBALjP44rYCbLQG6dkQdKabzQJ0Om5XDAHa6aKZfZazFnlWGCYOVgQ0nBYLc1GhbAiZPD/iwYNJNTQiTK3FC1tgMHKk2z5ATRj/PsX5wQHF7hvmWRdiBTo/6n2383Bc57Bx6GmhM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JyY9AEug; arc=none smtp.client-ip=209.85.217.67 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JyY9AEug" Received: by mail-vs1-f67.google.com with SMTP id ada2fe7eead31-5ee9fa419f5so514145137.3 for ; Fri, 30 Jan 2026 14:02:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769810576; x=1770415376; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=rx/ocwfBYqh1py3VurJ3UfTU+HkUKbb6wfZRKvKqIBg=; b=JyY9AEugA+1UL/lw82zIn+phZo8Dc4HOV6Frkz2NQc0/KZfCATGYQ2CbnWxYVXbr4i s6ATNNmU4K6/WpE2PMXsz56D4hAVxRXXK5nD6i1pTD5N47nH2YCT8Fe57I7rneau0LO5 KLQ9s27SUDikOdXCtIhqZocSRMfrS7gIWrlNS1k2Lk6jWjII++wAwkXhktmvLcpa3y/8 p6VcIw73Txk10kGyLXCGLB/OJdFEv9bgv80yefPE1KyaNd+R6T5jU1PJUUtmCF06I2Z+ TVlRK7+9olOdLG6OjIJtWhzSTyjysRMaVT1u9Lp0u+vWRNt1DZ4Yuz3INFYnj9+5oEbS tbEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769810576; x=1770415376; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=rx/ocwfBYqh1py3VurJ3UfTU+HkUKbb6wfZRKvKqIBg=; b=lxGZfxrQkIbXXNtV3k8UXOS40PoXAp1NwgARihPHZE/Ie0tVGw61lCJJhsS8hZTedi GIoBmqkthuch3st4riWXw3oBIzUIKCCRVsL4ahyWJZ1TGdTNqCSdQDiLLjNFKTfgPMYw A0iMqcay6OAJC69eUAB6PTqfeC3+pqvh/dMqZU5cjRqz5ObKH95aPNfLnOIU7a+0IRQi CTY1UfIvAG9m+aXIPYkCH+3t0OfY0O1X82etFz77DjYmF+x6bikFx9dmqufWhZBIes15 lRJiNFICvI8ViA2wgvWu4m/z62SPd22sRi+nH0CeHTp1aYZBOSrcNio1YmzS6J7nBsJF CpiA== X-Gm-Message-State: AOJu0YxvHgMKFwES9zHMPNhpWX1AzJBC4jRdqJ81VYFkYiC4QOPSi+ZH RQVZlRJWc+AlfrIrLOcwrDHS2OYir2KpgrUttH6Nga69CkglUZCAGV+UDdsN/pWm X-Gm-Gg: AZuq6aIp8vYtdKSETsmzrPE1quKQ8R1fh6avfccm9pP3AOel5w+jjolfNRhm/Sw5+wN MwDAcuHaNtiSf+3YNsBsMdADZMdUZ6wEQ/8OqqdnJ3o20PdirKGmRf12PzlZmRJu+39Vkphdr84 6AtZwOcdxB1j+j1fXRB3zTDA0eub/AtkTqaBtwNKIG1BNU1CXljQJiJrgPabEuk2oFtbivMyYQV g3R+ClI/unHOg7LTqnUfYHMDCwVnEP6dNhy+1+pHN9clKv8ExurZcnZV1IJ+E3Fph23wFPvTPO/ MQCJ3mdHcKIZ97ky1coXoXDEMfMRr270JUU1E3uQUUc3txTnAD8JNE1YQe5AepJyvRu1tC1D9pC Y/p2V7D2yiCPc5ACmzBtIAEdYsGdZy0PXk9vdAeJOY+hn8LxBd9nNVJNw6vtadNfVfdATlTde2J tzvdn0fYF5Ze+0q4RL+XgWG4BGZRBdaqhRddadZZKeB7UP9+jcs7l5PnKnWyjKELWmRLOOCugqj nGx2A== X-Received: by 2002:a05:6102:c07:b0:5ef:9a37:17b9 with SMTP id ada2fe7eead31-5f8e24a4b1dmr1346439137.12.1769810575439; Fri, 30 Jan 2026 14:02:55 -0800 (PST) Received: from lvondent-mobl5 ([72.188.211.115]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-948723adb7csm2404052241.2.2026.01.30.14.02.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jan 2026 14:02:54 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v3 12/37] doc/bluetoothctl-player: Add :Uses: fields and document arguments Date: Fri, 30 Jan 2026 17:02:03 -0500 Message-ID: <20260130220229.1346261-13-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260130220229.1346261-1-luiz.dentz@gmail.com> References: <20260130220229.1346261-1-luiz.dentz@gmail.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz Add :Uses: fields to link commands to their corresponding D-Bus API methods, and document command arguments with usage examples. --- doc/bluetoothctl-player.rst | 118 ++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/doc/bluetoothctl-player.rst b/doc/bluetoothctl-player.rst index 1c5d436b31db..ccdd66663c67 100644 --- a/doc/bluetoothctl-player.rst +++ b/doc/bluetoothctl-player.rst @@ -18,6 +18,9 @@ SYNOPSIS **bluetoothctl** [--options] [player.commands] +This submenu controls media playback using the **org.bluez.MediaPlayer(5)** +interface. + Media Player Commands ===================== @@ -27,6 +30,8 @@ list List available players. :Usage: **> list** +:Example Display all available media players (local and remote): + | **> list** show ---- @@ -34,6 +39,12 @@ show Show player information. :Usage: **> show [player]** +:Uses: **org.bluez.MediaPlayer(5)** properties +:[player]: Media player path or identifier (optional, shows currently selected player if omitted) +:Example Show information for currently selected player: + | **> show** +:Example Show remote player information: + | **> show /org/bluez/hci0/dev_00_11_22_33_44_55/player0** select ------ @@ -41,6 +52,9 @@ select Select default player. :Usage: **> select ** +:: Media player path or identifier to select as default +:Example Select remote Bluetooth media player: + | **> select /org/bluez/hci0/dev_00_11_22_33_44_55/player0** play ---- @@ -48,6 +62,16 @@ play Start playback. :Usage: **> play [item]** +:Uses: **org.bluez.MediaPlayer(5)** method **Play** +:[item]: Media item path to play (optional, starts playback of current item if omitted) +:Example Start playback on current player: + | **> play** +:Example Play specific item from media browser: + | **> play /org/bluez/item/1** +:Example Play named track item: + | **> play /org/bluez/item/track_001** +:Example Play track from specific album folder: + | **> play /org/bluez/item/album_rock/track_05** pause ----- @@ -55,6 +79,9 @@ pause Pause playback. :Usage: **> pause** +:Uses: **org.bluez.MediaPlayer(5)** method **Pause** +:Example Pause current playback: + | **> pause** stop ---- @@ -62,6 +89,9 @@ stop Stop playback. :Usage: **> stop** +:Uses: **org.bluez.MediaPlayer(5)** method **Stop** +:Example Stop current playback: + | **> stop** next ---- @@ -69,6 +99,9 @@ next Jump to next item. :Usage: **> next** +:Uses: **org.bluez.MediaPlayer(5)** method **Next** +:Example Skip to next track: + | **> next** previous -------- @@ -76,6 +109,9 @@ previous Jump to previous item. :Usage: **> previous** +:Uses: **org.bluez.MediaPlayer(5)** method **Previous** +:Example Go back to previous track: + | **> previous** fast-forward ------------ @@ -83,6 +119,9 @@ fast-forward Fast forward playback. :Usage: **> fast-forward** +:Uses: **org.bluez.MediaPlayer(5)** method **FastForward** +:Example Enable fast forward mode: + | **> fast-forward** rewind ------ @@ -90,6 +129,9 @@ rewind Rewind playback. :Usage: **> rewind** +:Uses: **org.bluez.MediaPlayer(5)** method **Rewind** +:Example Enable rewind mode: + | **> rewind** equalizer --------- @@ -97,6 +139,12 @@ equalizer Enable/Disable equalizer. :Usage: **> equalizer ** +:Uses: **org.bluez.MediaPlayer(5)** property **Equalizer** +:: Enable (on) or disable (off) the equalizer +:Example Enable equalizer: + | **> equalizer on** +:Example Disable equalizer: + | **> equalizer off** repeat ------ @@ -104,6 +152,16 @@ repeat Set repeat mode. :Usage: **> repeat ** +:Uses: **org.bluez.MediaPlayer(5)** property **Repeat** +:: Set repeat mode - singletrack (current track), alltrack (all tracks), group (current group/album), or off (no repeat) +:Example Disable repeat mode: + | **> repeat off** +:Example Repeat current track: + | **> repeat singletrack** +:Example Repeat entire playlist/queue: + | **> repeat alltrack** +:Example Repeat current group/album: + | **> repeat group** shuffle ------- @@ -111,6 +169,14 @@ shuffle Set shuffle mode. :Usage: **> shuffle ** +:Uses: **org.bluez.MediaPlayer(5)** property **Shuffle** +:: Set shuffle mode - alltracks (shuffle all tracks), group (shuffle within current group), or off (no shuffle) +:Example Disable shuffle mode: + | **> shuffle off** +:Example Shuffle all tracks in playlist: + | **> shuffle alltracks** +:Example Shuffle tracks within current group: + | **> shuffle group** scan ---- @@ -118,6 +184,14 @@ scan Set scan mode. :Usage: **> scan ** +:Uses: **org.bluez.MediaPlayer(5)** property **Scan** +:: Set scan mode - alltracks (scan through all tracks), group (scan within current group), or off (no scan) +:Example Disable scan mode: + | **> scan off** +:Example Scan through all tracks: + | **> scan alltracks** +:Example Scan through current group only: + | **> scan group** change-folder ------------- @@ -125,6 +199,15 @@ change-folder Change current folder. :Usage: **> change-folder ** +:: Folder path to navigate to, or ".." to go up one directory level +:Example Navigate to Albums folder: + | **> change-folder /org/bluez/item/Albums** +:Example Navigate to Artists folder: + | **> change-folder /org/bluez/item/Artists** +:Example Navigate to Playlists folder: + | **> change-folder /org/bluez/item/Playlists** +:Example Go up one directory level: + | **> change-folder ..** list-items ---------- @@ -132,6 +215,18 @@ list-items List items of current folder. :Usage: **> list-items [start] [end]** +:[start]: Starting index for item list (optional, defaults to 0) +:[end]: Ending index for item list (optional, lists all items from start if omitted) +:Example List all items in current folder: + | **> list-items** +:Example List first 10 items (0-10): + | **> list-items 0 10** +:Example List items 5 through 15: + | **> list-items 5 15** +:Example List items 10 through 20: + | **> list-items 10 20** +:Example List first 50 items: + | **> list-items 0 50** search ------ @@ -139,6 +234,15 @@ search Search items containing string. :Usage: **> search ** +:: Search term to find matching items (songs, albums, artists, etc.) +:Example Search for Beatles songs/albums: + | **> search "The Beatles"** +:Example Search for items containing "rock": + | **> search "rock"** +:Example Search for items from 2023: + | **> search "2023"** +:Example Search for playlists: + | **> search "playlist"** queue ----- @@ -146,6 +250,13 @@ queue Add item to playlist queue. :Usage: **> queue ** +:: Media item path to add to the playback queue +:Example Add specific track to queue: + | **> queue /org/bluez/item/track_001** +:Example Add entire album to queue: + | **> queue /org/bluez/item/album_rock** +:Example Add playlist to queue: + | **> queue /org/bluez/item/playlist_favorites** show-item --------- @@ -153,6 +264,13 @@ show-item Show item information. :Usage: **> show-item ** +:: Media item path to display detailed information for +:Example Show details of specific track: + | **> show-item /org/bluez/item/track_001** +:Example Show details of album: + | **> show-item /org/bluez/item/album_rock** +:Example Show details of artist: + | **> show-item /org/bluez/item/artist_beatles** RESOURCES ========= -- 2.52.0