{"id":15373094,"url":"https://github.com/vi/torchctl","last_synced_at":"2026-06-27T23:31:12.263Z","repository":{"id":49063038,"uuid":"186474653","full_name":"vi/torchctl","owner":"vi","description":"LED controller for Google Pixel 3 XL smartphone (requires root access)","archived":false,"fork":false,"pushed_at":"2022-07-26T19:50:05.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T19:41:47.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-13T18:30:11.000Z","updated_at":"2022-07-23T19:51:54.000Z","dependencies_parsed_at":"2022-09-24T18:52:38.238Z","dependency_job_id":null,"html_url":"https://github.com/vi/torchctl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vi/torchctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftorchctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftorchctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftorchctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftorchctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/torchctl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftorchctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34872279,"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-06-27T02:00:06.362Z","response_time":126,"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-10-01T13:54:17.122Z","updated_at":"2026-06-27T23:31:12.233Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# torchctl\n\nA program I use to control LED on my Google Pixel 3 XL smartphone.\n\n* Requires root access\n* Probably works only on Google Pixel 3 XL. Checked in Android 9 to 12.\n* Allows changing brightness from ultra-low (lower than usual sysfs `brightness=1`) to almost maximal\n* Uses CPU-driven PWM (pulse width modulation) for ultra-dim mode\n* Auto-switches from maximum brightness back to usual torch mode after 5 seconds (may fail to due to missing wakelock in that state).\n* Executable size is only 22 kilobytes (see Github Releases for pre-built one)\n* Buildable on stable Rust 1.34 (`Xargo.toml` just for fun). Also checked that it builds fine on 1.63.\n* Unfortuantely, on Pixel 3 XL brightness stops being controlled by Android at all after using this tool (or sysfs's brightness knob in general). Reboot the device to make usual torch control work.\n\n## Usage\n\n    Usage: torchctl {serve|up|down|quit}\n\nStart service (does not go background) using `torchctl serve`, then issue commands with `torchctl up` and `torchctl down`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Ftorchctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Ftorchctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Ftorchctl/lists"}