Bug 225552

Summary: [NEW PORT] sysutils/asmctl Apple System Management Controller
Product: Ports & Packages Reporter: Yuichiro NAITO <naito.yuichiro>
Component: Individual Port(s)Assignee: Danilo G. Baio <dbaio>
Status: Closed FIXED    
Severity: Affects Only Me CC: dbaio, emaste
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
asmctl.shar none

Description Yuichiro NAITO 2018-01-30 04:01:40 UTC
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.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-03-10 01:16:28 UTC
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
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-03-10 01:18:32 UTC
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
Comment 3 Danilo G. Baio freebsd_committer freebsd_triage 2018-03-10 01:20:36 UTC
Committed with small changes.
Thanks for your contribution.

Regards.