Removed an old ceiling fan. There was one wall switch that only controlled the lights. The fan portion could be on regardless of wall switch position (by pullchain on the unit). I'm left with two bundles of black-white-bare 3-wire hanging out of my ceiling (one is labeled "sw", for switch, I assume) The bare ground wires from each bundle were twisted together, but I'm not sure anything else was.
I untwisted the ground wires from each other.
Now, attempting to wire the new fixture, the bundle labeled for the switch won't power the fixture when I wire it up. When I wire the fixture to the other bundle instead, it is just on full time and I can't turn it off.