Bug 491922 - [Wayland] Power management timers do not re-trigger after video playback ends
Summary: [Wayland] Power management timers do not re-trigger after video playback ends
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.2.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
: 484500 495727 501189 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-08-19 22:41 UTC by Patrick Silva
Modified: 2025-06-13 18:54 UTC (History)
13 users (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 Patrick Silva 2024-08-19 22:41:20 UTC
STEPS TO REPRODUCE
1. open Power Management KCM
2. set "Turn off screen" to "1 minute" for test purposes
3. play a video longer than 1 minute with VLC player once - the Power Management applet reports that VLC blocks the power management during playback, as expected
4. after the video finishes, do not use your computer for 1 minute

OBSERVED RESULT
the screen does not turn off after the last step

EXPECTED RESULT
the screen turns off after video playback + 1 minute of inactivity

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 1 fanzhuyifan 2024-08-20 03:48:34 UTC
After the video finishes, does the power management applet still report anything blocking screen locking and sleep?
Comment 2 Patrick Silva 2024-08-20 03:56:46 UTC
(In reply to fanzhuyifan from comment #1)
> After the video finishes, does the power management applet still report
> anything blocking screen locking and sleep?

No.
Comment 3 Nate Graham 2024-08-20 17:17:07 UTC
Works for me with current git master. The video ends, the the inhibition message disappears from the widget, and then one minute later, the screen turns off.

Notably, my VLC is from distro packages. Is yours from distro packages, or Flathub, or somewhere else?
Comment 4 Patrick Silva 2024-08-20 17:37:56 UTC
My VLC was installed from Arch repositories. I can also reproduce by playing a video in youtube with Vivaldi browser.
Comment 5 Nate Graham 2024-08-20 17:39:12 UTC
Any chance you can test with current git master in Neon Unstable or something? There were a lot of Powerdevil changes between Plasma 6.1 d 6.2, so maybe it really is fixed in git master.
Comment 6 Patrick Silva 2024-08-20 21:56:56 UTC
I have created a live usb with neon-unstable-20240818-1120.iso; I can also reproduce on it with Firefox 129.0.1.
Comment 7 Nate Graham 2024-08-21 15:19:31 UTC
I'm at a loss to explain this, then.

Is Firefox installed from Snap or Flatpak in that Neon ISO?
Comment 8 Patrick Silva 2024-08-21 15:46:28 UTC
Firefox is installed from a PPA repository.

neon@neon:~$ apt info firefox
Package: firefox
Version: 129.0.1+build1-0ubuntu0.22.04.1~mt1
Priority: optional
Section: web
Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>
Installed-Size: 267 MB
Provides: gnome-www-browser, iceweasel, www-browser
Depends: lsb-release, libasound2 (>= 1.0.16), libatk1.0-0 (>= 1.12.4), libc6 (>= 2.35), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.10.0), libdbus-1-3 (>
= 1.9.14), libfontconfig1 (>= 2.12.6), libfreetype6 (>= 2.3.5), libgcc-s1 (>= 4.2), libgdk-pixbuf-2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.42), libgtk-3-0 (>=
3.14), libharfbuzz0b (>= 0.6.0), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libstdc++6 (>= 12), libx11-6, libx11-xcb1 (>= 2:1.7.5), libxcb
-shm0, libxcb1, libxcomposite1 (>= 1:0.4.5), libxcursor1 (>> 1.1.2), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxi6, libxrandr2 (>= 2:1.4.0), libxrend
er1
Recommends: xul-ext-ubufox, libcanberra0, libdbusmenu-glib4, libdbusmenu-gtk3-4
Suggests: fonts-lyx
Replaces: kubuntu-firefox-installer
Xul-Appid: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Download-Size: 73.1 MB
APT-Manual-Installed: no
APT-Sources: https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy/main amd64 Packages
Description: Safe and easy web browser from Mozilla

N: There is 1 additional record. Please use the '-a' switch to see it
Comment 9 Nate Graham 2024-08-28 20:43:13 UTC
Does it happen with th4e default Firefox that Neon installs?
Comment 10 Patrick Silva 2024-08-28 21:20:21 UTC
Firefox from ppa repository is installed by default on neon unstable.

