Skip to content

Commit 7b741e5

Browse files
committed
ram_temp: add jc42 for DDR4
Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
1 parent e6491d2 commit 7b741e5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ Parameters that are enabled by default have to be explicitly disabled. These (cu
439439
| `procmem`<br>`procmem_shared`, `procmem_virt`| Displays process' memory usage: resident, shared and/or virtual. `procmem` (resident) also toggles others off if disabled |
440440
| `proc_vram` | Display process' VRAM usage |
441441
| `ram`<br>`vram` | Display system RAM/VRAM usage |
442-
| `ram_temp` | Display RAM temperature (only supports DDR5 with `spd5118` driver) |
442+
| `ram_temp` | Display RAM temperature (only supports `jc42` (DDR4) or `spd5118` (DDR5) drivers) |
443443
| `read_cfg` | Add to MANGOHUD_CONFIG as first parameter to also load config file. Otherwise only `MANGOHUD_CONFIG` parameters are used |
444444
| `reload_cfg=` | Change keybind for reloading the config. Default = `Shift_L+F4` |
445445
| `resolution` | Display the current resolution |
@@ -686,7 +686,7 @@ Example output:
686686
#### Intel notes
687687
- GPU temperature for `i915` requires **linux 6.13+**
688688
- Fan speed for `i915` requires **linux 6.12+**
689-
- GPU temperature and vram temperature for `xe` requires **linux 6.15+**
689+
- GPU temperature and vram temperature for `xe` requires **linux 6.15+**
690690
- Fan speed for `xe` requires **linux 6.16+**
691691
- GPU usage and memory usage shows usage of current process, not total system usage (it's an issue on intel's side)
692692
- https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14153

src/memory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void update_mem_temp() {
4343
std::string path = "/sys/class/hwmon/";
4444
auto dirs = ls(path.c_str(), "hwmon", LS_DIRS);
4545
for (auto &dir : dirs) {
46-
if (read_line(path + dir + "/name") == "spd5118")
46+
if (read_line(path + dir + "/name") == "spd5118" or read_line(path + dir + "/name") == "jc42")
4747
mem_temp_files.emplace_back(path + dir + "/temp1_input");
4848
}
4949
if (mem_temp_files.empty())

0 commit comments

Comments
 (0)