You are not logged in.

#1 2024-01-19 02:53:54

icewolf0110
Member
Registered: 2023-11-04
Posts: 15

kde power management system keeps crashing

after an update the kde power management is just continuously try to start and then crash

the journalctl -r show

Jan 19 09:52:28 localhost systemd[1]: systemd-coredump@2992-100311-0.service: Deactivated successfully.
Jan 19 09:52:28 localhost systemd-coredump[100312]: [?] Process 100285 (org_kde_powerde) of user 1000 dumped core.
                                                   
                                                    Stack trace of thread 100285:
                                                    #0  0x000073ae510ac83c n/a (libc.so.6 + 0x8e83c)
                                                    #1  0x000073ae5105c668 raise (libc.so.6 + 0x3e668)
                                                    #2  0x000073ae5250c41c _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x741c)
                                                    #3  0x000073ae5105c710 n/a (libc.so.6 + 0x3e710)
                                                    #4  0x000073ae510ac83c n/a (libc.so.6 + 0x8e83c)
                                                    #5  0x000073ae5105c668 raise (libc.so.6 + 0x3e668)
                                                    #6  0x000073ae510444b8 abort (libc.so.6 + 0x264b8)
                                                    #7  0x000073ae510443dc n/a (libc.so.6 + 0x263dc)
                                                    #8  0x000073ae51054d26 __assert_fail (libc.so.6 + 0x36d26)
                                                    #9  0x000073ae4ad6a2b9 n/a (libddcutil.so.5 + 0x4c2b9)
                                                    #10 0x000073ae4ad6cf35 n/a (libddcutil.so.5 + 0x4ef35)
                                                    #11 0x000073ae4ad6d1f5 n/a (libddcutil.so.5 + 0x4f1f5)
                                                    #12 0x000073ae4ad9116b n/a (libddcutil.so.5 + 0x7316b)
                                                    #13 0x000073ae4ad988a2 ddca_get_display_info_list2 (libddcutil.so.5 + 0x7a8a2)
                                                    #14 0x000073ae4b6d5d37 n/a (powerdevilupowerbackend.so + 0x11d37)
                                                    #15 0x000073ae4b6d762e _ZN23PowerDevilUPowerBackend18initWithBrightnessEb (powerdevilupowerbackend.so + 0x1362e)
                                                    #16 0x000073ae518d0e27 n/a (libQt5Core.so.5 + 0x2d0e27)
                                                    #17 0x000073ae4b6cc634 _ZN23PowerDevilUPowerBackend24brightnessSupportQueriedEb (powerdevilupowerbackend.so + 0x8634)
                                                    #18 0x000073ae518d0e27 n/a (libQt5Core.so.5 + 0x2d0e27)
                                                    #19 0x000073ae5235c56a _ZN4KJob6resultEPS_NS_14QPrivateSignalE (libKF5CoreAddons.so.5 + 0x5e56a)
                                                    #20 0x000073ae5236253c n/a (libKF5CoreAddons.so.5 + 0x6453c)
                                                    #21 0x000073ae518d0e27 n/a (libQt5Core.so.5 + 0x2d0e27)
                                                    #22 0x000073ae4bafe7bd n/a (kauth_helper_plugin.so + 0xa7bd)
                                                    #23 0x000073ae4baff0a1 n/a (kauth_helper_plugin.so + 0xb0a1)
                                                    #24 0x000073ae5229e76e n/a (libQt5DBus.so.5 + 0x2176e)
                                                    #25 0x000073ae518c3964 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2c3964)
                                                    #26 0x000073ae5189bef8 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x29bef8)
                                                    #27 0x000073ae518a0e5b _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5 + 0x2a0e5b)
                                                    #28 0x000073ae518e6ec8 n/a (libQt5Core.so.5 + 0x2e6ec8)
                                                    #29 0x000073ae5010df69 n/a (libglib-2.0.so.0 + 0x59f69)
                                                    #30 0x000073ae5016c367 n/a (libglib-2.0.so.0 + 0xb8367)
                                                    #31 0x000073ae5010c162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                                                    #32 0x000073ae518ead0c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2ead0c)
                                                    #33 0x000073ae5189ac04 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x29ac04)
                                                    #34 0x000073ae5189c0a3 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x29c0a3)
                                                    #35 0x0000652c22e3955b n/a (org_kde_powerdevil + 0x655b)
                                                    #36 0x000073ae51045cd0 n/a (libc.so.6 + 0x27cd0)
                                                    #37 0x000073ae51045d8a __libc_start_main (libc.so.6 + 0x27d8a)
                                                    #38 0x0000652c22e3a045 n/a (org_kde_powerdevil + 0x7045)
                                                   
                                                    Stack trace of thread 100292:
                                                    #0  0x000073ae5112c73d syscall (libc.so.6 + 0x10e73d)
                                                    #1  0x000073ae501672f7 g_cond_wait (libglib-2.0.so.0 + 0xb32f7)
                                                    #2  0x000073ae500d91b4 n/a (libglib-2.0.so.0 + 0x251b4)
                                                    #3  0x000073ae50141a8e n/a (libglib-2.0.so.0 + 0x8da8e)
                                                    #4  0x000073ae5013fa05 n/a (libglib-2.0.so.0 + 0x8ba05)
                                                    #5  0x000073ae510aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                    #6  0x000073ae5112e7cc n/a (libc.so.6 + 0x1107cc)
                                                   
                                                    Stack trace of thread 100290:
                                                    #0  0x000073ae51120f6f __poll (libc.so.6 + 0x102f6f)
                                                    #1  0x000073ae4bb8905d n/a (libQt5WaylandClient.so.5 + 0x7305d)
                                                    #2  0x000073ae516f379a n/a (libQt5Core.so.5 + 0xf379a)
                                                    #3  0x000073ae510aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                    #4  0x000073ae5112e7cc n/a (libc.so.6 + 0x1107cc)
                                                   
                                                    Stack trace of thread 100288:
                                                    #0  0x000073ae51120f6f __poll (libc.so.6 + 0x102f6f)
                                                    #1  0x000073ae5016c2b6 n/a (libglib-2.0.so.0 + 0xb82b6)
                                                    #2  0x000073ae5010c162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                                                    #3  0x000073ae518ead0c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2ead0c)
                                                    #4  0x000073ae5189ac04 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x29ac04)
                                                    #5  0x000073ae516f7576 _ZN7QThread4execEv (libQt5Core.so.5 + 0xf7576)
                                                    #6  0x000073ae52295a9a n/a (libQt5DBus.so.5 + 0x18a9a)
                                                    #7  0x000073ae516f379a n/a (libQt5Core.so.5 + 0xf379a)
                                                    #8  0x000073ae510aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                    #9  0x000073ae5112e7cc n/a (libc.so.6 + 0x1107cc)
                                                   
                                                    Stack trace of thread 100289:
                                                    #0  0x000073ae51120f6f __poll (libc.so.6 + 0x102f6f)
                                                    #1  0x000073ae4bb8905d n/a (libQt5WaylandClient.so.5 + 0x7305d)
                                                    #2  0x000073ae516f379a n/a (libQt5Core.so.5 + 0xf379a)
                                                    #3  0x000073ae510aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                    #4  0x000073ae5112e7cc n/a (libc.so.6 + 0x1107cc)
                                                   
                                                    Stack trace of thread 100293:
                                                    #0  0x000073ae51120f6f __poll (libc.so.6 + 0x102f6f)
                                                    #1  0x000073ae5016c2b6 n/a (libglib-2.0.so.0 + 0xb82b6)
                                                    #2  0x000073ae5010c162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                                                    #3  0x000073ae5010c1b2 n/a (libglib-2.0.so.0 + 0x581b2)
                                                    #4  0x000073ae5013fa05 n/a (libglib-2.0.so.0 + 0x8ba05)
                                                    #5  0x000073ae510aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                    #6  0x000073ae5112e7cc n/a (libc.so.6 + 0x1107cc)
                                                   
                                                    Stack trace of thread 100294:
                                                    #0  0x000073ae51120f6f __poll (libc.so.6 + 0x102f6f)
                                                    #1  0x000073ae5016c2b6 n/a (libglib-2.0.so.0 + 0xb82b6)
                                                    #2  0x000073ae5010eb97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
                                                    #3  0x000073ae4c0be19c n/a (libgio-2.0.so.0 + 0x11219c)
                                                    #4  0x000073ae5013fa05 n/a (libglib-2.0.so.0 + 0x8ba05)
                                                    #5  0x000073ae510aa9eb n/a (libc.so.6 + 0x8c9eb)
                                                    #6  0x000073ae5112e7cc n/a (libc.so.6 + 0x1107cc)
                                                    ELF object binary architecture: AMD x86-64
