Eraden / amdgpud

MIT License
191 stars 11 forks source link

Integration with fancontrol-gui/kcm ? #30

Closed unfa closed 2 years ago

unfa commented 2 years ago

fancontrol-gui is a very nice visual front-end to fancontrol. fancontrol-kcm integrates fancontrol-gui with KDE Control Center which is even better, as it allows the user to have all the settings integrated in one place.

The problem is - fancontrol doens't allow specifying a curve. Only a linear function.

image

amdfand fills that gap, but I wasn't able to find a visual tool for it. Maybe some collaboration between the projects could be done to integrate all the best features?

Eraden commented 2 years ago

To be honest I'm planning to create GUI and even started investigating egui since it has potting. Second step is checking if druid could be better.

But I'll check what I can do for fancontrol-gui and fancontrol-kcm

olielvewen commented 2 years ago
Maybe some collaboration between the projects could be done to integrate all the best features?

@unfa 

Excellent idea. The interface is rather pleasant and functional. In addition, it will avoid too much work to Eraden.

This solution will quickly provide an interface that can serve as a starting point for Eraden if he still wants to create his own interface in Rust.

Eraden commented 2 years ago

@olielvewen @unfa

Please check this: https://github.com/Eraden/amdgpud/tree/gui-app/amdguid

Is this temporarily ok with you? Drag & drop of plot is working (buggy but I want to concentrate on kcm plugin so it must wait)

olielvewen commented 2 years ago

@Eraden 

Great. What is the process to test all this ? Thanks

Eraden commented 2 years ago

@olielvewen

Ubuntu binaries

https://github.com/Eraden/amdgpud/actions/runs/1760759493

Arch Linux binaries

https://static.ita-prog.pl/archlinux-amdgui.zip

From source

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default nightly
git clone https://github.com/Eraden/amdgpud.git
git checkout gui-app
cargo build --release

Running

Then:

sudo ./amdfand service
sudo ./amdgui-helper
loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'

If you got wayland you should use wayland, otherwise you need glium

./amdguid

There's /tmp/amdgui-helper.sock file which is communication channel between helper and local host application so you can implement you in other way.

HELP, I'M LOST

olielvewen commented 2 years ago

Hi @Eraden ,

I come back on this computer today.

Firstly, I'm running on Manjaro Cinnamon last kernel with a graphic card Gigabyte RX 5500 XT 8 Go and Xorg.

I run into an issue directly. I can't run amdfand in a terminal opened in the archlinux folder (and unzip gluim)

sudo ./amdfand service
sudo: ./amdfand : commande introuvable

After I have tried to run amdfand installed on my computer without anysuccess (he was not installed on this computer, In fact, I have already try to use amdfan in live sessions)

sudo amdfand
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ValueAfterTable', /home/eraden/code/eraden/amdgpu/amdgpud/amdgpu/src/utils.rs:95:66
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Abandon

THis command doesn't work (no output)

loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'

I 'm trying to catch you on Discord, nice to have an channel. ^ _ ^

Eraden commented 2 years ago

I think there's something really wrong with upx compression here

Please check those binaries:

https://static-ita-prog.pl/archlinux-amdgui.zip

Or compile release without upx