This article provides steps for installing and enabling the Linux G-Sensor driver to support automatic screen rotation on E-Series 3 AIO systems.
Prerequisites
- Linux G-Sensor package (Linux_g-sensor)
- Sudo/root access
Installation and Setup
- Copy the Linux_g-sensor folder to the root directory of the system.
-
Verify the G-sensor is detected:
-
Set execution permissions for the required scripts:
chmod +x disable_wayland.sh
chmod +x autorotate.sh -
Disable Wayland:
sudo ./disable_wayland.sh - Reboot the system.
-
After the system boots to the desktop, run the autorotation script:
sudo ./autorotate.sh - Rotate the device (0°, 90°, 180°, 270°) to verify that auto-rotation is functioning correctly.
Verification and Troubleshooting
Check Monitor and Touchscreen Devices
xrandr --listmonitors
xinput list
xinput list
Fix Script Format Issues
If the script fails to execute, it may be using Windows line endings. Convert it using the following:
sudo apt install dos2unix
dos2unix disable_wayland.sh
dos2unix disable_wayland.sh
⚠️ Important: Wayland must be disabled for the autorotation script to function properly.
Summary
- Ensure scripts have execute permissions
- Disable Wayland before running autorotation
- Run autorotate script after reboot
- Verify device detection using xrandr and xinput
Please report any broken links by emailing support@elotouch.com and include a link to the knowledge article