The bug is not Firefox specific. I can reproduce with Vivaldi, VLC and Haruna player too.
Comment 11 TraceyC 2024-08-29 19:18:31 UTC
I'm also unable to reproduce the bug on git-master using Firefox (installed from repo) or VLC
What might help is to get logs from around the time just before and just after the display should have gone to sleep. Something like this will show all powerdevil logs for this boot:

sudo journalctl -b -0 | grep powerdevil
Comment 12 Patrick Silva 2024-08-29 20:19:42 UTC
Your command produces no output around the time just after reproducing the bug.
Comment 13 Patrick Silva 2024-09-03 02:19:23 UTC
I have just noticed that the bug does not occur on X11. I can only reproduce on Wayland.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 14 Tomas Jurena 2024-10-05 13:43:01 UTC
Hi, I am also experiencing this precise behaviour. As Patrick noticed the issue is only present on Wayland, I am not able to reproduce it when I use X11. I am using KDE Neon stable with Plasma 6.1.5.
If it helps I have attached the logs from the journalctrl with the debug information from Wayland and X11.
Wayland:
říj 05 14:56:35 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Enforcing inhibition from ":1.15" "vlc" with cookie 1 and reason "Přehrávání některých médií."
říj 05 14:56:35 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Added change screen settings
říj 05 14:56:35 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Added interrupt session
říj 05 14:56:35 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Can't contact ck
říj 05 14:56:50 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Update: QMap(("Energy", QVariant(double, 35.84))("EnergyRate", QVariant(double, 8.344))("TimeToEmpty", QVariant(qlonglong, 15463))("UpdateTime", QVariant(qulonglong, 1728133010)))
říj 05 14:57:03 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: DimDisplay: inhibited (or already dimmed), not dimming
říj 05 14:57:33 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: DPMS: inhibited (or unsupported), not turning off display
říj 05 14:57:46 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Update: QMap(("Energy", QVariant(double, 35.712))("EnergyRate", QVariant(double, 9.775))("TimeToEmpty", QVariant(qlonglong, 13152))("UpdateTime", QVariant(qulonglong, 1728133066)))
říj 05 14:57:50 jurenat-hp-835-g9 plasmashell[5837]: [00005f1940a0c020] main playlist: end of playlist, exiting
říj 05 14:57:50 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Releasing inhibition with cookie  1
říj 05 14:57:50 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Can't contact ck
říj 05 14:57:50 jurenat-hp-835-g9 vlc[5837]: uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
říj 05 14:57:50 jurenat-hp-835-g9 kded6[1507]: Service  ":1.73" unregistered
říj 05 14:57:50 jurenat-hp-835-g9 kwin_wayland[1365]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11
říj 05 14:57:50 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_core: Failed to focus 0x1600001 (error 3)
říj 05 14:57:50 jurenat-hp-835-g9 systemd[1303]: app-vlc-09c8c4c44004409c8e09d0a194b5a4e8.scope: Consumed 43.798s CPU time.
říj 05 14:57:50 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_core: XCB error: 3 (BadWindow), sequence: 1017, resource id: 23068673, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 14:57:50 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_core: XCB error: 3 (BadWindow), sequence: 1018, resource id: 23068673, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 14:57:50 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_core: XCB error: 3 (BadWindow), sequence: 1033, resource id: 23068673, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 14:57:50 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_core: XCB error: 3 (BadWindow), sequence: 1034, resource id: 23068673, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 14:57:50 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_core: XCB error: 3 (BadWindow), sequence: 1054, resource id: 20971526, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 14:57:50 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_core: XCB error: 3 (BadWindow), sequence: 1055, resource id: 20971526, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 14:58:14 jurenat-hp-835-g9 org_kde_powerdevil[1572]: org.kde.powerdevil: Update: QMap(("Energy", QVariant(double, 35.666))("EnergyRate", QVariant(double, 4.989))("TimeToEmpty", QVariant(qlonglong, 25736))("UpdateTime", QVariant(qulonglong, 1728133094)))
říj 05 14:59:33 jurenat-hp-835-g9 kwin_wayland[1365]: This plugin does not support raise()
říj 05 14:59:33 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
říj 05 14:59:33 jurenat-hp-835-g9 kwin_wayland[1365]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)

