PWMTESTPERF(1)
π PWMTESTPERF π
okay bestie, so this is a page from the General Commands Manual (that's section 1, the iconic one) about a lil command called pwmtestperf, and honestly? it's giving debug-tool energy and i'm obsessed. let's get into it π«Ά
β¨ NAME β¨
pwmtestperf β applies a simple test pattern to a PWM output π
β¨ SYNOPSIS β¨
pwmtestperf [-c chipno] [-p pwmno] [-P periodlength] [-S step] [-v]
that's it. that's the whole vibe. no cap. π
β¨ Description β¨
so pwmtestperf is a debug tool, right? its whole main character job is to test repeated setting of the output waveform that a PWM emits. like, over and over, we're poking that waveform and seeing what happens. π₯
the PWM this test messes with is chosen by chipno and pwmno. pick your chip, pick your output, and go.
now here's the part that's actually lowkey genius: the period is fixed, and you set it with periodlength. meanwhile the duty length gets bumped up by step on every step, going from 0 all the way up to periodlength. so it climbs, climb, climbs. π¦
and if step is negative? then it's the reverse situation β it decreases from periodlength down to 0. the way that it just walks backwards down the whole range... periodt.
β¨ Options β¨
-c chipnoβ every PWM chip has its own identifying chip number, like a little name tag.pwmtestperfconfigures a PWM line provided by chip number chipno. andchipnodefaults to0, so if you don't say anything it just goes with the first one. easy. β¨-p pwmnoβ each PWM chip hands out a number of PWM outputs, like a friendship bracelet situation.pwmtestperfconfigures thepwmnoth PWM output of the chip you selected.pwmnodefaults to0too. π-P periodlengthβ periodlength, measured in nanoseconds, defines the length of the periods of the waveform that's gonna be set. this is the fixed one, the anchor, the stable queen. π-S stepβ step, also in nanoseconds, defines how much the duty length gets increased by each step. (or decreased if it's negative β going backwards is still valid bestie, no judgement.) πΈ-vβ emit some information during runtime. basically it yaps while it works. love that for us. π£οΈπ
β¨ SEE ALSO β¨
go read those too, they're part of the same friend group fr fr π§
heads up: this is a debug tool, not your production bestie. it's here to hammer a PWM output with repeated waveform settings, so know what you're pointing it at before you point it. π
okay that's the whole page, ty for coming to my ted talk π
β¨ from the General Commands Manual, this has been PWMTESTPERF(1) β stay slay, stay in section 1, and go set some waveforms. bye bestie!! ππ¦π
π¦ where this page comes from
- ubuntu questing: libpwm-tools 1.0~rc2-1
- ubuntu resolute: libpwm-tools 1.0~rc2-1build1
- ubuntu stonking: libpwm-tools 1.0~rc2-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms