How to get Pale Moon to render when screen closed

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
VA1DER
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2023-07-08, 03:32

How to get Pale Moon to render when screen closed

Unread post by VA1DER » 2024-04-29, 02:55

I reported an issue some time ago that I was having with Pale Moon not working over my VNC connections. I finally was able to determine the source of my problem - I am using a laptop and in order to avoid putting wear on my backlight, I close my laptop lid when I go away. Interestingly, Pale Moon is coded to recognize when a laptop's lid is closed and will refuse to render anything in the window when this is the case.

For most people this isn't an issue, but for anyone who runs Pale Moon over VNC on a laptop this causes problems. No other browser seems to do this, so I'm wondering is there is a setting anywhere in Pale Moon that will make it render its window regardless of what it thinks the lid closure state is?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 36057
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: How to get Pale Moon to render when screen closed

Unread post by Moonchild » 2024-04-29, 11:06

As far as I'm aware (without digging into the code), Pale Moon does not keep tabs on physical screen state, but it is possible, like I already hinted at in the other thread, that it's a DirectX/Direct2d problem over VNC; as it's very well possible the drivers in use try to be as efficient as possible and don't do accelerated screen updates when the screen is "off" to save power.
Since disabling hardware acceleration was marked as a solution, that would stroke with this observation.

As to why you aren't observing this with other browsers, that's probably because they aren't using direct2d for content. Both current Firefox (I just checked) and all Chromium-based browsers use Google Skia for it - while that does do acceleration, it doesn't directly use Direct2d.
"Just because you are offended doesn't mean you are right." -- unknown
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
noellarkin
Fanatic
Fanatic
Posts: 111
Joined: 2021-07-27, 04:20

Re: How to get Pale Moon to render when screen closed

Unread post by noellarkin » 2024-06-10, 06:26

See if you can get a dummy HDMI plug. I use TightVNC to access my laptop, and use a dummy plug that fakes a monitor so even if the laptop screen is closed, everything is rendered in the fake monitor.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 982
Joined: 2021-01-26, 11:18

Re: How to get Pale Moon to render when screen closed

Unread post by Kris_88 » 2024-06-10, 07:48

Here's something you can try:
https://superuser.com/questions/1097780 ... -is-closed
https://superuser.com/questions/88548/p ... 038#380038

Have you tried the "LidAlwaysOpen" registry key?

Post Reply