Skip to content

Thresholds, Alarms and Colors #68

Closed

Description

@corebots

Could you perhaps add an option to set thresholds for certain values so that they come up in the panel only when they reach a set value first, and perhaps turn red or flash when a set extreme is reached?

EXAMPLE: don't display the CPU temp (or display the little icon only, so we're able to click on it to access the drop down), start to display the temp if it reaches 50degrees, turn red if reaches 75degrees. (perhaps flash if it reaches 90degrees)... Same for CPU, Memory, etc...

But as the first step, even hiding all below certain values would be nice already. This would keep the panel nice and tidy when all is alright with the system while functionality would be preserved.

Thank you, great extension btw.!

Activity

  1. corecoding commented on Jun 2, 2019

    @corecoding
    Owner

    Keeping this open because I am interested in this feature. Don't have a lot of time to work on it, but hopefully one day. Maybe someone will create a PR :)

  2. wolfen351 commented on Nov 1, 2019

    @wolfen351

    Tagging this one, because I too would love this feature! It is the tradeoff of screen clutter vs telling me stuff I need to take action about. I'd like to know stuff is being monitored, and when thresholds are met, that indicators start telling me that work is happening

  3. corecoding commented on Jul 15, 2020

    @corecoding
    Owner

    I believe the correct way to handle this is to parse /etc/sensors3.conf - this reuses existing alerts (if any) and supports custom naming of sensors as well.

  4. changed the title [-]thresholds[/-] [+]Thresholds & Alarms[/+] on Aug 22, 2020
  5. guiNovais commented on Oct 4, 2021

    @guiNovais

    That feature would be great! I use a fairly old computer to work, and sometimes it freezes when reaches full CPU and RAM usage. I usualy keep an eye on those values, but it is easy to distract and realize those values are high only when it's too late.

  6. hyuri commented on Feb 14, 2022

    @hyuri

    Oh, this would be great. I came here exactly to request this feature.

  7. kgapos commented on Nov 17, 2022

    @kgapos

    Same here, came to request an alerting feature. No time to work on this either.

  8. T3sT3ro commented on Jan 10, 2023

    @T3sT3ro

    Copied from #308:

    It would be useful for me to monitor the temperature and show an alert if certain threshold is crossed, as well as setup multiple checkpoints when running out of battery. I haven't found any satisfactory native ways of monitoring those things. UPower, for example, can't configure more than 2 levels for battery power — low and critical. Also I found no nice solution for monitoring temperature and alerting me when something is not OK.

    This would be very helpful for me, because my hardware fans fail very rarely, and the PC can overheat and without any warning shutdown immediately. Same goes for the battery, which can discharge randomly in a span of a few minutes, and I sometimes dismiss warnings until the battery is critically low.

    For battery it would be nice to have "alert when threshold crossed" and "alert every X units after threshold crossed", for example every 3% if below 15%.

  9. hyuri commented on Jan 16, 2023

    @hyuri

    Yes, notifications would be great. Came back to suggest this. For temperature, memory, battery. That way we don't even have to keep an eye on the system tray, we get notified on-demand.

  10. T3sT3ro commented on Jan 18, 2023

    @T3sT3ro

    I'm just gonna mention, that if a temperature tracking notification were to be implemented, then it is also worth thinking about some time-series smoothing function to reduce the spikes. Currently lm-sensors can produce anomalies lasting even several seconds showing temperature ranging even up to 50°. It would be useful to have some controls for adjusting the window size for the smoothing as well.

  11. Sanan4li commented on Jul 11, 2023

    @Sanan4li

    Waiting for this feature to be added. I also need a memory limit alert because my system gets stuck after 98% memory use. The linux is not as good as windows in memory management.

  12. hyuri commented on Jul 11, 2023

    @hyuri

    Waiting for this feature to be added. I also need a memory limit alert because my system gets stuck after 98% memory use. The linux is not as good as windows in memory management.

    This was happening to me too. Adding an aggressive zram configuration solved it on Pop!_OS 21.10, and 22.04 now comes with zram pre-configured.

  13. changed the title [-]Thresholds & Alarms[/-] [+]Thresholds, Alarms and Colors[/+] on Jan 6, 2024
  14. added this to the Upcoming milestone on May 4, 2024
  15. rwrnet commented on Dec 23, 2025

    @rwrnet

    I created a small functional prototype, and I like to gather some feedback. See screenshot attached.
    Image
    I covered temperature and memory-percentage.
    The alert threshold is configured in the sensor preferences.
    The style is fix for now: background-color: rgba(255, 0, 0, 0.3);

  16. corecoding commented on Dec 23, 2025

    @corecoding
    Owner
  17. rwrnet commented on Dec 24, 2025

    @rwrnet

    The threshold is set on a sensor level. The handling is encapsulated in an internal method _applyAlertStyling in extension.js with a type switch to handle temperature (millidegrees) and memory (percentage) differently. The method is triggernd inside _updateDisplay, which needed to get the numeric value for comparison and the format in its items. This adjustment feels hacky. So happy to build it from scratch, if you already have a different architecture in mind.

  18. corecoding commented on Aug 1, 2026

    @corecoding
    Owner

    merged code into main branch with new preferences window and color / alert threshold

  19. corecoding commented on Sep 5, 2026

    @corecoding
    Owner

    added color support. We can open another ticket for other features if there is demand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions