{"id":20620572,"url":"https://github.com/blacklight/cutiepi-rotation-scripts","last_synced_at":"2026-05-28T18:31:06.002Z","repository":{"id":66602190,"uuid":"452429781","full_name":"blacklight/cutiepi-rotation-scripts","owner":"blacklight","description":"A set of scripts and services to manage screen rotation on the CutiePi","archived":false,"fork":false,"pushed_at":"2022-02-08T22:58:24.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-06T20:16:36.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacklight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-26T20:28:40.000Z","updated_at":"2022-01-26T23:59:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a4c0bac-63df-497f-b901-a88ef277d4b7","html_url":"https://github.com/blacklight/cutiepi-rotation-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blacklight/cutiepi-rotation-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Fcutiepi-rotation-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Fcutiepi-rotation-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Fcutiepi-rotation-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Fcutiepi-rotation-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacklight","download_url":"https://codeload.github.com/blacklight/cutiepi-rotation-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Fcutiepi-rotation-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33622066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T12:14:53.784Z","updated_at":"2026-05-28T18:31:05.951Z","avatar_url":"https://github.com/blacklight.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cutiepi-rotation-scripts\n\nA set of scripts and services to manage display rotation on the CutiePi tablet.\n\nIt interacts with the CutiePi gyroscope over `iio-sensor-proxy` to detect the\norientation of the device, and it manipulates the display rotation using some\nsimple `xrandr` and `xinput` scripting.\n\n## Installation\n\n1. Ensure that the `iio-sensor-proxy` package is installed:\n\n```shell\n$ sudo apt install iio-sensor-proxy\n```\n\n2. Clone the repo:\n\n```shell\n$ git clone https://github.com/BlackLight/cutiepi-rotation-scripts\n$ cd cutiepi-rotation-scripts\n```\n\n3. Simply add the `bin` folder to your `PATH`, or copy/symlink its content\n   somewhere in your `PATH`\n\n4. If you want to run the `autorotate` script as a startup service:\n\n```shell\n$ mkdir -p ~/.config/systemd/user\n$ cp systemd/autorotate.service ~/.config/systemd/user\n$ systemctl --user daemon-reload\n# Start the service\n$ systemctl --user start autorotate\n# Enable the service at startup\n$ systemctl --user enable autorotate\n```\n\n## Usage\n\nAs shown in the previous example, the `autorotate` script can be enabled as a\nstartup service and it can automatically handle the rotation of the display by\npolling gyroscope sensor data.\n\nThere are also two auxiliary scripts (`screen-rotate-left` and\n`screen-rotate-right`) that can be programmatically called in your scripts or\nlaunched from the panel to manually force display orientation.\n\n## Notes\n\nThe `autorotate` script disables the HDMI input when started. The reason is\nthat the calculation of the coordinate transformation matrices for the touchpad\nis much more complex when working with extended displays. If your tablet is\nphysically connected to a screen, however, the chances that you may want to\nleverage auto-rotation are quite low anyway, so a workaround could be a simple\nscript that turns on the HDMI input and stops the `autorotate` service when an\nHDMI input is plugged, and restarts it when it's unplugged.\n\nIf a strong use case exists for handling auto-rotation on extended displays,\nfeel free to open an issue.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacklight%2Fcutiepi-rotation-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacklight%2Fcutiepi-rotation-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacklight%2Fcutiepi-rotation-scripts/lists"}