Bug 432792 - randomly during video viewing with vlc i get a lock screen
Summary: randomly during video viewing with vlc i get a lock screen
Status: RESOLVED FIXED
Alias: None
Product: Powerdevil
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 5.20.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-02-11 09:53 UTC by Philippe ROUBACH
Modified: 2022-09-23 18:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
MGS5 dbus-monitor log (7.17 KB, text/plain)
2021-03-05 16:55 UTC, jonni
Details
Dota2 dbus-monitor log (11.69 KB, text/plain)
2021-03-05 16:55 UTC, jonni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2021-02-11 09:53:36 UTC
SUMMARY


STEPS TO REPRODUCE
1. launch vlc
2. view a video
3. wait for 5 mn

OBSERVED RESULT

randomly one day you get a lock screen one day you don't.

EXPECTED RESULT

you don't get any lock screen

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

kde apps 20.12.2

it's a very old bug, several years.
Comment 1 Nate Graham 2021-02-11 17:26:45 UTC
VLC needs to inhibit suspend. For me it does; evidently for you, it only sometimes do this.

Can you do an experiment for me?

1. Open VLC with a video
2. Click on the "Battery and Brightness" aplet in the system tray
3. See if the header of the applet says "An application is preventing sleep and screen locking: VLC Media Player: playing some media.

If it does say that, then the screen should not lock in 5 minutes. If it does not say that, then the screen should lock.

Can you go see if that's the case? Thanks!
Comment 2 Philippe ROUBACH 2021-02-11 22:36:21 UTC
It's a desktop not a laptop.

There is no "Battery and Brightness" applet in the system tray.
Comment 3 Nate Graham 2021-02-11 22:38:20 UTC
Ah ok, it's not showing up because you don't have any batteries, which is sort of a known bug. You can make it show up by either manually adding that widget to the desktop or something, or setting it to "Always show" in the System Tray config window.
Comment 4 Philippe ROUBACH 2021-02-11 23:00:35 UTC
If I view a video with VLC
there is "An application is preventing sleep and screen locking: VLC Media Player: playing some media"
Comment 5 Nate Graham 2021-02-12 02:45:21 UTC
Ok great, that's what I would expect.

So now, if you start watching the video, the screen will lock in 5 minutes?
Comment 6 Philippe ROUBACH 2021-02-12 08:45:12 UTC
(In reply to Nate Graham from comment #5)
> Ok great, that's what I would expect.
> 
> So now, if you start watching the video, the screen will lock in 5 minutes?

Sometime yes.
Comment 7 Philippe ROUBACH 2021-02-12 10:47:00 UTC
It is the same problem viewing a YouTube video with Firefox.
Comment 8 Nate Graham 2021-02-12 14:21:14 UTC
All right, that's odd. The widget seems to know about the inhibition, but it's getting ignored sometimes. Moving to powerdevil. Thanks for your patience.
Comment 9 Philippe ROUBACH 2021-02-18 07:41:28 UTC
I forgot to say :

Sometimes I don't get a black screen after 5 mn or a lock screen after 10 mn.
Comment 10 Philippe ROUBACH 2021-02-24 18:53:23 UTC
I wonder if this problem is not relative to a problem I submit to openSuse bugzilla.

see
https://bugzilla.suse.com/show_bug.cgi?id=1182562
Comment 11 jonni 2021-03-05 16:55:20 UTC
Created attachment 136405 [details]
MGS5 dbus-monitor log

Hi all

I'm having weird behavior with lock screen, as well. 

For me it's happening with Metal Gear Solid 5 under Proton, so to be fair it could be a problem in Proton. However, I'd like to mention it here as well just in case as these two cases are pretty similar. I'm also getting a notification that the screen lock is being inhibited by the game but the screen will lock after a while. Most of the time the screen locks for some reason but sometimes it doesn't.

I ran dbus-monitor when running MGS5 and I've attached a part of the log here. 
Judging by the log if I understood correctly, sometimes when you call HasInhibition you get false, but sometimes you get true.
I did the same for Dota 2 as well where there is no problem with inhibiting the screen locker. Will attach the log for Dota 2 as well.

Specs:
Operating System: Arch Linux
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 12 jonni 2021-03-05 16:55:43 UTC
Created attachment 136406 [details]
Dota2 dbus-monitor log
Comment 13 Philippe ROUBACH 2021-03-19 08:53:31 UTC
Hello

i can almost reproduce the phenomenon.

with VLC
play a video then stop it.
play another video then stop it
play another video then you get a black screen with strong probability.
Comment 14 Patrick Silva 2021-06-04 00:05:05 UTC
I had this problem once with some point release of Plasma 5.21 and VLC
on Arch Linux. I do not know exact steps to reproduce though.
Comment 15 Nate Graham 2022-09-08 05:02:05 UTC
Is anyone able to reproduce this issue in Plasma 5.25 or later and the latest version of VLC?
Comment 16 Bug Janitor Service 2022-09-23 04:48:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 17 Nate Graham 2022-09-23 17:27:46 UTC
Philip, by resetting the status back to REPORTED, does that mean you can reproduce the issue with Plasma 5.25 and the latest version of VLC?
Comment 18 Philippe ROUBACH 2022-09-23 18:33:49 UTC
i did not encounter the problem for a long time.

I close this report