mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
fix power output
This commit is contained in:
parent
825e7cace8
commit
3af0288836
2 changed files with 11 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ In order to get the power monitoring output you'll need to give the palantir use
|
|||
|
||||
- Create `/etc/udev/rules.d/99-powermonitoring.rules` with
|
||||
```udev
|
||||
SUBSYSTEM=="powercap", ACTION=="add", RUN+="/bin/chgrp -R powermonitoring /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
|
||||
SUBSYSTEM=="powercap", ACTION=="add", RUN+="/bin/chgrp -R powermonitoring /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
|
||||
SUBSYSTEM=="powercap", ACTION=="change", ENV{TRIGGER}!="none", RUN+="/bin/chgrp -R powermonitoring /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
|
||||
```
|
||||
|
||||
|
|
@ -24,11 +24,11 @@ In order to get the power monitoring output you'll need to give the palantir use
|
|||
- Add your user to the group
|
||||
|
||||
```
|
||||
sudo usermod -a G powermonitoring palantir
|
||||
sudo usermod -a -G powermonitoring palantir
|
||||
```
|
||||
|
||||
- Verify that you can read energy usage
|
||||
|
||||
```
|
||||
sudo su - palantir -c 'cat /sys/class/powercap/intel-rapl:0:0/energy_uj
|
||||
sudo su - palantir -c 'cat /sys/class/powercap/intel-rapl:0:0/energy_uj'
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue