Messages in this thread Patch in this message | | | From | pingshuo <> | Subject | [PATCH] hibernation:stop resume screen during hibernation | Date | Tue, 22 Jun 2021 16:38:44 +0800 |
| |
The display will be woken up during hibernation, if the computer equipment is poor, it will cause the screen to flicker. Skip to reusme the display devices in "thaw".
Signed-off-by: pingshuo <pingshuo@uniontech.com> --- drivers/base/power/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index c7f51c94969d..376b2eca65c7 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -707,7 +707,7 @@ static int dpm_resume_skip_display_devices(struct device *dev, pm_message_t stat { struct pci_dev *pci_test = to_pci_dev(dev); if (state.event == PM_EVENT_THAW) { - /* + /* *Filter out the display devices */ if((pci_test && ((pci_test->class&DISPLAY_PCI_CLASS_VALID_BIT) == DISPLAY_PCI_CLASS))||(dev->driver&&dev->driver->name&&strncmp(dev->driver->name,"video",6)==0)) -- 2.20.1
| |