Skip to content

Exclude Intel Bluetooth from TLP USB autosuspend - #13671

Closed
AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-tlp-bluetooth-usb-ef3e
Closed

AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-tlp-bluetooth-usb-ef3e

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Summary

When TLP is installed, its USB autosuspend rewrites power/control=auto on Intel Bluetooth combo controllers and drops BLE reconnect advertisements.

Ship etc/tlp.d/omarchy-bluetooth-usb.conf (USB denylist for common Intel BT IDs), install it via migration for existing machines, and register it in the Quattro upgrade --overwrite list.

Note: omarchy-settings should also install this path into /etc/tlp.d/ (PKGBUILD companion); until then the migration copies from $OMARCHY_PATH.

Fixes #12950

Test plan

  • test/shell.d/tlp-bluetooth-usb-test.sh
  • On a TLP machine with Intel BT: confirm power/control=on for the combo card and BLE reconnect without re-pair

TLP rewrites power/control=auto after udev, which suspends Intel combo
BT controllers and drops BLE reconnects. Ship a tlp.d denylist drop-in
and install it on existing machines (omacom#12950).

Co-authored-by: AnPod <AnPod@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/fix-tlp-bluetooth-usb-ef3e branch from 712220d to 44a4f04 Compare September 29, 2026 21:17
@omarchybot omarchybot added the bug Something isn't working label Oct 1, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 44a4f04. This makes the same fix as #12950, opened six days earlier against quattro, and #12950 is the one I recommend bringing forward, so this one is not being verified on a worker. This PR's description says it fixes #12950, but #12950 is a pull request, not an issue.

What overlaps: both ship etc/tlp.d/omarchy-bluetooth-usb.conf appending Intel Bluetooth controller IDs to TLP's USB_DENYLIST with +=, and both add the same path to the --overwrite list in bin/omarchy-upgrade-to-quattro.

Why #12950 over this one:

  • migrations/1790599942.sh copies a file that the omarchy-settings package already installs, because that package ships the whole etc/ tree. omarchy update upgrades packages before it runs migrations, so on a normal update the file is already in place, the migration exits at line 7, and the TLP restart at line 13 is never reached. The copy only happens if the migration runs before the package has the file, and then it leaves an unowned file at a path the package will later try to install. agents/skills/migrations.md keeps migrations for state pacman cannot own, and this file is state pacman can own. The PKGBUILD change mentioned in the description is not needed either.
  • 8087:0037, the one ID here that Keep Bluetooth USB controllers awake when TLP manages USB power #12950 lacks, is an Intel combined Bluetooth controller in btusb's table, but neither PR shows that it has the reconnect problem.
  • The test here checks for substrings, so it would also pass if the denylist line were commented out, and its migration check only finds a file that mentions the name. Keep Bluetooth USB controllers awake when TLP manages USB power #12950's test matches the actual assignment line.

Checked: both diffs, read against quattro. Nothing was run, since a fix that will not be brought forward does not need a worker. Claude Opus 5.5 made the comparison. Codex Medium was asked which of the two to bring forward, without being shown my answer, and also chose #12950 for the reasons above. It can read this session's reasoning, so its agreement is not guaranteed to be independent. Codex also noted that both PRs' --overwrite entries are unnecessary, because that list covers files 3.x wrote by hand and 3.x never wrote this one. Separately, omabot close-duplicate asked Codex whether this PR is the same change as #12950. It said no, presumably because of the migration and the extra ID, so this PR stays open rather than being closed as a duplicate.

Waiting on: the maintainer, to choose between this and #12950, and to decide whether Omarchy should carry TLP configuration at all. If you have an Intel 8087:0037 controller that shows the reconnect failure under TLP, adding that to #12950 would be the most useful next step.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thank you for this, @AnPod. #12950 got there first with a fix for the same problem, so this is closed in favour of it, and the credit stays with the first fix. If it does not cover your case, please say so there.

Closed at the maintainer's request. The review comment above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent.

@omarchybot omarchybot closed this Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants