#linuxcnc Logs

Dec 10 2024

#linuxcnc Calendar

01:12 AM roycroft: well, at least with the bridge down the cars can cross it
01:45 AM Deejay: moin
04:39 AM Tom_L: morning
05:23 AM -!- #linuxcnc mode set to +v by ChanServ
05:35 AM -!- #linuxcnc mode set to +v by ChanServ
06:23 AM JT-Cave: morning
06:45 AM rdtsc-wk: morning. Roycroft, pulled seven CAT-6 through the eaves, then attic, then fished through a wall into the basement, for PoE IP cameras... was a job
07:09 AM JT-Cave: rdtsc-wk, what do you use to view the cameras?
07:10 AM memleak: i tried getting zoneminder working for mine but the docs don't cover 80% of how to get it started.
07:10 AM memleak: they basically expect you to know mysql or whatever
07:11 AM memleak: worst docs i ever saw
07:11 AM rdtsc-wk: one of those dedicated DVR boxes; records all 24/7 onto two large hard disks. they are finnicky at best
07:13 AM JT-Cave: I have a pyqt program that shows mine but it crashes a lot
07:14 AM rdtsc-wk: thought about using the bluesky (sp?) software, but figured the dedicated hardware would work better
07:14 AM rdtsc-wk: use this and several webcams at work: https://www.ispyconnect.com
07:15 AM rdtsc-wk: been a year and not a single spool of 3D filament has mysteriously came up missing :)
07:17 AM rdtsc-wk: naw nobody would take those here, but the printer on the other hand... X1 Carbon is expensive and carry-able - if that ever comes up missing even at 3am, we'll see 'em
07:18 AM memleak: ispyconnect is the old version of agentdvr
07:18 AM rdtsc-wk: right, yup newer is better (arguably)
07:19 AM rdtsc-wk: guess I did upgrade it to AgentDVR. One of the usb wecams likes to drop it's audio randomly... have to reconnect it weekly
07:20 AM rdtsc-wk: AgentDVR is nice on a laptop... just leave it running with the screen blanked
07:23 AM rdtsc-wk: one day when I was about 25, looked out the window into a park and saw some large square-looking thing. Walked up to it, and it was the guts of an ATM all broken to bits and money gone. Called the police and that bank, whom were there in 3minutes
07:25 AM rdtsc-wk: (back when there were police)
07:27 AM rdtsc-wk: JT I think anything pyqt would have to be "hardened" to handle video; monitoring loops and lots of try-catch
07:48 AM memleak: agentdvr is nice, you dont need to work a database or anything :)
08:11 AM JT-Cave: https://pasteboard.co/f8Uf4i3YAmr2.png
08:11 AM JT-Cave: finally got the spinbox to style like I want it
08:12 AM rdtsc-wk: oh, nice! :)
08:13 AM rdtsc-wk: with all the blues, this might end up being the Winter2024 theme :)
08:16 AM JT-Cave: thanks
08:20 AM Tom_L: lookin good
08:24 AM JT-Cave: https://pasteboard.co/dH9u1SPKZXVE.png
08:24 AM JT-Cave: only have the combo box to finish now
08:26 AM Tom_L: takes a bit to find em all
08:27 AM Tom_L: i found you can't round side tabs. either top or bottom like you did
08:37 AM memleak: is that flexgui?
08:40 AM Tom_L: yessir
08:41 AM memleak: i want to make sure that works on the gentoo image i'm working on, are there docs on how to build and install it?
08:41 AM memleak: readme here is not helpful: https://github.com/jethornton/flexgui
08:42 AM memleak: oh it links to the docs, i see
08:42 AM memleak: https://gnipsel.com/linuxcnc/flexgui/install.html only covers apt and deb, how do i build from source?
08:43 AM memleak: i can write a gentoo package for it :)
08:44 AM memleak: i just realized there's no makefile
08:45 AM rdtsc-wk: it's built from the debian packaging tool if I recall correctly
08:46 AM rdtsc-wk: might need to write a basic makefile for gentoo (unsure)
08:48 AM memleak: there's no debian/configure file either
08:49 AM rdtsc-wk: nope it's just a single terminal command; touches stuff in /debian lightly and that's it
08:50 AM memleak: OH! Is it that easy? it's all python drop-in binaries? I just saw debian/install and dug through the source and they're all just python files
08:50 AM rdtsc-wk: python FTW :)
08:51 AM bjorkintosh: Python. it's not a harmless pet snake, it's TITANABOA!!!
08:52 AM rdtsc-wk: https://i.ytimg.com/vi/QOhEZlnYnUI/maxresdefault.jpg
08:52 AM bjorkintosh: yes.
08:53 AM bjorkintosh: it was a harmless pet when it was still 1.4
08:53 AM bjorkintosh: no longer.
08:56 AM memleak: https://pastebin.com/Fk5XQtZ1
08:57 AM memleak: so that's all it takes?
09:00 AM rdtsc-wk: JT will have to confirm; only he knows it well enough
09:00 AM memleak: ok, if so, it'll take me 2 secs to package that up for gentoo
09:02 AM memleak: writing gentoo packages is really easy because it's basically bash but you use the gentoo commands like `dobin` instead of `cp` for example
09:03 AM memleak: it's all done in a sandbox first using your script, then portage takes over and does the actual install.
09:04 AM bjorkintosh: 'dobin'.
09:04 AM bjorkintosh: what does that mean?
09:04 AM bjorkintosh: dob in. do bin?
09:05 AM memleak: https://devmanual.gentoo.org/function-reference/install-functions/ -> dobin -> nstall a binary into subdirectory bin of the location provided by into (resulting in /usr/bin by default) with mode 0755 and with ownership set to superuser or its equivalent on the system or installation at hand
09:06 AM memleak: if it's outside of /usr/bin though you can just use `cp` like i did here for AMD AOCC (AMD Optimizing C/C++ Compiler): https://github.com/NTULINUX/ntu_overlay/blob/main/sys-devel/aocc-compiler/aocc-compiler-5.0.0.ebuild
09:08 AM memleak: it's super easy :D
09:11 AM JT-Cave: memleak, in debian flex gets installed like this https://github.com/jethornton/flexgui/blob/master/debian/install
09:11 AM memleak: yeah i turned that exact file into bash, just want to make sure it looks good to you
09:12 AM memleak: or if i'm missing anything
09:12 AM rdtsc-wk: Looks like (according to last post here) https://forum.linuxcnc.org/18-computer/47699-gentoo gentoo needs extra stuff (packages assumedly) to run LinuxCNC
09:13 AM memleak: i already have a linuxcnc package that works with gentoo
09:14 AM memleak: two of them actually, latest 2.9 checkout and master checkout: https://github.com/NTULINUX/ntu_overlay/tree/main/sci-electronics/linuxcnc
09:14 AM memleak: both work but the sim axis is broken, sim lathe works which leads to believe that it's an upstream bug in sim axis
09:15 AM memleak: https://github.com/LinuxCNC/linuxcnc/issues/3205
09:15 AM memleak: that issue doesn't seem gentoo specific to me at all but a hal configuration issue from upstream
09:19 AM * JT-Cave heads to work
09:20 AM memleak: i'm going to test flexgui today
09:26 AM * rdtsc-wk wishes good luck, and is excited to see what can be done with it :)
09:28 AM memleak: oh, i won't be building anything with it, just making sure it starts on gentoo for the image i'm working on
09:28 AM memleak: that way _other_ people can use it :)
09:29 AM memleak: brb rebooting
09:30 AM rdtsc-wk: any way to have it pull updates from git into gentoo? have debian repo working
10:27 AM Tom_L: memleak, there are quite a few examples included with the flex install
10:29 AM Tom_L: you should try it :)
10:44 AM memleak: yeah working on it!
10:44 AM memleak: going to test the sample configs
10:46 AM JT-Cave: well no work today they are jack hammering concrete
10:46 AM Tom_L: replacing something?
10:47 AM JT-Cave: they are putting in some kind of drain channel
10:49 AM Tom_L: doc says i may make it a while.. just got back from that
10:52 AM JT-Cave: that's good
10:54 AM Tom_L: considering where the bp was a month ago yeah
10:55 AM rdtsc-wk: coding those probe and thread routines may have helped :)
11:01 AM Tom_L: that was just fun
11:41 AM skunkworks: no turning back now..
11:41 AM skunkworks: https://photos.app.goo.gl/roGrmnscU1pF1mtY7
11:41 AM skunkworks: https://photos.app.goo.gl/dQqcFS6EkhuTiyXJ7
11:42 AM skunkworks: https://photos.app.goo.gl/8W3cZyGDQiEPKEHo7
11:42 AM rdtsc-wk: awwww shiznit... looks like it's gonna be a golden throne once done
11:44 AM rdtsc-wk: all-new
11:57 AM skunkworks: mostly new
11:57 AM skunkworks: newish
11:57 AM skunkworks: some stuff was bought years ago
11:58 AM skunkworks: I think I am running out of co2
11:58 AM skunkworks: I need to keep an eye on it.
11:58 AM skunkworks: maybe if you want to flush hydraulic fluid ;)
12:13 PM memleak: so what latency is pretty much expected with preempt_rt? getting 17 on base, 18 on servo
12:14 PM Tom_L: that's real good
12:14 PM memleak: yay!
12:14 PM Tom_L: did you watch yt & glxgears?
12:16 PM memleak: oof, loading yt got me up to 136/131, i ran timerlat though and these are hardware interrupts, so i think my cpu just doesn't like preempt_rt
12:16 PM memleak: at least not with the 6.12 kernel
12:16 PM Tom_L: makes a difference :)
12:16 PM Tom_L: set isolcpus
12:16 PM Tom_L: and try again
12:16 PM memleak: i did, on all of them except 0
12:17 PM memleak: and rcu_nocbs and nohz_full
12:18 PM memleak: moves RCU and timer ticks to CPU 0
12:18 PM memleak: hrtimer is what's killing me
12:19 PM Tom_L: all i do is isolcpus, idle=poll and quiet
12:19 PM memleak: did that too
12:19 PM Tom_L: not nearly as kernel savvy as you
12:20 PM memleak: with a trace like this, i'm screwed: https://pastebin.com/UVwpVeev
12:21 PM memleak: that's the kernel's high resolution timer and apic crap
12:22 PM Tom_L: are you trying to set up a machine or just use sims?
12:22 PM memleak: so it'll have to be tested on intel platforms and other non-ryzen cpus
12:23 PM memleak: just sims, working on the gentoo image for linuxcnc users to control actual machines
12:23 PM Tom_L: yeah i keep forgetting
12:23 PM memleak: it's ok! :)
12:38 PM roycroft: my laser head is on its way to portland now
12:38 PM * roycroft wonders if the usps will ever get it together
12:50 PM bjorkintosh: yes. after the 25th of December.
12:50 PM bjorkintosh: before then, it's a delivery lottery.
01:00 PM rdtsc-wk: memleak those timings will be fine for any Mesa card; only could become an issue if using (the ancient, legacy) parallel port
01:01 PM memleak: ok, cool!
01:01 PM rdtsc-wk: nobody (sane) is going to try watching YT while milling :)
01:01 PM memleak: also flexgui is expecting dpkg-query which gentoo does not have
01:02 PM memleak: yeah without YT it stays below 20 for a very long time, haven't run it overnight yet
01:02 PM roycroft: sounds like an opportunity for you to make a gentoo distro, memleak
01:02 PM rdtsc-wk: dpkg sounds like an artefact from the debian build system
01:02 PM roycroft: dpkg is still commonly used
01:03 PM memleak: it is but gentoo doesn't have it, got a trace though
01:03 PM Tom_L: dpkg-buildpackage
01:03 PM memleak: JT-Cave, https://pastebin.com/eSnDL5FG
01:03 PM rdtsc-wk: https://manpages.debian.org/bookworm/dpkg/dpkg-query.1.en.html
01:05 PM rdtsc-wk: hmm maybe there is a more agnostic way of testing for flexgui
01:07 PM Tom_L: Portage: The official package manager and distribution system for Gentoo
01:07 PM Tom_L: maybe you can switch the build to that?
01:07 PM memleak: this fix didn't work for some reason: https://pastebin.com/89yBrXFJ
01:08 PM memleak: portage is gentoo specific, it's a from-source package builder, doesn't use .debs
01:08 PM Tom_L: mmm
01:09 PM memleak: i commented out the stuff in a way it should have worked, but now i get: AttributeError: 'flexgui' object has no attribute 'flex_version'
01:09 PM memleak: but self.flex_version = 'Unknown' is set
01:09 PM rdtsc-wk: Definitely JT territory now :)
01:09 PM memleak: heh
01:10 PM memleak: i wrote a gentoo package for flexgui and it works though, all the files are where they should be
01:10 PM roycroft: mission accomplished
01:11 PM memleak: will push once we get past the errors, if possible
01:11 PM rdtsc-wk: maybe try self.flex_version = '1.1.0' but I'm unsure what that value normally is
01:13 PM memleak: line 15 in pastebin: self.flex_version = results.stdout.split()[1]
01:13 PM memleak: same problem
01:15 PM rdtsc-wk: if Tom is free, could put together a small python script to test this and have him try it (I'm not near the machine)
01:15 PM rdtsc-wk: at least get the real value out of it
01:16 PM rdtsc-wk: could be hexadecimal bytes for all I know :)
01:16 PM Tom_L: other than a calling nap...
01:16 PM JT-Shop: memleak, is there a command to reveal that the os is gentoo?
01:17 PM memleak: cat /etc/lsb-release: DISTRIB_ID="Gentoo"
01:19 PM JT-Shop: ok, thanks
01:19 PM JT-Shop: I can fix all the debian specific checks with try: except which will not crash
01:20 PM rdtsc-wk: cat /etc/lsb-release even works on Mabox/Manjaro/Arch :)
01:21 PM rdtsc-wk: oddly, uname -a will show OS, but none of the other common switches show just the OS
01:22 PM JT-Shop: john@machineshop:~$ cat /etc/lsb-release
01:22 PM JT-Shop: cat: /etc/lsb-release: No such file or directory
01:22 PM JT-Shop: debian
01:22 PM * JT-Shop heads to town for now
01:25 PM memleak: damn, having an issue with qtpyvcp too.. qtpyvcp -h works in the python venv but when trying to start qtpyvcp using linuxcnc, i get: Starting DISPLAY program: qtpyvcp Can't execute DISPLAY program qtpyvcp with no other helpful info..
01:27 PM memleak: i'm sure i'll see turboss again though :)
01:29 PM memleak: ah needed to export PATH blah blah
01:29 PM memleak: :( ... ModuleNotFoundError: No module named 'qtpy'
01:30 PM rdtsc-wk: wasn't there another more universal way to check linux version, like in /dev? ahh /proc and others: https://gbtimes.com/how-to-check-linux-version-from-command-line/
01:34 PM memleak: cat /proc/version: Linux version 6.12.4-rt6-RT (root@gentoo-cnc) (clang version 19.1.4+libcxx, LLD 19.1.4) #1 SMP PREEMPT_RT Tue Dec 10 17:38:06 -00 2024
01:34 PM memleak: no gentoo lol
01:34 PM memleak: (except my hostname)
02:01 PM memleak: rebootin
03:16 PM JT-Cave: memleak, can you post in #flex-dev what works for gentoo?
03:30 PM * JT-Shop heads for the big shop to work on the C3 a while
03:38 PM Roguish: JT-Shop, recall I mentioned I've been consulting a little to a Green Hydrogen development company? well, they started layoffs today.....
03:39 PM roycroft: layoffs are often good for consultants
03:39 PM Roguish: roycroft, that's a fact....
03:41 PM Roguish: and all I've been doing lately is a bit of machining... which they have to out-source. can't do it internally
03:43 PM JT-Woodshop: did you get a layoff?
03:44 PM Roguish: lol no not yet....
03:44 PM Roguish: hopefully i'll still do some nickle machining
03:45 PM Roguish: and Elon hates hydrogen. says it's stupid. he's right in most cases...
03:45 PM Roguish: kinda expect all the gov't funding to end soon
03:47 PM Roguish: ok, nap time............. bbl
04:17 PM * roycroft thinks roguish should go into the red hat or bible+constitution business, where there will be plenty of government subsidies available
05:15 PM JT-Shop: upper control arm is apart and ready to clean and paint
05:19 PM * JT-Shop found some notes from when I was building the house and wonders what I was ciphering?
05:20 PM Tom_L: heh
05:20 PM Tom_L: notes relevant to the moment
05:22 PM Tom_L: so you gonna go watch cement dry tomorrow or actually get to work?
05:26 PM JT-Shop: I'm not going down there until they tell me it's safe for me to be in that area
05:29 PM Tom_L: that bp layout you're working on looks nice & clean
05:29 PM JT-Shop: thanks
05:29 PM JT-Shop: got it on the bp
05:30 PM Tom_L: run a part yet?
05:30 PM Tom_L: that's a good sign you got things where you need em
05:31 PM JT-Shop: going to make the stylesheet a theme so it can be selected in the ini
05:31 PM JT-Shop: yup I like controls that I have to touch low
05:39 PM JT-Shop: yup I ran some parts the other day
05:40 PM Tom_L: i think i figured out preempt-rt doesn't like running a parport even if it's got mesa hooked to it
05:40 PM JT-Shop: interesting
05:40 PM Tom_L: RTAI performed much better in that case
05:51 PM -!- #linuxcnc mode set to +v by ChanServ
05:55 PM JT-Shop: getting the 20k service and a recall done on the Ridgeline friday
05:56 PM Tom_L: it's kinda odd for me to get the recall notice for a software update on a vehicle
05:57 PM rdtsc_away is now known as rdtsc
05:57 PM JT-Shop: this is for the back up camera cable
05:57 PM Tom_L: not acustomed to that
05:57 PM Tom_L: the honda has one for the fuel pump i need to schedule
05:57 PM JT-Shop: the C8 has a recall on the OTA update software
05:58 PM Tom_L: they were short on parts and fixed the 'problem' ones first
05:58 PM JT-Shop: same for me
05:58 PM Tom_L: right now we're kinda on baby watch as the niece is due any time
05:59 PM JT-Shop: exciting
05:59 PM Tom_L: will be 3 girls in their house
05:59 PM Tom_L: we watch the 2 during the day
06:00 PM JT-Shop: how old are they?
06:00 PM Tom_L: umm.. 7 & 5 iirc
06:00 PM Tom_L: she's homeschooling them
06:00 PM JT-Shop: fun age... when they know it all it's not fun
06:00 PM Tom_L: tried public for a year and they hated it
06:00 PM Tom_L: right
06:02 PM Tom_L: she moved up from Ga 2-3 yrs back
06:03 PM JT-Shop: with home schooling they don't get the exposure and interaction with other people
06:03 PM JT-Shop: I remember that
06:07 PM JT-Shop: in junior high I had a guy say out loud red on the head like a d..k on a dog and I beat the crap out of him and never had another issue
06:07 PM Tom_L: everybody worried about socialization when we homeschooled our 2 but they do better with ppl than alot of the others we see
06:08 PM Tom_L: and they both graduated hs with 2 associates degrees each to boot
06:08 PM JT-Shop: wow
06:08 PM Tom_L: and the older one has 3 now
06:08 PM Tom_L: due to the pandemic
06:09 PM Tom_L: layoffs etc, since they had govt contracts paid him to go back and learn another skill so now he's in the engineering test lab at a major hvac mfg
06:09 PM Roguish: well, topped out here today at 53 deg
06:46 PM rdtsc: upper 40's here, I'll take it... supposed to cold-snap though
08:10 PM -!- #linuxcnc mode set to +v by ChanServ
08:29 PM Tom_L: memleak,
08:30 PM memleak: thanks!
09:09 PM rdtsc is now known as rdtsc_away
09:37 PM -!- #linuxcnc mode set to +v by ChanServ
10:16 PM memleak: wow exiting a vpn while connected to irc really messes it up for awhile