r/ArduinoProjects • u/itouchdennis • Jan 20 '23
First project, glad it worked aswell on linux
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
1
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
1
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.
12
u/Goliadthedark Jan 20 '23
Hmm... π€ your card is overclocked and this cool af? Respect. 700% and only 32 degree ππ» π
Nice project ππ»