# Control Center

> From the Guides page of the Rtorrent 16 panel, version 16.29-14U. Polish: https://nasutils.net/rtorrent16/docs/pl/panel.md

The Control Center is the package's web panel. Torrents, playing files, the phone app and the tests of the link and
the disks have guides of their own: Torrents, Playing and previewing files, Phone app and Performance tests.

## Find your way around

*Figure: The menu with its foot: a page, your Profile and the language*

1. Pick a page in the menu. On a phone the menu is a bar of icons floating at the bottom of the screen and a sheet
   with every page (Use the panel by touch, below); in a window 640 to 767 pixels wide it is a strip across the top,
   swiped sideways for the rest.
2. Press your avatar and name at the foot of the menu to open **Profile**: your name and avatar, the theme and
   **Light**, **Dark** or **Follow system**, the browser tab's icon and speeds, the sign-in animation and the wallpaper.
3. Pick one of 9 languages in the language menu, or **Browser language** to follow the browser. A language you
   pick is remembered.

Relay, Kiln, Folio, Amplitude, Opaline, Diffraction, Canopy and Noctilux each have their own type, shapes and spacing
on neutral black, grey or white surfaces. Their fonts are bundled for offline use. Switching back to an earlier theme
restores its appearance. Each of them draws a slow, faint grey pattern of pixels behind the page. In these themes the
accent colour marks only the main buttons, the chosen item, links, the page's live figure and a good outcome; a
warning is yellow or orange and an error red.
Synthwave is a purple night with cyan and magenta neon. Behind its page a sun sets behind wireframe mountains while the
land rolls towards you along a grid road; now and then the picture glitches for a moment. By day it is a plain lavender
page.
Chase is dark grey; behind its page warm and cyan rings run out from the centre. Midnight is silver by day and midnight
blue by night; thin lines of light shoot up from the bottom edge of its page. In both, the Download, Upload,
Torrents and Disk tiles and the Traffic chart lie on frosted glass that blurs what moves behind them. Their scenes move smoothly, once
every screen refresh on a computer and every other one on a phone.
Files keeps its own three retro looks: Commander, Navigator and Total.

On a phone, your avatar, the language and **Sign out** stand in one row at the foot of the menu's sheet: the avatar on
the left, the language's flag in the middle and **Sign out** on the right. In a window 640 to 767
pixels wide they are in the top bar beside the logo, and on Quick access, the Dashboard and Files the top bar has the
button that adds a torrent instead. **Sign out**, the last entry at the foot of the menu, ends the session in this
browser. **Night** is there only while night mode is on (Quiet the nights, below). The pages and what each is for are
in Details.

On a long page, once you have scrolled down one and a half screens, a round **Back to top** button appears at the right
edge, above the bar at the bottom of the screen and above a page's own bar. A press takes the page to its top (at once
when the system asks for less motion), and the keyboard goes on from the page's title. Files, the Full view and the
Media studio scroll inside their own panes and do not show it.

Action hints appear after a brief pointer pause or immediately on keyboard focus. Move into a hint to keep it
visible; Escape closes it. The question-mark help opens a larger panel with a close button. Click to pin it, or
press ArrowDown on the question mark to enter its tools. Escape from inside help returns to the question mark
without closing the window underneath. Focused and pinned help stays open. On touch, tap the question mark for
help; a long press on Sort or Filter shows its name without activating it.

In a window, the keys work as in other applications. **Enter** in a field presses the window's main button, the one
in the accent colour; in a window whose main button deletes something, Enter does nothing, so nothing goes by
accident. **Escape** closes the window. **Tab** and **Shift+Tab** move between the window's fields and buttons and stay
inside it; the arrow keys move between its buttons. With a mouse, one letter of each button is underlined: **Alt**
with that letter presses the button, for example Alt+C for **Cancel** (Alt+A for **Anuluj** in Polish). Chrome, Edge
and Firefox draw the line; Safari does not, and the keys work there too. Files' keys and the page's own keys wait while
a window is open.

## Use the panel by touch

On a phone the menu is one glass bar floating above the bottom edge of the screen, and each page starts with its own
title at the top. In the bar the R leads to the Launcher, then come Quick access, the Dashboard, Files, Add torrent and
Search, and the button with three lines at the end opens the menu.

1. Tap an icon to open its page. A glass pill lies around the icon of the page you are on and slides to the icon you
   touch as soon as your finger touches it; for a page that is only in the menu, it lies around the menu's button.
2. Slide a finger along the bar and the pill follows it. Let go, and the page under the pill opens.
3. Hold a finger on an icon to see the page's name. Nothing opens, and the pill goes back to the page you are on.
4. Tap the menu's button for every other page: the menu rises from the bottom edge with each page as an icon over its
   name, the page you are on marked, and at its foot one row: your Profile on the left, the language's flag in the
   middle (with **Night** beside it while night mode is on) and **Sign out** on the right. Tap the flag for the list of
   languages. Tap a page to open it; the phone's back gesture then leads to the page you came from.

When you work on what a page shows, the page's own bar takes the menu bar's place at the bottom: Files in the selection
mode (**Copy to**, **Move to**, **Delete**, **Share** and **More**), Quick access while torrents are selected, Search
while results are selected, **Bandwidth limits** while you change a limit, and Settings' bar of unsaved changes once
the page's own buttons are out of sight. **Done** in Files, the bar's own **Cancel** or **Clear**, or saving or
discarding the settings ends the work and the menu bar comes back; in Files the phone's back gesture ends it too. The
menu bar also steps aside while the keyboard is up, and stands above a music or video player at the bottom of the
screen. Files ends above the bar. On the other pages nothing shows below the bar, what you scroll toward it fades out as
it passes behind the glass, and the last row scrolls clear of the bar.

Settings' sections and Profile's tabs stand in one row under the page's title. Each is an icon, and only the one you
are on shows its name beside it. Tap an icon to open its section; its name slides out beside the icon. Settings has
more icons than the screen is wide: slide the row sideways for the rest. A fade at an edge means more icons wait that
way, and the icon you tap moves to the middle of the row. On a wider screen the sections and tabs are a list with
every name.

Menus, select lists and most windows open the same way, as sheets from the bottom edge, with a short bar at the top.

1. Pull a sheet down by its top, or by its list while the list is at its start, and let go. A pull of a quarter of its
   height (64 to 160 pixels) or a quick flick closes it; a shorter pull lets it spring back. While a window is still
   sending what you started, it springs back instead.
2. Closing a window this way is its **Cancel**, the same as the X, a tap beside it and the phone's back gesture. When you
   have typed text in the window, it asks **Discard changes?** first: **Discard** closes it, **Keep editing** keeps it
   with your text.
3. In Files, swipe sideways across the list to change between the left and the right panel, the way Tab does. On a phone
   the side follows your finger. With two panels on the screen, swipe left on the left panel or right on the right one.
4. On a phone, Files' menu and a torrent's menu show their actions in two columns, each action a row of its icon and
   its name, with each group (Selection, Panels and the others) under its name.
5. In the Media studio and on the **Scraper** page, tap **(i)** to see the names of the icon buttons, all at once. The next
   tap hides them and does what it always does. Hold a finger on one icon button to see its name alone; lifting the finger
   does not press the button.

A swipe that starts at the very edge of the screen belongs to the browser's back and forward, and the panel leaves it
alone. Pulling a page down reloads it, as the browser does. While a window is open, the page behind it stays where it
is: a finger on the window scrolls only what is in the window. Text selection, a long press and fields work as usual,
because no gesture starts in a field or on selected text. In the Media studio, a finger held on the timeline, the picture or
a bar of buttons opens the studio's menu or shows a button's name instead, and selects no text. Path chips, tables and charts that scroll sideways keep their own scroll.
When the system asks for less motion, the gestures stay the same, and sheets and the sides of Files fade instead of
sliding.


## Your Profile

**Profile** has four tabs. A choice shows at once and is saved for your account on the NAS, so another browser where
you sign in opens with it. The line under a card says **Saved.**, or why the NAS refused the change. What a card, a
switch or a field does is under its **?**; for **Animated tab icon while downloading** and **Rtorrent 16 intro at
sign-in** the bubble also draws when each one happens.

