System won’t shutdown (2024-07-01 update)

problem is described here

Please copy the description to your post, and expand on it as much as possible. Include everything that you’ve done to try and fix the issue, along with full system information, and logs. Thanks.

As it stands, this thread will likely not attract much attention.

2 Likes

what other command output/log should i add?

i’ve done nothing to try and fix the issue other than searching the forums - the journal log doesn’t seem helpful, but i don’t really know what to look for

system won’t shutdown/poweroff

KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.5-1-MANJARO (64-bit)
Graphics Platform: X11

shutting down the system results in a blank screen with a cursor - keyboard appears to be dead

inxi --admin --verbosity=8 --filter --no-host --width
System:
  Kernel: 6.9.5-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.9-x86_64
    root=UUID=bb1d3d93-e1ee-4b58-94bc-d9b9b6f183a1 rw
    resume=UUID=365557ba-d129-4798-90eb-91ecda0db65d udev.log_priority=3
    nowatchdog
  Desktop: KDE Plasma v: 6.0.5 tk: Qt v: N/A info: frameworks v: 6.3.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK MAX (MS-7C02) v: 1.0
    serial: <superuser required> uuid: <superuser required> UEFI: American
    Megatrends LLC. v: 3.B0 date: 05/12/2021
Battery:
  Message: No system battery data found. Is one present?
