Repository navigation
Support non-Apple Wi-Fi cards (starting with the Framework 13) - #25
Conversation
|
Looks cool! Thanks for publishing omdrop-owl! I will look at this soon. |
brentkearney
left a comment
There was a problem hiding this comment.
Great work on this! I can see that there's even higher demand for AirDrop on x86 than there is on Apple hardware! I am thinking about the architecture and how we can optimize it for broad hardware adoption. Instead of maintaining duplicate code between omdrop-awdl and in your omdrop-owl drivers, I will extract the shared code into an omdrop-core library that both driver repos can inherit from. More on that later.
For this PR, I had my agents review the changes, and -- sorry for the "slop", but we're all vibe coders here, right? -- the recommended changes are below. Once this merges, I will update the Omdrop documentation to be hardware neutral, not "for Apple Silicon".
Thanks for your efforts! :)
Requested changes
- Bound the probe.
radio_proberuns the helper with no time limit.- A test helper whose
probesleeps hungomdrop doctor --jsonuntiltimeout 8killed it (rc 124). - The same call sits in
doctor,setup,install-driverandidentity 1password import|use. - In the panel, a hung
doctorProcleaves the unusable state stuck on its generic text. - Ask: wrap the call in
timeout 5. Report a timeout as a backend item ("The radio backend did not answer"), not as "no probe". A fall-through would show a non-Mac the Broadcom message.
- A test helper whose
- Enforce a minimum contract for every backend.
- With a probing backend,
driver_current(DRIVER_VERSION=0.9.1) never runs. contractis checked only bydriver_identity_ready, against 0.7.0, so a backend claiming any contract passesdoctorandinstall-driver.- Ask: compare
contractagainst one plugin-wide minimum inprereqs_missing, and report a shortfall as a blocker that names the backend.
- With a probing backend,
- Fix messages that point at
omdrop install-driver. With a probing backend, that command installs only the receiver's packages.cmd_send(bin/omdrop:1770-1771) tells a user whose sender lacks--urlto run it.- On omdrop-owl today, the result is "Nothing to do".
- Ask: under a probing backend, name the backend package to update instead.
- Reserve the item IDs the panel acts on.
- The panel shows its install button for
driverorlibrary(Panel.qml:845-847). - A backend that reports
drivergets a button that cannot fix it. - Ask: document
driver,libraryandserviceas plugin-owned indocs/radio-backend.md, and drop or rename backend items that use them.
- The panel shows its install button for
A helper that answers `omdrop-discoverable probe --json` takes over the hardware and driver checks; one that doesn't gets the Broadcom checks as before. Documents the backend contract in docs/radio-backend.md, and lets the install-driver tests run on hardware other than an Apple Silicon Mac.
|
thx for the review @brentkearney! pushed some changes, so let's see what your agent thinks now 😄 extracting |
…end in test-card.sh (#10) Ran `tools/test-card.sh` on an Intel AX201 under CachyOS (Arch), kernel 7.2.9-1-cachyos-bore, which is newer than the 6.8 the README records. It passes both directions. ``` card: Network controller: Intel Corporation Wi-Fi 6 AX201 (rev 20) driver: iwlwifi, kernel 7.2.9-1-cachyos-bore, CachyOS profile: iwlwifi exclusive station no no probe: ready baseline: 10/10 replies start: ok in 1933 ms receiver: started phone heard (OWL synced): yes shown on the phone: yes phone -> computer: yes computer -> phone: yes (send-to-peer exit 0, 90 s) Wi-Fi during the window: 0/0 replies, longest gap 0 s stop: exit 0 in 442 ms Wi-Fi after teardown: 296/300 replies, longest gap 4 s ``` The send itself took 4.15 s (accepted after 3.0 s, upload 0.06 s). The 90 s is the timer running through the "Did it arrive?" prompt, which is the second commit's fix. Two commits: 1. `tools/test-card.sh`: take the send time as soon as `send-to-peer` returns, before the prompt. 2. README table and `owl-profiles` note: the AX201 is also tested on CachyOS, kernel 7.2.9. Notes: - The two `command failed: Invalid argument (-22)` lines at start are the 5 GHz ad-hoc attempts failing before the fallback to channel 6, as the README describes. - Outside Omarchy, this needed omdrop built from netmojo-systems/omdrop-plugin#25 (`24f0038`). I ran its CLI standalone with `omdrop setup` and `omdrop firewall install` (ufw). The panel needs Omarchy's shell, so I didn't test it. - Only `summary.txt` is pasted. The other report files contain the router's MAC, so I've left them out. --------- Co-authored-by: bict0r <[email protected]>
brentkearney
left a comment
There was a problem hiding this comment.
LGTM! Thanks again!
I will post a follow-up PR to fix the "branding" message.
I made a lot of progress on an omdrop-core library for shared code between different architectures. Will post as soon as I can.
With radio backends (netmojo-systems#25), Omdrop runs on PCs through omdrop-owl as well as on Apple Silicon Macs through omdrop-awdl. The poster, README, marketplace name and description, the agent skill, and install-driver's no-Broadcom message still said Apple Silicon only. - preview.png: "AirDrop for Omarchy, on Macs and PCs." and "Real AWDL, the link AirDrop runs on.", re-rendered from the same poster source. - README: Requirements lists both backends; install, upgrade, link support, privileges and removal cover each. - manifest.json: name "Omdrop - AirDrop for Omarchy", Macs and PCs in the description. - install-driver: the same wording netmojo-systems#25 gave doctor's hardware message.
manifest.json and VERSION_FALLBACK move to 0.16.0. Since 0.15.1: radio backends other than omdrop-awdl (netmojo-systems#25), the captured media capabilities and IsAirDropable (netmojo-systems#20), a scoped Upload wait (netmojo-systems#33), the Qt 6.12 palette fix (netmojo-systems#42), and hardware-neutral docs and marketplace name (netmojo-systems#43). The driver pin stays at omdrop-awdl 0.9.1, the latest release.
…end in test-card.sh (t4t5#10) Ran `tools/test-card.sh` on an Intel AX201 under CachyOS (Arch), kernel 7.2.9-1-cachyos-bore, which is newer than the 6.8 the README records. It passes both directions. ``` card: Network controller: Intel Corporation Wi-Fi 6 AX201 (rev 20) driver: iwlwifi, kernel 7.2.9-1-cachyos-bore, CachyOS profile: iwlwifi exclusive station no no probe: ready baseline: 10/10 replies start: ok in 1933 ms receiver: started phone heard (OWL synced): yes shown on the phone: yes phone -> computer: yes computer -> phone: yes (send-to-peer exit 0, 90 s) Wi-Fi during the window: 0/0 replies, longest gap 0 s stop: exit 0 in 442 ms Wi-Fi after teardown: 296/300 replies, longest gap 4 s ``` The send itself took 4.15 s (accepted after 3.0 s, upload 0.06 s). The 90 s is the timer running through the "Did it arrive?" prompt, which is the second commit's fix. Two commits: 1. `tools/test-card.sh`: take the send time as soon as `send-to-peer` returns, before the prompt. 2. README table and `owl-profiles` note: the AX201 is also tested on CachyOS, kernel 7.2.9. Notes: - The two `command failed: Invalid argument (-22)` lines at start are the 5 GHz ad-hoc attempts failing before the fallback to channel 6, as the README describes. - Outside Omarchy, this needed omdrop built from netmojo-systems/omdrop-plugin#25 (`24f0038`). I ran its CLI standalone with `omdrop setup` and `omdrop firewall install` (ufw). The panel needs Omarchy's shell, so I didn't test it. - Only `summary.txt` is pasted. The other report files contain the router's MAC, so I've left them out. --------- Co-authored-by: bict0r <[email protected]>
This lets omdrop run on laptops without Apple's Wi-Fi chip.
omdrop-owl is a replacement for the Broadcom driver package that works on other Wi-Fi cards. On a Framework 13 (MediaTek MT7925), omdrop can send to and receive from an iPhone, and Wi-Fi stays connected while it does. Support for more cards can also be added there.
The only thing stopping it was omdrop's checks for Apple's Broadcom Wi-Fi. With this change, the installed driver package can describe itself (through a new optional
probecommand), and omdrop uses that instead. Without it, as on every Mac today, nothing changes. The details are indocs/radio-backend.md.Tests are in
tests/test_radio_backend.py, and the existing install tests now also run on machines other than Macs.