Jan 19 09:52:28 localhost org_kde_powerdevil[100309]: org_kde_powerdevil: i2c_bus_core.c:614: i2c_check_bus: Assertion `sys_drm_connectors' failed.
Jan 19 09:52:28 localhost libddcutil[100309]: Initializing libddcutil.  ddcutil version: 2.1.0, shared library: /usr/lib/libddcutil.so.5.1.0
Jan 19 09:52:28 localhost org_kde_powerdevil[100309]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
Jan 19 09:52:28 localhost org_kde_powerdevil[100309]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardw
are"
Jan 19 09:52:27 localhost systemd[1]: Started Process Core Dump (PID 100311/UID 0).
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: KCrash: Arguments: /usr/lib/org_kde_powerdevil
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: KCrash: Application Name = org_kde_powerdevil path = /usr/lib pid = 100285
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: KCrash: crashing... crashRecursionCounter = 2
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 15 -- restarted=true
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 23 -- productname=Powerdevil
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 31 -- bugaddress=submit@bugs.kde.org
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 40 -- programname=KDE Power Management System
Jan 19 09:52:28 localhost org_kde_powerdevil[100309]: org_kde_powerdevil: i2c_bus_core.c:614: i2c_check_bus: Assertion `sys_drm_connectors' failed.
Jan 19 09:52:28 localhost libddcutil[100309]: Initializing libddcutil.  ddcutil version: 2.1.0, shared library: /usr/lib/libddcutil.so.5.1.0
Jan 19 09:52:28 localhost org_kde_powerdevil[100309]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
Jan 19 09:52:28 localhost org_kde_powerdevil[100309]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardw
are"
Jan 19 09:52:27 localhost systemd[1]: Started Process Core Dump (PID 100311/UID 0).
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: KCrash: Arguments: /usr/lib/org_kde_powerdevil
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: KCrash: Application Name = org_kde_powerdevil path = /usr/lib pid = 100285
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: KCrash: crashing... crashRecursionCounter = 2
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 15 -- restarted=true
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 23 -- productname=Powerdevil
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 31 -- bugaddress=submit@bugs.kde.org
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 40 -- programname=KDE Power Management System
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 19 -- appversion=5.27.10
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 11 -- pid=100285
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 9 -- signal=6
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 17 -- apppath=/usr/lib
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 27 -- appname=org_kde_powerdevil
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 17 -- platform=wayland
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: 32 -- exe=/usr/lib/org_kde_powerdevil
Jan 19 09:52:27 localhost org_kde_powerdevil[100285]: KCrash: Attempting to start /usr/lib/org_kde_powerdevil
Jan 19 09:52:27 localhost kded5[752]: Registering ":1.5443/StatusNotifierItem" to system tray
Jan 19 09:52:27 localhost drkonqi[100286]: kf5idletime_wayland: This plugin does not support polling idle time
Jan 19 09:52:26 localhost org_kde_powerdevil[100285]: org_kde_powerdevil: i2c_bus_core.c:614: i2c_check_bus: Assertion `sys_drm_connectors' failed.
Jan 19 09:52:26 localhost libddcutil[100285]: Initializing libddcutil.  ddcutil version: 2.1.0, shared library: /usr/lib/libddcutil.so.5.1.0
Jan 19 09:52:26 localhost org_kde_powerdevil[100285]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
Jan 19 09:52:26 localhost org_kde_powerdevil[100285]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardw
are"
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: KCrash: Attempting to start /usr/lib/drkonqi
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: KCrash: Arguments: /usr/lib/org_kde_powerdevil
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: KCrash: Application Name = org_kde_powerdevil path = /usr/lib pid = 100272
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: KCrash: crashing... crashRecursionCounter = 2
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 15 -- restarted=true
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 23 -- productname=Powerdevil
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 31 -- bugaddress=submit@bugs.kde.org
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 40 -- programname=KDE Power Management System
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 19 -- appversion=5.27.10
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 11 -- pid=100272
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 9 -- signal=6
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 17 -- apppath=/usr/lib
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 27 -- appname=org_kde_powerdevil
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 17 -- platform=wayland
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: 32 -- exe=/usr/lib/org_kde_powerdevil
Jan 19 09:52:26 localhost org_kde_powerdevil[100272]: KCrash: Attempting to start /usr/lib/org_kde_powerdevil
Jan 19 09:52:25 localhost org_kde_powerdevil[100272]: org_kde_powerdevil: i2c_bus_core.c:614: i2c_check_bus: Assertion `sys_drm_connectors' failed.
Jan 19 09:52:25 localhost libddcutil[100272]: Initializing libddcutil.  ddcutil version: 2.1.0, shared library: /usr/lib/libddcutil.so.5.1.0
Jan 19 09:52:25 localhost org_kde_powerdevil[100272]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
Jan 19 09:52:25 localhost org_kde_powerdevil[100272]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardw
are"
Jan 19 09:52:25 localhost systemd[568]: Starting Powerdevil...
Jan 19 09:52:25 localhost systemd[568]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 750.
Jan 19 09:52:25 localhost systemd[568]: plasma-powerdevil.service: Consumed 8.412s CPU time.
Jan 19 09:52:25 localhost systemd[568]: Failed to start Powerdevil.
Jan 19 09:52:25 localhost systemd[568]: plasma-powerdevil.service: Failed with result 'timeout'.
Jan 19 09:52:25 localhost systemd[568]: plasma-powerdevil.service: Main process exited, code=dumped, status=6/ABRT
Jan 19 09:52:25 localhost systemd[1]: systemd-coredump@2991-100262-0.service: Deactivated successfully.

