Mediates the photorepellent response. Expressed constitutively throughout the growth phases, both in presence and absence of white light. The covalent binding of retinal to the apoprotein, bacterioopsin, generates bacteriorhodopsin. Belongs to the archaeal/bacterial/fungal opsin family.