Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fan control #387

Merged
merged 5 commits into from
Oct 9, 2023
Merged

Fan control #387

merged 5 commits into from
Oct 9, 2023

Conversation

jlashner
Copy link
Collaborator

@jlashner jlashner commented Sep 2, 2023

Adds more in-depth fan-control to jackhammer, to allow us to set the fan-policy and fan speeds, and added docs.
This will allow us to configure smurf to run fixed at the max fan-speed if we want, based on discussion #354

@jlashner jlashner requested a review from msilvafe September 2, 2023 19:00
Copy link
Contributor

@msilvafe msilvafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments. Very glad that you got this built into jackhammer. Assuming you have tested this I’m happy to merge (but would appreciate if you respond here to confirm it was tested first).

if 'smurf_fans' not in sys_config:
# Old way of setting up fans
cprint(
"'fans' key not found in sys config. Setting fan levels using "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should print ‘smurf_fans’ not ‘fans’ key

start_sync_parser = subparsers.add_parser('start-sync')
start_sync_parser.set_defaults(func=start_sync_func)

########### Jackhammer start-sync parser ###########
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this comment be setup-fans parser?

@@ -260,7 +260,7 @@ def plot_channel_resonance(S, cfg, band, chan):

@sdl.set_action()
def uxm_relock(
S: SmurfControl, cfg, bands=None, show_plots=False,
S, cfg, bands=None, show_plots=False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems unrelated to this PR but ok…

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was required for me to get docs to build... I may invest some time cleaning up the docs and making sure everything is up to date.

@jlashner
Copy link
Collaborator Author

jlashner commented Oct 9, 2023

Tested at site so I'm merging.

@jlashner jlashner merged commit c7bc197 into master Oct 9, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants