MacBook Air shuts down
My MacBook Air 2015 displays a collection of tiny coloured rectangles on a black screen on startup, then shuts down. Maybe an hour or so later I can get the same result on a startup. This has deteriorated over the last week. It started with shutting itself down while sleeping and being difficult to start to this situation. I have tried the various resets, Vram and Pram with no apparent effect. Did take the machine into a local Mac shop which ran a diagnosis on it which showed a weak battery which was already known. Any suggestions would be appreciated, thanks
MacBook, OS X 10.11