X11:
říj 05 15:36:28 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Enforcing inhibition from ":1.19" "vlc" with cookie 1 and reason "Přehrávání některých médií."
říj 05 15:36:28 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Added change screen settings
říj 05 15:36:28 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Added interrupt session
říj 05 15:36:28 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Can't contact ck
říj 05 15:36:39 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Update: QMap(("Energy", QVariant(double, 33.686))("EnergyRate", QVariant(double, 8.263))("Percentage", QVariant(double, 73))("TimeToEmpty", QVariant(qlonglong, 14676))("UpdateTime", QVariant(qulonglong, 1728135399)))
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/bin/plasmashell" 1556 "/var/lib/systemd/coredump/core.plasmashell.1000.df7f3b67e06c43088f40eba394dbcf09.1556.1724819265000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/libexec/xdg-desktop-portal" 1427 "/var/lib/systemd/coredump/core.xdg-desktop-por.1000.87fc14524a5e435aaeb811db02046b6b.1427.1724939404000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/libexec/xdg-desktop-portal" 1417 "/var/lib/systemd/coredump/core.xdg-desktop-por.1000.7f05703d1d1b4250b659d99291dbdaec.1417.1724955973000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/libexec/xdg-desktop-portal" 2319 "/var/lib/systemd/coredump/core.xdg-desktop-por.1000.39b2034441ac4011b1a5268a7d94eb8f.2319.1726861055000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/bin/plasmashell" 2449 "/var/lib/systemd/coredump/core.plasmashell.1000.39b2034441ac4011b1a5268a7d94eb8f.2449.1727642720000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/libexec/xdg-desktop-portal" 1660 "/var/lib/systemd/coredump/core.xdg-desktop-por.1000.4d79816ea64b4b70becf164705e34ff0.1660.1728122032000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/libexec/xdg-desktop-portal" 1377 "/var/lib/systemd/coredump/core.xdg-desktop-por.1000.3ae918ed43f843159ba03dd4b6c71f5b.1377.1728128775000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/libexec/xdg-desktop-portal" 6389 "/var/lib/systemd/coredump/core.xdg-desktop-por.1000.3ae918ed43f843159ba03dd4b6c71f5b.6389.1728133290000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-processor[10931]: "/usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde" 10642 "/var/lib/systemd/coredump/core.xdg-desktop-por.1000.3ae918ed43f843159ba03dd4b6c71f5b.10642.1728135338000000.zst"
říj 05 15:36:58 jurenat-hp-835-g9 systemd[10678]: Started Launch DrKonqi for a systemd-coredump crash (PID 10931/UID 1000).
říj 05 15:36:58 jurenat-hp-835-g9 systemd[10678]: Started Launch DrKonqi for a systemd-coredump crash (PID 10931/UID 1000).
říj 05 15:36:58 jurenat-hp-835-g9 systemd[10678]: Started Launch DrKonqi for a systemd-coredump crash (PID 10931/UID 1000).
říj 05 15:36:58 jurenat-hp-835-g9 systemd[10678]: Started Launch DrKonqi for a systemd-coredump crash (PID 10931/UID 1000).
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-launcher[12562]: Unable to find file for pid 1660 expected at "kcrash-metadata/xdg-desktop-portal.4d79816ea64b4b70becf164705e34ff0.1660.ini"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-launcher[12563]: Unable to find file for pid 1377 expected at "kcrash-metadata/xdg-desktop-portal.3ae918ed43f843159ba03dd4b6c71f5b.1377.ini"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-launcher[12564]: Unable to find file for pid 6389 expected at "kcrash-metadata/xdg-desktop-portal.3ae918ed43f843159ba03dd4b6c71f5b.6389.ini"
říj 05 15:36:58 jurenat-hp-835-g9 drkonqi-coredump-launcher[12565]: Unable to find file for pid 10642 expected at "kcrash-metadata/xdg-desktop-portal-kde.3ae918ed43f843159ba03dd4b6c71f5b.10642.ini"
říj 05 15:36:58 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: DimDisplay: inhibited (or already dimmed), not dimming
říj 05 15:37:07 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Update: QMap(("Energy", QVariant(double, 33.628))("EnergyRate", QVariant(double, 6.778))("TimeToEmpty", QVariant(qlonglong, 17860))("UpdateTime", QVariant(qulonglong, 1728135427)))
říj 05 15:37:28 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: DPMS: inhibited (or unsupported), not turning off display
říj 05 15:37:46 jurenat-hp-835-g9 plasmashell[12472]: [000063ce947db020] main playlist: end of playlist, exiting
říj 05 15:37:46 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Releasing inhibition with cookie  1
říj 05 15:37:46 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Can't contact ck
říj 05 15:37:46 jurenat-hp-835-g9 vlc[12472]: uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
říj 05 15:37:46 jurenat-hp-835-g9 kded6[10836]: Service  ":1.67" unregistered
říj 05 15:37:46 jurenat-hp-835-g9 kwin_x11[10839]: kwin_core: Failed to focus 0x4200001 (error 3)
říj 05 15:37:46 jurenat-hp-835-g9 kwin_x11[10839]: kwin_core: XCB error: 3 (BadWindow), sequence: 32553, resource id: 69206017, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 15:37:46 jurenat-hp-835-g9 kwin_x11[10839]: kwin_core: XCB error: 3 (BadWindow), sequence: 32554, resource id: 69206017, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 15:37:46 jurenat-hp-835-g9 kwin_x11[10839]: kwin_core: XCB error: 3 (BadWindow), sequence: 32571, resource id: 69206017, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 15:37:46 jurenat-hp-835-g9 kwin_x11[10839]: kwin_core: XCB error: 3 (BadWindow), sequence: 32572, resource id: 69206017, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 15:37:46 jurenat-hp-835-g9 kwin_x11[10839]: kwin_core: XCB error: 3 (BadWindow), sequence: 32728, resource id: 67108870, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 15:37:46 jurenat-hp-835-g9 kwin_x11[10839]: kwin_core: XCB error: 3 (BadWindow), sequence: 32729, resource id: 67108870, major code: 129 (SHAPE), minor code: 3 (Combine)
říj 05 15:37:46 jurenat-hp-835-g9 systemd[10678]: app-vlc-15cf394e35e649fea33446c1b1ae98ba.scope: Consumed 48.748s CPU time.
říj 05 15:38:03 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Update: QMap(("Energy", QVariant(double, 33.535))("TimeToEmpty", QVariant(qlonglong, 17811))("UpdateTime", QVariant(qulonglong, 1728135483)))
říj 05 15:38:16 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Screen brightness value: 12
říj 05 15:38:16 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: DimDisplay: triggered on idle timeout, dimming
říj 05 15:38:16 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Screen brightness value: 12
říj 05 15:38:16 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Kbd backlight brightness value:  0
říj 05 15:38:16 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: set screen brightness value: 4
říj 05 15:38:16 jurenat-hp-835-g9 dbus-daemon[778]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.203' (uid=1000 pid=10934 comm="/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdev" label="unconfined") (using servicehelper)
říj 05 15:38:16 jurenat-hp-835-g9 org.kde.powerdevil.backlighthelper[12634]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                                                                               Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                                                                               If this causes problems, reconfigure your locale. See the locale(1) manual
                                                                               for more information.
