Repository navigation
Conversation
TLP suspends Bluetooth combo controllers about two seconds after they go idle, and a runtime-suspended btusb drops the BLE advertisements that bonded peripherals send when reconnecting: mice and keyboards then only come back after they are removed and paired again. Ship a TLP drop-in that denylists the Intel combo cards from USB autosuspend, registered in the upgrade overwrite list so package updates replace it cleanly. Users keep control: values in /etc/tlp.conf still win over the drop-in. Refs omacom#12095
|
One configuration-composition issue found at Preserve existing USB denylist entriesIn The real TLP 1.10.2 parser produced this result with synthetic user configuration and an empty Impact: A device previously excluded through a numbered user drop-in can become eligible for autosuspend again after this package update. Explicit assignments in Suggested change: Use Verified: With synthetic USB attributes, TLP 1.10.2's device handler changed Documentation correction: TLP 1.10 still supports Review informationTest scope: Independent parser checks with TLP 1.10.0 and 1.10.2, plus the 1.10.2 handler against synthetic device files. No physical Bluetooth reconnection, live TLP/udev service, or package upgrade was tested. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium initial source inspection and synthesis, independent Opus 5.5 High and GPT 6 Sol Xhigh technical reviews, followed by verification against targeted evidence and a separate Astra Medium editorial check. |
Replace the drop-in's plain USB_DENYLIST assignment with the append form so exclusions from earlier lexically-sorted user drop-ins in /etc/tlp.d survive; explicit assignments in /etc/tlp.conf still win because TLP reads them last. TLP's own parser (tlp-readconfs) joins appended values with a separating space, so no leading space is needed inside the quotes. Update the shell test to assert the append form.
|
@llstrk Good catch on both points, thank you. Fixed in c525346: the drop-in now appends with `USB_DENYLIST+="8087:..."`, so exclusions from earlier lexically-sorted user drop-ins survive, and the shell test asserts the append form. For reference, TLP's parser (`tlp-readconfs`) joins appended values with an explicit separating space, so no leading space is needed inside the quotes. On the documentation point: you're right, the option is `USB_EXCLUDE_BTUSB` (default `0` in 1.10). I kept the explicit denylist over `USB_EXCLUDE_BTUSB=1` because the class-based option exempts every btusb device, including third-party USB dongles, while the denylist targets only the Intel combo cards Omarchy ships. I'll correct the PR description accordingly. |
|
Verified: At The drop-in now uses An explicit assignment in Verified: The description now correctly names Review informationTest scope: TLP 1.10.2 parser with synthetic configuration and the focused shell test, plus source inspection. No physical Bluetooth reconnection, live TLP/udev service, or package upgrade was tested. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium initial inspection and synthesis, fresh independent Opus 5.5 High (Claude Code) and GPT 6 Sol Xhigh (Pi) technical reviews, verification against targeted evidence, and a separate Astra Medium editorial check. |
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>
8087:0a2a (3165/7265), 8087:0a2b (8260/8265) and 8087:0aa7 (3168) are Intel combined controllers in btusb's device table, and 0a2a is confirmed runtime-suspended with BLE reconnect failures in omacom#12095, so the drop-in left them suspending under TLP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
|
Reviewed at Pushed: Checked on a disposable Omarchy worker: Packaging: Second opinion: Codex Medium reviewed it in two rounds. It found the missing controller IDs above, agreed the Related: #13671 makes the same change later and adds a migration that copies the file by hand; this one is the smaller of the two and three of the four IDs it had over this one are now included here ( Waiting on: the maintainer, to decide whether Omarchy should carry configuration for TLP, which it does not ship and which replaces its power-profiles-daemon. A confirmation on real hardware would also settle it: @jordanglean, or a maintainer, on a machine running TLP with an Intel Bluetooth controller, |
|
Refs #12095 (complements #10140)
What
Ships
/etc/tlp.d/omarchy-bluetooth-usb.conf— a TLP drop-in that excludes the Intel Bluetooth combo cards from TLP's USB autosuspend — and registers the path in the upgrade--overwritelist.Why
Two independent layers keep Bluetooth USB controllers suspended on Omarchy machines:
modprobe.doption documented in omarchy-usb-autosuspend.conf is a no-op; Intel Bluetooth controllers still autosuspend (BLE HID reconnect timeouts) #12095 and addressed for the kernel-parameter layer by Apply USB autosuspend policy through the kernel command line #10140 (usbcore is built in).power/control=autoandautosuspend_delay_ms=2000per USB device through its udev hook, which runs as aRUN+=program — i.e. after rule processing — sopower/controlwrites from ordinary udev rules lose on add events, and no kernel parameter helps because the delay is written explicitly.With layer 2 active, the controller is runtime-suspended when a bonded BLE peripheral tries to reconnect; the advertisements are dropped and the peripheral only comes back after it is removed and paired again.
Verified on a ThinkPad X390 (Intel 9460,
8087:0aaa) with an MX Master 3 over Bluetooth:power/control = auto,runtime_status = suspendedwhile the mouse was actively advertising (its LED was blinking) — the host radio reported zero advertisement events in clean scansonintopower/controlreconnected the mouse instantly, no re-pairing: bond and keys were intact all alongcontrol=autowithin seconds of the manual change/etc/tlp.ddrop-in withUSB_DENYLIST="8087:0aaa"holdscontrol=onacross TLP applications and the mouse reconnects by itself after bootNotes:
/etc/tlp.d/*.confin lexical order, then/etc/tlp.conf; the last assignment wins. The drop-in appends withUSB_DENYLIST+=, so earlier-sorting user drop-ins keep their exclusions, and explicit assignments in/etc/tlp.confstill win.USB_EXCLUDE_BTUSB(default0), which would exempt every btusb device including third-party dongles; the explicit Intel IDs keep the exemption scoped to the combo cards Omarchy ships. More IDs can be appended as they are confirmed.Changes
etc/tlp.d/omarchy-bluetooth-usb.confbin/omarchy-upgrade-to-quattro--overwritelisttest/shell.d/tlp-bluetooth-usb-test.shTest plan
bash test/shell.d/tlp-bluetooth-usb-test.shpassesbin-style-test.shandlimine-defaults-test.shstill pass;unowned-system-paths-test.shfails identically before and after this change (it needs a local omarchy-pkgs checkout)control=on, BLE mouse reconnects unattended