The paper investigates the effect of deformation on the photocurrent and photovoltage in the p-n-junctions. It was found that under illumination in the fundamental absorption edge with its own light, the semiconductor becomes sensitive to the effects of the strain. This allows you to control the speed of the electrons and holes photogeneration by an external impact. In this case, there is a possibility to control the photovoltage and photocurrent arising in semiconductor solar cells.