{"id":21801841,"url":"https://github.com/westleyk/rpi-brightness","last_synced_at":"2025-07-28T20:10:29.202Z","repository":{"id":144278776,"uuid":"141326252","full_name":"WestleyK/rpi-brightness","owner":"WestleyK","description":"Raspberry pi backlight brightness cli simple c","archived":false,"fork":false,"pushed_at":"2018-10-18T02:05:10.000Z","size":67,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T18:45:09.506Z","etag":null,"topics":["adjust","backlight","brightness","c","cli","mode","pi","raspberry-pi","rpi","rpi-backlight","rpi-brightness","sleep"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WestleyK.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,"zenodo":null}},"created_at":"2018-07-17T18:08:32.000Z","updated_at":"2020-04-21T19:02:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c71d5076-cf14-48de-87b9-4f98a63987a3","html_url":"https://github.com/WestleyK/rpi-brightness","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WestleyK/rpi-brightness","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyK%2Frpi-brightness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyK%2Frpi-brightness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyK%2Frpi-brightness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyK%2Frpi-brightness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WestleyK","download_url":"https://codeload.github.com/WestleyK/rpi-brightness/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyK%2Frpi-brightness/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267578003,"owners_count":24110351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["adjust","backlight","brightness","c","cli","mode","pi","raspberry-pi","rpi","rpi-backlight","rpi-brightness","sleep"],"created_at":"2024-11-27T11:20:31.424Z","updated_at":"2025-07-28T20:10:29.197Z","avatar_url":"https://github.com/WestleyK.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A simple command for adjusting your raspberry pi backlight\n\nDesigned and tested for raspberry pi with official 7 inch touchscreen. \u003cbr\u003e\n\u003cbr\u003e\n\nOther script that do the same thing:\n - go: https://github.com/WestleyK/rpi-backlight\n - perl: https://github.com/WestleyK/pi-backlight\n - bash/shell: https://github.com/WestleyK/backlight\n \n\u003cbr\u003e\n\u003cbr\u003e\n\n## Install, Update and Uninstall\n\n\n### To install: \u003cbr\u003e\n\n```\ncd ~/\nmkdir raspberrypi-backlight\ncd raspberrypi-backlight/\ngit clone https://github.com/WestleyK/rpi-brightness.git\ncd rpi-brightness/\nmake\nsudo make install\n```\n\n\u003cbr\u003e\n\n### Easy install:\n\nPaste or type this in your terminal:\n```\ncurl https://raw.githubusercontent.com/WestleyK/rpi-backlight/master/easy-install.sh | sh\n```\nThis will install `rpi-brightness` to the current directory.\n\nTo finish the install, do:\n```\nsudo mv rpi-brightness /usr/local/bin/\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n### To update: \u003cbr\u003e\n\n```\ncd ~/raspberrypi-backlight/rpi-brightness/\nmake update\nsudo make install\n```\n\u003cbr\u003e\n\u003cbr\u003e\n\n### To uninstall: \u003cbr\u003e\n\n\n```\ncd ~/raspberrypi-backlight/rpi-brightness/\nsudo make uninstall\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Usage:\n\n\n```\npi@raspberrypi:~ $ rpi-brightness -help\nUsage: rpi-backlight [OPTION]\n        -h | -help | --help (print help menu)\n        -u | -up (adjust backlight brighter by: 20/255)\n        -d | -down (adjust brightness lower by: 20/255)\n        -s | -sleep (enter sleep mode, press \u003cENTER\u003e to exit)\n        -c (print current brightness)\n        [15-255] (adjust brightness from: 15 to: 255)\n        -i | -info (print compiled info)\n        -v | -version | --version (print version \u0026 date)\nSource code: https://github.com/WestleyK/rpi-brightness\npi@raspberrypi:~ $ \n```\nFor example, you can do: \u003cbr\u003e\n\n```\nsudo rpi-backlight 200\n```\nAnd: \u003cbr\u003e\n\n```\nsudo rpi-backlight -sleep\n```\nWill enter sleep mode. \u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\nMake sure you type `sudo` before adjusting backlight, \u003cbr\u003e\nOr you might get this `ERROR` \u003cbr\u003e\n\n```\npi@raspberrypi:~ $ rpi-brightness -up\nERROR: Brightness file not writable or doesn't exist:\n/sys/class/backlight/rpi_backlight/brightness\nTry: $ sudo rpi-brightness [OPTION]  (or)  https://github.com/WestleyK/rpi-brightness (for help)\npi@raspberrypi:~ $ \n```\n\n\u003cbr\u003e\n\n### Don't like the sudo?\n\nIf you you don't like typing `sudo` before adjusting brightness, then \u003cbr\u003e\nrun the `no-root.sh` script: \u003cbr\u003e\n\n```\nsudo ./no-root.sh\nsudo reboot\n```\n\nNow you should not need the `sudo`. \u003cbr\u003e\n\u003cbr\u003e\nTo undo what you did, type: \u003cbr\u003e\n\n```\nsudo rm /etc/udev/rules.d/backlight-permissions.rules\nsudo reboot\n```\n\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## Troubleshooting:\n\n```\npi@raspberrypi:~ $ rpi-brightness [OPTION]\nERROR: Brightness file not writable.\nTry: sudo rpi-brightness  (or)  https://github.com/WestleyK/rpi-brightness (for help)\npi@raspberrypi:~ $ \n```\nPossible causes or fixes: \u003cbr\u003e\n- Try `sudo` and then the command. \u003cbr\u003e\n- Try [updating](#To-update). \u003cbr\u003e\n- File does't exist. \u003cbr\u003e\n\u003cbr\u003e\n\n\n\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n### End README\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestleyk%2Frpi-brightness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestleyk%2Frpi-brightness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestleyk%2Frpi-brightness/lists"}