Skip to content

Commit

Permalink
Set cpu governer after UAS blacklisting to conserve power in UAS mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Mar 22, 2024
1 parent 5a84a1a commit 79d37f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/umbreld/source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ export default class Umbreld {
// If we've successfully booted then commit to the current OS partition
commitOsPartition(this)

// Set ondemand cpu governer for Raspberry Pi
this.setupPiCpuGoverner()

// Blacklist UAS driver for Raspberry Pi 4
const isRebooting = await this.blacklistUASDriver()
if (isRebooting === true) return // Don't let the server start if we're rebooting

// Set ondemand cpu governer for Raspberry Pi
this.setupPiCpuGoverner()

// Run migration module before anything else
// TODO: think through if we want to allow the server module to run before migration.
// It might be useful if we add more complicated migrations so we can signal progress.
Expand Down

0 comments on commit 79d37f1

Please sign in to comment.