Lower poll frequency and turn off keyboard backlight by default
This commit is contained in:
parent
3d9b3cccdb
commit
cb11d0013a
4
input.c
4
input.c
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* input.c
|
* input.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2017 Jeremy Soller <jeremy@system76.com>
|
* Copyright (C) 2017 Jeremy Soller <jeremy@system76.com>
|
||||||
* Copyright (C) 2014-2016 Arnoud Willemsen <mail@lynthium.com>
|
* Copyright (C) 2014-2016 Arnoud Willemsen <mail@lynthium.com>
|
||||||
* Copyright (C) 2013-2015 TUXEDO Computers GmbH <tux@tuxedocomputers.com>
|
* Copyright (C) 2013-2015 TUXEDO Computers GmbH <tux@tuxedocomputers.com>
|
||||||
|
|
@ -26,7 +26,7 @@ static DEFINE_MUTEX(s76_input_report_mutex);
|
||||||
|
|
||||||
#define POLL_FREQ_MIN 1
|
#define POLL_FREQ_MIN 1
|
||||||
#define POLL_FREQ_MAX 20
|
#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)
|
static int param_set_poll_freq(const char *val, const struct kernel_param *kp)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
2
kb.c
2
kb.c
|
|
@ -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");
|
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_param_named(kb_off, param_kb_off, bool, S_IRUSR);
|
||||||
MODULE_PARM_DESC(kb_off, "Switch keyboard backlight off");
|
MODULE_PARM_DESC(kb_off, "Switch keyboard backlight off");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue