Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions sensors.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,19 @@ export const Sensors = GObject.registerClass({
}).catch(err => {
// nothing to do, keep old value displayed
});
// GTT (Graphics Translation Table) memory - system RAM accessible by the GPU.
// Particularly useful for AMD APUs (e.g. Strix Halo, Rembrandt, Phoenix)
// where GTT memory can be significantly larger than dedicated VRAM.
new FileModule.File('/sys/class/drm/card'+i+'/device/mem_info_gtt_used').read().then(value => {
this._returnGpuValue(callback, 'GTT Used', parseInt(value) / unit, typeName, 'memory');
}).catch(err => {
// not all AMD GPUs expose GTT info, silently ignore
});
new FileModule.File('/sys/class/drm/card'+i+'/device/mem_info_gtt_total').read().then(value => {
this._returnGpuValue(callback, 'GTT Total', parseInt(value) / unit, typeName, 'memory');
}).catch(err => {
// not all AMD GPUs expose GTT info, silently ignore
});
} else {
// for other vendors only show basic card info
let vendorName = null;
Expand Down