Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2538  / 2 Years ago, sat, july 23, 2022, 7:02:14

Using Xfce, when I close the notebook lid it suspends, and when I open the lid it wakes up. When it wakes up it shows the screensaver until I press a key or move the mouse then it asks me for my password. All that is working beautifully. The issue is that when I open the lid, for a second or so I can see what is on the desktop, all the open windows, etc. Then it does a fade into the screensaver. The expected behaviour is that I see a blank screen, or the login prompt, immediately.



I've removed the screen saver (set it to be a black screen) but that made no difference.



Is this something that can be configured?



System details: Lenova E540, Mint 16, Xfce 4.10.



(In contrast, my Ubuntu 10.04 notebook did not have this issue: when the case was opened it always showed a blank screen. However I always had to suspend from the power control menu, as closing the case was unreliable as a way to get it to suspend, so maybe that was why??)






More Notes:



(Thanks to Nattgew for finding a related bug report.)



There appears to be a distinct difference between closing the screen, and going to the power manager and choosing suspend.



Close screen: screen visible when opening, then it goes to screensaver, then I have to type password to login. Wifi net connection is preserved.



Explicit suspend: wifi is disconnected. When I resume the screen is visible, it doesn't go to screensaver, it doesn't ask password. It needs to reconnect to wifi.
--> FIXED THIS BIT. launch xfce4-session-settings, go to last tab ("Advanced") and mark "Lock screen before sleep" checkbox. You also have to check the checbox that says the same thing in Power Manager preferences!! (Source.) So, now I've fixed this, both ways of suspending show the screen fading away into the screensaver, then prompt for password. However the explicit suspend is still the only one that disconnects wifi.



(Using pm-suspend from the commandline works just like going to the power manager menu.)


More From » suspend

 Answers
6

It turns out the key is that it is a screensaver "problem", nothing to do with power management, suspend or resume!



So, go to Screensaver preferences, then the advanced tab. In the bottom-right is "Fading and Colormaps". Uncheck "Fade to Black when Blanking".



(I also have Grab Desktop Images unchecked, though I personally use the "Blank Screen Only" screensaver, so that is academic.)



This solution works equally well with lid-closing or using pm-suspend or using the suspend button from the power management menu; and equally well with opening the lid, or pressing the power button to resume. In a couple of my tests I did see the screen flash on briefly after a resume, when using power button to suspend and resume; one of those times it effectively crashed xfce, perhaps as I was testing too quickly. However using the lid-closing/lid-opening technique it has been always behaved correctly (so far).


[#25772] Monday, July 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arkcker

Total Points: 296
Total Questions: 111
Total Answers: 104

Location: Nepal
Member since Tue, Sep 8, 2020
4 Years ago
;