Skip to content
Castellan
Constable's icon

Overview · Constable

Read as

The Constable, which watches your PC's heat and the apps that wander in the background

How the Constable watches how hot the PC runs and why the fans spun up, lists the apps busy in the background and what starts with Windows, closes or stops one only when you check it, and, with While you play on, finds what got in your game's way.

Article
3501
Applies to
Constable 0.5.6
Last reviewed
For
For everyone
Written for Constable 0.5.6. Constable is at 0.5.20 now (13 small releases since: what changed).

What the Constable does#

The constable kept the peace in the parish, and found out who had broken it. The Constable watches how hot your PC runs and what's driving it, and finds the apps that wander in the background, using your battery and memory while you aren't looking. With While you play on, it also finds what got in your game's way.

It never closes an app, changes what starts with Windows or sets a power mode on its own. It does those only when you check a fix or a rule.

It holds the Pinder's office on every PC, everyday or gaming. While developer staff are hired, the Pinder holds it and the Constable works behind it: the Pinder looks after a developer's processes, the Constable after your apps.

The Constable comes with the Household license.

The heat#

The Constable watches how hot the PC runs, on its page and in a widget on Castellan's home page:

  • The heat now: the PC's hottest part, and its power where Windows measures it. The graphics card's temperature, fan, power and clock, where its maker's software is installed with the driver: on a desktop all the time, on a laptop only while you play. The fans, where the laptop's maker reports them.
  • Why the fans spun up: the hot stretches with no game on, each named by the busiest program.
  • What's been driving the heat: how long each program was the busiest while the PC was hot, over the last week.

Cool it down sets the Windows power mode that keeps this PC coolest, for half an hour (or until the game ends), then puts yours back. Measure what cools this PC finds that mode: about eight minutes of the same work in each of Windows' power modes.

The heat alert tells you when the PC or its graphics card has stayed at 90 °C or more for ten minutes. It's raised even while every processor is busy, during a long compile or a game loading, say. A raised alert lasts over a restart or a sleep, and clears only once a look finds the part cool again.

Three power mode rules, each off until you check it: Quiet during calls (only when Envoy is hired), Quiet hours, and Cool it down when it's held back by heat. The Constable always keeps your own power mode, and puts it back when a rule lets go, when it stops, and after a restart. If you change the mode yourself while a rule holds it, the Constable leaves it alone until that rule lets go.

The background apps#

Every 15 minutes it takes a quick look, changing nothing, and lists:

KindWhat it means
On batteryAn app with no window that used notable processor time while the PC ran on its battery. Listed first: it's the drain that matters most.
Background appsAn app with no window that, over 30 minutes, used more than 2% of a processor core, or held more than 500 MB of memory of its own.
RelaunchersAn app with no window that keeps starting again: closed and back within the hour, three times a day.
Closed apps keptA program that keeps apps that have closed from being released, out of sight of Task Manager. Over 200 closed apps and growing, or 800 whether growing or not. A service among them has Restart it.
Starts with WindowsWhat starts with Windows for you, as Task Manager's Startup apps page has it, with how much each one used since.

An app is the program and every helper it started, together. An app with a window isn't a stray, however busy: it's in front of you, and you can close it. Run now, in the page's title bar, looks at once.

When Windows loses memory

On some PCs, Windows itself loses a little memory each time an app closes, and never gets it back until the PC restarts. No app holds that memory, so closing or restarting apps doesn't help. Over days it can add up to gigabytes.

Each round the Constable measures it. Once Windows has lost 1 GB, its page says how much and how fast it's growing each day. Above 4 GB (the Suggest restarting the PC above setting), it says it's time to restart the PC. It can't fix this itself: it's a fault in Windows or a driver.

What it never lists

  • Windows' own programs and services.
  • Security software.
  • Drivers' helpers: sound, graphics, touchpad and the like.
  • Castellan and its staff, with the PowerShell they work through. A PowerShell script of your own is watched like any app.
  • Developer tools, while developer staff are hired: editors, terminals and the like. Those are the Pinder's.
  • What you told it to leave be.

