To reliably detect all possible rotation with only linear acceleration sensors would actually require three sensors that are not placed on a same line. With only two, you could position the device so that the axis passing through both sensors is aligned with gravity, and then rotate around that axis to make the device lose it's orientation.