říj 05 15:38:16 jurenat-hp-835-g9 dbus-daemon[778]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
říj 05 15:38:16 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Screen brightness min visible value: 1
říj 05 15:38:16 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: [BacklightBrightness]: Udev device changed "/sys/devices/pci0000:00/0000:00:08.1/0000:e3:00.0/drm/card1/card1-eDP-1/amdgpu_bl1" "/sys/devices/pci0000:00/0000:00:08.1/0000:e3:00.0/drm/card1/card1-eDP-1/amdgpu_bl1"
říj 05 15:38:46 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: DPMS: starting to fade out
říj 05 15:38:46 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: DPMS: triggered on idle timeout, turning off display and keyboard backlight
říj 05 15:38:46 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Kbd backlight brightness value:  0
říj 05 15:38:48 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: DimDisplay: restoring brightness on wake-up from idle
říj 05 15:38:48 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: set screen brightness value: 12
říj 05 15:38:48 jurenat-hp-835-g9 dbus-daemon[778]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.203' (uid=1000 pid=10934 comm="/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdev" label="unconfined") (using servicehelper)
říj 05 15:38:48 jurenat-hp-835-g9 org.kde.powerdevil.backlighthelper[12643]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                                                                               Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                                                                               If this causes problems, reconfigure your locale. See the locale(1) manual
                                                                               for more information.
