Add more README

This commit is contained in:
Adrian Woźniak 2022-09-14 17:06:58 +02:00
parent 327bfcab0c
commit b97b96097c
No known key found for this signature in database
GPG Key ID: 0012845A89C7352B
2 changed files with 17 additions and 2 deletions

View File

@ -118,11 +118,26 @@ cd /opt/amdguid
#### SystemD files #### SystemD files
Depends Depends on what you actually need select which application you are using you need to copy service file to systemd directory.
* For `amdfand` you need `amdfand.service`
* For `amdmond` you need `amdmond.service`
* For `amdguid` which will use `amdfand` you need `amdfand.service` and `amdgui-helper.service`
* For `amdguid` which will use `amdmond` you need `amdmond.service`
You need `amdgui-helper.service` because GUI client does not have `root` privileges, so it can't write new config file, and it can't check if process is still alive.
``` ```
# cp ./services/amdmond.service /usr/lib/systemd/system/amdmond.service # cp ./services/amdmond.service /usr/lib/systemd/system/amdmond.service
# cp ./services/amdvold.service /usr/lib/systemd/system/amdvold.service # cp ./services/amdvold.service /usr/lib/systemd/system/amdvold.service
# cp ./services/amdgui-helper.service /usr/lib/systemd/system/amdgui-helper.service # cp ./services/amdgui-helper.service /usr/lib/systemd/system/amdgui-helper.service
# cp ./services/amdfand.service /usr/lib/systemd/system/amdfand.service # cp ./services/amdfand.service /usr/lib/systemd/system/amdfand.service
```
After you copied service files you need to activate services
```
# systemctl enable --now amdmond
# systemctl enable --now amdfand
# systemctl enable --now amdgui-helper
``` ```

View File

@ -74,7 +74,7 @@ pub fn run_app(amd_gui: Arc<Mutex<AmdGui>>, _receiver: UnboundedReceiver<bool>)
let physical = { let physical = {
let mut v = PhysicalDevice::enumerate(&instance).collect::<Vec<_>>(); let mut v = PhysicalDevice::enumerate(&instance).collect::<Vec<_>>();
v.sort_by(|a, b| a.api_version().cmp(&b.api_version())); v.sort_by_key(|a| a.api_version());
v.remove(0) v.remove(0)
}; };