All Projects → milesp20 → Intel_nuc_led

milesp20 / Intel_nuc_led

Licence: gpl-3.0
Intel NUC7i[x]BN and NUC6CAY LED Control for Linux

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Intel nuc led

intel-nuc-led-controller
GUI tool to control the front panel LED ring on Intel NUCs
Stars: ✭ 20 (-74.03%)
Mutual labels:  intel, led
Parenchyma
An extensible HPC framework for CUDA, OpenCL and native CPU.
Stars: ✭ 71 (-7.79%)
Mutual labels:  intel
Desk Lamp Alternative Firmware
An alternative firmware for the Mijia Xiaomi Desk Lamp
Stars: ✭ 54 (-29.87%)
Mutual labels:  led
Traceshark
This is a tool for Linux kernel ftrace and perf events visualization
Stars: ✭ 63 (-18.18%)
Mutual labels:  linux-kernel
Kernel
Linux kernel with modifications for Microsoft Surface devices.
Stars: ✭ 57 (-25.97%)
Mutual labels:  linux-kernel
Kmon
Linux Kernel Manager and Activity Monitor 🐧💻
Stars: ✭ 1,142 (+1383.12%)
Mutual labels:  linux-kernel
Nff Go
NFF-Go -Network Function Framework for GO (former YANFF)
Stars: ✭ 1,036 (+1245.45%)
Mutual labels:  intel
Interview Process Coding Questions
Interview Coding Questions for Several Companies encapsulated into one Repository
Stars: ✭ 74 (-3.9%)
Mutual labels:  intel
Kernel Exploits
My proof-of-concept exploits for the Linux kernel
Stars: ✭ 1,173 (+1423.38%)
Mutual labels:  linux-kernel
Spmp
sparse matrix pre-processing library
Stars: ✭ 62 (-19.48%)
Mutual labels:  intel
Sutekh
An example rootkit that gives a userland process root permissions
Stars: ✭ 62 (-19.48%)
Mutual labels:  linux-kernel
Ws2812fx
WS2812 FX Library for Arduino and ESP8266
Stars: ✭ 1,113 (+1345.45%)
Mutual labels:  led
Cubostratus
Blazingly fast Linux syscall collector
Stars: ✭ 68 (-11.69%)
Mutual labels:  linux-kernel
Retc
An application used to convert razer effects to multiple output sdks.
Stars: ✭ 54 (-29.87%)
Mutual labels:  led
Linux Baytrail Flexx10
Install GNU/Linux on NextBook Flexx 10.1
Stars: ✭ 73 (-5.19%)
Mutual labels:  linux-kernel
Linux Security Papers
Research paper collection for Linux kernel security from top security conferences.
Stars: ✭ 47 (-38.96%)
Mutual labels:  linux-kernel
People Counter Python
Create a smart video application using the Intel Distribution of OpenVINO toolkit. The toolkit uses models and inference to run single-class object detection.
Stars: ✭ 62 (-19.48%)
Mutual labels:  intel
Simplefs
A simple file system for Linux kernel
Stars: ✭ 65 (-15.58%)
Mutual labels:  linux-kernel
Thor Os
Simple operating system in C++, written from scratch
Stars: ✭ 1,204 (+1463.64%)
Mutual labels:  intel
Swiftygpio
A Swift library for hardware projects on Linux/ARM boards with support for GPIOs/SPI/I2C/PWM/UART/1Wire.
Stars: ✭ 1,188 (+1442.86%)
Mutual labels:  led

Intel NUC7i[x]BN and NUC6CAY LED Control

This is a simple kernel module to control the power and ring LEDs on Intel NUC7i[x]BN and NUC6CAY kits.

This module is intended as a demonstration/proof-of-concept and may not be maintained further. Perhaps it can act as a jumping off point for a more polished and complete implementation. For testing and basic manipulation of the power LED and ring LED, it ought to work fine, but use with caution none the less. This has only been tested on 4.4.x kernels.

Requirements

Requirements:

  • Intel NUC7i[x]BN and NUC6CAY
  • BIOS AY0038 or BN0043 or later
  • ACPI/WMI support in kernel
  • LED(s) set to SW Control in BIOS

Building

THe nuc_led kernel module supports building and installing "from source" directly or using dkms.

Installing Build Dependencies

Ubuntu:

apt-get install build-essential linux-headers-$(uname -r)

# DKMS dependencies
apt-get install debhelper dkms

Redhat:

yum groupinstall "Development Tools"
yum install kernel-devel-$(uname -r)

# Install appropriate EPEL for DKMS if needed by your RHEL variant
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum install dkms

Building and Installing "from source"

make clean
make install

Building and Installing Using DKMS

Build and install without system packaging:

make dkms-install

Uninstall without system packaging:

make dkms-uninstall

Build and install using system packaging:

# Ubuntu
make dkms-deb

# RHEL
make dkms-rpm

# Install generated DEB/RPM from the folder specified in the output using system package manager

Usage

This driver works via '/proc/acpi/nuc_led'. To get current LED state:

cat /proc/acpi/nuc_led

To change the LED state:

 echo '<led>,<brightness>,<blink/fade>,<color>' | sudo tee /proc/acpi/nuc_led > /dev/null
LED Description
power The power button LED.
ring The ring LED surrounding the front panel.

Brightness:

  • any integer between 0 and 100.
Blink/Fade Option Description
blink_fast 1Hz blink
blink_medium 0.5Hz blink
blink_slow 0.25Hz blink
fade_fast 1Hz blink
fade_medium 0.5Hz blink
fade_slow 0.25Hz blink
none solid/always on
LED Color power ring
amber X
cyan X
blue X X
green X
off X X
pink X
red X
white X
yellow X

Example execution to cause the ring LED blink green at a medium rate at partial intensity:

echo 'ring,80,blink_medium,green' | sudo tee /proc/acpi/nuc_led > /dev/null

Errors in passing parameters will appear as warnings in dmesg.

You can change the owner, group and permissions of /proc/acpi/nuc_led by passing parameters to the nuc_led kernel module. Use:

  • nuc_led_uid to set the owner (default is 0, root)
  • nuc_led_gid to set the owning group (default is 0, root)
  • nuc_led_perms to set the file permissions (default is r+w for group and user and r for others)

Note: Once an LED has been set to SW Control in the BIOS, it will remain off initially until a color is explicitly set, after which the set color is retained across reboots.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].