{"id":17323085,"url":"https://github.com/danieleds/asus-zenbook-ambient-light-sensor-controller","last_synced_at":"2025-04-14T16:14:30.490Z","repository":{"id":9651332,"uuid":"11587497","full_name":"danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller","owner":"danieleds","description":"A daemon that adjusts screen and keyboard backlight using the Zenbook's light sensor","archived":false,"fork":false,"pushed_at":"2015-06-22T20:23:48.000Z","size":381,"stargazers_count":52,"open_issues_count":9,"forks_count":13,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-14T16:14:26.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danieleds.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}},"created_at":"2013-07-22T17:24:38.000Z","updated_at":"2024-08-26T18:21:03.000Z","dependencies_parsed_at":"2022-08-30T17:41:28.803Z","dependency_job_id":null,"html_url":"https://github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieleds%2FAsus-Zenbook-Ambient-Light-Sensor-Controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieleds%2FAsus-Zenbook-Ambient-Light-Sensor-Controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieleds%2FAsus-Zenbook-Ambient-Light-Sensor-Controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieleds%2FAsus-Zenbook-Ambient-Light-Sensor-Controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieleds","download_url":"https://codeload.github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248914115,"owners_count":21182359,"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","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-15T13:45:19.527Z","updated_at":"2025-04-14T16:14:30.468Z","avatar_url":"https://github.com/danieleds.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Asus Zenbook Ambient Light Sensor Controller\n============================================\n\nTested with:\n------------\n * UX32VD\n   * Ubuntu 15.04 + Linux 3.19.0\n   * Ubuntu 14.10 + Linux 3.16.0\n   * Ubuntu 14.04 + Linux 3.13.0\n   * Ubuntu 13.10 + Linux 3.11.0\n   * Ubuntu 13.04 + Linux 3.8.0\n * UX31A\n   * Ubuntu 14.04\n   * Ubuntu 13.10\n\nHow to install\n--------------\n\n**Required packages:** libbsd-dev, qt4-qmake / qt5-qmake, g++\n\n 1. Install the ALS Driver:\n   1. Download the source code from [here](https://github.com/danieleds/als).\n   2. Extract the archive, move into the directory, and compile with `make`.\n   3. Insert the module into your current kernel with `sudo insmod als.ko`\n 2. Build this controller:\n   1. `cd service`\n   2. `qmake als-controller.pro -r -spec linux-g++-64`, or `qmake als-controller.pro -r -spec linux-g++` if you're on a 32-bit system.\n   3. `make`\n   \nThe generated binary file, *als-controller*, is what will monitor the light sensor.\n\nHow to use\n----------\n 1. Launch als-controller with root privileges, for example: `sudo ./als-controller`. This will be the service that monitors the light sensor.\n 2. Use the same program with user privileges, als-controller, to control the service. Some examples:\n    \n        ./als-controller -e     // Enable the sensor\n        ./als-controller -d     // Disable the sensor\n        ./als-controller -s     // Get sensor status (enabled/disabled)\n\nExample\n-------\nAfter compiling and running als-controller, try running switch.sh from the \"example\" folder.\nFor an ideal integration with your system, the suggested idea is to start the service at boot,\nand then bind some script similar to switch.sh to a key combination on your keyboard.\n\nTroubleshooting\n---------------\nIf als-controller isn't working, a possible cause is that the driver can't see the sensor. Try setting the boot option `acpi_osi='!Windows 2012'` (e.g. at the end of GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub) and then reboot.\n\nIn addition, you can check als-controller logs with `cat /var/log/syslog | grep als-controller`.\n\nThanks\n------\n * Diego - https://github.com/Voskot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieleds%2Fasus-zenbook-ambient-light-sensor-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieleds%2Fasus-zenbook-ambient-light-sensor-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieleds%2Fasus-zenbook-ambient-light-sensor-controller/lists"}