Bug 485525 - Screen auto locks while playing video (Wayland)
Summary: Screen auto locks while playing video (Wayland)
Status: RESOLVED FIXED
Alias: None
Product: Haruna
Classification: Applications
Component: generic (show other bugs)
Version: 1.0.2
Platform: NixOS Linux
: NOR normal
Target Milestone: ---
Assignee: george fb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-14 06:40 UTC by Antares0982
Modified: 2024-05-11 12:48 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antares0982 2024-04-14 06:40:46 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
1. Using KDE6 (wayland)
2. Set "Lock screen automatically" after 5 minutes
3. Playing video

OBSERVED RESULT
Screen auto locks while playing video

EXPECTED RESULT
Does not lock screen since it is not idling

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux nixos 6.8.5 (NixOS 24.05pre610435.1042fd8b148a)
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
Comment 1 george fb 2024-04-14 14:10:14 UTC
Git commit ad4b3cd4a78a6a41e0f3c9ff942266aad0cce76d by George Florea Bănuș.
Committed on 14/04/2024 at 14:10.
Pushed by georgefb into branch 'master'.

lockmanager: make sure there is only one active inhibition

M  +4    -0    src/lockmanager.cpp

https://invent.kde.org/multimedia/haruna/-/commit/ad4b3cd4a78a6a41e0f3c9ff942266aad0cce76d
Comment 2 kinghat 2024-04-16 23:35:30 UTC
im having this issue while playing video on two of my fedora 39 systems. one laptop and one desktop:

Operating System: Fedora Linux 39
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.8.5-201.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-5600U CPU @ 2.60GHz
Memory: 11.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500

i tired to reproduce this in a fresh vm of f39 and f40 beta but i couldnt.
Comment 3 george fb 2024-05-11 10:03:39 UTC
Can you check if it still happens with version 1.1.0?
Comment 4 Antares0982 2024-05-11 12:44:04 UTC
(In reply to george fb from comment #3)
> Can you check if it still happens with version 1.1.0?

Built from source
```
pkgs.haruna.overrideAttrs {
      version = "1.1.0";
      src = fetchFromGitLab {
        owner = "multimedia";
        repo = "haruna";
        rev = "v1.1.0";
        hash = "sha256-403ZqllSSaOdTS1GSf8EIQk9gHOxMsWogbK9qh+MhpY=";
        domain = "invent.kde.org";
      };
    }
```
and can't reproduce now.