This paper presents H 2 control based on linear parameter varying (LPV) systems for speed control of perma nent magnet synchronous motors(PMSMs). PMSMs model is rewritten in LPV systems which depend on online acces sible time varying parameters given by real time information. Since the PMSM nonlinear model can be transformed into LPV systems, we design H2 control with gain scheduling. The proposed method obtains both improvement of transient response in the speed control and reduction of energy consumption. Finally, simulation results are performed to validate that the proposed method has good performance of transient response and efficient energy consumption as compared with conventional field oriented control.