říj 05 15:38:48 jurenat-hp-835-g9 dbus-daemon[778]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
říj 05 15:38:48 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: Screen brightness min visible value: 1
říj 05 15:38:48 jurenat-hp-835-g9 org_kde_powerdevil[10934]: org.kde.powerdevil: [BacklightBrightness]: Udev device changed "/sys/devices/pci0000:00/0000:00:08.1/0000:e3:00.0/drm/card1/card1-eDP-1/amdgpu_bl1" "/sys/devices/pci0000:00/0000:00:08.1/0000:e3:00.0/drm/card1/card1-eDP-1/amdgpu_bl1"
Comment 15 Patrick Silva 2024-10-17 01:29:49 UTC
The bug persists; I can reproduce with:
VLC player
Haruna player
Firefox
Vivaldi browser - only when it runs on Xwayland, cannot reproduce with Vivaldi running natively on Wayland

Operating System: Arch Linux 
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Graphics Platform: Wayland
Comment 16 CocolinoFan 2024-11-03 16:54:08 UTC
*** Bug 495727 has been marked as a duplicate of this bug. ***
Comment 17 CocolinoFan 2024-11-03 16:55:14 UTC
Happens for me as well with Firefox flatpak.
Operating System: Kubuntu oracular 24.10 x86_64
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic
Graphics Platform: Wayland
Processors: Intel i7-7700K (8) @ 4.50 GHz
Memory: 31.30 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1080
Comment 18 m.kurz 2024-11-07 11:26:30 UTC
Happens to me as well with Firefox on Wayland, just like someone reported at https://bugs.kde.org/show_bug.cgi?id=495727

Operating System: Arch Linux ARM 
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.6-asahi-2-1-ARCH (64-bit)
Graphics Platform: Wayland
Processors: 8 × Apple Firestorm (M1 Pro), 2 × Apple Icestorm (M1 Pro)
Memory: 31,0 GiB of RAM
Graphics Processor: Apple M1 Pro
Product Name: Apple MacBook Pro (14-inch, M1 Pro, 2021)
Comment 19 Timothy Arnold 2024-11-19 02:53:24 UTC
This started happening to me recently. After videos play, the blocking status persists even after closing the tabs the video was in for Firefox.
This happens on Firefox 132.0.1 (64-bit) for me with the Firefox provided for in the Fedora 41 Repos.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.7-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 590 Series
Comment 20 TraceyC 2024-11-19 19:52:44 UTC
Marking confirmed since multiple people are experiencing the problem

I'm still unable to reproduce this with git-master
Comment 21 m.kurz 2024-11-20 11:49:17 UTC
> I'm still unable to reproduce this with git-master

Maybe this is working in master for you, but stable version 6.2.3 is broken for many people.
Plasma 6.3 is due in February, however this is such an annoying bug, it would be great to have it fixed in 6.2 already.
Also, maybe this is also broken in master but you are just not able to reproduce...
Comment 22 Nate Graham 2024-11-20 21:18:34 UTC
Everyone experiencing it is using 6.2 or earlier, and Tracey and I both can't reproduce it on git master. Let's call it fixed in Plasma 6.3.0. Hopefully someone can figure out what exactly fixed it for backporting purposes.
Comment 23 Xavier Corredor Llano 2024-11-30 02:37:41 UTC
Issue fixed for me in the last update Plasma 6.2.4, thanks KDE devs!
Comment 24 Patrick Silva 2024-11-30 03:10:41 UTC
The problem persists on my system also running Plasma 6.2.4. Can reproduce with VLC and Firefox.

Operating System: Arch Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Graphics Platform: Wayland
Comment 25 Patrick Silva 2024-11-30 10:49:31 UTC
Can reproduce on neon unstable too. With VLC and Haruna video players.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.0
Graphics Platform: Wayland
Comment 26 m.kurz 2024-12-04 12:38:59 UTC
> Issue fixed for me in the last update Plasma 6.2.4, thanks KDE devs!

