Skip to content

schema: declare the sensors-* keys the sensors plugin reads - #267

Merged
mirkobrombin merged 1 commit into
singularityos-lab:masterfrom
perlowja:fix/sensors-schema-keys
Oct 14, 2026
Merged

mirkobrombin merged 1 commit into
singularityos-lab:masterfrom
perlowja:fix/sensors-schema-keys

Conversation

@perlowja

Copy link
Copy Markdown
Contributor

The sensors plugin reads sensors-interval-seconds, sensors-show-frequency, sensors-show-utilization, sensors-grouped, sensors-gpu-zone and sensors-cpu-zone behind has_key(), but the schema never declared them. They always fall through to the plugin's built-in values and cannot be set with gsettings or dconf.

Change

Declares the six keys with the plugin's own defaults (2 seconds, true, true, true, empty, empty). The interval is limited to 1-60. Nothing else changes.

Verification

  • glib-compile-schemas --strict passes.
  • gsettings get returns the defaults above for all six keys, and an interval of 0 is rejected as out of range.
  • Commit f124b36 on master 5c75e56 with the sensors plugin (main d255d47), libsingularity b454931 and shell 3b72f26, Debian forky arm64 container: meson setup && ninja 784/784 targets, meson test 25/25 pass.

Not verified

  • Not exercised on hardware with a user-set non-default value; the plugin's guarded reads are unchanged.

AI assistance: disclosed

The sensors plugin reads sensors-interval-seconds, sensors-show-frequency,
sensors-show-utilization, sensors-grouped, sensors-gpu-zone and
sensors-cpu-zone behind has_key(), but the schema never declared them, so
they could not be set. Defaults match the plugin built-in values.

Assisted-by: Claude Code:claude-sonnet-5-5
AI-Scope: Wrote the six key declarations from the keys and defaults the sensors plugin reads, and checked them with a strict schema compile.
@mirkobrombin

Copy link
Copy Markdown
Member

Good, these were unreachable from gsettings. Merging as squash with a fix: subject, schema: is not one of our commit types.

@mirkobrombin
mirkobrombin merged commit 0e5d3a4 into singularityos-lab:master Oct 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants