Instead of messing up with the tweaks or setting now you can disable the screen rotation by the notification center which is in iOS 5.

The fourth widget in the Notification Center allows you to enable or disable the screen rotation. The lock sign means that the rotation is disabled and the icon in the left pic means that the rotation is available.

You can get his tweak for iOS 5 from BigBoss’s repository.

via [iPhone Italia]