I figured out the problem. It seems to be the sensor that disables the trackpad & keyboard when the laptop is in tablet mode is malfunctioning and turning off the trackpad & keyboard when it shouldn’t. So far I can ‘fix’ it each time by just opening screen to 180degrees and then back to normal laptop position.