#garfield Logs

Jan 28 2024

#garfield Calendar

04:00 PM rue_shop4: hard fail on the 3d printed box for the meters
04:12 PM rue_shop4: too big, way too much curl
04:12 PM rue_shop4: lost a lot of platic on that one
04:51 PM rue_shop4: On the 4x8 cnc
04:52 PM rue_shop4: the chain drive parts I chose for the Z leadscrew are no good, one of the plastic sprockets has expanded and nolonger fits the chain properly
04:52 PM rue_shop4: +- motor torque, 1:1 would be ok
04:52 PM rue_shop4: I'd like to use snall V belts but I dont have any
04:53 PM rue_shop4: if I can re-fit it, I could gear it
04:53 PM rue_shop4: decisions decisions
04:54 PM rue_shop4: angle grinder?
04:54 PM rue_shop4: hmmm
05:15 PM rue_shop4: I suppose I could machine a new sprocket, but chains are getting a rep with me for being noisy
06:09 PM Tom_L: ok put an updated monitor on the mill pc but now the parallel port won't connect to the mill
06:09 PM Tom_L: how can i find it in linux?
06:09 PM Tom_L: or diagnose it
06:12 PM Tom_L: looks like i have a couple pci parport cards i may need to try
06:28 PM rue_shop3: what?
06:28 PM rue_shop3: like lcd monitor?
06:28 PM rue_shop3: paralell port to mill!?
06:28 PM rue_shop3: usually parallel port issues are cause some stupid piece of software decided to take it over
06:31 PM Tom_L: how can i find it?
06:31 PM Tom_L: i did lsmod and lspci -v
06:31 PM Tom_L: but it's not telling me much
06:32 PM rue_shop3: hmm
06:32 PM rue_shop3: lsof |grep lp
06:32 PM Tom_dev: i'm not on the problem pc but this one shows parport 81920 3 parport_pc,lp,ppdev
06:32 PM Tom_dev: parport_pc 40960 1
06:32 PM Tom_dev: which is quite similar to the one on the mill
06:32 PM Tom_dev: but no port address
06:33 PM rue_shop3: thtas lsmod
06:34 PM rue_shop3: not lsof
06:34 PM rue_shop3: lsof will tell you who has the parallel port open
06:34 PM rue_shop3: aka, tied up
06:34 PM Tom_dev: tom@bookworm:~$ lsmod | grep lp
06:34 PM Tom_dev: usblp 28672 0
06:34 PM Tom_dev: lp 24576 0
06:34 PM Tom_dev: parport 81920 3 parport_pc,lp,ppdev
06:34 PM Tom_dev: drm_display_helper 212992 1 i915
06:34 PM Tom_dev: cec 65536 2 drm_display_helper,i915
06:34 PM Tom_dev: drm_kms_helper 253952 2 drm_display_helper,i915
06:34 PM Tom_dev: usbcore 393216 5 xhci_hcd,usbhid,usblp,xhci_pci,hid_logitech_hidpp
06:34 PM Tom_dev: drm 720896 16 drm_kms_helper,drm_display_helper,drm_buddy,i915,ttm
06:34 PM rue_shop3: tom no, L S O F, not lsmod
06:34 PM Tom_L: like i said, that's not the problem pc
06:35 PM Tom_L: i did lsof too
06:35 PM Tom_L: very long list of stuff
06:35 PM rue_shop3: lsof will give you a real answer
06:35 PM rue_shop3: you have to grep it for the paralle port
06:35 PM rue_shop3: lsof |grep lp
06:35 PM Tom_L: still a long list
06:36 PM rue_shop3: then grep for parport_pc
06:36 PM rue_shop3: instead of lp
06:36 PM Tom_dev: nothing
06:36 PM rue_shop3: so nothing has the parport OPEN
06:36 PM rue_shop3: on that machine
06:36 PM Tom_dev: nothing with parport either
06:37 PM rue_shop3: if a program is comming up on the toher machine, thats whats causing the issue
06:37 PM Tom_dev: i'll check it in a bit
06:37 PM Tom_dev: it's cold out there
06:37 PM Tom_dev: is isa a one notch card and pci a 2 notch card?
06:37 PM Tom_dev: i have one of each parport cards
06:38 PM rue_shop3: ISA is twice the pin spacing
06:38 PM Tom_dev: in case i need one
06:38 PM rue_shop3: sounds like you have a 3.3V and 5V pci card
06:38 PM Tom_dev: i've no idea
06:39 PM Tom_dev: i gotta do a couple things but i'll work on it here in a bit
06:39 PM rue_shop3: I have to cut a hole in a pulley
06:39 PM Tom_L: would a higher res monitor cause it to remap?
06:39 PM rue_shop3: no
06:39 PM rue_shop3: its totally not related
06:39 PM Tom_L: i swapped monitors but everything else works
06:40 PM Tom_L: bbiab
06:49 PM Tom_L: thing is, it does it on 2 different ssd drives
06:49 PM Tom_L: the old version and the new one
06:59 PM Tom_dev: ok now what?
07:00 PM rue_shop3: so
07:00 PM rue_shop3: in lsof, what mention of a paralle port is there
07:01 PM rue_shop3: its probably cups
07:01 PM rue_shop3: but check lsof
07:01 PM rue_shop3: you want to find anyone is lsof using the parallel port
07:02 PM Tom_dev: nobody is home
07:02 PM Tom_dev: nothing
07:02 PM Tom_dev: tried lp parport_pc parport
07:03 PM Tom_dev: lpt nothing
07:04 PM Tom_dev: lp is a very long list
07:04 PM Tom_dev: libfreeblpriv3
07:04 PM Tom_dev: lots of those with lp in them
07:05 PM Tom_dev: mostly firefox
07:06 PM rue_shop3: ok good
07:06 PM rue_shop3: wait I'm working....open /var/log/
07:06 PM rue_shop3: ...
07:06 PM rue_shop3: hold on
07:06 PM rue_shop3: wait
07:06 PM rue_shop3: wait
07:06 PM rue_shop3: wait
07:06 PM rue_shop3: wait
07:06 PM Tom_dev: what gets me is it does it on both ssd now
07:06 PM Tom_dev: and the 1st one was working fine
07:07 PM Tom_dev: no changes whatsoever
07:07 PM rue_shop3: do this comme
07:07 PM rue_shop3: d
07:07 PM rue_shop3: dmesg|grep lp
07:07 PM rue_shop3: dmesg|grep lp
07:07 PM rue_shop3: dmesg|grep lp
07:07 PM rue_shop3: dmesg|grep lp
07:07 PM rue_shop3: dmesg|grep lp
07:07 PM rue_shop3: dmesg|grep lp
07:07 PM rue_shop3: do that
07:07 PM rue_shop3: what results do you see?
07:08 PM Tom_dev: http://paste.debian.net/1305596/
07:08 PM rue_shop3: I tried do punch a new hole in a plasticsproket, didn't work
07:09 PM Tom_dev: pc_ich: Resource conflict(s) found affecting gpio_ich
07:09 PM rue_shop3: ok, those are normal messages
07:09 PM Tom_dev: ???
07:10 PM rue_shop3: hmm
07:10 PM Tom_dev: how can you view the startup log?
07:10 PM rue_shop3: what is the name of the port that linuxcnc usually uses?
07:11 PM rue_shop3: dmesg
07:12 PM Tom_dev: [ 337.081212] hm2_7i90.0: board at (ioaddr=0x0000, ioaddr_hi=0x0000, epp_wide ON) not found!
07:12 PM Tom_dev: that's lcnc trying to find it
07:12 PM rue_shop3: nowonder
07:12 PM rue_shop3: it lost its ioaddress setting
07:12 PM Tom_dev: it's in the config though
07:12 PM rue_shop3: does lspci usually list a hm2_7i90 ?
07:13 PM Tom_dev: i doubt it since it's thru the parallel port
07:13 PM Tom_dev: i don't see it
07:14 PM rue_shop3: so, are you using the onboard parallel port now?
07:14 PM Tom_dev: trying to
07:14 PM Tom_dev: the others are still in the box
07:14 PM rue_shop3: ok, in lspci
07:14 PM rue_shop3: lspci
07:14 PM rue_shop3: 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
07:14 PM rue_shop3: anything like that?
07:15 PM Tom_dev: http://paste.debian.net/1305597/
07:15 PM Tom_dev: no
07:15 PM Tom_dev: what's LPC?
07:16 PM rue_shop3: I think its related to the parallel port
07:16 PM Tom_dev: let me clear dmesg and reboot and capture it
07:16 PM rue_shop3: sorry I'm super tired
07:16 PM rue_shop3: no its all in dmesg
07:16 PM Tom_dev: that might show something lot being loaded?
07:16 PM rue_shop3: make sure the bios has the parallel port enabled
07:17 PM Tom_dev: lemme reboot real quick
07:17 PM rue_shop3: pretty sure linux overrides the bios tho
07:18 PM rue_shop3: I'll go make an NC file for cutting this stupid sprocket
07:22 PM Tom_dev: http://paste.debian.net/1305598/
07:22 PM Tom_dev: dmesg after booting
07:24 PM Tom_dev: isn't parallel port 278 378 3bc or something?
07:24 PM Tom_dev: IO_ADDR = 0x378
07:24 PM Tom_dev: for linuxcnc
07:25 PM Tom_dev: [ 8.176392] parport_pc 00:04: reported by Plug and Play ACPI
07:25 PM Tom_dev: [ 8.176505] parport0: PC-style at 0x378, irq 7 [PCSPP]
07:25 PM Tom_dev: [ 8.263703] systemd[1]: Finished systemd-sysusers.service - Create System Users.
07:25 PM Tom_dev: dmesg
07:26 PM Tom_dev: parport0: PC-style at 0x378, irq 7
07:26 PM Tom_dev: so it sees it aparently???
07:31 PM Tom_dev: [ 610.233356] hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
07:31 PM Tom_dev: [ 610.233414] hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
07:31 PM Tom_dev: [ 610.233419] hm2/hm2_7i90.0: Low Level init 0.15
07:31 PM Tom_dev: [ 610.233602] hm2_7i90.0: EPP timeout on data cycle of read(addr=0x0100, size=4)
07:31 PM Tom_dev: [ 610.233619] hm2/hm2_7i90.0: error reading hm2 cookie
07:31 PM Tom_dev: [ 610.233631] hm2_7i90.0: board at (ioaddr=0x0000, ioaddr_hi=0x0000, epp_wide ON) not found!
07:32 PM Tom_dev: why does it lose track of the port address?
07:34 PM rue_shop3: wtf
07:34 PM rue_shop3: hm2 cookie?
07:35 PM rue_shop3: wtf did they do to our tech?
07:35 PM Tom_dev: heh
07:36 PM Tom_dev: i really don't get it
07:36 PM Tom_dev: it looks like it's there but nobody's home
07:37 PM Tom_dev: can you see what is using interrupts?
07:38 PM Tom_dev: 0: 36 0 IO-APIC 2-edge timer
07:38 PM Tom_dev: 1: 1469 0 IO-APIC 1-edge i8042
07:38 PM Tom_dev: 7: 0 0 IO-APIC 7-edge parport0
07:38 PM Tom_dev: 8: 0 1 IO-APIC 8-edge rtc0
07:39 PM rue_shop3: hmm
07:39 PM rue_shop3: does the card just present as a parallel port or is it actually connected by a parallel port on the metherboard?
07:40 PM Tom_dev: it has a cable from the pc to the card
07:40 PM Tom_dev: just like a printer
07:40 PM Tom_dev: i have a spare board
07:40 PM Tom_dev: i think
07:41 PM rue_shop3: hmm
07:41 PM rue_shop3: you dont happen to have some lights you can plug in do you?
07:41 PM Tom_dev: i have those 'kit' lights
07:42 PM Tom_dev: kit car
07:42 PM Tom_dev: :)
07:42 PM Tom_dev: remember that?
07:42 PM rue_shop3: ... its from a long time ago!
07:42 PM rue_shop3: was that parallel port?
07:42 PM Tom_dev: yessir
07:42 PM rue_shop3: well
07:42 PM rue_shop3: is there a /dev/lp* device?
07:42 PM Tom_dev: i'm not gonna try that tonight though
07:43 PM Tom_dev: folder?
07:43 PM rue_shop3: ls /dev/lp*
07:43 PM Tom_dev: lp0
07:44 PM Tom_dev: /dev/lp0
07:44 PM Tom_dev: everything indicates it's there
07:44 PM rue_shop3: ok
07:45 PM rue_shop3: so when you have it attached, run echo -n U > /dev/lp0
07:45 PM rue_shop3: the lights should alternate 01010101
07:45 PM Tom_dev: i'll see if i can find them
07:45 PM Tom_dev: gotta go inside
07:48 PM Tom_dev: 2 leds are on anyway
07:49 PM Tom_dev: permission denied
07:50 PM rue_shop3: do it as root
07:50 PM rue_shop3: always as root
07:50 PM Tom_dev: same thing
07:50 PM Tom_dev: sudo
07:50 PM Tom_dev: permission denied
07:52 PM Tom_dev: what abou chmod o+r,o+w /dev/lp*
07:52 PM Tom_dev: ?
07:54 PM rue_shop3: chmdo 777 /dev/lp0
07:54 PM Tom_dev: ^^ worked
07:54 PM rue_shop3: ok the lights came on?
07:54 PM Tom_dev: whatever that is in a number
07:54 PM Tom_dev: no
07:54 PM Tom_dev: lcnc started
07:54 PM rue_shop3: what?
07:55 PM rue_shop3: oh wait
07:55 PM Tom_dev: the leds didn't do anything with your echo
07:55 PM rue_shop3: it just didn't work because it didn't have permission?
07:55 PM Tom_dev: but i did that chmod as root and now it's working
07:55 PM rue_shop3: hahaha
07:55 PM Tom_dev: wtf wtf wtf!!!!!!
07:55 PM rue_shop3: its just a permissions thing
07:55 PM Tom_dev: but why on both ssd?
07:55 PM rue_shop3: you need to mmm add lcnc to the lp users group?
07:56 PM Tom_dev: i'd better write that one down
07:57 PM Tom_dev: ok i'm half frozen.. going inside
07:58 PM Tom_dev: bastards
07:58 PM Tom_dev: i ran it a bit to be sure
08:00 PM Tom_L: thanks
08:24 PM rue_mohr: :)
08:25 PM rue_mohr: there should be an error in LCNC that says permision denied
08:26 PM Tom_L: it would have to come from that card driver
08:27 PM Tom_L: i don't know if i tried the echo thing after the chmod or not
08:27 PM Tom_L: i think it was before
08:27 PM Tom_L: and nothing happened
08:27 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/p1300668.jpg
08:27 PM Tom_L: 2 leds were lit when i plugged it in but that's it
08:27 PM rue_mohr: I had a chain drive there, thats the Z axis, lots of quiet now!
08:28 PM Tom_L: that's on the big cnc
08:28 PM Tom_L: right?
08:28 PM rue_mohr: yup
08:28 PM Tom_L: cool
08:28 PM rue_mohr: it runs ok at 24V, the real drive is 170V
08:28 PM rue_mohr: so it should perform ok
08:29 PM Tom_L: don't get knocked in the head with it, it would win
08:29 PM rue_mohr: my target is about 5 degrees motor motion to 0.1mm linear, thats a lot more than 5 degrees
08:30 PM rue_mohr: my goal is to get all the motors hooked up so I can move it around
08:30 PM rue_mohr: not even with the full servos
08:30 PM rue_mohr: just move it
08:30 PM rue_mohr: its been like 4 years
08:30 PM rue_mohr: so much for an afternoon project
08:39 PM Tom_L: mine turned into more than i wanted today for sure
09:25 PM rue_mohr: oh I think the cell provider f***** my over again
09:26 PM Tom_L: there aren't any good ones
09:26 PM rue_mohr: I needed to top up on the 15th of they steal the money
09:27 PM rue_mohr: I didn't and they probably canceled the plan I was on so I have to move to a more expesive one
09:28 PM rue_mohr: but they dont indicate anything on the website about anything
09:28 PM rue_mohr: so I have no idea if I will ahve a working phone tommorow
09:28 PM rue_mohr: when I got the phone it was a $30/mo plan
09:29 PM rue_mohr: they canceled that and made it 35
09:29 PM rue_mohr: now there is only a 45
09:31 PM rue_mohr: Tom_L, did you ever visit SRS?
09:31 PM rue_mohr: you must have?
09:33 PM Tom_L: no
09:33 PM Tom_L: i've never been to Wa
09:33 PM rue_mohr: huh
09:33 PM rue_mohr: did you go anywhere with your robots?
09:33 PM Tom_L: no
09:33 PM rue_mohr: oh!
09:41 PM Tom_L: there was maybe 4-5 of us that got together once in a while
09:42 PM Tom_L: the one i knew the best died, the rest fell by the wayside
09:46 PM Tom_L: i installed a test GUI and i wonder if that's what may have changed the pp permissions
09:47 PM Tom_L: pyqt6
09:47 PM Tom_L: i removed it but will probably install it again but this time i'll be watiching out for it
09:56 PM Tom_L: what is the 'o' in the chmod o+r,o+w /dev/lp* for?
09:56 PM aandrew: o = other
09:56 PM aandrew: u = user, g = group, o = other
09:57 PM Tom_L: what would that command be in numbers?
09:57 PM aandrew: o+r, o+w?
09:57 PM Tom_L: yeah
09:57 PM aandrew: that is 6
09:57 PM Tom_L: i was looking for a chart
09:57 PM aandrew: 1 = execute, 2 = write, 4 = read IIRC
09:57 PM Tom_L: correct
09:58 PM Tom_L: but you still need the o?
09:58 PM aandrew: if you specify ugo as three numbers, no
09:58 PM aandrew: you can't just say chmod 6 foo.txt though
09:58 PM aandrew: it has to be ###
09:58 PM aandrew: and you can't + or - permissions, only specify an exact set with numbers
10:00 PM Tom_L: i'm seeing 'U G W'
10:00 PM Tom_L: user group and what?
10:00 PM aandrew: user group other
10:00 PM Tom_L: W is other?
10:00 PM aandrew: not sure what "w" is
10:00 PM Tom_L: me either
10:00 PM aandrew: sudo chmod o+rw /dev/lp* is probably what you're after
10:01 PM aandrew: giving anyone permission to read/write to the printer orts
10:01 PM aandrew: ports
10:01 PM Tom_L: the one i posted worked
10:01 PM aandrew: yes that will also work, just more wordy
10:01 PM aandrew: perhaps the page you're reading is saying "user group world"
10:01 PM Tom_L: doesn't say
10:02 PM aandrew: but I don't know anyone else who uses that so that's probably not a good thing to try to make different :-)
10:02 PM Tom_L: so 666 would be read/write by anybody?
10:03 PM Tom_L: user, group and other?
10:36 PM aandrew: correct
10:51 PM Tom_L: so chmod 666 /dev/lp* would be valid
11:34 PM rue_mohr: add user to group
11:34 PM rue_mohr: chgroup something something somehting
11:40 PM aandrew: no
11:40 PM aandrew: chgrp changes the group of a file
11:42 PM aandrew: usermod -aG the_group the_user is how you add a user to a group, but if the user is logged in anywhere they'll need to log out and back in to take effect (in that shell)
11:43 PM rue_mohr: yea
11:43 PM rue_mohr: oh
11:43 PM rue_mohr: grpmod
11:44 PM rue_mohr: er,
11:44 PM rue_mohr: I just be root