Easy way. Go into Tweak tool. Click on power. There is an option to not suspend when lid is closed.