Chosen Solution

When I close the computer cover and open it again it takes too long to wake up

too long means what? 1 min or 2 min? BTW do you have too many apps installed. Go to Finder->Applications Remove unwanted. YES. Move to trash. A lot of programs these days use background services to Monitor and WASTE computer resources. All this will need to somehow written to RAM or DISK depending on sleep mode. Or do a fresh install. Go to Activity Monitor and see what is using much RAM/CPU. Launch Pad -> Activity Monitor Insatll this and clean (open source program) https://www.bleachbit.org/