ABSTRACT Introduction: Sleep is an important component in the process of biological and mental development of children and adolescents, considered a source of revitalization of organic functions. Objective: To analyze the association between the screen type and time of exposure to the screen, the perception of sleep quality, and episodes of parasomnia in adolescents. Methods: A cross-sectional study that incorporates a school-based epidemiological survey with a representative sample (n=481) of high school students (14-19 years old) in the public education network of the city of Caruaru, PE. For the analysis of sleep and lifestyle, the translated and adapted version of the Global School-Based Student Health Survey (GSHS) was used. The binary logistic regression was used to analyze the association between the variables, considering the negative perception of sleep quality as an outcome. Results: The prevalence of negative perception of sleep quality was 58% (95% CI 53.5-62.3). Among the behaviors analyzed, it was found that sleeping eight hours or less per day and watching television more than two hours per day increased, respectively, 2.69 (95% CI 1.61-4.71) and 1.71 (95% CI 1.08-2.73) the chances of reporting negative perception of sleep. Excessive screen time, especially in front of TV, was associated with a greater number of episodes of parasomnia. Conclusion: Sleep quality is related both to the number of hours of sleep and to the time of exposure to TV. In addition, a greater number of episodes of parasomnia occurred among adolescents who watched more than three hours of TV per day.