Bug 225552 - [NEW PORT] sysutils/asmctl Apple System Management Controller
Summary: [NEW PORT] sysutils/asmctl Apple System Management Controller
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Danilo G. Baio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-30 04:01 UTC by Yuichiro NAITO
Modified: 2018-03-10 01:20 UTC (History)
2 users (show)

See Also:


Attachments
asmctl.shar (1.92 KB, text/plain)
2018-01-30 04:01 UTC, Yuichiro NAITO
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 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 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 2018-03-10 01:20:36 UTC
Committed with small changes.
Thanks for your contribution.

Regards.