Pressing the sunroof control lever backward or forward momentarily to the second detent position completely opens or closes the sunroof even when the switch is released. To stop the sunroof at the desired position while the sunroof is in operation, press the sunroof control lever backward or forward and release the switch.
Information
To minimize wind noise while driving, it is recommended that you drive with the sunroof slightly closed (stop the sunroof about 2 inch (5 cm) before the maximum slide open position).
Automatic reverse

If the sunroof senses an obstacle while it is closing automatically, it should reverse direction and stop to allow the object to be cleared.
WARNING
Small objects that can get caught between the sunroof glass and the front glass channel may not be detected by the automatic reverse system. In this case, the sunroof glass will not detect the object and will not reverse direction.
Sunroof opening and closing
Tilting the sunroofHyundai Sonata LF 2014-2019 Service Manual: Crankshaft Damper Pulley Components and Components Location
Components
1. Crankshaft damper pulley
...
Hyundai Sonata LF 2014-2019 Owners Manual: ECO mode
When the Drive Mode is set to ECO mode, the engine and transmission control logic
are changed to maximize fuel efficiency.
When the ECO mode is selected by pressing the DRIVE MODE button, the ECO
indicator will illuminate.
If the vehicle is set to ECO mode, when the engine is turned OFF and r ...