**** BEGIN LOGGING AT Wed Mar 10 02:59:56 2021 Mar 10 03:13:16 GenTooMan: I am googlie eyed and lookin' to get the BBB ready for LinuxCNC but I done broked it. Mar 10 03:13:21 no! Mar 10 03:13:30 Why? Mar 10 03:13:44 You know...why? Why do I do such things since it once worked. Mar 10 03:13:46 ? Mar 10 03:14:09 Anyway, I will go to my notes. I keep forgetting. Blah. Mar 10 03:14:16 To the note cave! Mar 10 03:14:56 Oh and for some reason, machinekit-hal works but emcapplication is not workin' on the BBG. Mar 10 03:15:07 LinuxCNC worked once. It will work again! Mar 10 03:16:48 RadioShack tried to sell me an ergonomic wobble stool. Ha. Mar 10 03:16:59 Help? Mar 10 03:18:23 Oh yea. I made a tut-or-i-al. Mar 10 03:30:23 it was not me this time! Mar 10 03:30:37 They done broked it for some reason... Mar 10 03:37:26 Probably me. Mar 10 03:42:32 Well...I am on a road and this is neat. Mar 10 03:42:48 Look dad, Micky-Ds. Snore! Mar 10 03:43:09 it was me all along. Boo! Mar 10 03:44:05 GenTooMan: Why? Why does it? Mar 10 03:46:36 Pray for roses here...I fixed my build error(s)'s. Mar 10 03:46:51 Daddy will tan my hide. Mar 10 03:58:16 Yea! It works again... Mar 10 03:58:56 Sorry for the excitement here. I get overzealous. Mar 10 04:01:08 I think in short hand. That is my issue. Mar 10 04:01:20 'would it, could it, if only...' Mar 10 04:10:59 Ut oh! Mar 10 04:11:30 Are people angry that this works? Should I look the other way? Mar 10 04:12:06 Maybe I should not have told the world via a easy to decypher post... Mar 10 04:13:04 Oh well...I will build a machine w/ it and do the dibbling. Mar 10 04:13:23 Up, down, left, right. Go, go, Geaux! **** BEGIN LOGGING AT Wed Mar 10 07:45:52 2021 Mar 10 08:49:03 lol Mar 10 12:23:00 m Mar 10 13:46:41 wake-up script is called, but it is also called once when BeagleBone is rebooted. Any way to tell it is power-on reboot, or wake-up from sleep? Mar 10 15:05:08 tiger: I recall you had multi-user.target in your WantedBy, which means you actually specifically requested it to be run at startup Mar 10 15:06:30 (after removing it, reload systemd's configuration with "sudo systemctl daemon-reload" and fix the symlinks of your service using "sudo systemctl reenable your-service-name") Mar 10 15:07:41 Hi @zmatt. I removed multi-user.target in WantedBy. It still calls script upon reboot. I removed and changed the name of script. Mar 10 15:09:06 I moved the service from system to user /etc/... . Read/Write a text in the script serves the purpose and works well. Thank you. Mar 10 15:10:07 tiger: did you reload systemd's config and reenable your service after changing your WantedBy ? Mar 10 15:10:36 the [Install] section is only consulted when (re)enabling a service Mar 10 15:13:51 I couldn't remember for the [system] service. But for the newly created user service placed in /etc/... It has no Multi-user in WantedBy. Mar 10 15:16:04 what does this show: systemctl show -p WantedBy your-service-name Mar 10 15:43:12 sudo systemctl show -p WantedBy mnu-resume.service shows: WantedBy=sleep.target Mar 10 15:44:14 installed by: systemctl enable my-service, but sudo systemctl list-units --type=service : doesn't show my-service Mar 10 15:44:43 by "my-service" you mean "mnu-resume" ? Mar 10 15:45:08 yes Mar 10 15:46:56 list-units doesn't list all units (see manpage) Mar 10 15:47:05 I removed and deleted serivce, and I used an installation script to reinstall it. But now it is not calling script. The mnu-resume.service is under /etc Mar 10 15:48:08 Do I need to call systemctl start mnu-serivce? I thought if it is enabled, after reboot, it is started automatically Mar 10 15:48:57 what does the install script do? copying your mnu-resume.service to /etc/systemd/system/ and calling "sudo systemctl enable mnu-resume" should suffice Mar 10 15:49:06 it should immediately become effective, no reboot required Mar 10 15:49:25 manually starting your service is inappropriate Mar 10 15:49:57 systemctl status shows: Loaded: loaded (/etc/systemd/system/mnu-resume.service; enabled; vendor preset: enabled) Mar 10 15:49:58    Active: inactive (dead) Mar 10 15:51:51 Ok. Maybe I have user=root, in the service. It shall be installed as system? Mar 10 15:52:17 ? Mar 10 15:52:26 User=root is pointless btw, that's already the default Mar 10 15:52:40 and what do you mean by "installed as system" ? you already did so Mar 10 15:52:50 (custom) system services go in /etc/systemd/system Mar 10 15:52:55 which is why that directory is called "system" Mar 10 15:54:32 I just did a quick test, I saved https://pastebin.com/hhEH4CTf as /etc/systemd/system/resume-test.service Mar 10 15:54:48 did "sudo systemctl enable resume-test" Mar 10 15:55:05 suspended and resumed, and I see in the logs the service was run Mar 10 15:57:08 hum, though it seems to have been invoked at the end of suspend instead of after resume... Mar 10 15:58:11 I did sysemctl enable, but status still shows: Active: inactive (dead) Mar 10 15:59:23 yep that's correct Mar 10 15:59:36 that indicates your script is done Mar 10 16:01:12 then, it stops calling the script. Mar 10 16:01:34 no it means it called the script and now the script is done (has exited) Mar 10 16:02:22 updated version of my resume-test.service with After constraint updated to get it invoked once resume is done: https://pastebin.com/hhEH4CTf Mar 10 16:02:36 it seems After=sleep.target doesn't work (and in retrospect I understand why) Mar 10 16:02:41 Understood. I put it into sleep using wtcwake, and wakes up after 5 seconds. it didn't call script Mar 10 16:03:11 again, if you put the system into sleep using rtcwake, you're bypassing systemd hence nothing will get invoked Mar 10 16:04:12 I thought you understood this last time we spoke and switched to suspending using systemctl Mar 10 16:05:27 sorry. forgot Mar 10 16:10:10 Here's another alternative I saw which allows for both pre-suspend and post-resume actions: https://pastebin.com/gET0ZFUS Mar 10 16:15:16 That's great! Thank you. I added multi-use back. In the resume-run-script can tell boot vs. wakeup. I do need pre-suspend action. Mar 10 16:15:46 why did you add multi-user.target back? earlier you said you *didn't* want it invoked at boot? Mar 10 16:19:49 That was my original thoughts. I need to reinitialize cell_modem after wakeup, and don't need to do that if it is reboot. But I already added R/W a text file in /dev/shm/, to register NumOfWakeups, and timestamps of wakeup history, if rebooted, files are not there. I will know it is reboot. I may need to do something else if it is a reboot. Mar 10 16:22:45 I have no idea what you're saying Mar 10 16:23:05 why are you adding multi-user.target to WantedBy? Mar 10 16:23:19 that explicitly requests for your service to get invoked at boot Mar 10 16:23:26 while you're saying you *don't* want to be invoked at boot Mar 10 16:23:34 therefore, don't add multi-user.target to WantedBy Mar 10 16:24:32 also you shouldn't manually create files in /dev/shm, that directory is used by libc for some shared memory APIs Mar 10 16:25:33 Added back was not calling the script ( I forgot to use suspend at the time). Mar 10 16:26:36 Thank you for your help @zmatt. Mar 10 16:27:28 Hi, I would like to aska question about the Beaglebone Black Industirial. What is the material that the conformal coating is made from, my group would like to know so we can see if it is out-gassing complaint Mar 10 16:27:49 Guest44370: you'd need to ask the manufacturer or distributor Mar 10 16:28:42 So beagleboard.org don't manufacture the industrial? Thank you Mar 10 16:29:00 beagleboard.org doesn't manufacture anything Mar 10 16:29:04 :-D Mar 10 16:29:19 but, I hope we can ask some questions about it. Mar 10 16:29:31 The BeagleBone Black Industrial no longer utilizes conformal coating. Mar 10 16:29:50 isn't there also more than one BBB-industrial? Mar 10 16:29:59 We did that with some early revs (manufactured by Embest/Avnet), but it didn't add enough value to justify the cost. Mar 10 16:30:15 Today, Seeed is the manufacturer of BeagleBoard.org BeagleBone Black Industrial. Mar 10 16:30:22 zmatt: not anymore... Mar 10 16:30:27 Arrow dropped out. Mar 10 16:30:57 ...and we took the Avnet business to Seeed. Mar 10 16:31:33 I'm not sure if Arrow *could* make theirs anymore.... but maybe... they were done for Arrow by Embedded Planet. Mar 10 16:32:02 Arrow felt the HDMI framer wouldn't stand up to the high temperatures and swapped the NXP framer with one from ADI. Mar 10 16:32:03 Thanks that's really helpful. So becuase we purchased one recently there's basically no chance it has a conformal coating Mar 10 16:32:03 well, no conformal coating means no outgassing worries for Guest44370 Mar 10 16:32:24 yeah... no conformal coating. Mar 10 16:32:27 can't that be determined by visual inspection? Mar 10 16:32:33 the ones that did never went into real production. Mar 10 16:33:34 Latest ones should show Seeed as the manufacturer and you are always welcome to reach out to them for additional details, but, they essentially do for beagleboard.org projects what beagleboard.org asks. Mar 10 16:33:37 Ok good. It probably can be seen from visual inspection, I don't have any access to them and probably noone in the team bothered to look aha Mar 10 16:34:06 Thanks, it's good to know where I can go if we need to double check anything Mar 10 16:35:24 conformal coating tends to be visible, though perhaps not from a quick glance Mar 10 16:36:03 What is the purpose of the conformal coating out of interest, sorry I don't know Mar 10 16:36:26 it was meant to keep small particles from causing shorts. Mar 10 16:37:09 https://en.wikipedia.org/wiki/Conformal_coating#Reasons_for_use Mar 10 16:37:47 Thanks again, you guys have been great Mar 10 16:38:15 in lieu of a higher quality enclosure that would keep all small particulate out, the idea was to tolerate some amount. Mar 10 16:39:03 keeping dust out of an enclosure can be challenging Mar 10 16:42:15 Sure, we have a small clean room so hopefully that'll help with particle matter etc **** ENDING LOGGING AT Thu Mar 11 02:59:57 2021