Created attachment 190185 [details] asmctl.shar I wrote a small utility "asmctl" which controls LCD backlight and keyboard backlight for Apple Macbook series. This is a new port of it. Asmctl works similar to Macbook series by assigning following keybind on your desktop. | key | assign | |-----|-------------------| | F1 | asmctl video down | | F2 | asmctl video up | | F5 | asmctl key down | | F6 | asmctl key up | Asmctl requires root privilege to change ACPI sysctl variables. So it runs under capability mode. I leaned FreeBSD capability in AsiaBSDCon & BSDtw. Thank you so much, Mariusz Zaborski! Your case study was very useful. And thanks for reviewing my code. Please apply attached `asmctl.shar` file to Ports tree. Thank you.
A commit references this bug: Author: dbaio Date: Sat Mar 10 01:16:20 UTC 2018 New revision: 464040 URL: https://svnweb.freebsd.org/changeset/ports/464040 Log: Add sysutils/asmctl: Apple System Management Controller Asmctl is a command line tool for Apple System Management Controller, which controls the keyboard backlight and LCD backlight. Assigning following key bindings work similar to Apple MacBook series. | key | assign | |-----|-------------------| | F1 | asmctl video down | | F2 | asmctl video up | | F5 | asmctl key down | | F6 | asmctl key up | WWW: https://github.com/yuichiro-naito/asmctl PR: 225552 Submitted by: Yuichiro NAITO <naito.yuichiro@gmail.com> Changes: head/sysutils/Makefile head/sysutils/asmctl/ head/sysutils/asmctl/Makefile head/sysutils/asmctl/distinfo head/sysutils/asmctl/pkg-descr head/sysutils/asmctl/pkg-plist
A commit references this bug: Author: dbaio Date: Sat Mar 10 01:18:28 UTC 2018 New revision: 51475 URL: https://svnweb.freebsd.org/changeset/doc/51475 Log: Add Yuichiro NAITO to contributors Maintainer of these ports: devel/rubygem-rspec-its devel/rubygem-schash misc/timediff sysutils/asmctl sysutils/rubygem-itamae sysutils/rubygem-serverspec sysutils/rubygem-specinfra PR: 225552 Changes: head/en_US.ISO8859-1/articles/contributors/contrib.additional.xml
Committed with small changes. Thanks for your contribution. Regards.