{"action":"created","issue":{"url":"https://api.github.com/repos/antipatico/backlight-openrc/issues/1","repository_url":"https://api.github.com/repos/antipatico/backlight-openrc","labels_url":"https://api.github.com/repos/antipatico/backlight-openrc/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/antipatico/backlight-openrc/issues/1/comments","events_url":"https://api.github.com/repos/antipatico/backlight-openrc/issues/1/events","html_url":"https://github.com/antipatico/backlight-openrc/issues/1","id":150928073,"number":1,"title":"Script ignores acpi_video0 settings","user":{"login":"Zzooouhh","id":12779798,"avatar_url":"https://avatars.githubusercontent.com/u/12779798?v=3","gravatar_id":"","url":"https://api.github.com/users/Zzooouhh","html_url":"https://github.com/Zzooouhh","followers_url":"https://api.github.com/users/Zzooouhh/followers","following_url":"https://api.github.com/users/Zzooouhh/following{/other_user}","gists_url":"https://api.github.com/users/Zzooouhh/gists{/gist_id}","starred_url":"https://api.github.com/users/Zzooouhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zzooouhh/subscriptions","organizations_url":"https://api.github.com/users/Zzooouhh/orgs","repos_url":"https://api.github.com/users/Zzooouhh/repos","events_url":"https://api.github.com/users/Zzooouhh/events{/privacy}","received_events_url":"https://api.github.com/users/Zzooouhh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-25T17:11:26Z","updated_at":"2016-04-30T09:17:53Z","closed_at":null,"body":"Using Manjaro-openrc Xfce on a Lenovo T420 brings up issues with this script; I have two backlight folders in /sys/class/backlight/: acpi_video0 and intel_backlight. After including it in rc-update, backlight-openrc on shutdown only managed to copy intel_backlight, which means that while on reboot it updates the *initial* backlight setting to the previous value, but pressing the brightness up/down keys shoots it back up as if the max values were set.\r\n\r\nA quick check on the backlight files in /sys/class/ reveals that intel_backlight gets restored properly while acpi_video0's values are reset to the maximum of 15 on every bootup. I've also tried manually creating a new acpi_video0-backlight-old file in the /var/cache/backlight/, but the script doesn't manage to copy it either.\r\n\r\nA workaround for me was including a simple cp one-liner in rc.local (the acpi_video0-brightness-old file was custom created), which appears to recognize acpi_video0:\r\ncp \"/var/cache/backlight/acpi_video0-brightness-old\" \"/sys/class/backlight/acpi_video0/brightness\"\r\n(repeat for other backlights)\r\nAnd since Manjaro also has an rc.local.shutdown, an equivalent one-liner for the opposite direction went there too."},"comment":{"url":"https://api.github.com/repos/antipatico/backlight-openrc/issues/comments/215948589","html_url":"https://github.com/antipatico/backlight-openrc/issues/1#issuecomment-215948589","issue_url":"https://api.github.com/repos/antipatico/backlight-openrc/issues/1","id":215948589,"user":{"login":"antipatico","id":14838767,"avatar_url":"https://avatars.githubusercontent.com/u/14838767?v=3","gravatar_id":"","url":"https://api.github.com/users/antipatico","html_url":"https://github.com/antipatico","followers_url":"https://api.github.com/users/antipatico/followers","following_url":"https://api.github.com/users/antipatico/following{/other_user}","gists_url":"https://api.github.com/users/antipatico/gists{/gist_id}","starred_url":"https://api.github.com/users/antipatico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antipatico/subscriptions","organizations_url":"https://api.github.com/users/antipatico/orgs","repos_url":"https://api.github.com/users/antipatico/repos","events_url":"https://api.github.com/users/antipatico/events{/privacy}","received_events_url":"https://api.github.com/users/antipatico/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T09:17:53Z","updated_at":"2016-04-30T09:17:53Z","body":"I've left openrc since I have no time to mantain it .\r\nIf you want to send me a pull request I'll merge."}}