From 502443b1b989b47019e41a7f0b061d10bad46fb2 Mon Sep 17 00:00:00 2001 From: Christian kimocoder Date: Tue, 26 Sep 2017 19:17:04 +0200 Subject: [PATCH] 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) --- realtek-leds.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 realtek-leds.conf diff --git a/realtek-leds.conf b/realtek-leds.conf new file mode 100644 index 0000000..f8820ff --- /dev/null +++ b/realtek-leds.conf @@ -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