May 7 15:29
And wrt the Wikipedia article you referenced, there's this: "keepalives are an optional feature, and if included must default to off". Don't know about your systems of course, but in all of mine (except an old 2011 Macbook running High Sierra), pmset reports tcpkeepalive as 1 - which I guess is enabled. And there's no need continuing this - I simply asked if you could share your source for Apple's documentation on tcpkeepalive - you've not done that, so I'll assume that you - like me - are operating without it.
May 7 15:29
Thank you for the tutorial, but you are still missing the point: Apple has made choices regarding how TCP KeepAlives operate in various power conservation modes (e.g. "Power Nap", Sleep, Standby, etc), but they have not documented those choices. The label tcpkeepalive is not mentioned in man pmset. So - how do you know that it is working for all processes when in sleep mode?
May 7 15:29
tcpkeepalive is not addressed in man pmset - or anywhere else I can find. And so I wondered if you knew something
May 7 15:29
I wonder if you could share with us where you find Apple's documentation covering use of the tcpkeepalive option in pmset? It's not in man pmset AFAICT - at least not on Catalina or Mojave or High Sierra.
 

 moderator questions

a place to question the moderators
Apr 28 17:11
@Ghanima : Consistency is all I ask!
Apr 27 09:10
@MartinSleziak: Mmm... sounds terribly arcane... one of the reasons I don't use chat very often! :) And thanks for your help!
Apr 27 06:02
@MartinSleziak - no, I don't use the chat rooms often; I did not know that. It was a "public" room, so I assumed I could reach anyone.
Apr 23 06:09
@greenonline, @darthvader ... I've posted a Question for the moderators - please take a look at it when you can.
Apr 22 19:08
I have followed up twice with "Flags", requesting an explanation for the deletions, but AFAICT these requests have been ignored. So... I thought I'd try here in the "Chat Rooms" to see if I could raise a moderator, and get an answer to my question: "Why were my comments removed/deleted?"
Apr 22 19:05
I have a question for "the moderators": I made some comments to this question that were removed/deleted. I didn't delete them, and so I assume this must have been a moderator that did.
 
Mar 23 23:56
@Ghanima: I want you to run for moderator - assuming this is something you're willing to take on. Can I do anything to help?
Mar 23 21:16
Oops! That's temperament - not temprament
Mar 23 21:10
@Ghanima: Why don't you do it? You've got the experience certainly, and from the little bit I've observed you have the temprament for it also.
Mar 22 23:38
So is @goldilocks not going to run for another moderator term?
 
Oct 22, 2024 11:05
@nohillside: Due to Debian's alternatives system, I didn't think this would yield anything useful. But, FWIW type awk ==> awk is /usr/bin/awk both fm the CLI, and in the function.
Oct 22, 2024 11:05
@SmallClanger: Turns out that your suggestion works with awk/mawk :) Please write that up as an answer & I'll accept & upvote.
Oct 22, 2024 11:05
@meuh, et. al: You were on the right track; the issue seems to be that on my system (Raspberry Pi OS), awk is aliased to mawk. After installing gawk, and changing my function to use gawk instead of awk/mawk - it works as expected. Which - I guess - seems to change my question a bit... Suggestions?
Oct 22, 2024 11:05
@meuh: bash --version ==> GNU bash, version 5.2.15(1)-release (aarch64-unknown-linux-gnu). Pls see EDIT in Q for other info.
 
Aug 15, 2024 22:17
Oh - just one other minor thing... please delete any extraneous comments... too many are "frowned upon", and it limits others from commenting
Aug 15, 2024 22:15
You're welcome - have a good day.
Aug 15, 2024 22:08
Anyway - I've got some "chores" I need to tend to if you don't have any other questions?
Aug 15, 2024 22:07
And just for reference, you may want to connect your voltmeter across the resistor&LED. When running at 50% duty cycle (duty_cycle=100000) you should see about 1.6 - 1.7 volts
Aug 15, 2024 22:04
echo 25000 > duty_cycle
Aug 15, 2024 22:04
echo 175000 > duty_cycle
Aug 15, 2024 22:03
Yeah... I haven't had time to chase that pwm-2chan thing down yet Anyway - now you can play round & change the brightness of the LED
Aug 15, 2024 22:01
No... I think I mentioned using pwm2 - did I not?
Aug 15, 2024 22:00
You're welcome... what did we do differently here from what you did?
Aug 15, 2024 21:57
tell me what you see
Aug 15, 2024 21:57
echo 1 > enable
Aug 15, 2024 21:57
now... drum roll, please :)
Aug 15, 2024 21:55
OK, good enough
Aug 15, 2024 21:55
Now - 1 more echo command... after you enter it, you should see your LED illuminate immediately... Oh - forgot to ask what sive series resistor are you using?
Aug 15, 2024 21:53
Be sure you are in the folder /sys/class/pwm/pwmchip2/pwm2
Aug 15, 2024 21:52
? hmmm does your user have sudo privileges?
Aug 15, 2024 21:51
echo 100000 > duty_cycle
Aug 15, 2024 21:51
echo 200000 > period
Aug 15, 2024 21:50
OK, now enter the following two echo commands on separate lines:
Aug 15, 2024 21:49
pi $ ls
capture duty_cycle enable period polarity power uevent
Aug 15, 2024 21:48
you should get this:
Aug 15, 2024 21:48
OK - that's a good sign... now cd into the dir pwm2, and do another ls
Aug 15, 2024 21:46
Do you mean a new folder is added? Is it named pwm2??
Aug 15, 2024 21:45
??? what do you mean... what exactly comes up?
Aug 15, 2024 21:43
at the prompt
Aug 15, 2024 21:43
echo 2 > export
Aug 15, 2024 21:43
I mean:
Aug 15, 2024 21:42
echo 2 > export at the prompt
Aug 15, 2024 21:42
then, enter the following:
Aug 15, 2024 21:41
If you're not in that dir, use cd to move there
Aug 15, 2024 21:41
pi $ pwd
/sys/class/pwm/pwmchip2
Aug 15, 2024 21:40
Check that you're in the proper directory: