I understand that the notebook rotation lock is grayed out,
Please share the product number of the PC to assist you better.
Try the few steps recommended below.
You can try updating Intel Integrated Sensor Solution Driver and check if that helps.
Update the Intel Integrated Sensor Solution Driver from this link. Click Here
Also, You can update other drivers on the PC using HP support assistant.
Refer to this article to know more information about using HP support assistant.
Also, try changing few settings:
Open Settings App and go to System > Display. Find Orientation and choose Portrait from the menu. Your device should automatically switch to portrait mode.
Go to Control Panel> Display>Change Display Settings and then make sure that the "Allow the screen to auto-rotate" is selected
Also, Uninstall the Device from Device Manager
Open Device Manager Expand the Display Adapter section. Find the Display card Driver. Right-click Display card Driver and select Uninstall. Select the checkbox to delete the driver software for this device. Reboot the computer after uninstall process has finished.
Lastly, Change the LastOrientation registry value.
If you have problems with Rotation Lock and if the rotation isn’t working on your device, you might have to change some registry values. To do that, follow these steps:
Press Windows Key + R and type regedit. Press Enter or click OK. When Registry Editor opens, you need to navigate to the following key in the left pane: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAutoRotation In the right pane, find LastOrientation and double-click it. In the Value data box enter 0 and click OK to save changes. If you see SensorPresent DWORD available, double-click it and make sure that its value is set to 1.
Refer to this article to know more information about Switching Between Tablet Mode and Desktop Mode. Click Here
Keep me posted. Happy to help!
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".