Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: wistron - disable wifi/bluetooth on suspend

Try to save battery power by disabling wifi and bluetooth on suspend.

Signed-off-by: Miloslav Trmac <mitr@volny.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Miloslav Trmac and committed by
Dmitry Torokhov
e753b650 a5b0cc80

+6
+6
drivers/input/misc/wistron_btns.c
··· 451 451 { 452 452 del_timer_sync(&poll_timer); 453 453 454 + if (have_wifi) 455 + bios_set_state(WIFI, 0); 456 + 457 + if (have_bluetooth) 458 + bios_set_state(BLUETOOTH, 0); 459 + 454 460 return 0; 455 461 } 456 462