Bug 510573 - PowerDevil causing laptop reboots
Summary: PowerDevil causing laptop reboots
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.4.5
Platform: Other Linux
: NOR grave
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-13 18:24 UTC by git+kde@john.me.tz
Modified: 2025-11-18 03:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description git+kde@john.me.tz 2025-10-13 18:24:45 UTC
SUMMARY

I opened an issue on this topic in GitLab and was referred here: https://invent.kde.org/plasma/powerdevil/-/issues/45

I've recently installed UBlue Aurora on an older laptop (ASUS ux430uar from 2018). The only significant issues that I've discovered so far is that after 5 minutes of inactivity the laptop crashes and reboots. This laptop had existing power management quirks under Windows, including automatically rebooting after an explicit shutdown, so I'll proceed by assuming that only the crash is relevant.

STEPS TO REPRODUCE
1. Install and log in to Plasma
2. Leave the system idle for 5 minutes

OBSERVED RESULT

The system shuts off (and then reboots). The systemd journal does not log a proper shutdown, it simply ends.

EXPECTED RESULT

Continue running after idle.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Universal Blue Aurora stable-20251012 (see https://github.com/ublue-os/aurora/releases/tag/stable-20251012)
KDE Plasma Version: 6.4.5-1

ADDITIONAL INFORMATION

The reason I identified PowerDevil as the culprit is that it was always the last significant log in the journal for each boot. The tail of the last several boots are as follows (nothing is skipped and these run all the way to the end; there is no proper shutdown):

boot -1
```
Oct 12 20:45:50 aurora systemd[1]: Started dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@1.service.
Oct 12 20:45:50 aurora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@1 comm="systemd" exe="/usr/>
Oct 12 20:45:50 aurora org_kde_powerdevil[2468]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getconservationmode failed "Battery conservation mode is not supported"
Oct 12 20:45:50 aurora org_kde_powerdevil[2468]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getconservationmode failed "Battery conservation mode is not supported"
Oct 12 20:46:00 aurora systemd[1]: dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@1.service: Deactivated successfully.
Oct 12 20:46:00 aurora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@1 comm="systemd" exe="/usr/l>
Oct 12 20:46:22 aurora systemd[1]: Started dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@2.service.
Oct 12 20:46:22 aurora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@2 comm="systemd" exe="/usr/>
Oct 12 20:46:32 aurora systemd[1]: dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@2.service: Deactivated successfully.
Oct 12 20:46:32 aurora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@2 comm="systemd" exe="/usr/l>
```

boot -2
```
Oct 12 18:28:16 aurora systemd[1]: Started dbus-:1.3-org.kde.powerdevil.backlighthelper@2.service.
Oct 12 18:28:16 aurora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.backlighthelper@2 comm="systemd" exe="/usr/lib/sy>
Oct 12 18:28:26 aurora systemd[1]: dbus-:1.3-org.kde.powerdevil.backlighthelper@2.service: Deactivated successfully.
Oct 12 18:28:26 aurora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.backlighthelper@2 comm="systemd" exe="/usr/lib/sys>
Oct 12 18:28:38 aurora systemd[1823]: Starting systemd-tmpfiles-clean.service - Cleanup of User's Temporary Files and Directories...
Oct 12 18:28:38 aurora systemd[1823]: Finished systemd-tmpfiles-clean.service - Cleanup of User's Temporary Files and Directories.
```

boot -3:

```
Oct 12 18:11:37 aurora systemd[1]: Started dbus-:1.3-org.kde.powerdevil.backlighthelper@1.service.
Oct 12 18:11:37 aurora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.backlighthelper@1 comm="systemd" exe="/usr/lib/sy>
Oct 12 18:11:46 aurora flatpak[6837]: 18:11:46.156 ERROR HttpBaseRequest:180              "lyricfind.com" "Empty reply received from server."
Oct 12 18:11:46 aurora flatpak[6837]: 18:11:46.647 ERROR HttpBaseRequest:180              "LoloLyrics" "Error transferring https://api.lololyrics.com/0.5/getLyric?artist=Adele&track=Rumour Has It - server replie>
Oct 12 18:11:47 aurora systemd[1]: dbus-:1.3-org.kde.powerdevil.backlighthelper@1.service: Deactivated successfully.
Oct 12 18:11:47 aurora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.backlighthelper@1 comm="systemd" exe="/usr/lib/sys>
```

boot -4 was an intentional reboot. boot -5:
```
Oct 12 15:53:01 aurora systemd[1]: Started dbus-:1.3-org.kde.powerdevil.backlighthelper@1.service.
Oct 12 15:53:01 aurora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.backlighthelper@1 comm="systemd" exe="/usr/lib/sy>
Oct 12 15:53:11 aurora systemd[1]: dbus-:1.3-org.kde.powerdevil.backlighthelper@1.service: Deactivated successfully.
Oct 12 15:53:11 aurora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.kde.powerdevil.backlighthelper@1 comm="systemd" exe="/usr/lib/sys>
Oct 12 15:54:01 aurora flatpak[2953]: 15:54:01.736 ERROR HttpBaseRequest:180              "LoloLyrics" "Error transferring https://api.lololyrics.com/0.5/getLyric?artist=Big Soul&track=2000 Bc - server replied: >
Oct 12 15:54:01 aurora flatpak[2953]: 15:54:01.742 ERROR HttpBaseRequest:180              "lyricfind.com" "Empty reply received from server."
Oct 12 15:55:01 aurora systemd[1]: Starting systemd-tmpfiles-clean.service - Cleanup of Temporary Directories...
Oct 12 15:55:01 aurora systemd-tmpfiles[4799]: /usr/lib/tmpfiles.d/systemd.conf:35: Duplicate line for path "/var/lib/systemd/coredump", ignoring.
Oct 12 15:55:01 aurora systemd[1]: systemd-tmpfiles-clean.service: Deactivated successfully.
Oct 12 15:55:01 aurora systemd[1]: Finished systemd-tmpfiles-clean.service - Cleanup of Temporary Directories.
Oct 12 15:55:01 aurora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=>
Oct 12 15:55:01 aurora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=?>
```
I tested by disabling the plasma-powerdevil service with:
```
systemctl --user status plasma-powerdevil.service
```
and confirm that the crashes no longer occur. For now I've copied the version of `plasma-workspace.target` shipped with Aurora to `/etc/systemd/user` and commented out `Wants=plasma-powerdevil.service`.

Because of the regular pattern to the crashes, I was confident that this was a power management issue, so I initially tried just disabling all of the automatic power management options in the Plasma settings (sleeping, dimming display/keyboard, etc), but the crashing still occured even when none of them are enabled.

I haven't seen this issue discussed anywhere else, so it appears to potentially be hardware/firmware specific. Here are some additional specs:

```
$ uname -a
Linux aurora 6.15.10-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 15 15:57:06 UTC 2025 x86_64 GNU/Linux
$ rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: inactive
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/aurora:stable
                   Digest: sha256:cb1160ddff9156dc9d601ebbdaf6584f38e3fd7fa9f0d1369362de7430cd05ad
                  Version: 42.20250921.1 (2025-09-21T06:02:23Z)
$ lscpu
Architecture:                x86_64
  CPU op-mode(s):            32-bit, 64-bit
  Address sizes:             39 bits physical, 48 bits virtual
  Byte Order:                Little Endian
CPU(s):                      8
  On-line CPU(s) list:       0-7
Vendor ID:                   GenuineIntel
  Model name:                Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    CPU family:              6
    Model:                   142
    Thread(s) per core:      2
    Core(s) per socket:      4
    Socket(s):               1
    Stepping:                10
    CPU(s) scaling MHz:      24%
    CPU max MHz:             3400.0000
    CPU min MHz:             400.0000
    BogoMIPS:                3600.00
    Flags:                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs
                              bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_dead
                             line_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2
                              erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp vnmi md_clear flush_l1d arch_capabil
                             ities
Virtualization features:     
  Virtualization:            VT-x
Caches (sum of all):         
  L1d:                       128 KiB (4 instances)
  L1i:                       128 KiB (4 instances)
  L2:                        1 MiB (4 instances)
  L3:                        6 MiB (1 instance)
NUMA:                        
  NUMA node(s):              1
  NUMA node0 CPU(s):         0-7
Vulnerabilities:             
  Gather data sampling:      Mitigation; Microcode
  Ghostwrite:                Not affected
  Indirect target selection: Not affected
  Itlb multihit:             KVM: Mitigation: Split huge pages
  L1tf:                      Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
  Mds:                       Mitigation; Clear CPU buffers; SMT vulnerable
  Meltdown:                  Mitigation; PTI
  Mmio stale data:           Mitigation; Clear CPU buffers; SMT vulnerable
  Reg file data sampling:    Not affected
  Retbleed:                  Mitigation; IBRS
  Spec rstack overflow:      Not affected
  Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:                Mitigation; IBRS; IBPB conditional; STIBP conditional; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
  Srbds:                     Mitigation; Microcode
  Tsa:                       Not affected
  Tsx async abort:           Not affected
$ lsgpu 
card1                    Intel Kabylake (Gen9)             drm:/dev/dri/card1
└─renderD128                                               drm:/dev/dri/renderD128
$ lsmod
Module                  Size  Used by
uinput                 32768  0
rfcomm                110592  18
snd_seq_dummy          12288  0
snd_hrtimer            12288  1
tun                    77824  2
nf_conntrack_netbios_ns    12288  1
nf_conntrack_broadcast    12288  1 nf_conntrack_netbios_ns
nft_fib_inet           12288  1
nft_fib_ipv4           12288  1 nft_fib_inet
nft_fib_ipv6           12288  1 nft_fib_inet
nft_fib                12288  3 nft_fib_ipv6,nft_fib_ipv4,nft_fib_inet
nft_reject_inet        12288  10
nf_reject_ipv4         12288  1 nft_reject_inet
nf_reject_ipv6         20480  1 nft_reject_inet
nft_reject             12288  1 nft_reject_inet
nft_ct                 28672  9
nft_chain_nat          12288  3
nf_nat                 65536  1 nft_chain_nat
nf_conntrack          212992  4 nf_nat,nft_ct,nf_conntrack_netbios_ns,nf_conntrack_broadcast
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         12288  1 nf_conntrack
nf_tables             425984  293 nft_ct,nft_reject_inet,nft_fib_ipv6,nft_fib_ipv4,nft_chain_nat,nft_reject,nft_fib,nft_fib_inet
qrtr                   57344  2
bnep                   36864  2
sunrpc                925696  1
binfmt_misc            28672  1
snd_sof_pci_intel_skl    32768  0
snd_sof_intel_hda_generic    45056  1 snd_sof_pci_intel_skl
soundwire_intel        98304  1 snd_sof_intel_hda_generic
snd_sof_intel_hda_sdw_bpt    24576  1 soundwire_intel
snd_sof_intel_hda_common   217088  3 snd_sof_intel_hda_sdw_bpt,snd_sof_intel_hda_generic,snd_sof_pci_intel_skl
snd_soc_hdac_hda       28672  1 snd_sof_intel_hda_common
snd_sof_intel_hda_mlink    49152  4 snd_sof_intel_hda_sdw_bpt,soundwire_intel,snd_sof_intel_hda_common,snd_sof_intel_hda_generic
snd_sof_intel_hda      20480  2 snd_sof_intel_hda_common,snd_sof_intel_hda_generic
soundwire_cadence      57344  1 soundwire_intel
snd_sof_pci            24576  2 snd_sof_intel_hda_generic,snd_sof_pci_intel_skl
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_generic
snd_hda_codec_hdmi    102400  1
snd_sof               512000  6 snd_sof_intel_hda_sdw_bpt,snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_hda_generic,snd_sof_intel_hda,snd_sof_pci_intel_skl
snd_sof_utils          16384  1 snd_sof
snd_soc_acpi_intel_match   135168  2 snd_sof_intel_hda_generic,snd_sof_pci_intel_skl
snd_soc_acpi_intel_sdca_quirks    12288  1 snd_soc_acpi_intel_match
soundwire_generic_allocation    24576  1 soundwire_intel
snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_generic
crc8                   12288  1 soundwire_cadence
soundwire_bus        1212416  3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
snd_soc_sdca           57344  2 snd_soc_acpi_intel_sdca_quirks,soundwire_bus
snd_soc_avs           270336  0
intel_uncore_frequency    12288  0
snd_soc_hda_codec      28672  1 snd_soc_avs
intel_uncore_frequency_common    16384  1 intel_uncore_frequency
snd_hda_ext_core       36864  7 snd_sof_intel_hda_sdw_bpt,snd_soc_avs,snd_soc_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
snd_soc_core          491520  6 snd_soc_avs,snd_soc_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
intel_tcc_cooling      12288  0
iwlmvm                933888  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       24576  0
snd_hda_codec_realtek   233472  1
coretemp               24576  0
snd_hda_codec_generic   139264  1 snd_hda_codec_realtek
snd_compress           28672  2 snd_soc_avs,snd_soc_core
snd_hda_scodec_component    20480  1 snd_hda_codec_realtek
ac97_bus               12288  1 snd_soc_core
mac80211             1925120  1 iwlmvm
snd_pcm_dmaengine      16384  1 snd_soc_core
kvm_intel             471040  0
snd_hda_intel          73728  1
vfat                   24576  1
uvcvideo              200704  0
fat                   126976  1 vfat
snd_intel_dspcfg       40960  5 snd_soc_avs,snd_hda_intel,snd_sof,snd_sof_intel_hda_common,snd_sof_intel_hda_generic
snd_intel_sdw_acpi     16384  2 snd_intel_dspcfg,snd_sof_intel_hda_generic
uvc                    12288  1 uvcvideo
libarc4                12288  1 mac80211
kvm                  1486848  1 kvm_intel
videobuf2_vmalloc      20480  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
snd_hda_codec         233472  8 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda
btusb                  81920  0
mei_pxp                20480  0
mei_hdcp               28672  0
snd_hda_core          159744  11 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
iTCO_wdt               16384  0
iwlwifi               602112  1 iwlmvm
videobuf2_v4l2         40960  1 uvcvideo
snd_hwdep              24576  1 snd_hda_codec
intel_rapl_msr         20480  0
processor_thermal_device_pci_legacy    12288  0
irqbypass              12288  1 kvm
intel_pmc_bxt          16384  1 iTCO_wdt
btrtl                  36864  1 btusb
snd_seq               135168  7 snd_seq_dummy
iTCO_vendor_support    12288  1 iTCO_wdt
videobuf2_common      102400  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
processor_thermal_device    20480  1 processor_thermal_device_pci_legacy
asus_nb_wmi            32768  0
rapl                   20480  0
btintel                73728  1 btusb
snd_seq_device         16384  1 snd_seq
asus_wmi              122880  1 asus_nb_wmi
videodev              421888  2 videobuf2_v4l2,uvcvideo
intel_cstate           20480  0
btbcm                  24576  1 btusb
processor_thermal_wt_hint    16384  1 processor_thermal_device
snd_pcm               212992  14 snd_soc_avs,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_sof_intel_hda_generic,snd_soc_core,snd_sof_utils,snd_hda_core,snd_sof_pci_intel_skl,snd_pcm_dmaengine
btmtk                  32768  1 btusb
processor_thermal_rfim    49152  1 processor_thermal_device
sparse_keymap          12288  1 asus_wmi
processor_thermal_rapl    16384  1 processor_thermal_device
snd_timer              57344  3 snd_seq,snd_hrtimer,snd_pcm
mc                     94208  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
intel_uncore          278528  0
cfg80211             1511424  3 iwlmvm,iwlwifi,mac80211
bluetooth            1089536  44 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
platform_profile       16384  1 asus_wmi
wmi_bmof               12288  0
intel_rapl_common      61440  2 intel_rapl_msr,processor_thermal_rapl
snd                   163840  17 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
mei_me                 61440  2
i2c_i801               40960  0
pcspkr                 12288  0
processor_thermal_wt_req    12288  1 processor_thermal_device
soundcore              16384  1 snd
rfkill                 45056  10 iwlmvm,asus_wmi,bluetooth,cfg80211
i2c_smbus              20480  1 i2c_i801
mei                   204800  5 mei_hdcp,mei_pxp,mei_me
processor_thermal_power_floor    12288  1 processor_thermal_device
processor_thermal_mbox    12288  4 processor_thermal_power_floor,processor_thermal_wt_req,processor_thermal_rfim,processor_thermal_wt_hint
idma64                 20480  0
intel_xhci_usb_role_switch    12288  0
intel_pch_thermal      20480  0
intel_soc_dts_iosf     16384  1 processor_thermal_device_pci_legacy
int3403_thermal        16384  0
acpi_als               16384  1
int340x_thermal_zone    16384  2 int3403_thermal,processor_thermal_device
industrialio_triggered_buffer    12288  1 acpi_als
intel_pmc_core        147456  0
pmt_telemetry          16384  1 intel_pmc_core
kfifo_buf              12288  1 industrialio_triggered_buffer
pmt_class              16384  1 pmt_telemetry
asus_wireless          16384  0
intel_vsec             20480  1 intel_pmc_core
industrialio          155648  3 industrialio_triggered_buffer,acpi_als,kfifo_buf
int3400_thermal        24576  0
acpi_thermal_rel       28672  1 int3400_thermal
acpi_pad              184320  0
joydev                 36864  0
loop                   45056  0
nfnetlink              20480  3 nf_tables
zram                   65536  1
lz4hc_compress         20480  1 zram
lz4_compress           24576  1 zram
overlay               249856  2
erofs                 180224  1
netfs                 610304  1 erofs
dm_crypt               77824  1
i915                 5283840  57
drm_buddy              32768  1 i915
ttm                   135168  1 i915
polyval_clmulni        12288  0
i2c_algo_bit           20480  1 i915
polyval_generic        12288  1 polyval_clmulni
ghash_clmulni_intel    16384  0
drm_display_helper    315392  1 i915
sha512_ssse3           53248  0
hid_multitouch         36864  0
sha256_ssse3           36864  0
video                  81920  3 asus_wmi,asus_nb_wmi,i915
i2c_hid_acpi           12288  0
sha1_ssse3             32768  0
cec                   102400  2 drm_display_helper,i915
i2c_hid                49152  1 i2c_hid_acpi
wmi                    32768  3 video,asus_wmi,wmi_bmof
pinctrl_sunrisepoint    28672  0
serio_raw              20480  0
zfs                  7155712  6
spl                   172032  1 zfs
uhid                   28672  0
pkcs8_key_parser       12288  0
fuse                  286720  3
i2c_dev                28672  0
```
Comment 1 Nate Graham 2025-10-13 19:27:22 UTC
Is there an actual crash? As in, does `coredumpctl --reverse` show any crash logs for org_kde_powerdevil, kwin_wayland, or plasmashell?
Comment 2 git+kde@john.me.tz 2025-10-13 20:46:58 UTC
There are none directly attributed to powerdevil. There are several for plasmashell, but I think these were for a different issue. Specifically, the shell was crashing during media playback via "Strawberry Music Player" related to the "Media Player" tray icon. I disabled that tray entry and those crashes went away. I submitted an automatic crash report for this, but I can open another bug if you recommend that I do so.

None of the timestamps from the coredump seem to align with the powerdevil issue that we are discussing in this issue:

```
coredumpctl --reverse
TIME                          PID  UID  GID SIG     COREFILE EXE                       SIZE
Sun 2025-10-12 15:24:25 MDT 13273 1000 1000 SIGSEGV present  /usr/bin/plasmashell     22.6M
Sun 2025-10-12 15:24:17 MDT 13157 1000 1000 SIGSEGV present  /usr/bin/plasmashell     22.4M
Sun 2025-10-12 15:24:08 MDT 13019 1000 1000 SIGSEGV present  /usr/bin/plasmashell     23.2M
Sun 2025-10-12 15:23:58 MDT 12897 1000 1000 SIGSEGV present  /usr/bin/plasmashell     22.1M
Sun 2025-10-12 15:23:45 MDT 12773 1000 1000 SIGSEGV present  /usr/bin/plasmashell     21.8M
Sun 2025-10-12 15:23:37 MDT 12649 1000 1000 SIGSEGV present  /usr/bin/plasmashell     22.1M
Sun 2025-10-12 15:23:25 MDT 12484 1000 1000 SIGSEGV present  /usr/bin/plasmashell     21.4M
Sun 2025-10-12 15:23:17 MDT 12316 1000 1000 SIGSEGV present  /usr/bin/plasmashell     21.6M
Sun 2025-10-12 15:23:17 MDT 10161 1000 1000 SIGABRT present  /usr/bin/maliit-keyboard  5.1M
Sun 2025-10-12 15:23:05 MDT  5726 1000 1000 SIGSEGV present  /usr/bin/plasmashell     32.7M
Sun 2025-10-12 15:11:48 MDT  2206 1000 1000 SIGABRT present  /usr/bin/maliit-keyboard  4.9M
Sun 2025-10-12 14:59:51 MDT  4533 1000 1000 SIGSEGV present  /usr/bin/plasmashell     21.3M
Sun 2025-10-12 14:59:42 MDT  4395 1000 1000 SIGSEGV present  /usr/bin/plasmashell     21.3M
Sun 2025-10-12 14:59:32 MDT  4237 1000 1000 SIGSEGV present  /usr/bin/plasmashell     22.2M
Sun 2025-10-12 14:59:24 MDT  2327 1000 1000 SIGSEGV present  /usr/bin/plasmashell     29.5M
```

It seems to essentially just trigger a power cut.

Thanks!
Comment 3 Nicolas Fella 2025-10-14 09:04:56 UTC
With reboot you mean it does an actual full system reboot? Or just the session crashes and restarts?
Comment 4 git+kde@john.me.tz 2025-10-14 16:48:39 UTC
(In reply to Nicolas Fella from comment #3)
> With reboot you mean it does an actual full system reboot? Or just the
> session crashes and restarts?

Full system reboot, yes. On a different machine it might just be a halt. This laptop had quirks even under windows where it would reboot after being instructed to shutdown.
Comment 5 Nicolas Fella 2025-10-14 17:47:37 UTC
Does the same happen when you run "systemctl suspend"?
Comment 6 git+kde@john.me.tz 2025-10-15 05:25:52 UTC
(In reply to Nicolas Fella from comment #5)
> Does the same happen when you run "systemctl suspend"?

Hi! Thanks for your continued help!

The behaviour does appear to be identical (or nearly identical). I expected that manually running the command would have resulted in something being logged, but it looks like the last couple of minutes of the journal might be missing. The auth event for running the requested command with 'sudo', nor was there anything for the command itself. Perhaps this is just a result of the journal buffer not immediately being written to disk?

The last logged event was an automatic update about 2 minutes prior to 'suspend':

```
Oct 14 22:50:12 aurora systemd[1]: Starting brew-upgrade.service - Upgrade Brew packages...
Oct 14 22:50:12 aurora systemd[1]: Starting sysstat-collect.service - system activity accounting tool...
Oct 14 22:50:12 aurora systemd[1]: sysstat-collect.service: Deactivated successfully.
Oct 14 22:50:12 aurora systemd[1]: Finished sysstat-collect.service - system activity accounting tool.
Oct 14 22:50:12 aurora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=sysstat-collect comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=>
Oct 14 22:50:12 aurora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=sysstat-collect comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?>
Oct 14 22:50:16 aurora bash[6252]: Error: No such keg: /home/linuxbrew/.linuxbrew/Cellar/systemd
Oct 14 22:50:19 aurora bash[6518]: Error: No such keg: /home/linuxbrew/.linuxbrew/Cellar/dbus
Oct 14 22:50:21 aurora bash[6776]: Error: No such keg: /home/linuxbrew/.linuxbrew/Cellar/python
Oct 14 22:50:24 aurora bash[7036]: Error: No such keg: /home/linuxbrew/.linuxbrew/Cellar/gsettings
Oct 14 22:50:26 aurora bash[7310]: Error: No such keg: /home/linuxbrew/.linuxbrew/Cellar/bash
Oct 14 22:50:28 aurora bash[7568]: Error: No such keg: /home/linuxbrew/.linuxbrew/Cellar/rpm
Oct 14 22:50:28 aurora systemd[1]: brew-upgrade.service: Deactivated successfully.
Oct 14 22:50:28 aurora systemd[1]: Finished brew-upgrade.service - Upgrade Brew packages.
Oct 14 22:50:28 aurora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=brew-upgrade comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? t>
Oct 14 22:50:28 aurora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=brew-upgrade comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? te>
Oct 14 22:50:28 aurora systemd[1]: brew-upgrade.service: Consumed 16.862s CPU time, 224.8M memory peak.
```

Not to speak out of turn on the diagnosis, but it seems to be the case that the actual reboot might be a significantly lower-level problem with the hardware/firmware. If you agree with that, I think that the focus of this bug should become the fact that even when I have all idle sleep behaviours disabled in the settings, the system seems to still be getting the suspend signal after 5 minutes.

I wasn't too bothered with just having powerdevil disabled since I don't really need any automatic sleep behaviours. However, I realised today that it is also responsible for setting the backlight brightness in response to the function keys, so having it disabled is causing other inconveniences.
Comment 7 Nicolas Fella 2025-10-17 09:20:09 UTC
> Not to speak out of turn on the diagnosis, but it seems to be the case that the actual reboot might be a significantly lower-level problem with the hardware/firmware

I do agree with that, it looks like your hardware is pretty severely broken

> I think that the focus of this bug should become the fact that even when I have all idle sleep behaviours disabled in the settings, the system seems to still be getting the suspend signal after 5 minutes.

Make sure you you disable suspend for all profiles (battery, AC, low battery). Adding this to .config/powerdevilrc should do it

[AC][SuspendAndShutdown]
AutoSuspendAction=0

[Battery][SuspendAndShutdown]
AutoSuspendAction=0

[LowBattery][SuspendAndShutdown]
AutoSuspendAction=0
Comment 8 git+kde@john.me.tz 2025-10-17 23:38:19 UTC
> I do agree with that, it looks like your hardware is pretty severely broken

I won't disagree there, but I think that it is a level of broken that is possible to work around! :)

> Make sure you you disable suspend for all profiles (battery, AC, low
> battery). Adding this to .config/powerdevilrc should do it
> 
> [AC][SuspendAndShutdown]
> AutoSuspendAction=0
> 
> [Battery][SuspendAndShutdown]
> AutoSuspendAction=0
> 
> [LowBattery][SuspendAndShutdown]
> AutoSuspendAction=0

Those settings were already present. Here is the modified date of the file and all of its contents:

```
$ ls -alh .config/powerdevilrc 
-rw-------. 1 rebecca rebecca 754 Oct 12 20:46 .config/powerdevilrc
$ cat .config/powerdevilrc 
[AC][Display]
DimDisplayIdleTimeoutSec=120
DisplayBrightness=20
TurnOffDisplayIdleTimeoutSec=300
UseProfileSpecificDisplayBrightness=true

[AC][Keyboard]
KeyboardBrightness=0
UseProfileSpecificKeyboardBrightness=true

[AC][SuspendAndShutdown]
AutoSuspendAction=0
LidAction=0
PowerButtonAction=0

[Battery][Display]
DimDisplayIdleTimeoutSec=-1
DimDisplayWhenIdle=false
DisplayBrightness=10

[Battery][Keyboard]
KeyboardBrightness=0

[Battery][SuspendAndShutdown]
AutoSuspendAction=0
LidAction=0
PowerButtonAction=0

[BatteryManagement]
BatteryCriticalAction=0

[LowBattery][Display]
DisplayBrightness=5

[LowBattery][Keyboard]
UseProfileSpecificKeyboardBrightness=true

[LowBattery][SuspendAndShutdown]
AutoSuspendAction=0
LidAction=0
PowerButtonAction=0
```

The AutoSuspendActions are all 0, but I notice that there is a 5 minute timeout for `TurnOffDisplayIdleTimeoutSec=300`. Is it safe to try setting that to 0?
Comment 9 git+kde@john.me.tz 2025-10-18 18:31:59 UTC
I checked and yes `TurnOffDisplayIdleTimeoutSec=0` is a bad idea, it causes immediate timeouts rather than none. In my case that meant that I needed to boot from a recovery ISO to revert that change because it would crash before I could do anything.

For now I have extended it to `TurnOffDisplayIdleTimeoutSec=86400` for all modes and it has been idling happily for > 10 minutes. I'm now going to experiment with re-enabling some other idle modes.
Comment 10 Bug Janitor Service 2025-11-03 03:47:51 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2025-11-18 03:47:25 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.