Offline

#2 2024-01-19 03:25:08

Kirby
Member
Registered: 2005-08-04
Posts: 10

Re: kde power management system keeps crashing

Downgrade back to ddcutil-2.0.0-1 for the meantime

Offline

#3 2024-01-19 03:39:47

edtoml
Member
Registered: 2024-01-19
Posts: 1

Re: kde power management system keeps crashing

Had the same problem here.  Downgrading ddcutil as suggested fixes the issue here.

Offline

#4 2024-01-19 04:00:02

icewolf0110
Member
Registered: 2023-11-04
Posts: 15

Re: kde power management system keeps crashing

Thank you, guys. I will still keep this not solved since the package maintainers did not get the package fixed.

Offline

#5 2024-01-19 15:57:34

Tonurics
Member
Registered: 2010-12-10
Posts: 6

Re: kde power management system keeps crashing

For those looking for the command to downgrade:

sudo pacman -U https://archive.archlinux.org/packages/d/ddcutil/ddcutil-2.0.0-1-x86_64.pkg.tar.zst

----

The next step is for someone to alert the package maintainer of the issue, by flagging the ddcutil package as broken.

[I just requested a user on GitLab to do so. But if someone else beats me to it: that wouldn't be a bad thing.]

Offline

#6 2024-01-19 16:57:39

sucora
Member
Registered: 2024-01-19
Posts: 2

Re: kde power management system keeps crashing

Tonurics wrote:

For those looking for the command to downgrade:

sudo pacman -U https://archive.archlinux.org/packages/d/ddcutil/ddcutil-2.0.0-1-x86_64.pkg.tar.zst

----

The next step is for someone to alert the package maintainer of the issue, by flagging the ddcutil package as broken.

[I just requested a user on GitLab to do so. But if someone else beats me to it: that wouldn't be a bad thing.]

I believe https://gitlab.archlinux.org/archlinux/ … e3b119eedc is more relevant, although on my system this fix doesn't seem to have done anything. I think it would be correct to report the issue there rather than the ddcutil package; that or wait for the upstream powerdevil fix to be backported.

Offline

#7 2024-01-19 17:52:27

jpetso
Member
Registered: 2024-01-19
Posts: 1

Re: kde power management system keeps crashing

For people who still have problems after David Edmundson's patch to ignore invalid displays (https://gitlab.archlinux.org/archlinux/ … e3b119eedc), please help out with debugging if you can. I left some instructions in the KDE bug tracker (https://bugs.kde.org/show_bug.cgi?id=476375#c60) for how to set custom ddcutil options for use by KDE's PowerDevil service.

You could for instance try out the ddcutil option `--disable-dynamic-sleep` to see if that makes a difference (I believe it's new for 2.0), or `--discard-caches all`, or dive deep with tracing and collaborate with the ddcutil maintainer on a crash fix (given that the crash is happening inside of libddcutil).

Offline

#8 2024-01-19 17:53:45

loqs
Member
Registered: 2014-03-06
Posts: 17,911

Re: kde power management system keeps crashing

Tonurics wrote:

The next step is for someone to alert the package maintainer of the issue

https://gitlab.archlinux.org/archlinux/ … -/issues/1

sucora wrote:

I believe https://gitlab.archlinux.org/archlinux/ … e3b119eedc is more relevant, although on my system this fix doesn't seem to have done anything. I think it would be correct to report the issue there rather than the ddcutil package; that or wait for the upstream powerdevil fix to be backported.

Have you tried downgrading gtk3?  https://gitlab.archlinux.org/archlinux/ … ote_157575

Last edited by loqs (2024-01-19 17:54:30)

Offline

#9 2024-01-19 18:26:37

sucora
Member
Registered: 2024-01-19
Posts: 2

Re: kde power management system keeps crashing

loqs wrote:
Tonurics wrote:

The next step is for someone to alert the package maintainer of the issue

https://gitlab.archlinux.org/archlinux/ … -/issues/1

sucora wrote:

I believe https://gitlab.archlinux.org/archlinux/ … e3b119eedc is more relevant, although on my system this fix doesn't seem to have done anything. I think it would be correct to report the issue there rather than the ddcutil package; that or wait for the upstream powerdevil fix to be backported.

Have you tried downgrading gtk3?  https://gitlab.archlinux.org/archlinux/ … ote_157575

I don't think gtk3 is at fault here. From testing on my desktop and laptop, it seems that this is only affecting my desktop (I am assuming because my laptop's display has different capabilities).

Running the same packages on both my laptop and desktop, here is a backtrace on my desktop:

Thread 6 (Thread 0x7d89dea006c0 (LWP 24692)):
#0  0x00007d89ead20f6f in __GI___poll (fds=0x5a7eb9630360, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007d89e9d6c2b6 in g_main_context_poll_unlocked (priority=2147483647, n_fds=1, fds=0x5a7eb9630360, timeout=<optimized out>, context=0x5a7eb96300f0) at ../glib/glib/gmain.c:4653
#2  g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x5a7eb96300f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4344
#3  0x00007d89e9d0c162 in g_main_context_iteration (context=0x5a7eb96300f0, may_block=may_block@entry=1) at ../glib/glib/gmain.c:4414
#4  0x00007d89e9d0c1b2 in glib_worker_main (data=<optimized out>) at ../glib/glib/gmain.c:6574
#5  0x00007d89e9d3fa05 in g_thread_proxy (data=0x5a7eb9630300) at ../glib/glib/gthread.c:831
#6  0x00007d89eacaa9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#7  0x00007d89ead2e7cc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 5 (Thread 0x7d89dfe006c0 (LWP 24689)):
#0  0x00007d89ead20f6f in __GI___poll (fds=fds@entry=0x7d89dfdffbc8, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007d89ebe8d20b in poll (__timeout=-1, __nfds=1, __fds=0x7d89dfdffbc8) at /usr/include/bits/poll2.h:39
#2  _xcb_conn_wait (c=c@entry=0x5a7eb957a080, vector=vector@entry=0x0, count=count@entry=0x0, cond=<optimized out>) at /usr/src/debug/libxcb/libxcb-1.16/src/xcb_conn.c:510
#3  0x00007d89ebe8ef3d in _xcb_conn_wait (count=0x0, vector=0x0, cond=0x5a7eb957a0c0, c=0x5a7eb957a080) at /usr/src/debug/libxcb/libxcb-1.16/src/xcb_conn.c:476
#4  xcb_wait_for_event (c=0x5a7eb957a080) at /usr/src/debug/libxcb/libxcb-1.16/src/xcb_in.c:703
#5  0x00007d89e57cbf32 in QXcbEventQueue::run() (this=0x5a7eb95771b0) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventqueue.cpp:228
#6  0x00007d89eb2f379a in operator() (__closure=<optimized out>) at thread/qthread_unix.cpp:350
#7  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at thread/qthread_unix.cpp:287
#8  QThreadPrivate::start(void*) (arg=0x5a7eb95771b0) at thread/qthread_unix.cpp:310
#9  0x00007d89eacaa9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#10 0x00007d89ead2e7cc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 4 (Thread 0x7d89e52006c0 (LWP 24688)):
#0  0x00007d89ead20f6f in __GI___poll (fds=0x7d89e0012050, nfds=4, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007d89e9d6c2b6 in g_main_context_poll_unlocked (priority=2147483647, n_fds=4, fds=0x7d89e0012050, timeout=<optimized out>, context=0x7d89e0000c50) at ../glib/glib/gmain.c:4653
#2  g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7d89e0000c50, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4344
#3  0x00007d89e9d0c162 in g_main_context_iteration (context=0x7d89e0000c50, may_block=1) at ../glib/glib/gmain.c:4414
#4  0x00007d89eb4ead0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7d89e0000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007d89eb49ac04 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7d89e51ffc90, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#6  0x00007d89eb2f7576 in QThread::exec() (this=this@entry=0x7d89eb7ff660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007d89eb797a9a in QDBusConnectionManager::run() (this=0x7d89eb7ff660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at /usr/src/debug/qt5-base/qtbase/src/dbus/qdbusconnection.cpp:179
#8  0x00007d89eb2f379a in operator() (__closure=<optimized out>) at thread/qthread_unix.cpp:350
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at thread/qthread_unix.cpp:287
#10 QThreadPrivate::start(void*) (arg=0x7d89eb7ff660 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:310
#11 0x00007d89eacaa9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#12 0x00007d89ead2e7cc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 3 (Thread 0x7d89df4006c0 (LWP 24691)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007d89e9d672f7 in g_cond_wait (cond=0x7d89e000dba8, mutex=0x7d89e000dba0) at ../glib/glib/gthread-posix.c:1552
#2  0x00007d89e9cd91b4 in g_async_queue_pop_intern_unlocked (queue=0x7d89e000dba0, wait=1, end_time=-1) at ../glib/glib/gasyncqueue.c:425
#3  0x00007d89e9d41a8e in g_thread_pool_spawn_thread (data=<optimized out>) at ../glib/glib/gthreadpool.c:311
#4  0x00007d89e9d3fa05 in g_thread_proxy (data=0x5a7eb962fe20) at ../glib/glib/gthread.c:831
#5  0x00007d89eacaa9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#6  0x00007d89ead2e7cc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 2 (Thread 0x7d89de0006c0 (LWP 24693)):
#0  0x00007d89ead20f6f in __GI___poll (fds=0x7d89c0000b90, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007d89e9d6c2b6 in g_main_context_poll_unlocked (priority=2147483647, n_fds=2, fds=0x7d89c0000b90, timeout=<optimized out>, context=0x5a7eb963d710) at ../glib/glib/gmain.c:4653
#2  g_main_context_iterate_unlocked.isra.0 (context=0x5a7eb963d710, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4344
#3  0x00007d89e9d0eb97 in g_main_loop_run (loop=0x5a7eb963d800) at ../glib/glib/gmain.c:4551
#4  0x00007d89e5ca919c in gdbus_shared_thread_func (user_data=0x5a7eb963d6e0) at ../glib/gio/gdbusprivate.c:284
#5  0x00007d89e9d3fa05 in g_thread_proxy (data=0x5a7eb96397f0) at ../glib/glib/gthread.c:831
#6  0x00007d89eacaa9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#7  0x00007d89ead2e7cc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x7d89e58d28c0 (LWP 24684)):
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007d89eacac8a3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007d89eac5c668 in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
#3  0x00007d89ec10441c in KCrash::defaultCrashHandler(int) (sig=6) at /usr/src/debug/kcrash5/kcrash-5.114.0/src/kcrash.cpp:616
#4  0x00007d89eac5c710 in <signal handler called> () at /usr/lib/libc.so.6
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x00007d89eacac8a3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#7  0x00007d89eac5c668 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007d89eac444b8 in __GI_abort () at abort.c:79
#9  0x00007d89eac443dc in __assert_fail_base (fmt=0x7d89eadbdae8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7d89e49b1d95 "sys_drm_connectors", file=file@entry=0x7d89e49abe65 "i2c_bus_core.c", line=line@entry=614, function=function@entry=0x7d89e49d7ec8 <__PRETTY_FUNCTION__.13> "i2c_check_bus") at assert.c:92
#10 0x00007d89eac54d26 in __assert_fail (assertion=assertion@entry=0x7d89e49b1d95 "sys_drm_connectors", file=file@entry=0x7d89e49abe65 "i2c_bus_core.c", line=line@entry=614, function=function@entry=0x7d89e49d7ec8 <__PRETTY_FUNCTION__.13> "i2c_check_bus") at assert.c:101
#11 0x00007d89e496a2b9 in i2c_check_bus (bus_info=0x5a7eb9650240) at i2c/i2c_bus_core.c:614
#12 0x00007d89e496cf35 in i2c_non_async_scan (i2c_buses=0x5a7eb96929c0) at i2c/i2c_bus_core.c:828
#13 i2c_detect_buses0 () at i2c/i2c_bus_core.c:901
#14 0x00007d89e496d1f5 in i2c_detect_buses () at i2c/i2c_bus_core.c:970
#15 0x00007d89e499116b in ddci_init (libopts=<optimized out>, syslog_level_arg=<optimized out>, opts=<optimized out>, infomsg_loc=<optimized out>) at libmain/api_base.c:700
#16 0x00007d89e49988a2 in ddca_get_display_info_list2 (include_invalid_displays=<optimized out>, dlist_loc=0x7fff118b9348) at libmain/api_displays.c:983
#17 0x00007d89e52c2d37 in DDCutilBrightness::detect() (this=0x7d89e0013280) at /usr/src/debug/powerdevil/powerdevil-5.27.10/daemon/backends/upower/ddcutilbrightness.cpp:52
#18 0x00007d89e52c462e in PowerDevilUPowerBackend::initWithBrightness(bool) (this=0x5a7eb9641c60, screenBrightnessAvailable=false) at /usr/src/debug/powerdevil/powerdevil-5.27.10/daemon/backends/upower/powerdevilupowerbackend.cpp:156
#19 0x00007d89eb4d0e27 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fff118b9650, r=<optimized out>, this=0x5a7eb9666610, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false>(QObject*, int, void**) (sender=0x5a7eb9641c60, signal_index=13, argv=0x7fff118b9650) at kernel/qobject.cpp:3925
#21 0x00007d89e52b9634 in PowerDevilUPowerBackend::brightnessSupportQueried(bool) (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/powerdevil/build/daemon/backends/upower/powerdevilupowerbackend_autogen/EWIEGA46WW/moc_powerdevilupowerbackend.cpp:213
#22 0x00007d89eb4d0e27 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fff118b9760, r=<optimized out>, this=0x5a7eb967b140, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false>(QObject*, int, void**) (sender=0x5a7eb9666cd0, signal_index=6, argv=0x7fff118b9760) at kernel/qobject.cpp:3925
#24 0x00007d89ebf5456a in KJob::result(KJob*, KJob::QPrivateSignal) (this=this@entry=0x5a7eb9666cd0, _t1=<optimized out>, _t1@entry=0x5a7eb9666cd0, _t2=...) at /usr/src/debug/kcoreaddons5/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633
#25 0x00007d89ebf5a53c in KJob::finishJob(bool) (this=0x5a7eb9666cd0, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons5/kcoreaddons-5.114.0/src/lib/jobs/kjob.cpp:98
#26 0x00007d89eb4d0e27 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fff118b98f0, r=<optimized out>, this=0x7d89c0003240, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#27 doActivate<false>(QObject*, int, void**) (sender=0x5a7eb963ff20, signal_index=4, argv=0x7fff118b98f0) at kernel/qobject.cpp:3925
#28 0x00007d89e52da7bd in KAuth::HelperProxy::actionPerformed(QString const&, KAuth::ActionReply const&) (_t2=..., _t1=..., this=0x5a7eb963ff20) at /usr/src/debug/kauth5/build/src/kauth_helper_plugin_autogen/include/moc_HelperProxy.cpp:190
#29 KAuth::DBusHelperProxy::remoteSignalReceived(int, QString const&, QByteArray) (blob=..., action=..., t=<optimized out>, this=0x5a7eb963ff20) at /usr/src/debug/kauth5/kauth-5.114.0/src/backends/dbus/DBusHelperProxy.cpp:169
#30 KAuth::DBusHelperProxy::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=_o@entry=0x5a7eb963ff20, _id=_id@entry=3, _a=_a@entry=0x7fff118b9a50, _c=<optimized out>) at /usr/src/debug/kauth5/build/src/kauth_helper_plugin_autogen/include/moc_DBusHelperProxy.cpp:99
#31 0x00007d89e52db0a1 in KAuth::DBusHelperProxy::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_a=0x7fff118b9a50, _id=3, _c=QMetaObject::InvokeMetaMethod, _o=0x5a7eb963ff20) at /usr/src/debug/kauth5/build/src/kauth_helper_plugin_autogen/include/moc_DBusHelperProxy.cpp:89
#32 KAuth::DBusHelperProxy::qt_metacall(QMetaObject::Call, int, void**) (this=0x5a7eb963ff20, _c=<optimized out>, _id=3, _a=0x7fff118b9a50) at /usr/src/debug/kauth5/build/src/kauth_helper_plugin_autogen/include/moc_DBusHelperProxy.cpp:148
#33 0x00007d89eb7a076e in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QVector<int> const&, int) (this=<optimized out>, object=<optimized out>, msg=<optimized out>, metaTypes=<optimized out>, slotIdx=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/dbus/qdbusintegrator.cpp:1001
#34 0x00007d89eb4c3964 in QObject::event(QEvent*) (this=0x5a7eb963ff20, e=0x7d89e0008290) at kernel/qobject.cpp:1347
#35 0x00007d89eb49bef8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5a7eb963ff20, event=0x7d89e0008290) at kernel/qcoreapplication.cpp:1064
#36 0x00007d89eb4a0e5b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5a7eb9545550) at kernel/qcoreapplication.cpp:1821
#37 0x00007d89eb4e6ec8 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5a7eb9617eb0) at kernel/qeventdispatcher_glib.cpp:277
#38 0x00007d89e9d0df69 in g_main_dispatch (context=0x7d89e0000ec0) at ../glib/glib/gmain.c:3476
#39 0x00007d89e9d6c367 in g_main_context_dispatch_unlocked (context=0x7d89e0000ec0) at ../glib/glib/gmain.c:4284
#40 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7d89e0000ec0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4349
#41 0x00007d89e9d0c162 in g_main_context_iteration (context=0x7d89e0000ec0, may_block=1) at ../glib/glib/gmain.c:4414
#42 0x00007d89eb4ead0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5a7eb96170b0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#43 0x00007d89eb49ac04 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fff118b9ef0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#44 0x00007d89eb49c0a3 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#45 0x00007d89eb93bf12 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#46 0x00005a7eb86a855b in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/powerdevil/powerdevil-5.27.10/daemon/powerdevilapp.cpp:176

And from the journal:

Jan 19 10:40:04 ruby libddcutil[9688]: Initializing libddcutil.  ddcutil version: 2.1.0, shared library: /usr/lib/libddcutil.so.5.1.0
Jan 19 10:40:04 ruby org_kde_powerdevil[9688]: org_kde_powerdevil: i2c_bus_core.c:614: i2c_check_bus: Assertion `sys_drm_connectors' failed.
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: KCrash: Attempting to start /usr/lib/org_kde_powerdevil
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 32 -- exe=/usr/lib/org_kde_powerdevil
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 13 -- platform=xcb
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 11 -- display=:0
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 27 -- appname=org_kde_powerdevil
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 17 -- apppath=/usr/lib
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 9 -- signal=6
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 9 -- pid=9688
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 19 -- appversion=5.27.10
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 40 -- programname=KDE Power Management System
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 31 -- bugaddress=submit@bugs.kde.org
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 23 -- productname=Powerdevil
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: 15 -- restarted=true
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: KCrash: crashing... crashRecursionCounter = 2
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: KCrash: Application Name = org_kde_powerdevil path = /usr/lib pid = 9688
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: KCrash: Arguments: /usr/lib/org_kde_powerdevil
Jan 19 10:40:05 ruby org_kde_powerdevil[9688]: KCrash: Attempting to start /usr/lib/drkonqi
Jan 19 10:40:05 ruby org_kde_powerdevil[9700]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this har>
Jan 19 10:40:05 ruby org_kde_powerdevil[9700]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
Jan 19 10:40:05 ruby libddcutil[9700]: Initializing libddcutil.  ddcutil version: 2.1.0, shared library: /usr/lib/libddcutil.so.5.1.0
Jan 19 10:40:05 ruby org_kde_powerdevil[9700]: org_kde_powerdevil: i2c_bus_core.c:614: i2c_check_bus: Assertion `sys_drm_connectors' failed.

Problem persists on both the X and Wayland session, if it's relevant.
Ironically enough, the issue is fixed with https://invent.kde.org/plasma/powerdevi … b71f521d30 but is not fixed with powerdevil 5.27.10-2 with the fix from https://gitlab.archlinux.org/archlinux/ … e3b119eedc

Offline

#10 2024-01-19 18:37:14

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,144

Re: kde power management system keeps crashing

sucora wrote:

Ironically enough, the issue is fixed with https://invent.kde.org/plasma/powerdevi … b71f521d30 but is not fixed with powerdevil 5.27.10-2 with the fix from https://gitlab.archlinux.org/archlinux/ … e3b119eedc

That fix you linked is for a different issue.

Offline

#11 2024-01-19 23:46:35

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: kde power management system keeps crashing

I think there's a bit of confusion here with a different bug, but for me ddcutil 2.1.0-2 seems to have fixed the OP issue.

EDIT: Thanks arojas!

Last edited by Salkay (2024-01-20 01:55:29)

Offline

#12 2024-01-20 01:53:55

azea
Member
Registered: 2023-10-12
Posts: 2

Re: kde power management system keeps crashing

Can confirm, upgrading to 2.1.0-2 fixed my issue as well.

Offline

#13 2024-01-21 01:07:07

LxFx
Member
Registered: 2021-02-19
Posts: 2

Re: kde power management system keeps crashing

Still crashing every 3 seconds  with ddcutil 2.1.0-3 installed.

Offline

#14 2024-01-21 01:23:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,863

Re: kde power management system keeps crashing

That can be fixed by increasing the service timeout, create $HOME/.config/systemd/user/plasma-powerdevil.service.d/override.conf

[Service]
TimeoutSec=15sec

or so

Offline

#15 2024-01-21 16:13:25

ITALIEN
Member
Registered: 2023-09-28
Posts: 5

Re: kde power management system keeps crashing

2.1.0-2 fixed my issue, then 2.1.0-3 broke it again. -_-

Offline

#16 2024-01-21 17:25:11

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,144

Re: kde power management system keeps crashing

If 2.1.0-3 is broken, then it's a different issue. please get a full backtrace and report it upstream

Offline

#17 2024-01-22 13:57:28

rjahanbakhshi
Member
Registered: 2020-11-26
Posts: 12

Re: kde power management system keeps crashing

jpetso wrote:

For people who still have problems after David Edmundson's patch to ignore invalid displays (https://gitlab.archlinux.org/archlinux/ … e3b119eedc), please help out with debugging if you can. I left some instructions in the KDE bug tracker (https://bugs.kde.org/show_bug.cgi?id=476375#c60) for how to set custom ddcutil options for use by KDE's PowerDevil service.

You could for instance try out the ddcutil option `--disable-dynamic-sleep` to see if that makes a difference (I believe it's new for 2.0), or `--discard-caches all`, or dive deep with tracing and collaborate with the ddcutil maintainer on a crash fix (given that the crash is happening inside of libddcutil).

David Edmundson's patch didn't fix the issue on my machine.
I applied https://invent.kde.org/plasma/powerdevi … 71a7aac0ec to powerdevil-5.27.10-2, compiled it, enabled trace logging in $HOME/.config/ddcutil/ddcutilrc, and started the user service. Here's the journal:
https://invent.kde.org/-/snippets/2985

Edit 1: adding --disable-dynamic-sleep did not help 

Edit 2: Turned out ddcutil is not failing for me. As V1del mentioned above, there's just not enough time for it to finish as TimeoutSec is set to 5sec in plasma-powerdevil.service. It requires a bit more than 5 seconds in my case:

time ddcutil detect                                                                                                                                                        
Display 1
   I2C bus:  /dev/i2c-10
   DRM connector:           card1-DP-1
   EDID synopsis:
      Mfg id:               DEL - Dell Inc.
      Model:                Dell AW3423DW
      Product code:         41444  (0xa1e4)
      Serial number:        ################
      Binary serial number: -------- (0x--------)
      Manufacture year:     2022,  Week: 30
   VCP version:         2.2

ddcutil detect  0.03s user 0.70s system 11% cpu 6.539 total

Increasing the timeout to 15 seconds fixed the problem for me.

# systemctl edit --user plasma-powerdevil.service
### Anything between here and the comment below will become the contents of the drop-in file

[Service]
TimeoutSec=15sec

### Edits below this comment will be discarded

I think newly added features to ddcutil 2 make it take considerably longer to initialize than before. The plasma powerdevil service should be adjusted to consider this extra time.

Edit 3:
Running ddcutil with --enable-dynamic-sleep causes many errors to show up in the journal but it doesn't prevent the powerdevil from starting up as ddcutil automatically disables the dynamic sleep and retry. Running it with --disable-dynamic-sleep helps to eliminate those error messages and cuts the initialization from 6.539 to 5.2 seconds for me.

Last edited by rjahanbakhshi (2024-01-22 14:52:32)

Offline

Board footer

Powered by FluxBB