Memory:
  System RAM: total: 16 GiB available: 13.57 GiB used: 2.89 GiB (21.3%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 128 GiB slots: 4 modules: 2 EC: None
    max-module-size: 32 GiB note: est.
  Device-1: Channel-A DIMM 0 type: no module installed
  Device-2: Channel-A DIMM 1 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 8 GiB speed: 3200 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: G.Skill
    part-no: F4-3200C16-8GVGB serial: N/A
  Device-3: Channel-B DIMM 0 type: no module installed
  Device-4: Channel-B DIMM 1 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 8 GiB speed: 3200 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: G.Skill
    part-no: F4-3200C16-8GVGB serial: N/A
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 5 3400G with Radeon Vega Graphics bits: 64
    type: MT MCP arch: Zen/Zen+ note: check gen: 1 level: v3 note: check
    built: 2019 process: GF 12nm family: 0x17 (23) model-id: 0x18 (24)
    stepping: 1 microcode: 0x8108109
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 384 KiB desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB
    desc: 1x4 MiB
  Speed (MHz): avg: 2083 high: 3700 min/max: 1400/3700 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1229 2: 1400
    3: 3061 4: 1400 5: 1400 6: 3074 7: 3700 8: 1400 bogomips: 59223
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb
    cpuid cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c
    flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf
    lahf_lm lbrv lm mca mce misalignsse mmx mmxext monitor movbe msr mtrr
    mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat
    pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdrand rdseed rdtscp rep_good
    sep sev sev_es sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2
    sse4a ssse3 succor svm svm_lock syscall tce topoext tsc tsc_scale
    v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt xgetbv1 xsave xsavec
    xsaveerptr xsaveopt
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; STIBP:
    disabled; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
    built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: HDMI-A-1
    empty: DVI-D-1,HDMI-A-2,HDMI-A-3 bus-ID: 27:00.0 chip-ID: 1002:15d8
    class-ID: 0300 temp: 44.0 C
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.0
    compositor: kwin_x11 driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93") monitors: <missing: xrandr>
  Monitor-1: HDMI-A-1 model: BenQ EX2510 serial: <filter> built: 2020
    res: 1920x1080 dpi: 90 gamma: 1.2 chroma: red: x: 0.651 y: 0.341 green:
    x: 0.310 y: 0.631 blue: x: 0.145 y: 0.051 white: x: 0.314 y: 0.329
    size: 544x303mm (21.42x11.93") diag: 623mm (24.5") ratio: 16:9
    modes: 1920x1080, 3840x2160, 1680x1050, 1600x900, 1280x1024, 1440x900,
    1280x800, 1152x864, 1280x720, 1024x768, 832x624, 800x600, 720x576,
    720x480, 640x480, 720x400
  EDID-Warnings: 1: parse_edid: unhandled CEA mode 96 2: parse_edid:
    unhandled CEA mode 97
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi x11: drv: radeonsi
    inactive: gbm,wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.1-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon Vega 11 Graphics
    (radeonsi raven LLVM 17.0.6 DRM 3.57 6.9.5-1-MANJARO) device-ID: 1002:15d8
    memory: 1.95 GiB unified: no
  API: Vulkan v: 1.3.279 layers: N/A device: 0 type: integrated-gpu name: AMD
    Radeon Vega 11 Graphics (RADV RAVEN) driver: mesa radv v: 24.1.1-manjaro1.1
    device-ID: 1002:15d8 surfaces: xcb,xlib
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 27:00.1 chip-ID: 1002:15de class-ID: 0403
  Device-2: Mark of the Unicorn M Series driver: cdc_acm,snd-usb-audio
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1:2
    chip-ID: 07fd:000b class-ID: 0a00 serial: <filter>
  API: ALSA v: k6.9.5-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: noprefixroute scope: global broadcast: <filter>
  IF-ID-1: azirevpn-us-nyc state: unknown speed: N/A duplex: N/A mac: N/A
  IP v4: <filter> scope: global
  IP v6: <filter> scope: global
  Info: services: NetworkManager,systemd-timesyncd
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 9.1 TiB used: 2.2 TiB (24.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDS100T3XHC-00SJG0 size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 102000WD temp: 43.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 4B6Q scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT2000MX500SSD1
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 033 scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 870 EVO 4TB
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 3B6Q scheme: GPT
  ID-5: /dev/sdd maj-min: 8:48 vendor: SanDisk model: SDSSDH32000G
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 70RL scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 905.34 GiB size: 890.05 GiB (98.31%) used: 14.84 GiB (1.7%)
    fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:3 label: Root
    uuid: bb1d3d93-e1ee-4b58-94bc-d9b9b6f183a1
  ID-2: /archive raw-size: 1.82 TiB size: 1.79 TiB (98.42%)
    used: 8.54 GiB (0.5%) fs: ext4 dev: /dev/sdd1 maj-min: 8:49 label: Archive
    uuid: 1eb02be6-20af-4ad8-9e1b-d592992fab43
  ID-3: /av raw-size: 3.64 TiB size: 3.58 TiB (98.40%) used: 1.87 TiB (52.3%)
    fs: ext4 dev: /dev/sdc1 maj-min: 8:33 label: Media
    uuid: 45c9271b-5cff-490c-bd91-37fc1c7ffeb7
  ID-4: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: BOOT
    uuid: 61A2-791F
  ID-5: /home raw-size: 931.02 GiB size: 915.33 GiB (98.31%)
    used: 96.77 GiB (10.6%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: Home
    uuid: d186724a-14d9-46e5-a29d-b16ae175fd25
  ID-6: /storage raw-size: 1.82 TiB size: 1.79 TiB (98.37%)
    used: 210.45 GiB (11.5%) fs: ext4 dev: /dev/sdb1 maj-min: 8:17 label: Storage
    uuid: 5cc0fb64-e894-4df0-9075-42cdb94500b1
Swap:
  Kernel: swappiness: 20 (default 60) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 25.39 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:2 label: swap
    uuid: 365557ba-d129-4798-90eb-91ecda0db65d
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 10 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-1:2 info: Mark of the Unicorn M Series
    type: audio,abstract (modem),CDC-data driver: cdc_acm,snd-usb-audio
    interfaces: 7 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
    power: 500mA chip-ID: 07fd:000b class-ID: 0a00 serial: <filter>
  Device-2: 1-2:3 info: Logitech G502 X type: mouse,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 100mA chip-ID: 046d:c099 class-ID: 0300
    serial: <filter>
  Device-3: 1-8:4 info: Cyber Power System CP1500 AVR UPS type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 2mA chip-ID: 0764:0501 class-ID: 0300
    serial: <filter>
  Device-4: 1-9:5 info: Apple Aluminium Keyboard (ISO) type: keyboard,mouse
    driver: apple,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 300mA chip-ID: 05ac:0250 class-ID: 0301
  Hub-2: 2-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-5: 5-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-6: 6-0:1 info: super-speed hub ports: 1 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 43.6 C mobo: N/A gpu: amdgpu temp: 43.0 C
  Fan Speeds (rpm): N/A
Repos:
  Packages: pm: pacman pkgs: 1363 libs: 297 tools: pamac pm: flatpak pkgs: 0
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://forksystems.mm.fcix.net/manjaro/stable/$repo/$arch
    2: https://mirrors.gigenet.com/manjaro/stable/$repo/$arch
    3: https://mnvoip.mm.fcix.net/manjaro/stable/$repo/$arch
    4: https://mirror.math.princeton.edu/pub/manjaro/stable/$repo/$arch
    5: https://southfront.mm.fcix.net/manjaro/stable/$repo/$arch
    6: http://mirror.fcix.net/manjaro/stable/$repo/$arch
    7: https://irltoolkit.mm.fcix.net/manjaro/stable/$repo/$arch
    8: https://ridgewireless.mm.fcix.net/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 259
  1: cpu: 18.8% command: konsole pid: 24255 mem: 152.1 MiB (1.0%)
  2: cpu: 7.2% command: firefox pid: 3283 mem: 490.8 MiB (3.5%)
  3: cpu: 3.1% command: easyeffects pid: 1279 mem: 92.3 MiB (0.6%)
  4: cpu: 2.5% command: firefox pid: 22734 mem: 212.3 MiB (1.5%)
  5: cpu: 2.1% command: kwin_x11 pid: 967 mem: 130.4 MiB (0.9%)
  Memory top: 5 of 259
  1: mem: 490.8 MiB (3.5%) command: firefox pid: 3283 cpu: 7.2%
  2: mem: 423.6 MiB (3.0%) command: thunderbird pid: 1291 cpu: 0.3%
  3: mem: 342.1 MiB (2.4%) command: plasmashell pid: 1005 cpu: 0.1%
  4: mem: 219.6 MiB (1.5%) command: firefox pid: 3413 cpu: 0.3%
  5: mem: 212.3 MiB (1.5%) command: firefox pid: 22734 cpu: 2.5%
Info:
  Processes: 259 Power: uptime: 8h 10m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 5.41 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
    tool: systemctl
  Compilers: gcc: 14.1.1 Shell: Bash v: 5.2.26 running-in: konsole
    inxi: 3.3.35
journalctl --boot=-1 --priority=3 --catalog --no-pager
amdgpu 0000:27:00.0: amdgpu: Secure display: Generic Failure.
amdgpu 0000:27:00.0: amdgpu: SECUREDISPLAY: query securedisplay TA failed. ret 0x0

I had in mind something more useful, like the output of:

inxi --admin --verbosity=8 --filter --no-host --width

This will give others a better idea of your system.


Another command for logs (something to copy/paste to your notes):

journalctl --boot=-1 --priority=3 --catalog --no-pager

Note that both of these commands also filter out any personally identifiable information (serial numbers, etc.).

Cheers.

ok, thanks - i added the output in the post above

I think we have 2 times the same Topic issue:

hmmm… shutdown -P now works, so the item in the app menu must issue a different command?

in KDE system settings > autostart > logout scripts, i had a bash script set to run and although there was nothing wrong with the script, this is what caused shutdown to hang - simply deleting and re-adding the script solved the problem

1 Like

If you don’t click reply on exactly my message i don’t see any info… just a little hint how that forum works :wink:

Good that you solved it.

Anyways, im interesting to know why you use a logout script.

I never heared about a situation why people want a logout script at all.

to shutdown my router gracefully in case i have a storage device attached - i power everything off at night

2 Likes

well, i thought i solved it, but my solution worked only once

here’s my log-off script:

#!/usr/bin/env bash

#if kdialog --title 'Router Management' --yesno 'Shutdown router?' ; then
#    ping -c 1 '192.168.1.1' &> '/dev/null' || exit
    ssh 'router.lan' 'poweroff && exit' #&
#fi

if i uncomment those lines and run kdialog to prompt to kill the router, then the system hangs at shutdown (blank screen, prompt never appears), but so far it seems to shutdown ok with those lines commented

something changed with the 07-01 update because this always worked fine previously

Short story, I frequently use KTimer to close certain applications, and sometimes to suspend and sometimes to power off my computer after a certain amount of time. The commands that you may be interested in, and that work are:

systemctl suspend
systemctl poweroff

Have you tried these?