>I wonder, though, if there isn't a way to detect whether tuner/aux is active .. ?

Probably from looking at the hardware regs.

But we don't need it after all here; I'll have have the extra long press emulate the "SOURCE" button from the Rio remote, which automatically cycles among input sources.