The green light on a/c button goes on and off at will. Fixed one time. on 2003 Chevrolet Malibu

Had fixed while still under warranty. No longer have warranty. What could be causing this. Also, when the green light goes off, the a/c does not work. Fan does, but not cool air. You might guess, it is worse when weather is hotter. LOL