# Live view and control

Enlarge a tile to watch the machine live. With **Control**, its keyboard and mouse are yours, in the browser.

## Take control

1. Click a tile to enlarge it. The live picture takes over from the stills once it arrives.
2. Press **Control** (or `C`). A row with the keyboard, shortcuts and relative mouse opens under the header.
3. To give control back, press **Control** again, or the right Ctrl key by itself.

A thin status strip at the bottom always shows the stream and who has control.

## Who may

| Who | Watch | Keyboard and mouse |
|---|---|---|
| Viewer, wall screen, viewer token | yes | no |
| Operator, operator token | yes | yes |
| Admin | yes | yes, and may take over from whoever holds them |

## One holder at a time

- Only one person or script holds a machine's keyboard and mouse. Others see who has them, for example *Controlled by olga*.
- An admin, in person, may press **Take over from olga**, after a question that names her. She is told who took over, and keeps watching.
- Keyboard and mouse are given back after **15 minutes without input**. Press **Control** to take them again.
- While someone holds them, actions from the wall for that machine are refused, an admin's too. An admin takes over in the live view, on purpose.

## The on-screen keyboard

**Keyboard** opens a floating panel with letters, numbers, function and navigation keys, for mouse or touch. Drag its title bar to move it and its corner to resize it; **Reset position** puts it back. Shift, Ctrl, Alt and Win apply to the next key only.

**Type text** gives control up for a moment, types through the normal action, then takes control again. The labels use US key positions; the machine's own layout decides the resulting text. The keyboard's Power key is never sent: power goes through the Power buttons, which ask first.

## Picture size and pointer

- The status strip sets the size: **Fit** (the default) or 50, 75, 100, 125, 140 or 200 %. At 100 % one pixel of the machine is one pixel of your screen. A larger picture scrolls.
- Your browser remembers the size for each machine.
- Where a KVM's mouse is set to relative, a click hands the pointer to the machine and `Esc` gives it back. The bar says that the KVM can be set to absolute on its own page.
- **Details** in the status strip shows device information, stream statistics, history graphs and recent activity.

## What each machine gives

| Machine | Picture | Keyboard and mouse |
|---|---|---|
| KVM with the kvmd interface (GL.iNet Comet, PiKVM) | H.264 where the KVM offers it, else JPEG | yes |
| JetKVM | JPEG | yes |
| Server, AMI MegaRAC controller | JPEG of its screen | yes |
| Server, OpenBMC controller | JPEG of its screen | yes (to be tested) |
| PC with Intel AMT | JPEG of its screen | yes |
| Proxmox VE virtual machine, while it runs | JPEG of its screen | yes |
| VNC server | JPEG of its screen | yes |

## What is logged

The activity log says who opened a live view, when it ended and after how long, and who took, took over or gave back the keyboard and mouse. Never a key, never where the pointer was.

## For programs

A program opens the live line with a one-use pass from `POST /api/v1/devices/{id}/live`, then a WebSocket at the same path. `GET /api/v1/wall` says which form of the line the wall speaks (`live`). The messages are listed in the full reference.

## Related

- [Use the wall](https://qkvm.com/docs/web/using-it)
- [Accounts and roles](https://qkvm.com/docs/web/accounts)
- [The API](https://qkvm.com/docs/web/the-api)
- [Activity log](https://qkvm.com/docs/web/activity-log)

[Full reference](https://github.com/qkvm/qkvm/blob/main/GUIDE.md#live-view-and-control)
