try pulling down the over head trim to expose the switch and unplug the connector,then check for power to the module. module is located above the switch and light assembly. Most likely you will have power,then plug the connectors back in without reinstalling the whole mess, and work the switch to see if the connection from the circuit board is solid and constant. I would suggest using a low-current, computer safe, test light. Sometimes the module will reset once unplugged and reconnected.
My S60 sunroof opened and made a noise like gears were grinding, now it wont close although I hear the same grinding. The noise is coming from under the switch, where the motor is.
Any suggestions on how to self-fix this?