Mixed infrared and rf control