With no developer staff hired, it watches every app: Java (often Minecraft), the Python an app brings along, and PowerShell running a script are listed when they drain the battery, keep the processor busy or hold a lot of memory.

A line on each app

The local AI says in one line what each listed app is, so you know what an unfamiliar file name belongs to: "Part of the printer software: checks for ink levels", say. It's labelled "note from the local AI, unverified". The list never waits for it. Without the local AI, the list is the same. See Set up the local AI.

Close an app, or keep it from starting with Windows#

Close a background app

  1. Open the Constable's page: Open on its card in Castellan.
  2. On the Strays tab, check the apps to close.
  3. Press Close the checked ones, and confirm.

The Constable checks each app is still the one it listed, still has no window, and still qualifies; then it asks it to close, as Windows does when you sign out. Anything else is refused, and the Action log says why.

An app may come back: many start again on their own. If it's one that starts with Windows, see below.

When an app won't close

An app with no window often can't be asked to close. The page then says to check force.

  1. Check the app, and check force.
  2. Press Close the checked ones.

Forced, the app is asked first, and ended if it's still running five seconds later.

Keep an app from starting with Windows

  1. On the Starts with Windows tab, find the app. Each shows what it used since it started.
  2. Press Don't start with Windows.

It's turned off as Task Manager does it: the entry stays, switched off. Start with Windows again, on the entry or on its line in the Action log, turns it back on.

Apps that start for every user of the PC need an administrator: the page says to use Task Manager.

Restart a service that keeps closed apps

A service listed under Closed apps kept, on the Memory tab, has a Restart it button. Press it, and the Constable asks first. Windows then asks you to allow it, because restarting a service needs an administrator. The service stops and starts again at once, and lets go of the closed apps it kept. The Action log says how many.

Some can't be restarted from here, and the page says why: a driver's (System's), a program that isn't a service, a service that shares its process with others, or one Windows can't do without. Restarting the PC releases what those keep.

This doesn't give back memory Windows has lost as apps closed: only restarting the PC does. See When Windows loses memory.

Leave an app be

Leave this one be, on a stray, means it's never listed again. To list it again, take it off Left be in Settings, which shows each app's file and where it is.

While you play#

While you play is a switch in the Constable's Settings, on a tab of its own. It's on from the start where Castellan was told this PC is used for gaming, or where the Constable was at work before; off anywhere else. Once you change it, your choice stays.

With it on, the Constable also watches your games.

How it knows you're playing. A game is a full-screen window in front, full screen or borderless, that draws in 3D, and isn't a browser, a video player or the desktop. A play session lasts while the game runs, and ends when it closes, another game takes the front, or it hasn't been in front for 15 minutes. A session under two minutes isn't kept. Its name is the game's own.

The Constable looks every 10 seconds while a game is on, and every two minutes otherwise. Between those looks it glances at the window in front every 5 seconds, so a game is noticed within about 15 seconds of taking the screen. A look costs a few thousandths of a second.

What it records, for each play session:

  • What else ran: every other program's share of the processor, of the graphics card, and of the reading and writing, grouped by program (every Steam process together), on average and at its busiest. It's mentioned when it's enough to matter.
  • When the game had to share: the stretches when the processor was nearly full, other programs used a quarter of it, another program used the graphics card heavily, or others moved a lot of data, each named by what did most.
  • Held back by heat: the stretches when Windows slowed the processor down because it was too hot, each named by what else was busy then.
  • The game's own work, apart.

Never counted against the game: its anti-cheat, Windows' own desktop drawing, and the Constable itself.

What to do. For programs it knows, the Constable gives plain advice: turning off Steam's Allow downloads during gameplay, setting Windows Update's active hours, closing a browser's tabs.

  • Pause OneDrive while you play, when you turn it on: when a game starts, it asks OneDrive to stop, and starts it again when the game ends.
  • Full power while I play, when you check it: Windows' Best performance while a game is on, then yours back.
  • Don't mention it leaves a program out of your play sessions from then on. Take it off Programs it doesn't mention, in Settings, to undo.

Quiet hours and Quiet during calls let a game be.

With it off, the Constable doesn't look for games: its page and its Settings say nothing of them, and on a laptop the graphics card isn't read. The heat, Cool it down and the background apps work just the same.

Its page#

The Constable's page is at http://constable.localhost:21616/, and Open on its card in Castellan goes there. A heat alert, if there is one, Now (what it's watching, and the game on now) and the background apps' last round stay on top, with Run now in the title bar. Below are tabs:

  • Your play sessions, with While you play on: each session, what else ran in it, and when the game had to share, with Don't mention it beside each program.
  • Heat and cooling: the power mode as it is now, Cool it down, the rules, what keeps this PC coolest, and why the fans spun up.
  • Strays: the background apps it lists.
  • Memory: programs that keep closed apps, and what eats memory, when a round found either.
  • Starts with Windows: what starts with Windows, and how many.
  • Action log: what you closed or turned off, newest first.

