Brave prevents screen turn off

Apologies for the long wait time here – just getting back from PTO. Taking a look now and trying to reproduce the issue but I’m using a Linux VM which can (as it has in the past) have an effect on these types of behavior.

I’ve reached out to our Linux devs as well to take a look.

Additionally (I should have asked this initially), can anyone here encountering this confirm that the issue still occurs if you disable the Continue running background apps when Brave is closed option in brave://settingssystem/?

verified, 100% reproducible:

steps to reproduce:

  1. manjaro xfce, fully upgraded
  2. launch brave if it is not running already
  3. turn off Continue running background apps when Brave is closed in brave://settings/system/
  4. close brave and wait for 5 minutes just to be safe
  5. verify that the screensaver is not inhibited right now
  6. launch brave
  7. go to https://start.duckduckgo.com/
  8. search for filetype:pdf
  9. download a pdf file to your /tmp folder
  10. have a new tab open in brave, close all other tabs
  11. open thunar drag and drop that file from thunar to brave
  12. verify that there are still no inhibitors
  13. spam the download button inside the pdf viewer (which isn’t brave’s download button). nothing really appears to be happening, you can just spam it, no dialog windows, nothing
  14. verify that now bave is inhibiting screensaver
  15. for good measure you can now spam it again, that would add a second inhibition. and then a third. and so on.
  16. quit brave
  17. wait 5 minutes
  18. verify that bave is still inhibiting screensaver

I can confirm the issue is occurring for me on Arch linux with current brave. However, the issue is not exclusive to brave and seems to be an upstream problem. I have the same behaviour with the binary official Chrome application as well.

Confirm this is reproducable with Brave 1.86.139, running on debian 13 with Cinnamon DE. I can clear the shutdown:sleep inhibitor by selecting “Exit” from the Brave menu, but not by closing all brave windows or killing all processes in Brave’s task manager.