Control of the scanning speed of the polygonal mirror