This repository contains the rotate_screen.sh script designed to rotate the screen of the Smartpad Yumi when it is connected to an external display via HDMI.
- Ensure you have the necessary permissions to execute scripts on your device.
- Make sure the Smartpad Yumi is connected to an external display and properly configured.
- SSH access to your Smartpad Yumi
- Power on your Smartpad Yumi.
- Connect the Smartpad Yumi to the external display using an HDMI cable.
- Ensure the external display is turned on and set to the correct HDMI input.
-
Obtain the IP address of your Smartpad Yumi.
-
Open a terminal on your local machine and connect to the Smartpad Yumi via SSH:
ssh pi@smartpad_ip_address
Replace
smartpad_ip_address
with the actual IP address of your Smartpad Yumi.
To download and execute the rotate_screen.sh
script from this GitHub repository, follow these steps:
First, clone the repository to your local machine using the following command:
git clone https://github.com/adnroboticsfr/smartpad_screen_rotation.git
Change your working directory to the cloned repository:
cd smartpad_screen_rotation
Before executing the script, ensure it has the necessary execute permissions:
chmod +x rotate_screen.sh
Run the script to rotate the Smartpad Yumi screen:
sudo ./rotate_screen.sh
You can easily reset the rotation to default by running the "sudo ./rotation_screen.sh" command.
- Ensure that the Smartpad Yumi is properly connected to the external display.
- Verify that the external display is set to the correct HDMI input.
- Check for any error messages in the terminal and resolve any permission issues or missing dependencies.
- If the smartpad does not restart after running the script. Unplug it and plug it back in.