- **Profile**: a display name and an avatar from three groups, **People** (60), **Animals & birds** (198) and
  **Occupations** (154). Each avatar has a light and a dark variant: the figure stays as drawn and its backdrop follows
  the panel's **Light** or **Dark** mode, so the same avatar sits calmly on either. The name and the avatar also show on
  the pages of your LinkDrop links, the ones shared earlier included, as drawn (those pages are dark); with an empty name
  the links show no profile and the menu shows your account name.
- **Themes**: **Light**, **Dark** or **Follow system**, and one of 22 themes in one list, each with a light and a dark
  variant and its own typefaces. Search filters theme names and descriptions; arrow keys and Home/End move between
  themes, Enter or Space picks one. Under the themes, **Browser tab** has two switches, both on until you switch them
  off. **Animated tab icon while downloading**: while torrents download, a light passes over the R in the browser's
  tab, a number shows how many download (1 to 9, then 9+), and the icon flashes once when a download finishes; when
  nothing downloads, the tab shows the still R. **Speeds in the tab title**: while data moves, the title starts with
  the speeds, for example DL: 12.4 MiB/s · UL: 1.2 MiB/s · Rtorrent 16, or the upload alone when nothing downloads.
  Both count only the torrents' own data, at each torrent's own speed: the protocol messages between peers, which the
  Download and Upload tiles include, are left out, and so is the rest of the NAS's network traffic. A stopped or
  paused torrent never shows there. They work on every page of the panel and in a tab in the background, where they
  update every 10 seconds, or less often when the browser slows that tab down. When the system asks for less motion,
  the icon stays still and keeps the number. When the NAS stops answering, the tab goes back to the still R and the
  plain title. **Glass effect**, on until you switch it off, applies to this browser only: bars and the side panel
  show the page behind them, blurred. When scrolling stays slow on a device, the panel suggests turning it off once,
  in a line at the top of the page.
- **Login**: what plays beside the sign-in form. **Each in turn** shows the next of the 19 animations after each
  sign-in, **Random each time** a different one each time, **Always this one** the animation you pick. Pointing at a
  name shows it in the preview; pressing it picks it for **Always this one**. **Rtorrent 16 intro at sign-in** plays
  the Rtorrent 16 intro before the sign-in page and a shorter version after the right password; it is off until you
  switch it on. Nobody is signed in on the sign-in screen, so a browser shows the choices of the last account signed
  in on it.
- **Wallpapers**: what is drawn behind the panel. **Theme’s own** is the theme’s background: the accent glow for the
  first eleven themes, the pixel pattern for Relay to Noctilux, the scene of Synthwave, Chase or Midnight. **Glow** is
  the accent glow under any theme. The eight pixel patterns and the scenes **Synthwave**, **Chase** and **Midnight** work
  under any theme, in its colours. **Plain** draws
  nothing. Under these, **StorageDiag: moving** has 17 slow animations and **StorageDiag: patterns** 10 still patterns
  from StorageDiag, in the theme's colours. Every wallpaper stays faint enough for the text on the page to read easily,
  so some themes leave no room for some of them, mostly by day in the first eleven themes: such a tile says **Not
  visible in this theme**, and a line above the tiles suggests **Dark** or another theme. A wallpaper moves slowly and
  stands still when the system asks for less motion; a moving one also stops while the tab is hidden or the window is
  inactive. Chase and Midnight move smoothly rather than slowly.

