Thursday, May 2, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 5803  / 3 Years ago, tue, may 25, 2021, 9:38:29

After seeing a question here



I want to have a configuration in my Ubuntu system so that if the cpu processing exceeds 90%, it gives a beep sound. Is this possible?



Also, where else can this beep sound be used? Can it be used if the hard disk utilisation exceeds 80% ?


More From » indicator-sound

 Answers
6

I want to have a configuration in my Ubuntu system so that if the cpu processing exceeds 90% it gives a beep sound. Is this possible?




Yes. I wrote a script that plays a notification sound when CPU load average exceeds 90% (accounting for all cores).



The system speaker is, by default, disabled on Ubuntu systems, hence using one of the standard notification sound seems a better choice for this.



To run it, simply download the script (save it as notify-highload.sh), and copy to your home directory. Then, from a terminal, run chmod +x ./notify-highload.sh, followed by ./notify-highload.sh -ag &.



If you want it to run every time on start up, add the script to your Startup Applications.




Also, where else can this beep sound be used? like can it be used if the Hard Disk space exceeds 80%.




Yes, it can. I wrote a script available here.



I will add a few more later on.


[#29351] Thursday, May 27, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
skaing

Total Points: 462
Total Questions: 124
Total Answers: 113

Location: Nauru
Member since Thu, Feb 2, 2023
1 Year ago
skaing questions
;