Its settings#

On the page, under Settings, in tabs:

SettingDefaultWhat it does
Notable CPU above2% of one coreWhat counts as busy, for a background app.
A lot of memory above500 MBOf its own.
Left beNoneApps never listed.
Averaged over (Advanced)30 minutesHow far back processor time is averaged, and memory must hold.
A relauncher at (Advanced)3 times a day
Back within (Advanced)60 minutesClosed and back within this counts as a relaunch.
Keeps closed apps above (Advanced)200When a program keeping closed apps is listed.
Suggest restarting the PC above (Advanced)4 GBHow much memory Windows may lose before the Constable says to restart the PC.
Heat alertOn, 90 °C for 10 minutes60 to 110 °C, for 1 to 120 minutes.
Heat alert in Manor's quiet hours tooOnOff: the alert waits until the manor's quiet hours end.
Cool it down when it's held back by heatOffCool it down by itself, until the PC has stayed calm for ten minutes.
Quiet during callsOffBest power efficiency while Envoy says a call is on. Shown only when Envoy is hired; your choice is kept meanwhile.
Quiet hoursOff, 22:00 to 07:00Best power efficiency through those hours.
While you playOn where the PC is used for gamingWatch your games, as above.
Pause OneDrive while you playOffStop OneDrive while a game runs. Shown with While you play on.
Full power while I playOffWindows' Best performance while a game is on, then yours back. Shown with While you play on.
Programs it doesn't mentionNonePrograms left out of your play sessions. Shown with While you play on.
Play sessions kept (Advanced)305 to 200. Shown with While you play on.

Look at the background apps every (15 minutes; a look only looks) and Model calls per round (10 new notes from the local AI a round) are set in Castellan's Settings > Employees, on the line under the Constable's row.

What it can't do#

  • It never sets the fans. It reads a laptop's fans only where its maker reports them (ASUS's, for now), and never changes a fan curve, an overclock or an undervolt. Laptop makers' own performance modes aren't changed either: only Windows' power mode.
  • A desktop's motherboard may report no temperature Windows can read, and the page says so. A Snapdragon PC's graphics aren't read.
  • The background apps need 30 minutes before it lists anything for processor or memory, and a day's rounds on battery before a drain shows.
  • An app running as an administrator is listed by name only, and can't be closed from here: use Task Manager.
  • Store apps that start with Windows aren't read yet.
  • Memory is what an app holds for itself. Task Manager may show less.
  • It doesn't measure frame times. That needs an administrator. It says when the PC was short or another program was busy, not when a frame was late.
  • A game in a window that doesn't cover its screen isn't seen as a game.
  • Reading and writing counts files, the network and devices together.

Is this page right?

If something on it is wrong or out of date, tell us and we'll fix the page.

Still stuck? Write to support@castellan-software.com and mention article 3501. Every version of Constable, and what changed in it, is in its release notes.