1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 06:34:10 +00:00

Add rtw_led_ctrl module parameter for changing led

Also adds example /etc/modprobe.d/ configuration file (realtek-leds.conf) that can
be used to set this new parameter option value automatically at boot or when
command e.g "modprobe 8812au" is done with no module parameter.

Howto do this manually?
sudo modprobe -r 8812au
sudo modprobe 8812au rtw_led_ctrl=1 (0 is allways off, 1 is normal & 2 is allways on)
This commit is contained in:
Christian kimocoder 2017-10-02 21:41:04 +02:00 committed by GitHub
parent 71c96cb928
commit 8561b419e8

20
realtek-leds.conf Normal file
View File

@ -0,0 +1,20 @@
# Place this file in directory /etc/modprobe.d/
# Uncomment one options line so when modprobe occurs either manually or
# automatically (e.g., after boot with wifi usb adapter connected) it
# will set that option value. Manual modprobe will override this file
# if option value also included at the command line, e.g.,
# $ sudo modprobe -r 8812au
# $ sudo modprobe 8812au rtw_led_ctrl=1
#
# Led always off
#options 8812au rtw_led_ctrl=0
#options 8814au rtw_led_ctrl=0
#
# Default: normal blink of led (all options lines commented causes normal
# blink too).
options 8812au rtw_led_ctrl=1
options 8814au rtw_led_ctrl=1
#
# Led always on
#options 8812au rtw_led_ctrl=2
#options 8814au rtw_led_ctrl=2