Skip to content

Add usb-power rules to disable autosuspend#3912

Open
patrickelectric wants to merge 2 commits intobluerobotics:masterfrom
patrickelectric:rules-power
Open

Add usb-power rules to disable autosuspend#3912
patrickelectric wants to merge 2 commits intobluerobotics:masterfrom
patrickelectric:rules-power

Conversation

@patrickelectric
Copy link
Copy Markdown
Member

@patrickelectric patrickelectric commented Apr 30, 2026

Fix #3906

Summary by Sourcery

New Features:

  • Add installation of usb-power udev rules to disable USB autosuspend on relevant devices.

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@joaoantoniocardoso
Copy link
Copy Markdown
Member

Not blockers, just things to reason/discuss:

  1. What is the symptoms the autosuspend in action?
  2. Is there any verification we can do to test whether this is enough?

And because it is a global rule:

  1. would all devices be compatible with this?
  2. Could this break compatibility with any device?
  3. If it can break something, how could the user revert it?

It could be useful to document these things.

@patrickelectric
Copy link
Copy Markdown
Member Author

patrickelectric commented Apr 30, 2026

  • would all devices be compatible with this?
  • Could this break compatibility with any device?
  • If it can break something, how could the user revert it?

This is done by the OS, I'm not sure if I follow your questions.

Linux autosuspend is a Linux kernel feature (specifically a power management mechanism) rather than a hardware-driven device function. It automatically suspends idle USB devices to save power, though it can cause issues with peripherals like mice or Bluetooth adapters.


  1. What is the symptoms the autosuspend in action?
  2. Is there any verification we can do to test whether this is enough?

The wifi interface stop answering, hotspot starts to have problems, external cell phone monden has problems, there is a list of complains that we received that by using autosuspend off it was fixed.

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.

We need to turn off USB autosuspend to avoid problems in BlueOS

2 participants