Lower poll frequency and turn off keyboard backlight by default

This commit is contained in:
Jeremy Soller 2018-02-15 11:45:38 -07:00
parent 3d9b3cccdb
commit cb11d0013a
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ static DEFINE_MUTEX(s76_input_report_mutex);
#define POLL_FREQ_MIN 1
#define POLL_FREQ_MAX 20
#define POLL_FREQ_DEFAULT 5
#define POLL_FREQ_DEFAULT 1
static int param_set_poll_freq(const char *val, const struct kernel_param *kp)
{

2
kb.c
View File

@ -117,7 +117,7 @@ module_param_named(kb_brightness, param_kb_brightness, kb_brightness, S_IRUSR);
MODULE_PARM_DESC(kb_brightness, "Set the brightness of the keyboard backlight");
static bool param_kb_off;
static bool param_kb_off = true;
module_param_named(kb_off, param_kb_off, bool, S_IRUSR);
MODULE_PARM_DESC(kb_off, "Switch keyboard backlight off");