Input: wistron - disable wifi/bluetooth on suspend
authorMiloslav Trmac <mitr@volny.cz>
Sun, 20 Nov 2005 05:51:05 +0000 (00:51 -0500)
committerDmitry Torokhov <dtor_core@ameritech.net>
Sun, 20 Nov 2005 05:51:05 +0000 (00:51 -0500)
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>
drivers/input/misc/wistron_btns.c

index 3df30130e33c19d152ec833952cb8e176603c5a3..49d0416a2a9a9d79eddfa6ebb0aa9bb5210e6fc1 100644 (file)
@@ -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;
 }
 
This page took 0.027816 seconds and 5 git commands to generate.