fenrus75 / powertop

The Linux PowerTOP tool -- please post patches to the mailing list instead of using github pull requests
http://www.01.org/powertop
GNU General Public License v2.0
1.07k stars 131 forks source link

Implement --auto-tune-dump #116

Closed jtru closed 1 year ago

jtru commented 1 year ago

This switch, specified either alone or in addition to --auto-tune, will cause powertop to emit Bourne-shell compatible tuning commands to STDOUT instead of executing them unconditionally.

With --auto-tune-dump, suggested commands/tuning recommendations can be post-processed by shell pipelines involving grep(1) and other stream processors to selectively omit or apply them.

cconvey commented 1 year ago

Thanks for writing this PR! I'm really eager for powertop to have this kind of feature.

I don't know if it's still valid, but this github repo shows this message: "The Linux PowerTOP tool -- please post patches to the mailing list instead of using github pull requests." So you might have better luck with the mailing list.

jtru commented 1 year ago

Happy to read you like it :) I did post the resulting patch to the mailing list in addition to creating this PR, but it's still pending moderation there.

fenrus75 commented 1 year ago

I'm merging this PR, it looks great and sounds like a very useful feature

thank you for your contribution

jtru commented 1 year ago

Thanks a lot for accepting it! Looking forward to using it myself in a future release :)