Skip to content

Avoid exiting when CPU power sensor is unavailable - #113

Open
Acruzmon wants to merge 1 commit into
Nortank12:mainfrom
Acruzmon:fix-amd-missing-power-sensor
Open

Avoid exiting when CPU power sensor is unavailable#113
Acruzmon wants to merge 1 commit into
Nortank12:mainfrom
Acruzmon:fix-amd-missing-power-sensor

Conversation

@Acruzmon

Copy link
Copy Markdown

Summary

Avoid terminating the application when the Intel RAPL CPU power sensor is unavailable.

The current implementation exits when this path cannot be read:

/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj

This prevents the display from receiving any data on AMD systems where Intel RAPL is not present.

Change

Return a fallback power value of 0 instead of exiting the process when the power sensor cannot be read.

Tested on

  • DeepCool AK620 G2 DIGITAL NYX
  • AMD Ryzen 7 9850X3D
  • Bazzite 44 / Fedora 44
  • deepcool-digital-linux v0.10.6-alpha

The display now starts correctly and continues updating automatically through a systemd user service.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant