Lines 637-643
bool kpowersave::do_suspend2disk(){
Link Here
|
637 |
|
637 |
|
638 |
if (suspend.suspend2disk) { |
638 |
if (suspend.suspend2disk) { |
639 |
if (suspend.suspend2disk_allowed || suspend.suspend2disk_allowed == -1) { |
639 |
if (suspend.suspend2disk_allowed || suspend.suspend2disk_allowed == -1) { |
640 |
lockScreen(settings->lockmethod); |
640 |
lockScreen(); |
641 |
calledSuspend = SUSPEND2DISK; |
641 |
calledSuspend = SUSPEND2DISK; |
642 |
notifySuspend(calledSuspend); |
642 |
notifySuspend(calledSuspend); |
643 |
bool ret = hwinfo->suspend(SUSPEND2DISK); |
643 |
bool ret = hwinfo->suspend(SUSPEND2DISK); |
Lines 674-680
bool kpowersave::do_suspend2ram(){
Link Here
|
674 |
|
674 |
|
675 |
if (suspend.suspend2ram) { |
675 |
if (suspend.suspend2ram) { |
676 |
if (suspend.suspend2ram_allowed || suspend.suspend2ram_allowed == -1) { |
676 |
if (suspend.suspend2ram_allowed || suspend.suspend2ram_allowed == -1) { |
677 |
lockScreen(settings->lockmethod); |
677 |
lockScreen(); |
678 |
calledSuspend = SUSPEND2RAM; |
678 |
calledSuspend = SUSPEND2RAM; |
679 |
notifySuspend(calledSuspend); |
679 |
notifySuspend(calledSuspend); |
680 |
bool ret = hwinfo->suspend(SUSPEND2RAM); |
680 |
bool ret = hwinfo->suspend(SUSPEND2RAM); |
Lines 711-717
bool kpowersave::do_standby(){
Link Here
|
711 |
|
711 |
|
712 |
if (suspend.standby) { |
712 |
if (suspend.standby) { |
713 |
if (suspend.standby_allowed || suspend.standby_allowed == -1) { |
713 |
if (suspend.standby_allowed || suspend.standby_allowed == -1) { |
714 |
display->lockScreen(settings->lockmethod); |
714 |
lockScreen(); |
715 |
calledSuspend = STANDBY; |
715 |
calledSuspend = STANDBY; |
716 |
notifySuspend(calledSuspend); |
716 |
notifySuspend(calledSuspend); |
717 |
bool ret = hwinfo->suspend(STANDBY); |
717 |
bool ret = hwinfo->suspend(STANDBY); |