![The browser tab's icon while torrents download](https://nasutils.net/rtorrent16/docs/img/tab-icon-en.svg)

![The Rtorrent 16 intro at sign-in](https://nasutils.net/rtorrent16/docs/img/login-intro-en.svg)

A group's avatars load when you open the group. Their authors and licences, and those of the Synthwave, Chase and
Midnight scenes, are
listed on nasutils.net's sources page and in the package's NOTICE file. On the sign-in screen, the theme button
picks a theme for that browser before anyone signs in; after you sign in, your account's theme applies.

## Choose the settings view

The **Advanced** switch at the top of Settings, Dashboard and Performance shows extra controls in their usual places.
It starts off and is remembered in this browser across these pages. Switching views keeps saved values and unsaved
edits. An edited field, a field with an error or a field opened by a direct link stays visible in the basic view.
DHT, IPv6, interface selection, VPN and router controls, ordinary folders, Media library and Seeding & Retention
remain available there.

The **Advanced** switch and **Developer mode** are separate. To enable Developer mode, turn on the Advanced switch,
then open **Settings → Advanced**. Developer mode controls access to experiments; experimental auto-tuning starts off.

Lines of your own in **Settings → Advanced → Extra rtorrent.rc lines** make a custom configuration: see
[Your own rtorrent lines](#your-own-rtorrent-lines-custom-config) below.

## Open the panel from another device

*Figure: The Addresses card on the Launcher*

1. Open the **Launcher**, the first entry in the menu, and expand **Addresses and integrations**. The
   **Addresses** list shows the panel addresses reported by this NAS: the LAN ports, the address with a
   trusted certificate when the package has one, the QTS panel and myQNAPcloud.
2. Copy an address with the button beside it and open it on the other device.

What each address does is under Details, Three addresses.

## Install the panel as an app

Chrome and Edge install the panel as an app with a window of its own. Installed, it opens `.torrent` files and magnet
links on the Add torrent page, where they stay in the queue with their guessed category until you press **Add**. If
the session has ended, the sign-in page opens first and the files and links stay in the queue.

The browser offers the install only on a page whose certificate it trusts, and it does not trust the certificate the
package makes for itself. Open the panel at one of these two addresses:

- `https://<name>:6018/`, once **Security → Certificate & ports** has a trusted certificate for that name. The panel
  takes the one QTS keeps for the name by itself: for the myQNAPcloud name, QTS gets one under myQNAPcloud → SSL
  Certificate → Download and install, with no port open on the router. Without one, the package asks Let's Encrypt
  itself (the myQNAPcloud name, or a domain of yours that points to this NAS), and Let's Encrypt has to reach the NAS
  on port 80. The package asks the router for that port only through the UPnP and PCP / NAT-PMP switches that are on
  (Ports guide); with both off, forward TCP port 80 to the NAS yourself. Use the name, not the NAS's IP address.
- `https://<name>.myqnapcloud.com/rtorrent16/`, the route through QTS, under the certificate QTS keeps for it.

Then:

1. On a computer, press the install button at the end of the address bar, or install from the browser's menu. The
   browser registers Rtorrent 16 with the system as a program for `.torrent` files and magnet links. A `.torrent` file
   then opens with **Open with → Rtorrent 16** in the file manager. Magnet links open in the system's default program
   for them, and the install does not take them from another torrent program that already has them. Where Rtorrent 16
   is that program, a magnet link opened in another program opens Rtorrent 16, and so does one clicked on a web page,
   after the browser asks whether that page may open Rtorrent 16. Rtorrent 16 opens in its own window on the Add
   torrent page, with the file or the link in the queue.
   Before that, the browser asks whether Rtorrent 16 may open it; tick the box that remembers your choice and it stops
   asking.
2. On Android, install it from Chrome's menu (Install app, or Add to Home screen). Rtorrent 16 then appears in
   Android's share sheet: a magnet link shared to it lands in the Add torrent page's queue; a shared `.torrent` opens
   the Add torrent page, and you choose the file again with **Choose files**. On Android an installed web page cannot
   open a downloaded `.torrent` or a magnet link you tap; the Android app opens both (Phone app guide).
3. On an iPhone or iPad, open the panel in Safari, tap the Share button, then **Add to Home Screen**. To add a torrent
   from the phone, open the Add torrent page from the home screen: **Choose files** takes a `.torrent` file from the
   Files app, and a magnet link pasted under **Magnet links** goes into the queue with **Add magnet links: …**. The iPhone app is in testing (Phone app guide).

## Change the WebUI ports

*Figure: The WebUI ports on Settings, Web access*

1. Open **Settings → Web access** and type the new number under Ports, in **HTTP** or **HTTPS**. Half a second
   after you stop typing, the line under the field shows whether the port is free, the port in use now, or taken,
   and by what.
2. Press **Review & save**, check the change and save it.
3. Press **Apply now** on the line "Needs a web reload.", then open the panel at the new port.

The numbers you cannot save are under Details, Ports the panel refuses.

## Find out why rtorrent stopped

*Figure: The Dashboard's state strip and its Activity card*

1. Open the **Dashboard** and read the rtorrent badge at the start of the state strip. While an action runs,
   the badge shows it ("applying the changed settings: nginx and php-fpm reload, rtorrent restarts") and who requested it; while rtorrent is
   down, it shows who stopped it and when.
2. Read the **Activity** card further down the page. Each line has the time, the engine, what happened and, at its
   end, who did it. **Show more** lists more lines.

For a day after a crash the Dashboard also shows the crash above the state strip. Who can appear and what a crash
line holds are under Details, The activity journal.

## Send a diagnostic dump to whoever helps you

*Figure: The Diagnostic dump window: which torrent the problem is about*

1. Press **Diagnostic dump** at the top of **Diagnostics**, or the same link in the Dashboard's error or crash
   message.
2. Pick the torrent the problem is about. The torrents with a problem now come first, each with the reason: a
   failed check of its files, rtorrent's own message, no peer while it should download, or a download error in the last
   two weeks. Type in **Find a torrent by name** to find any other. Keep **Not about a specific torrent** for a problem
   of the whole package.
3. Tick **Include torrent names and hashes** only when the helper needs every name.
4. Press **Create dump**. The NAS writes one `.tar.gz` file and the window lists every file with its size, what was
   taken out, and a few lines as the recipient will read them.

*Figure: The dump's LinkDrop link and the post for the forum*

5. To ask on the forum, press **Create LinkDrop link** under **Ask for help on the forum**. **Copy** puts the link
   on the clipboard. The link works for 30 days, and anyone with it can download the dump.
6. Write what happens in the first line of **Post for the forum**, press **Copy post**, then **Open the Rtorrent 16
   thread** and paste the post as a reply.
7. Or press **Download** and send the file yourself.

The torrent you pick keeps its name, its info hash and its folder's name in every file of the dump, and the dump gets
`torrent.json` with its state, its trackers, its files and every log line that names it. Its trackers' passkeys and
query values are still taken out. The other torrents stay numbers such as `[torrent-3]`.

Closing the window deletes the dump from the NAS. The LinkDrop copy is in the `diagnostics` folder of the base folder and
stays while its link works; a copy older than 30 days goes at the next link. **Revoke link** on the LinkDrop page ends
the link earlier. With LinkDrop switched off in Settings, the window says so and Download still works.

When the panel does not open, make the same file from the shell: `/etc/init.d/rtorrent16.sh diag` prints a summary
whose "file" line is the path (with `--torrents` the names stay). What is removed is under Details, What a dump holds.

## Keep the package's own files where the disks stay quiet

*Figure: Where logs, settings and temporary files are kept, on Settings, Files & storage*

1. Open **Settings → Files & storage** and pick **Where logs, settings and temporary files are kept**: **With the package**, or
   **A directory I choose** with its **Folder for logs, settings and temporary files**.
2. Press **Review & save**, then save. One question says how many files move, how much, and where to; rtorrent
   and the panel stop while they move and start again.

The package's own files are its logs, ruTorrent's settings and its temporary files; the downloads, the session and
the copies have settings of their own. **With the package** keeps them on the volume where Rtorrent 16 is installed. This suits a quiet SSD
or NVMe beside spinning data disks: the watchdog writes a few lines every five minutes, and you can hear a spinning
disk. Over SSH the logs are in `/usr/bin/rtorrent16/var/log` with the package, or in `logs/` of the folder you chose.

## Move the base folder to another volume

*Figure: The base folder and the move to another volume, on Settings, Files & storage*

1. Open **Settings → Files & storage**. **Base folder** at the top shows where the download, completed and watch
   folders and the media library are while their fields are empty, and how much free space its volume has. Press **Move to
   another volume**. It cannot be pressed while the page has unsaved changes.
2. Open the folder that is to become the base folder, on the other volume, and press **Use this folder**. It can be
   the shared folder itself, such as one created for Rtorrent 16. The browser adds no name: the base folder is the folder you
   are in, and `downloads/`, `complete/`, `watch/` and `medialibrary/` are made inside it.
3. Read the summary: **From:** and **To:** with their volumes, the four folders in the new base folder,
   **Package files:** if they will move too, what **Stays:** (the session, the backups and the torrents with their data)
   and **Free space:**.
4. Press **Move**. rtorrent and the panel stop for the move and start again; the page then says where new
   downloads go.

Every torrent keeps its folder and seeds from it; the move does not trigger another hash check. From then on new downloads, completed
copies, `.torrent` files dropped in the watch folder and new library items go to the new volume. If your media server, Radarr
or Sonarr uses the old library folder, update its path. For details, see The base folder and its move below.

## Quiet the nights

*Figure: Night mode on Settings, Date & time, and the Night button*

1. Open **Settings → Date & time** and turn on **Night mode**.
2. Pick the **Night action**: **Pause every torrent** or **Lowest upload, downloads go on**.
3. Set **Night mode starts at** and **Night mode ends at** on the NAS clock; the night may run across midnight.
   The clock button beside each time opens a dial: the hours first, then the minutes. Then save.
4. To end one night early, press the **Night** button at the foot of the menu and confirm. On a phone it is at the
   foot of the menu's sheet, and while it is lit also in the bar at the bottom of the screen, before the menu's button,
   unless background jobs take that place; in a window 640 to 767 pixels wide it is in the top bar on every page but
   Quick access, the Dashboard and Files. The night ends until the morning; the next night starts as usual.

The **Night** button is there while night mode is on. At night it lights up. With **Lowest upload, downloads go on** it stays lit
all night; with **Pause every torrent** it is lit while paused downloads wait. What each
action does at night is under Details, Night mode.

## See and stop background work

While something works in the background, a button with a turning ring and the number of jobs appears beside the menu.
On a computer it sits beside the logo at the top of the menu, on a phone in the bar at the bottom of the screen just
before the menu's button, in a window 640 to 767 pixels wide to the left of the top bar's other buttons, and in the
Media studio in its header. With nothing running it is not there. While every job waits for
an update of Rtorrent 16 to end, it shows a pause sign instead of the ring.

1. Press the button. **Background jobs** lists every job: what it does, the file or torrent it works on, how far it is
   and how long it has run.
2. Press **Stop** to end a job. A LinkDrop download has **Pause** instead; when you resume it, it goes on from where it
   stopped.
3. Press **Open** to go to the page that shows the job: Files or the torrent list. The Media studio's waveforms and
   preview copies have no **Open**; the studio shows their progress while the video is open in it.

The list holds Files' jobs (copying, moving, packing, extracting, converting, checksums, MKV tools and the Media
studio's saves), the Media studio's waveforms and preview copies, and the jobs on a torrent's data: an unpack (Game
Agent's and Movie Agent's too), the music player's export, **Move torrents**, the move to the finished or category
folder, and checks of the data.

**Stop** on a **Move torrents** job ends the move after the torrent it is moving now. A move to the finished or
category folder and a check of the data cannot be stopped; they end on their own. A save that is already being written
cannot be stopped either. The list says this under the job.

The button checks every 30 seconds while nothing runs, every 2 seconds while something does, and at once when you
start a job in the panel. It does not check while the panel is in a hidden browser tab.

## Pick a folder

*Figure: The Choose a directory window*

1. Press the folder button beside a path field in Settings. **Choose a directory** opens at the folder the field
   holds, or at `/share`.
2. Browse the folders; a separate icon marks a folder that is a link. When the path passes a link, **Real path:**
   shows the folder's real location, and the share's tooltip names its volume.
3. Read the **Use:** line: the browser adds the setting's own folder name to the folder you are in, and **new**
   marks a folder that is not there yet. Press the name to drop it, and again to put it back.
4. Press **Use this folder**. The field gets the path on the **Use:** line.

Under each folder field, **currently:** shows the folder in effect as chips, the saved one until you save a change.
Press a chip to open that folder in Files.

## Check whether the internet reaches your port

*Figure: The BitTorrent port card on the Dashboard*

1. Open the **Dashboard**. The **BitTorrent port** card runs the check again when its last result is older than ten
   minutes.
2. Read the steps. Four are for IPv4: a listener on this NAS, the router's mapping, the router's loopback, and
   a public checker connecting from the internet. The IPv6 steps follow: a listener and a check from the internet,
   or one **IPv6** line when the NAS has no global IPv6 address.
3. Press **Check port** to run the steps on this NAS again, or **Ask the internet** to have the public
   checker connect back now.

Quick access shows the same verdict next to the port, for IPv4 and IPv6 separately. For a port that stays closed,
see the Ports guide.

## Set the peers for your link

*Figure: The Peers and their limits card on the Dashboard*

1. On the **Dashboard**, find **Peers and their limits** and pick your line's speed in the link profile chip
  : **1 Gbps**, **2.5 Gbps** or **10 Gbps**.
2. Check the changes the confirmation lists, old and new, and press **Apply**.
3. To go back, turn on **Advanced**, press **Restore defaults** and confirm. The confirmation
   lists every value it changes; the two speed caps stay as they are.
4. With Advanced on, compare the columns: **Now** is what rtorrent runs, **Set** is your value,
   **Default** the package's.

The "link profile" pill in the Dashboard's state strip offers the same choice. Every value a profile writes is under
Details, Peers and their limits. The same profile selector is in **Settings → Connection profiles**;
choose **Custom** there to reveal individual limits with Advanced on. Opening Custom preserves current values
and the matched preset. It sends no request. Presets ask before saving and are disabled while the form has unsaved
edits. After a preset is saved, the form reloads its full values; a failed reload blocks saving until **Retry** succeeds.

## See what rtorrent and the NAS use

1. Open the **Dashboard** and find **Processor and memory**.
2. Read the key above each chart: **rtorrent** is the torrent engine itself, **Services and add-ons** are Rtorrent
   16's other programs and its add-ons, **Jobs** is the work Rtorrent 16 starts (unpacking, conversions, checksums,
   file copies, the Media library) with every program it runs. **NAS**, in grey with its reading, is everything the NAS
   runs, Rtorrent 16 included, drawn as the hatched background.
3. Pick **live** (the last minute), **24 h** or **7 days**. Point at a chart, touch it or use the arrow keys to read
   one moment.
4. On the memory chart, the figure at the head of the rtorrent line is what rtorrent keeps for itself, and **Mapped files**
   in the key is how much of its files it has mapped. On QuTS hero, **ZFS cache** in the key is the memory ZFS keeps
   for reading files and gives back when programs need it; it is not in the NAS's figure.
5. In Advanced settings, **Services and add-ons now** and **Jobs now** under the charts name each program with its
   memory and its share of the processor.

What each figure counts is under Details, Processor and memory.

## Add your own rtorrent lines

*Figure: The Configuration page with a file of your own rtorrent lines open*

1. Open **Configuration** and press **New**. Name the file, for example `my-tweaks.rc`.
2. Type your lines, each `command = arguments`, and press **Save**.
3. When the editor lists possible startup problems, fix the line it names, or press **Save anyway**.
4. Restart rtorrent to load the file: turn on the **Advanced** switch on the Dashboard, then hold the restart button
   on rtorrent's row in the **Services** card.

Which files you can edit and what the check covers are under Details, The configuration editor.

## Details

### The pages

| Page | What it is for |
|---|---|
| **Launcher** | shortcuts in the menu's order: Quick access, Full view, Dashboard, Files, LinkDrop, Add torrent, Search, RSS, Scraper (while the menu lists it), Trash, Settings, Guides and, while it is on, ruTorrent, tagged Legacy; panel addresses and `/RPC2` integrations under Addresses and integrations; the first login until you change the password |
| **Quick access** | the torrents, newest first, with Start or Stop, the Trash and Play; adding without leaving the page; Download and Upload on top, DHT and Ports (in Developer mode also Auto-tuning) as strips under them (Torrents guide) |
| **Full view** | every torrent in one table, for a window at least 768 px wide; a phone held upright opens Quick access instead (Torrents guide) |
| **Dashboard** | every process the package runs and its state, the speeds, the traffic, the port check, the swarm on a world map, the network, performance, processor and memory, the peers and their limits, the activity journal, the logs |
| **Files** | the shared folders of the NAS in two panels: copy, move, rename, links, archives, checksums, conversion, MKV tools, subtitles; **Media studio** opens a film in the Media studio (Files and Media studio guides) |
| **LinkDrop** | the links you share from this NAS and the downloads you take in from other people's links (LinkDrop guide) |
| **Add torrent** | a file, a magnet or a link, with a category guessed for each and a folder of your choice |
| **Search** | the search add-on (Optional packages guide) |
| **RSS** | the feeds, the rules that start downloads from them, and a log of what each check found (RSS guide) |
| **Media library** | the routing picture, FileBot and its licence, Movie Agent and Game Agent, the library settings (Media library guide) |
| **Scraper** | organising or importing a folder by hand, the library's titles, the queue, a history with Undo; in the menu while the library is on or once Game Agent has handled a game (Media library guide) |
| **Seeding & Retention** | when seeding ends, storage protection, the Trash's size (Seeding & Retention guide) |
| **Trash** | every folder a delete kept, with Restore and Delete (Torrents guide) |
| **Trackers** | the private trackers' accounts, kept on this NAS |
| **Network & NAT** | a drawing of the route to the internet and the port check (Ports guide) |
| **Notifications** | the services that notify you of finished downloads and problems, from WhatsApp to e-mail (Notifications guide) |
| **IRC**, **WhatsApp**, **Telegram** | the add-ons of those names (Optional packages and Notifications guides) |
| **Phone app** | the Android app: its download, the install, pairing, the paired phones (Phone app guide) |
| **Security** | accounts and passwords, the certificate, the banned addresses (Login and password guide) |
| **Settings** | the settings; a path field has a folder browser, the time zone a list, a clock and a world map, an hour of the day a clock dial. The Media library, Seeding & Retention, Performance (Network tuning) and Phone app pages hold their own settings, and the WhatsApp and Telegram pages their Knock knock switch |
| **Performance** | tests of the link and of any internal volume, each with the settings it proposes (Performance tests guide) |
| **Configuration** | your own rtorrent lines, and the files the package makes, read-only |
| **Diagnostics** | health checks, maintenance, the files with your own rtorrent lines, watch folders, the logs, the backups and the diagnostic dump |
| **Guides** | these texts, and **First run**, the welcome guide (see the Install guide) |
| **Support** | the supporter pass, and your rating of Rtorrent 16 with Change rating and Delete rating |
| **Profile** (your name at the foot of the menu) | your name and avatar, the theme, the browser tab's icon and speeds, the sign-in animation and intro, and the wallpaper (Your Profile, above) |

**Three windows that ask.** Now and then the panel asks one thing in a window that rises from the bottom: a rating of
Rtorrent 16 (1 to 5 stars and, if you like, a few words), support for the project, or StorageDiag's community tests of
the NAS's processor and memory. At most one shows per visit, at least 3 days apart, never at sign-in and never while
you type or another window is open. The rating comes only right after a download finishes or Movie Agent places a
film. **Not now** brings a window back after 7 days, then 30, then 90; **Don't ask again** ends it. Each window shows
at most 3 times a year; an installed update starts that count again and brings a window you put off back after 7 days.
Once you rate, say **I already do** or get StorageDiag, that window does not come back, also after an update. A rating
is anonymous unless you turn on **Show my LinkDrop name and avatar** in it; nasutils.net publishes it after a check,
one per NAS, and **Support** shows it with **Change rating** and **Delete rating**. The windows do not show in the Rtorrent 16
phone app.

**Developer mode** (**Settings → Advanced**) shows auto-tuning and what goes with it: its setting and drawings, its
Performance card, its strip on Quick access, its week card, the Auto-tuning column of the Peers card, its marks on
the Traffic card and its guide. Each carries the developer badge. Turning Developer mode off turns auto-tuning off too.
While auto-tuning runs, the Settings fields it holds carry the **Auto-tune** badge (below).

**Tune the NAS's network values** is on the **Performance** page, in its **Network tuning** card, with Advanced on. It starts on
when the settings file is absent or a valid object has no `sysctl_tune` key. An explicit saved choice wins,
including Off. Malformed, unreadable or invalid-type settings keep this key off. Loading never rewrites the file. This switch applies the package's kernel network rules at start and restores the old values at stop.
It does not enable experimental auto-tuning.

Basic keeps **Disconnect very slow peers** and **Slow below (KiB/s)**, with the threshold enabled by its switch.
Web access keeps HTTP/HTTPS, certificate domain, QTS access, external RPC and login/ban switches in Basic.
RPC mode, failed-attempt count, ban duration, ruTorrent User-Agent and private-host allowlist are Advanced.
Links, validation errors and unsaved edits still reveal the corresponding field without resetting its value.

**Settings → Web access → ruTorrent** has the switch **ruTorrent**. Off, its web interface at `/ui/rtorrent/` shows a
short page that says so, and none of its plugins' scripts run: nothing at a start, nothing in the background, and the
handlers its plugins hung in rtorrent are taken out. The panel, `/RPC2`, the phone app, the add-ons and the RSS page
work without it. The switch applies at once, with no restart. A new install starts with ruTorrent off; an update
keeps it as it was on that NAS. While it is off, the launcher and the menu have no ruTorrent link, and its files stay
on the disk, so switching it on again brings back each account's ruTorrent settings.

### The question mark next to a setting

Every setting on the Settings page has a `?` beside its label. Hover or tap it to open its explanation; for most
sections a drawing of how the feature works is under the text, in the theme's colours, on a phone too. Two fingers
zoom the drawing, one finger drags it, and a double tap fits it back (on a computer: the wheel, a drag and a
double-click). **Open the guide** under it opens the guide on the subject, which carries the same drawing.

### A setting auto-tuning holds

While auto-tuning is on and has a link test to work from, each setting it moves carries a small **Auto-tune** badge
beside its label, in the muted colour of the help text, because a moved value needs no fixing. When auto-tuning runs
another value than yours, the line under the field gives both, such as "Now: 150 · Your value: 100". A value you save
there becomes auto-tuning's new starting point, and the line says so while you edit (Auto-tuning guide).

### Three addresses

The same panel answers on three kinds of address; the Launcher lists the ones this NAS has.

- On the LAN: `http://<nas>:6019/` and `https://<nas>:6018/`. The https one carries the package's own certificate,
  so the browser warns once.
- Through the QTS panel: `https://<nas>/rtorrent16/` (and `http://<nas>:8080/rtorrent16/`). This address goes
  through the QTS web server, so the panel and ruTorrent answer with the certificate QTS already has. **Reachable through the QTS panel at /rtorrent16** (**Settings → Web access**) turns this off; the LAN
  ports stay either way.
- From outside: with myQNAPcloud on in QTS, `https://<name>.myqnapcloud.com/rtorrent16/` (the same route, under the
  Let's Encrypt certificate QTS renews by itself). No port of the package needs forwarding for this. The share links
  on the Add torrent page use this address when you open the panel through it.

![Network tuning and the route through the QTS panel](https://nasutils.net/rtorrent16/docs/img/network-sysctl-en.svg)

### Ports the panel refuses

A save refuses a port that is taken, a port below 1024 (the firmware's own services), the port of the QTS web
interface, and a number already used by the other WebUI port, by DHT or by the BitTorrent port range. App Center's
Open link follows the setting: the package writes the ports into `qpkg.conf` when the setting is saved and again at
every start.

### The activity journal

The journal holds every start, stop, restart, reload, crash and package upgrade of the engines, newest first, each
line with who requested it and why. The rtorrent badge in the state strip reads from it.

Who can appear: **you** (or another account of the panel), the **watchdog** (it checks every 5 minutes), the
**package upgrade**, the **system boot**, the **App Center** or a **shell**. When the watchdog finds rtorrent dead
although it should run, it writes "rtorrent exited on its own" with the process number, how long it ran, and either
the kernel's out-of-memory killer or the last line of `rtorrent.log`. Then it starts rtorrent again and sends the
watchdog notification with that reason. The raw file is **activity** in the log picker. The QNAP System Logs get a
copy of these lines at the level set in **Settings → Notifications → What the package writes to the QNAP System Logs**:
every event (the default), warnings and errors, or errors only (Notifications guide).

### Service details

The Dashboard shows each running process's current resident memory; a missing reading is shown as unknown.
Advanced adds process IDs, uptime, service controls and the detailed peer limits. The basic view keeps
the service state and memory reading. Client/library versions and component versions appear only in Advanced, in the
**rtorrent** card beside **Services**. The piece cache and the transfer totals stand at the foot of **Processor and
memory** in both views.

On a computer the Services list fills as many columns as the card's width holds, up to four, and each service's state
stands at the right of its name. On a phone each state is a small circle in the state's colour before the service's
name; tap it to read the state.

A running process stays **running**, even after its setting is switched off. A required absent process is **stopped**.
Stopped LinkDrop or VPN set to Off is **disabled**. Enabled LinkDrop without registration and unlinked WhatsApp are
**not configured**; a missing optional binary is **unavailable**. Proton with the engine stopped, manual VPN port
mode without a renewal loop, inactive knock guard and workers with no work are **idle**. The watchdog row shows the package's own scheduler,
which starts the watchdog every five minutes, as **running** or **stopped**. The advanced view adds the time of the last
check.

The panel writes `pre-RC` before the package's build on the Launcher, on the Dashboard, in Diagnostics and in the update
notice, for example `pre-RC 16.27-11T`. App Center and the package file keep the plain version, `16.27-11T`.

### Processor and memory

The processor chart shows a share of all logical CPUs together: 100 % means every one of them was busy for the whole
second. The line above the chart says how many the NAS has and what one busy CPU is worth, for example "100 % = all 12
logical CPUs (10 cores) busy. One busy CPU: 8.3 %." A program that keeps one CPU busy on that NAS reads 8.3 %, never
100 %. The measuring service (rt16-perfd) reads the kernel's own counters once a second: the time the NAS and
each program spent busy, and the CPUs the kernel has online. When rtorrent may use fewer CPUs than the NAS has (a CPU
affinity or a cgroup quota), the line says so.

The memory chart shows what each program keeps in memory for itself: its private memory, without the files it maps
(its own program file, its libraries, the torrent data it reads). For rtorrent that is its own memory (peers, trackers,
the session); **Mapped files** in the key is the other part (its program and the pieces of the torrents it reads and
sends). Mapped file pages are disk cache: the system frees them when another program needs the memory, and rtorrent reads
them from disk again. The NAS is the memory in use as the kernel reports it, MemTotal minus MemAvailable, so the disk cache the kernel can give back is not
in it. On QuTS hero the ZFS cache (ZFS's read cache, the ARC) is left out of the NAS's figure as far as ZFS can give it
back, and **ZFS cache** in the key shows that part; the rest of the ARC, its minimum, counts as in use. On QTS there is no
ZFS cache and no such figure. The Services card's memory reading is the resident memory with
the mapped files, so its figure for rtorrent is higher.

The charts are scaled to rtorrent, the services and the jobs, so their lines fill the chart. The NAS stands behind them
as a grey hatched background on a scale of its own: the chart's full height is all of its processor or all of its
memory. Its value is in the key and in the reading of one moment. The live view draws the last minute the way the
Performance card draws the disk and the link, a few seconds behind the newest reading. 24 h and 7 days stack rtorrent,
the services and the jobs, and the grey figure at the chart's top right is the NAS's full height.

The card's footer gives rtorrent's **Piece cache**, how much memory it holds for torrent pieces and the most it may
hold, and its **Transfer totals**, what it has downloaded and uploaded since it last started. Both come from rtorrent itself, so they
show in every range, also while the measuring service is not running. The piece cache is only part of rtorrent's memory.

**Services and add-ons** are the processes started from Rtorrent 16's folder or from an add-on's folder (a .qpkg folder
whose name begins with rtorrent16), and shells running one of the package's scripts, when they are not jobs. **Jobs**
are counted by who started them, not by the program's name: the service script's work commands (unpacking, file
operations, Create torrent, the finish, the Media library, checks, the Trash, backups) and the panel's own work
(playback, the music export) mark themselves, and every program they start counts with them, whatever it is; so do the
programs rtorrent's events and the panel's requests start. A service a job restarts counts as a service. The list of
processes is read once a second, and a program that starts between two readings is counted from its start. The
processor time of a finished child process is not added to its parent: a conversion is counted while it runs.

24 h and 7 days are five-minute averages kept for seven days with the traffic record. A gap means rtorrent was not
running or the measuring service had no readings.

### Numbers on the Dashboard and Quick access

The charts, tiles and badges of these two pages shorten a number once it reaches four digits: 1.2K from 1000 to 9999,
10K and 120K from ten thousand up, then 1.2M and 12M. The unit stays as it is (2.4K Mbit/s, +1.2K%). Port numbers are
never shortened. The hover reading of a line chart and the tooltip of a torrent's seed count on Quick access keep the
full number. A full count, such as torrents, files or peers in a sentence, follows the panel's language: 2,592 in
English, 2.592 in German, 2592 and 25 920 in Polish.

Where a word and its value do not fit side by side, such as "limit 111.2 MB/s" on a narrow Download or Upload tile,
that spot shows the word for two seconds, fades to the value for two seconds, and back. With reduced motion set in
the system, it shows the value alone and keeps the whole text as its tooltip.

Behind the figure on the Download and Upload tiles, a curve over a soft fill shows the rate of the last two minutes.
It passes through every reading and rounds a peak without rising above it or dipping below zero. Between two readings
it glides on, several seconds behind the figure. On a page just opened it covers half a minute, then a minute, then
two. It moves only while the tile is on the screen and the tab is in front. With reduced motion set in the system, it
stands still and shows every reading up to the newest.

The disk chart of the Performance card is the volume the running downloads write to (the one taking the most bytes,
then the most torrents), or the download folder's volume while nothing downloads, named as QTS names it (DataVol1; on
QuTS hero the shared folder, such as Public). The card picks the volume again every 30 seconds. The card reads the response time from the volume itself (on QuTS hero, from the
pool's disks) and **Utilization** from its busiest disk. The tooltip on the volume's name in the card's header lists
those devices and any other volume the downloads are writing to. The two small charts of the card (disk response time, the link) glide the same way across the whole card,
over the last minute and a few seconds behind the newest reading. The label at the end of each line gives the reading
the line has reached. Hold the pointer on a chart, or focus it and use the arrow keys, to stop it and read both exact
values of the nearest reading and how many seconds ago the NAS took it. Move the pointer away and the chart catches up
and glides on. The Traffic card and the charts of the Performance page join the readings with straight lines.

The **Traffic** card (live, 24 h, 7 days) draws download as a filled area rising above the time axis and upload as
one hanging below it, each in its own colour of the theme, the same as on the Download and Upload tiles and in the
Active now lanes. Each half shows its value now (or the latest record) and its peak, and a ring marks where the peak
was. The two halves share one scale while the peaks are within four times of each other; otherwise each half has its
own, and a note under the chart shows that. Hover, tap or use the arrow keys on the chart to read both values at one
moment. A stretch with no record (rtorrent stopped) is a gap in the line. The auto-tuning week shows the same chart.
In Developer mode, on the 24 h and 7 days views each auto-tuning move is a diamond on the time axis in the colour of
its verdict, and moves too close to tell apart are one round marker with their count; its tooltip and the reading at
that moment name the moves.

The **Swarm** card shows who Rtorrent 16 is connected to now. **Connected peers** and **Connected seeds** count every
active torrent, from rtorrent's own counters. A finished torrent keeps no seeds connected, so 0 connected seeds is normal
while everything seeds. The line under them adds up the largest seed and leech figures a tracker gave for each torrent and
says how many torrents gave one. A seed of ten torrents counts ten times, and this NAS counts in every torrent it seeds. A
tracker that answers 0 and 0 gives no figure, so its torrents stay out of the line and show no tracker figure in the torrent
list. The line is missing until a tracker has answered. **Torrents with peers**
says how many active torrents have someone connected. The speeds on the card are the figures of the **Download** and
**Upload** tiles.

The map and the list read the peers of at most 60 of those torrents, downloads first, then the torrents with the most
peers; a line under the map says so when more torrents have peers. A city with peers is a bright mark on a bare patch of the
map, and its country stays a faint tint. A country with no city on the map pulses in the theme's accent colour, brighter the
more peers it has. A place with many pixels is dimmed, so a few peers in Canada do not outshine Poland, and two lit countries
that touch keep a dim seam. Marks stand apart from about 8 degrees, as Stockholm and Łódź do; nearer cities merge into one
mark and the list names each. The 14 biggest countries and 12 biggest cities pulse (8 and 6 on a phone); the others keep a
still tint. Point at a place or tap it for its name and its peers. The land is square pixels of 2 degrees, and of 1 degree
where the map is wide enough for them to stay sharp, such as Settings on a high-resolution screen.

The list under the map names the five biggest countries. **All places** opens every country with its cities under it.
**Other places** under a country counts its peers whose city is not known or not on the list of cities.
A row shows its place on the map, also from the keyboard. Peers on your own network and peers the country database cannot
place stand in the list only.

The play button beside the **Swarm** title replays the last four hours. The map and the list under it show each
five-minute point in turn; the arrows and the slider move between the points, and **Back to now** returns to the live map.
The figures above the map stay the ones of now. With reduced motion set in the system nothing plays by itself: the arrows
and the slider move one point at a time. The package keeps a point every five minutes, also when nobody looks, with the
peers per country and per city and never an address; points older than four hours are dropped.

The card asks rtorrent only while it is on the screen and the tab is in front: every 10 seconds, slowing to once a minute
while nothing changes. All open panels share one reading, so a second panel adds almost nothing. The map draws 8 frames
a second, 4 on a phone, none off the screen, and stands still with reduced motion set in the system. The card keeps only
the sums, the countries and the cities.

Press **Show logs** at the foot of the Dashboard to open Logs; **Hide logs** closes it. The card shows the
file's path in its header, a chip per folder. When the header has no room, the middle folders fold into one
**…** chip: the share, the last folder and the file name stay, and a press on **…** shows the whole path. The
button beside it copies the path. On Diagnostics and the Media library the path takes the rest of the line after
**auto-refresh**.

### Rtorrent 16's speed and the NAS's traffic

The Download and Upload tiles, the coloured areas of the Traffic card, Quick access and the phone app show what Rtorrent
16 itself moves: rtorrent's own rate, the bytes of its peer connections divided by the seconds it has been moving data
without a pause (3 to 60 seconds). Copies, backups and other programs on the NAS never count in these figures.

Behind the colour, the Traffic card (live, 24 h and 7 days) draws a hatched band: all traffic on the network interface
Rtorrent 16 uses. The key above the chart names both: **Rtorrent 16** and **All traffic on** the interface, such as br0
or qvs0. Each half's readout ends with the band's value; point at the chart or touch it to read both values at one
moment. The band is Rtorrent 16's figure plus the rest of the interface's traffic, so it never reads below the colour.
The part beyond the colour is traffic that Rtorrent 16's figure does not count: the packet headers and acknowledgements
of its own transfers, DHT and tracker traffic, and other programs on the NAS, such as a copy to or from a computer, a
backup, a sync job or a media server streaming to someone. A wide band beside a small upload figure means one of those
programs is sending. During a fast download the NAS sends about 1 % of the download speed back as
acknowledgements, so the upload half then shows a thin band. On a virtual switch such as qvs0 the band leaves out the
traffic of virtual machines: it passes the switch without crossing the NAS's own port.

The interface is the one rtorrent is bound to, otherwise the default route's, otherwise the busiest one; a port that
belongs to a bridge counts as the bridge. Without the NAS's measuring service (rt16-perfd) the card shows Rtorrent 16
alone.

The **Link** chart of the Performance card shows the same interface's traffic, every program included, as
**Incoming** and **Outgoing** in Mbit/s, against the link limits from the last test.

### What a dump holds

The dump holds the package's logs (the last 1 MB of each), its rendered configuration and drop-ins, the state of the
services and of rtorrent, and the NAS's model, firmware, memory and disks. `tracker-state.json` shows the trackers of
the active torrents: when each tracker last answered, when rtorrent asks it next, and the intervals the tracker set.
`README.txt` names the clock of each log, such as the NAS's local time or seconds since 1970.

The package removes passwords, API keys, tokens, cookies, tracker passkeys, private keys and password hashes on the
NAS, before it writes the file. A web address keeps its scheme, host and port; its user name and password, the values
after `?` and every part of the path that is not a plain word go. Public IP
addresses, e-mail addresses, phone numbers, MAC addresses and the NAS's name become numbered placeholders such as
[ip-1], and one address keeps one number in every file. Addresses on your own network stay as they are. Each torrent
becomes [torrent-N], one number for its name, its hash and its folder, unless you tick Include torrent names and
hashes; only then are the media library's logs added. The WhatsApp poller's log is never included.

### The package's own files and the logs folder

Every log of the package is in one folder: the service log, rtorrent's own log, the events, the media library, the
web server and php-fpm. It sits with ruTorrent's settings (each account's columns, plugins and filters) and the
temporary files, where **Where logs, settings and temporary files are kept** says.

| Where logs, settings and temporary files are kept | Logs | ruTorrent's settings | Temporary files |
|---|---|---|---|
| With the package (default) | `var/log` | `var/settings` | `var/temp` |
| A directory I choose | `logs/` | `settings/` | `temp/` |

With the package the three folders are under `.qpkg` on the volume where Rtorrent 16 is installed; choosing your own
folder stores them there instead. On
a NAS that kept these files beside the downloads, the setting shows **A directory I choose** with that folder, and
**With the package** moves them to the package’s installation folder.

A change moves the three folders and nothing else. Each file is copied, synced and compared by its SHA-256 before the
old one is deleted; on one volume it takes its new name without a copy. A file the new folder already has under the
same name stays there with the date added to its name (`WebUISettings.dat.old-20261101-130518`), and the package's
file takes the name, so ruTorrent keeps the settings it had and the logs go on in the same files. A folder of yours
that the move leaves empty is removed. A move cut short (a power cut, a stopped process) is finished or
undone at the next start of the package, and rtorrent waits until then. Before anything moves, the panel
checks the new folder. It refuses a folder outside the shared folders and a folder that lacks the space, is in memory,
sits on a system partition, in a network folder or on a mounted image file, cannot be written, or lies inside one of
the folders that move. It also refuses while a torrent move is still running. The page shows the reason.

A log rotates at 10 MiB, or after 7 days with lines: it becomes `<name>.1`, the older copies `<name>.2.gz` to
`<name>.5.gz`, and the sixth goes. An upgrade keeps the logs. Removing the package deletes the files kept with it.
**Diagnostics → Logs** and the diagnostic dump read the folder in use.

### Repair configs

**Repair configs** under **Maintenance** on **Diagnostics** writes the config files again from your saved settings. If you
updated from a version older than 16.25-09U, it also finds ruTorrent's settings and the logs left in the base folder, and
the panel reads them from there again. A minimum seeding age saved in hours goes into **Minimum seeding days**, as long as
nobody has saved the settings since the update. Your files stay where they are. The result lists what was repaired, or
says **Nothing to repair.**, and tells you when Rtorrent 16 needs a restart.

### The base folder and its move

The base folder is the folder `/share/Rdownload16` points to. The first start picks it: the `[Rdownload16]` share,
else `[Download]/rtorrent16`, else `[Public]/rtorrent16`. **Download directory**, **Completed folder**, **Watch
folder** and **Library root folder** use `downloads/`, `complete/`, `watch/` and `medialibrary/` in it when their
path fields are empty. An empty backup path uses `backups/` in the base folder. The Trash stays on the same volume
as the data; see The rules' Trash in the seeding guide. The base folder moves only when you press **Move to another volume**; an
update leaves it where it is.

| | After the move |
|---|---|
| Download, completed and watch folders, media library | in the new base folder; their fields are empty |
| The package's own files (logs, ruTorrent's settings, temporary files) | in the new base folder when they were in the old one; kept with the package or in a folder of yours, they stay |
| The session | where it was; one that was **In the base folder** keeps that folder as **A directory I choose** |
| The backups | where they were; an empty **Backup folder** gets the old `backups/` written in |
| The torrents and their data | where they were; each one seeds from its folder |

Before anything changes, the panel checks the destination. It rejects a folder outside the shared folders, or one on
an unmounted volume, in memory, on a system partition, on a network share or in a mounted image; a shared folder itself
can be the base folder. It also rejects a folder rtorrent cannot write to, the current base folder, a folder inside it or containing
it, and a folder inside the session or backup folder. The move cannot start if there is too little space for the
package's files or another move is still in progress. If the base folder is the `[Rdownload16]` share itself, QTS
manages its link: move that share in QTS instead.

Then the panel writes a journal and rewrites every path stored through `/share/Rdownload16` (a torrent's folder and
its completed copy, the placed records, the settings) to the old folder's real path. The package's files are copied and checked
as described under The package's own files and the logs folder. Finally, the panel saves the settings and points
the link to the new folder. When rtorrent runs again, the panel checks that it downloads into the new folder and that every
torrent is there with the same data and state, none checking its files; a failure puts everything back. A move cut
short, by a power cut for example, is finished at the next start when its settings were written, or undone when they
were not, and rtorrent waits until then.

The package continues to manage the old base folder and its download, completed and library folders. The seeding
rules and Trash still apply to their torrents, and storage protection treats the old completed folder and library
the same way as the new ones. A torrent still downloading at the move lands in the new completed folder when it finishes; with
**Hardlink** that is a copy, because the new folder is on another volume.

### Night mode

| Night action | At night |
|---|---|
| Pause every torrent (default) | rtorrent neither downloads nor seeds; the disks are not heard |
| Lowest upload, downloads go on | the total upload is held at 1 KB/s, the lowest rtorrent takes (0 is no limit); downloads go on, and in the morning the limit goes back to what it was |

With **Pause every torrent**:

- At the start of the night every running torrent is paused and noted. A torrent added during the night, from the
  panel or the watch folder, is paused too.
- In the morning exactly those are resumed. A torrent you paused or stopped yourself stays as you left it, and one
  you erased in the night is skipped.
- The daily copies, the media library's 04:00 pass, the seeding rules and the Trash wait for the morning.
- If rtorrent restarts during the night, the package pauses again the torrents that night mode had paused.

With **Lowest upload, downloads go on**, the daily copies, the library and the rest run as by day, and downloads
finish at night. The **Night** button stays lit all night; ending the night with it gives the upload back until the
morning. A restart of rtorrent during the night sets the lowest upload again.

The logs are written every five minutes. For a quiet night keep them with the package.

### The time zone

Night mode and the times the panel shows follow the package's time zone: **Settings → Date & time**, **Follow the NAS
time zone** (on by default) or a zone you pick. The NAS clock itself does not change. The pixel map under the clock
lights the zone's column, pulses the country of the zone's city and marks the city; point at it or tap it for the name.
The column is the 15 degrees of the current offset, so UTC+1 runs from 7.5 to 22.5 degrees east. Real zones follow borders
and daylight saving moves the offset, so a city outside its column moves the column just far enough to hold the city.

![Time zones in the panel and the service](https://nasutils.net/rtorrent16/docs/img/date-time-en.svg)

### The folder browser

On a QNAP every share is a link: `/share/Download` points at `/share/CACHEDEV1_DATA/Download`. The browser stores the
path you walked, `/share/Download`, and not the one it resolves to; that path stays valid when the share moves to
another volume. A folder whose real path lies outside `/share` does not open.

For a folder setting the browser works like an installer: the folder you are in gets the setting's own name, the one
the package gives that folder in the base folder (`downloads/`, `complete/`, `watch/`, `medialibrary/`,
`backups/`, `session/`, `trash/`, and `rtorrent16/` for the package's files). It takes the folder as it is when
the folder already has that name, when it is the folder the field holds now, or when it contains no subfolders (the
NAS's own `@…` and `.…` folders aside). The base folder's browser adds no name: the base folder is the folder you are
in, including the shared folder itself. Browsing creates nothing: the folder is made when the setting
first uses it, or by the move.

### The port check, step by step

1. **Local TCP listener**: a check on this NAS, with no request to anyone.
2. **Router mapping list**: a UPnP or NAT-PMP request, inside your network.
3. **Router loopback**: the NAS connects to its own public address through your router and back. A connection that
   works shows that your router forwards the port; a failed one proves nothing, because many routers refuse this kind
   of connection.
4. **External IPv4 TCP check**: a public checker (`portchecker.io`) gets your public address and the port number,
   what every peer sees, and tries to connect.

### Peers and their limits

The card shows current peer counts, the busiest torrent, sockets in use and a link profile selector in the basic
view. Advanced adds Restore defaults and every peer setting in three columns; Developer mode adds a fourth:

| Column | What it shows |
|---|---|
| **Now** | what rtorrent runs. For the public and private kinds: the value most torrents of that kind have, with the range when they differ. With no torrent of that kind: the value a new one gets |
| **Set** | your value. While auto-tuning runs, the value you set, not the one it moved to |
| **Default** | the package's value. The piece cache's default is this NAS's: a quarter of its RAM, between 512 and 2048 MB |
| **Auto-tuning** (Developer mode) | off, not tuned, needs a link test, the value it moved to with an arrow, the range it may move within (such as 100-5000), or "never" for the two speed caps |

**Restore defaults** puts the 14 peer settings back to their defaults after one confirmation. The confirmation lists
every value it changes, old and new, and, on a line of its own, the auto-tuning moves that go back with them. The two
speed caps stay as they are.

The link profile chip shows "as set" when your values match no profile. A profile writes the peers, the slots, the
piece cache and both speed caps for a line of that speed. On this NAS a
profile gives the piece cache at most a quarter of the RAM on QTS, a fifth on QuTS hero and an eighth when the
download folder is on ZFS, and never less than its default. When the cache comes out smaller than the profile's value,
the profile also lowers **Global upload slots** and **Global download slots**, so that each slot has 4 MB of the
cache, but never below 150 and 100. On
an 8 GB NAS the 10 Gbps profile writes 2048 MB and 256 / 256 slots. Auto-tuning goes on from the profile's
values and never puts an older value back over them. It never moves the speed caps. A
profile picked from the pill in the state strip shows the same confirmation and writes the same values; the note
under the card's header shows what changed.

| Setting | 1 Gbps | 2.5 Gbps | 10 Gbps |
|---|---|---|---|
| Public: min / max peers | 40 / 200 | 60 / 300 | 90 / 450 |
| Public: upload / download slots | 30 / 30 | 50 / 50 | 100 / 100 |
| Public: peers each tracker is asked for | 100 | 150 | 225 |
| Private: min / max peers | 20 / 100 | 30 / 150 | 45 / 225 |
| Private: upload / download slots | 15 / 100 | 25 / 150 | 50 / 225 |
| Private: peers each tracker is asked for | 50 | 75 | 112 |
| Global upload / download slots | 150 / 100 | 300 / 300 | 500 / 500 |
| Piece cache | 2048 MB | 4096 MB | 8192 MB |
| Open files | automatic | automatic | automatic |
| Speed caps, both ways | 116.8 MB/s | 292.1 MB/s | 1.2 GB/s |

The speed caps follow the Performance tests' rule: the link less 2 %, with at most 50 Mbit/s held back. Every number,
with the source it comes from, is in `/usr/bin/rtorrent16/etc/link-profiles.json`.

The tracker-kind numbers change in a running rtorrent at once, here and under **Settings → Connection profiles**:
every torrent of the kind gets the new number, and so does every torrent added later. Open files is the one value on
the card that needs an rtorrent restart.

### The configuration editor

**Drop-ins, yours:** the `.rc` and `.lua` drop-ins in `/usr/bin/rtorrent16/etc/rtorrent.rc.d/`. rtorrent loads them
after the generated `rtorrent.rc`, so they take precedence, and they survive a package upgrade. A save checks every
line of a `.rc` file first: each must have the form `command = arguments` or be a `#` comment, and while rtorrent
runs, the command must be one rtorrent lists. A `.lua` file is not checked. A save keeps the previous version beside
the file as `.bak`, and so does **Delete**. The power button beside a drop-in turns it off and on without deleting
it. When a drop-in keeps rtorrent from starting, the package renames it to `<name>.broken` and starts rtorrent once
more without it. The page shows that file; fix or delete it over SSH.

**Made from your settings, read-only:** `rtorrent.rc`, `nginx.conf`, `php-fpm.conf`, ruTorrent's configuration and
`settings.json`. The package writes them from templates and your settings at every start, so an edit would vanish.
The editor shows what your settings produced. The setting **Extra rtorrent.rc lines** (**Settings → Advanced**) adds
lines at the end of the generated `rtorrent.rc`, after the drop-ins and `rtorrent.rc.local`.

### Your own rtorrent lines (custom config)

rtorrent loads the package's `rtorrent.rc` first, then lines of your own: the `.rc` drop-ins that are on in
`/usr/bin/rtorrent16/etc/rtorrent.rc.d/` (and the `.lua` ones when your rtorrent has Lua), `rtorrent.rc.local` and
**Settings → Advanced → Extra rtorrent.rc lines**. Each of them counts once it holds a line that is not blank and not a
comment. Such a line takes precedence over the panel's own setting for the same thing, so the panel marks it:

- The Rtorrent 16 logo takes the theme's accent colour: in the sidebar, in the phone's bar and at the top of its menu.
- **Custom config** shows under the logo, and on a phone beside it at the top of the menu. Its "?" names the files and
  lines and leads to **Diagnostics**.
- At each rtorrent start with new or changed lines of your own, and at the first start after the NAS boots, the package
  writes one warning to the QNAP System Logs naming them. A restart with the same lines writes nothing. When the lines
  are gone, the next start notes that in the service log.
- The diagnostic dump holds `custom-config.txt` with the same list and the lines.

**Diagnostics → rtorrent configuration** lists each file or setting and its lines. When the lines changed after
rtorrent started, the card says so: rtorrent reads them only at its start.

**Revert to the panel's configuration** asks once, then:

1. moves each drop-in of yours to a turned-off copy beside it, `<name>.reverted-<date>.rc.disabled` (or
   `.lua.disabled`);
2. copies `rtorrent.rc.local` to `rtorrent.rc.local.reverted-<date>.rc.disabled` in `rtorrent.rc.d/` and leaves only its
   first comment line in `rtorrent.rc.local`;
3. saves the extra lines in `zz-extra-lines.reverted-<date>.rc.disabled` in `rtorrent.rc.d/` and empties the setting;
4. writes `rtorrent.rc` again and restarts rtorrent. nginx and php-fpm keep running.

Nothing is deleted, and the copies stay in `rtorrent.rc.d/` across package updates. They show in **Drop-in configs** as
turned off. To use one again, select **Enable** next to it, then **Restart rtorrent**.

![The panel's API and rtorrent's local RPC](https://nasutils.net/rtorrent16/docs/img/api-rpc-en.svg)
