r/ArduinoProjects • • Jan 20 '23

First project, glad it worked aswell on linux

Post image
188 Upvotes

20 comments sorted by

12

u/Goliadthedark Jan 20 '23

Hmm... πŸ€” your card is overclocked and this cool af? Respect. 700% and only 32 degree πŸ‘πŸ» πŸ˜†

Nice project πŸ‘πŸ»

6

u/itouchdennis Jan 20 '23 edited Jan 20 '23

Just the fps thing wont work, need to check how to read it from the cli, but looks nice now :)

/img/mut8cy9w2bda1.jpg

PS Maincode was from this project:

https://www.instructables.com/PC-Hardware-Monitor/

This and added own shell code for data transfer, guess vb would not work that easy on linux

2

u/Goliadthedark Jan 21 '23

I would change the sign before the 700 to because it's the same sign like the cpu usage. Maybe a ⚑ symbol or so. Just my thoughts.

really great project πŸ‘πŸ» well done.

2

u/itouchdennis Jan 21 '23

Thanks! Check the screenshot I attached, I changed it to mV so I always know how many money I burn while I am gaming πŸ˜‚

Eidt: I might Edit the left icon for the voltage so there will be another sing, good point!

2

u/Goliadthedark Jan 21 '23

Yeah I saw it. Looks really great.πŸ‘πŸ» I mean the sign before. This wave in a box sign because it is a sign for Hz. But you don't have to it looks really great and I would do the same if I had a show case. I wish you luck for finding the fps for the sign. Maybe you get it from afterburner or so πŸ€”

1

u/FredC123 Jan 21 '23

Which cooler is that?

2

u/itouchdennis Jan 21 '23

Aquacool xp3 light

1

u/itouchdennis Jan 20 '23

Yeah the graphsimage not correct should be mv :)

5

u/LameBMX Jan 20 '23

Nvidia on linux was the real challenge. dont lie

2

u/itouchdennis Jan 20 '23

Well EndeavourOS make it easy tbh, but well linux overall has some tricky points

2

u/LameBMX Jan 21 '23

It's easier with Radeon :)

Don't know if will help you. There is a core belief structure to linux that is polar opposite from windows.

Windows - program grows until it does email.

Linux - program does exactly one thing.

With Linux it's a lot about the chain of programs involved to accomplish something. As some years tick by things get a lot easier as brain starts to recognize how the things connect.

Before people fire up about, functionally windows has moved to a quite similar setup, but still does a better job of welding the hood shut to people.

2

u/itouchdennis Jan 21 '23

Yeah sure.

For me the tricky parts where running linux as a daily driver. On servers I did it for years now (working 9-5 with debian severs).

Might be nvidia related, but Desktop wayland / Xorg and the compositors was driving me Crazy until I found the for me working game settings. Had now a gamemode ini script which toggles compositor modes.

Also I have a water temp sensor from Aquacomputer. On windows this device had no driver back in the days. Found a github projekt with similair drivers and helped them to create a driver while I learned to use usb wireshark.

I understand the principal of linux. Sometimes things are tricky when they are not 100% designed for linux, well as nvidia (undervolting was a mess, but at least possible). But my system is now very stable and I love it, deleted my windows partition instantly as I checked out that my fav. Games works well. I mean, I just got hacked on windows (I would say I am not the average user) and after that I reinstalled windows, checked my netstats and wiresharked my idle network… holy F*** I was getting so paranoid by the windows traffic sended to MS I disabled many services, did some registry hacks and used anti bloadware tools. Then the system was β€žcleanβ€œ but 60% of the features not working anymore.

Linux take some time to get into but then its clear, you got devices? Well its there as a file, if you want to interact, just speak with them. Learning the Filesystem structure was the biggest part for me helping to understand how linux was build/designed for.

2

u/LameBMX Jan 21 '23

The following should make for a nice read then. Currently, the gui tidbits, as you are likely aware, are in a bit of Flux. It's probably a tougher time to jump off with Nvidia. As with Radeon, I have to occasionally select a different proton version in steam. But I was there shortly after the compositor was coined and the various bleeding edge shenanigans along the path to what's now some check boxes in the DE's settings. Heck, I can even remember what xorgs counterpart was back then X11 or something. Regardless, Wayland is in, and xorg is on its way out.

https://wiki.gentoo.org/wiki/Handbook:AMD64

While that won't apply to your system, give it a read. Gentoo is about choice, and the manual spins off to many various top-level options.

Edit In case you don't already know, don't go applying gentoo stuff willy nilly in your environment. Various distros do things differently.

2

u/itouchdennis Jan 21 '23

Thank you for the info and the link! Currently I am getting friendly with the arch wiki and trying to improve my tech skills as well as my English. So as far as I know yet, there is no "single way" to reach a goal in linux (For sure, also in life.).

I know that wayland is the future and AMD is currently leading under linux (hate mysefl that I bought the card, but it was a "windows" decision I made).

I tried some under wayland, got also some fixes for things not working, but at least for now I will sit on Xorg, there are some "bugs" that happen in wayland (must not 100% a wayland issue, as applications e.g. on electron source or similar are simple bad or not designed for the "linux way") I can not undervolt my card out of the box on wayland. Nvidia is disabling the overclock settings until a xorg flag is set "coolbit 8"... well I read something that I could start into wayland, starting then a tty and a minimal WM on xorg, setting the bit and go back to nvidia settings, undervolt the card.

I think this may work, but for now I wont do the tricky workaround part, until its not necessary. Might be other in 6 months, maybe I sold my nvidia card until then, maybe drivers are more open source or at least have more wayland support. On my work-desk I am already on wayland, its smooth.

Anyway, thank you for your outlook! :)

0

u/Not_AshAndUmbreon Jan 20 '23

might i ask what you mean? ive had no issues with my 2060 and linux together yet

4

u/Responsible_Doubt374 Jan 20 '23

Very nice! How do you read the data to display? Did you make the ui?

3

u/itouchdennis Jan 20 '23

https://www.instructables.com/PC-Hardware-Monitor/

UI from here, data via shellscripts instead of the attached VB script.

I might push the code these days on github, nothing special and kinda dirty now, but well - it works for me :D

2

u/itouchdennis Jan 21 '23

PS: actually I just grap and cat and cut the strings I want together in a shell script, then passing them to the arduino via echo. lm_sensors and nvidia-smi to get sensor data.