Skip to content

Commit

Permalink
Input: wistron - disable wifi/bluetooth on suspend
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miloslav Trmac authored and Dmitry Torokhov committed Nov 20, 2005
1 parent a5b0cc8 commit e753b65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/input/misc/wistron_btns.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,12 @@ static int wistron_suspend(struct platform_device *dev, pm_message_t state)
{
del_timer_sync(&poll_timer);

if (have_wifi)
bios_set_state(WIFI, 0);

if (have_bluetooth)
bios_set_state(BLUETOOTH, 0);

return 0;
}

Expand Down

0 comments on commit e753b65

Please sign in to comment.