I don't know if there is another way, but I've always just done it manually or through apps like Tasker and Setting Profiles. Does anyone know if there is a 'stock' way?