Same for me!

After upgrading to KDE Plasma 6.2.4 (from 6.2.3) (and Firefox from 132.0.2-1 to 133.0-1 at the same time) this issue does not occur anymore for me. Usually after a couple of hours I had tens of Firefox false positive instances blocking sleep (just as described in duplicate bug 495727), now since two days everything is working correctly again, my Laptop now turns off the screen and also goes to sleep again correctly.

Not sure if this was just the Plasma 6.2.4 upgrade or/and also the Firefox 133 upgrade, but things are working now for me again.

So I am the second person in this thread confirming this is working now with Plasma 6.2.4.
What about the others? Is it working for you now?
Comment 27 Patrick Silva 2024-12-04 14:07:46 UTC
As said in previous comments, the bug is not Firefox specific. And I can reproduce even with Firefox 133 on my system.

Operating System: Arch Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Graphics Platform: Wayland
Comment 28 m.kurz 2024-12-04 14:38:20 UTC
Strange Patrick.

This is my system:

Operating System: Arch Linux ARM 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.12.1-asahi-7-1-ARCH (64-bit)
Graphics Platform: Wayland
Processors: 8 × Apple Firestorm (M1 Pro), 2 × Apple Icestorm (M1 Pro)
Memory: 31,0 GiB of RAM
Graphics Processor: Apple M1 Pro
Product Name: Apple MacBook Pro (14-inch, M1 Pro, 2021)

Here is the log of the upgrade since my problem got fixed, maybe you find something that is relevant for you: https://gist.github.com/mkurz/30d153483dfeb9c5152337d580a84646
(I also upgraded the kernel to from 6.11 to 6.12 shortly afterwards but I don't think that should be relevant)
Comment 29 Nate Graham 2024-12-10 22:46:37 UTC
For anyone who can reproduce this on git master (Patrick; anyone else?) can you be specific about:
1. Exactly which apps cause it, and which ones don't (if any don't)
2. How the apps are packaged (distro packaging, Flatpak, Snap, other)
3. Are they native Wayland apps or running in XWayland

Thanks!
Comment 30 Patrick Silva 2024-12-11 01:17:53 UTC
Ok, I have just tested some apps on Wayland session of neon unstable.

Can reproduce with:
VLC player, installed via flatpak/flathub, running on Xwayland
Firefox, installed via PPA repository, running natively on Wayland
SMPlayer, installed via PPA repository, running on Xwayland
Haruna player, installed from neon repositories, running natively on Wayland

Cannot reproduce with:
mpv player, installed via flatpak/flathub, running natively on Wayland
Vivaldi browser, installed with a .deb package, running natively on Wayland
Comment 31 Nate Graham 2024-12-11 18:12:48 UTC
Thanks. Unfortunately I'm unable to reproduce the issue with *any* of those four apps from either Flathub or distro repos on git master on top of Fedora 41.
Comment 32 TraceyC 2024-12-12 00:10:48 UTC
I re-testing on today's git-master with the following

- VLC installed from repository, running on Xwayland - the screen was turned off after 1 minute even with a video playing

I was not able to replicate with these, the screen was turned off after 1 minute normally after the video ended

- SMPlayer, installed via repository, running on Xwayland
- Haruna player, installed from repository, running natively on Wayland 
- Firefox, installed from repository, running natively on Wayland
Comment 33 CocolinoFan 2024-12-12 01:36:04 UTC
It happened again, it stopped for a month and now it started again.
I seen the issue occur with Firefox and only once with Steam.

Operating System: Kubuntu oracular 24.10 x86_64
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic
Graphics Platform: Wayland

Firefox: v133.0.3 - Flatpak - Wayland/XWayland I don't know
Steam: v1733265492 - distro packaging - Wayland/XWayland I don't know

Helpful screenshot?: https://postimg.cc/ppkpKwPH
Comment 34 Nate Graham 2025-03-07 20:20:56 UTC
*** Bug 501189 has been marked as a duplicate of this bug. ***
Comment 35 Nate Graham 2025-03-07 20:21:32 UTC
*** Bug 484500 has been marked as a duplicate of this bug. ***