Commit Graph

458 Commits

Author SHA1 Message Date
Thomas Debesse
8fee2fb964 fix pkexec support and do not call pkexec at all if the install dir is not found (#274) 2023-12-15 10:07:37 +03:00
Thomas Debesse
410cd919dc ask user to install a pkexec policy when running freeipmi with pkexec (#273) 2023-10-23 12:58:47 +03:00
Thomas Debesse
5bb70e20d0 rename “sudo” option as “pkexec” since sudo was replaced with pkexec (#271) 2023-10-23 12:58:30 +03:00
Manuel Selinger
ce5a396397 Address Issues from Review in #267 (#269)
* replace global.log() with logError()

* remove run_dispose calls

    This function should only be called from object system implementations.

https://gjs-docs.gnome.org/gobject20~2.0/gobject.object#method-run_dispose

* use pkexec instead of sudo for ipmi-sensors
2023-10-20 08:53:40 +03:00
Manuel Selinger
4465c14786 Migrate Plugin to Gnome 45 Shell (#267)
* Migrate Plugin to Gnome 45 Shell

* Use TextDecoder instead of ByteArray or toString()

* use the Glib timeout functions

* remove unused imports
2023-10-10 15:06:04 +03:00
Damien Tournoud
54ae50c51b Sort sensor names with the numeric option set (#265)
This allows "Core 3" to sort before "Core 20", instead of the
other way around without the numeric option set.
2023-08-06 12:41:37 +03:00
Sabri Ünal
ecabca02b8 Several translation fixes (#263)
* Fix two typos in three strings

- syetem
- NVidia

* Typo: Fix double "from" usage in prefs.js

* Mark two strings translatable

- Temperature Unit
- Direct

* Update freon.pot file

* Update Turkish translation
2023-05-29 14:24:03 +03:00
Ibrahim Ansari
55bcd7c481 Avoid blocking NVIDIA GPUs from sleeping (#259)
* Only poll NVIDIA GPUs which are awake.

* Slow down polling if an NVIDIA GPU can sleep.
If an NVIDIA GPU is eligible to sleep, i.e. runtime D3 sleep is enabled
and no processes except GNOME or X.org are running, then don't poll the
GPU for at least another 30 seconds.

* NVIDIA: Check for X.org correctly on most distros.
If a distro is naming X.org differently than these common and sensible
names, then we can't detect or account for that in any way unfortunately

* Show N/A instead when NVIDIA GPU is sleeping.
2023-05-17 19:01:17 +03:00
UshakovVasilii
0d39ef0488 update makeZip for po 2023-04-13 14:22:10 +03:00
Ivan Louis Sébastien
c9015badab Gnome Shell 44 Support (#257) 2023-03-29 10:55:29 +03:00
Amerey
624e52255f czech translation (#255) 2023-03-29 10:53:26 +03:00
UshakovVasilii
4c86f2c360 revert po files 2023-03-22 09:20:00 +03:00
Nicolas Frenay
f2c0c94d89 Add AMD PPT average power sensor (#249) 2022-11-09 11:18:02 +03:00
kaduvert
5275a093ea places the temperature in the center of the icon box instead of at the left start (#247) 2022-10-17 09:54:19 +03:00
Erick Howard
9939f2888a Update screenshots in wiki (#246)
Co-authored-by: Divine Bicycle <divine-bicycle@proton.me>
2022-09-28 09:23:31 +03:00
jssotomdz
c655ccb6cf Add Gnome Shell 43 compatibility (#245) 2022-09-22 15:39:51 +03:00
polter
dab42ffc5c nvidiaUtil: code cleanup, fix recognizing the card (#242)
Since the card list is populated only in constructor, to update it we
had to toggle "Nvidia" switch `on`->`off`->`on`.

The fix is to get the temperature along with the card name in one
`nvidia-smi` call.

Also some code cleanup was made, removed old unused code.

Fixes #241

Signed-off-by: Pavel Artsishevsky <polter.rnd@gmail.com>
2022-07-09 08:21:51 +03:00
Sync1211
2dfe76624f * Fixed incorrect class name for nvidiabumblebee being used in _updateDisplay() (#238) 2022-05-16 17:00:26 +03:00
joickle
dab4b63c2e Add space to rpm (#231) 2022-04-08 16:06:19 +03:00
UshakovVasilii
3ea64e3739 update gitignore for po 2022-03-27 20:00:48 +03:00
UshakovVasilii
4aafc9f670 remove po folder 2022-03-27 20:00:10 +03:00
KuroeHanako
05c7aa96d8 Add Korean Translation (#229) 2022-02-22 17:19:40 +03:00
Shem Pasamba
010c363d9b Add 42 since it works there too (#228) 2022-02-05 12:26:11 +03:00
Thomas Debesse
f3afa64c8b prefs: revamp the preference window and make various providers selectable independently, ref #223 (#226) 2021-11-21 15:29:06 +03:00
Thomas Debesse
e4bc02da10 freeipmiUtil: implement IPMI reading using ipmi-sensors from FreeIPMI project (#220)
Also add an option tu use sudo non-interactively.
2021-11-20 09:27:18 +03:00
Vasilii
308dfb9fbe Revert "prefs: revamp the preference window and make various providers selectable independently, ref #223 (#224)" (#225)
This reverts commit a5488c23c3.
2021-11-20 09:27:08 +03:00
Thomas Debesse
a5488c23c3 prefs: revamp the preference window and make various providers selectable independently, ref #223 (#224) 2021-11-20 09:13:58 +03:00
Thomas Debesse
c66b63d92d bikeshedding: fix some indentation discrepancies (#222) 2021-11-18 17:03:05 +03:00
Thomas Debesse
dbf90c6145 smartctlUtil: do not reference error when not failing, do not return empty data if none (#221)
The `smartctl -j --scan` command may not fail and list drives properly
while `smartctl -j --info /dev/sda` may fail because of missing
permissions.

This error was making the extension on fail entirely when smartctl
was selected as a disk temperature sensor provider while the
user does not have enogh permission to do so.

Also makes sure smartctl can be properly called if path contains
a whitespace.
2021-11-18 17:02:41 +03:00
Thomas Debesse
65fd12d1c4 extension: only display liquidctl fan and voltage if related options are enabled (#219) 2021-11-18 14:19:26 +03:00
Jonas Malaco
84021045ee sensorsUtil: read nvme sensors as disk temperature sensors (#218)
Extend e8848c2baa ("sensorsUtil: read drivetemp sensors as disk
temperature sensors (#217)") to also identify NVMe temperature sensors.
2021-11-18 07:54:34 +03:00
Thomas Debesse
e8848c2baa sensorsUtil: read drivetemp sensors as disk temperature sensors (#217) 2021-11-17 16:10:36 +03:00
Adam
a11b1ea1de fix average and temperature sensors (#214)
* fix average and temperature sensors

Get length except for any temp equal to 0

* fix average of temperature (liquidctl sensors)
2021-10-18 08:36:29 +03:00
UshakovVasilii
3c3d01a54a add shell version 41 2021-09-30 09:22:38 +03:00
Jonas Malaco
1730654c55 liquidctlUtil: add support for sensors from liquidctl (#202)
Requires liquidctl v1.7.0 or later, or a current git snapshot.
2021-07-20 13:01:50 +03:00
Ashesh Singh
a3eb96ff7c Left align Pop-up menu items (#205)
* Left align FeronItem

* Left align static Pop-up menu items
2021-05-27 12:12:56 +03:00
Vasilii
89b6f71528 Merge pull request #204 from ashessin/patch-1
Ease GNOME shell version in metadata.json
2021-05-25 06:26:57 +03:00
Vasilii
09db210ef5 Merge pull request #203 from Valent-in/master
remove redeclaration of _onDestroy()
2021-05-25 06:26:24 +03:00
Ashesh Singh
5e42baea87 Update metadata.json 2021-05-23 18:02:15 -05:00
Valentin
626a79be6e remove redeclaration of _onDestroy() 2021-05-23 16:23:22 +03:00
Vasilii
7a2e47b992 Merge pull request #201 from jonasmalacofilho/only-parse-sensors-json-once
Only parse the JSON from sensors once
2021-04-28 18:34:02 +03:00
Jonas Malaco
824282e0d6 sensorsUtil: prevent re-parsing of the JSON output 2021-04-28 06:38:29 -03:00
Jonas Malaco
cb33301cc7 commandLineUtil: toggle _updated after the callback returns
The callback can be used to process the received data a single time, and
in that case this._updated should only be toggled after the callback has
completed, since other methods may depend on its side effects.

In other scenarios the order does not matter (either way).
2021-04-28 06:38:29 -03:00
Vasilii
0fe773b35a Merge pull request #200 from andyholmes/use-gsubprocess
commandLineUtil: refactor to use GSubprocess
2021-04-27 20:13:42 +03:00
Andy Holmes
e37b6c6c6e commandLineUtil: refactor to use GSubprocess
This means doing all IO in a background thread, rather than popping
lines synchronously off a pipe.
2021-04-25 21:49:36 -07:00
Vasilii
3222eb7bfa Merge pull request #198 from audreytoskin/locale
More consistent .mo file names
2021-04-24 07:54:55 +03:00
Audrey Toskin
e29ce35aae More consistent .mo file names
Every other compiled locale file uses the name "freon.mo" under the
relevant language-specific directory, so Turkish should too.
2021-04-20 10:52:21 -07:00
Vasilii
457aac45e8 Merge pull request #197 from brianegan/gnome-forty
Update to Gnome Forty
2021-04-12 18:59:19 +03:00
brianegan
8e24564722 Update to Gnome Forty 2021-04-01 14:14:05 +02:00
Vasilii
19464d4e70 Merge pull request #191 from Vistaus/master
Added Dutch translation
2020-11-01 18:55:56 +03:00