# Configurazione avanzata con comandi ADB

#### Prerequisiti

* Un laptop e il tuo Android TV connessi alla **stessa rete Wi‑Fi**
* **Opzioni sviluppatore** abilitate sul tuo TV
* **Debug wireless** abilitate sul tuo TV

<details>

<summary>Come abilitare le Opzioni sviluppatore</summary>

Vai a **Impostazioni** (icona a ingranaggio) → **Sistema** o **Info** → Trova **Build di Android TV OS** o **Numero build** → Fai clic 7 o 8 volte rapidamente finché non vedi "Ora sei uno sviluppatore!"

</details>

<figure><img src="/files/9c4b83c132505e70eec072edb5260d9cc0036714" alt=""><figcaption></figcaption></figure>

#### Passo 1: abilita il debug wireless

1. Vai a **Impostazioni** → **Sistema** → **Opzioni sviluppatore**
2. Abilita **Debug wireless**
3. Annota **l'indirizzo IP, la porta e il codice di associazione** mostrati sullo schermo

<figure><img src="/files/bb2da86249f2e3df07a1cbe575261da06dcdba54" alt=""><figcaption></figcaption></figure>

#### Passo 2: associa il tuo laptop al TV

Apri un terminale sul tuo laptop ed esegui:

{% code lineNumbers="true" expandable="false" %}

```bash
adb pair IP:PORTA
```

{% endcode %}

Esempio: `adb pair 192.168.1.130:37081`

Inserisci il codice di associazione quando richiesto. Dopo che l'associazione è riuscita, il TV mostrerà una nuova porta di connessione (di solito termina con `:5555`).

#### Passo 3: connettiti al TV

{% code lineNumbers="true" expandable="false" %}

```bash
adb connect IP:5555
```

{% endcode %}

Esempio: `adb connect 192.168.1.50:5555`

#### Passo 4: imposta Buzzblender come salvaschermo

Esegui questi comandi per abilitare il salvaschermo e impostare Buzzblender come predefinito:

{% code lineNumbers="true" expandable="false" %}

```bash
adb shell settings put secure screensaver_enabled 1
adb shell settings put secure screensaver_activate_on_sleep 1
adb shell settings put secure sleep_timeout -1
adb shell settings put secure screensaver_components com.buzzblender.tv/.playback.PlaybackDreamService
adb shell settings put system screen_off_timeout 30000
```

{% endcode %}

Cosa fa ciascun comando:

* `screensaver_enabled 1` — Abilita il salvaschermo
* `screensaver_activate_on_sleep 1` — Attiva il salvaschermo quando il dispositivo va in sospensione
* `sleep_timeout -1` — Disabilita le restrizioni del timeout di sospensione
* `screensaver_components com.buzzblender.tv/.playback.PlaybackDreamService` — Imposta Buzzblender come salvaschermo predefinito (questa è l'impostazione che Google ha rimosso dall'interfaccia utente)
* `screen_off_timeout 30000` — Imposta lo spegnimento dello schermo dopo 30 secondi di inattività

#### Passo 5: verifica la configurazione

Lascia il tuo Android TV inattivo per 30 secondi. Buzzblender dovrebbe ora mostrare i tuoi contenuti come salvaschermo.

Hai bisogno di aiuto con la configurazione ADB? Invia un'email a <help@buzzblender.com> per programmare una chiamata di configurazione con il team di supporto.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://buzzblender.gitbook.io/buzzblender-docs/docs-it/configurazione-avanzata-con-comandi-adb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
