No startup sound through KDE system settings

Hey, so I'm not sure if this is related to Garuda or not if I'm being honest so apologies for that, but I have been really trying to get a startup sound on my laptop. It's more just for aesthetics, but as it does not work, it shows that there is likely an issue and I worry about what this issue may be. I have tried different audio files with wav and ogg files and I tried on bore and zen kernel in case it was related to the kernel.

The way I set this up was by getting the wav or ogg file and going into KDE system settings>Notifications>Configure>Plasma Workspace>Configure Events and then selecting Login and my audio file. I was expecting this, upon a reboot, to play the wav or ogg file loaded but on boot I have silence like before. If anyone has any clue what could be causing this then I would greatly appreciate any help. Thanks

System:
  Kernel: 5.17.8-1-bore arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-bore
    root=UUID=95b636ca-42a5-47b4-9b7a-038581af6cdf rw rootflags=subvol=@
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=41193397-191d-45b5-8c2b-405cf71e73b2 loglevel=3
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
    wm: kwin_wayland vt: 2 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: X510UA v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: X510UA v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: X510UA.312 date: 04/29/2020
Battery:
  ID-1: BAT0 charge: 27.1 Wh (92.8%) condition: 29.2/42.1 Wh (69.4%)
    volts: 11.5 min: 11.5 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
    status: discharging cycles: 475
CPU:
  Info: model: Intel Core i7-7500U bits: 64 type: MT MCP
    arch: Amber/Kaby Lake note: check family: 6 model-id: 0x8E (142)
    stepping: 9 microcode: 0xF0
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 556 high: 583 min/max: 400/3500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 533 2: 583 3: 557 4: 552
    bogomips: 23220
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  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, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
    ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:5916
    class-ID: 0300
  Device-2: IMC Networks VGA UVC WebCam type: USB driver: uvcvideo
    bus-ID: 1-6:2 chip-ID: 13d3:5a07 class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa gpu: i915 display-ID: 0
  Monitor-1: eDP-1 res: 1920x1080 size: N/A modes: N/A
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.3
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.17.8-1-bore running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:24fd class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-8:3 chip-ID: 8087:0a2b class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 931.52 GiB used: 253.23 GiB (27.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO M.2 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
Partition:
  ID-1: / raw-size: 448.4 GiB size: 448.4 GiB (100.00%)
    used: 158.72 GiB (35.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 32.1 MiB (10.7%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 448.4 GiB size: 448.4 GiB (100.00%)
    used: 158.72 GiB (35.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-4: /var/log raw-size: 448.4 GiB size: 448.4 GiB (100.00%)
    used: 158.72 GiB (35.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-5: /var/tmp raw-size: 448.4 GiB size: 448.4 GiB (100.00%)
    used: 158.72 GiB (35.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.52 GiB used: 256 KiB (0.0%)
    priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 17.06 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda3 maj-min: 8:3
Sensors:
  System Temperatures: cpu: 54.0 C pch: 41.5 C mobo: N/A
  Fan Speeds (RPM): cpu: 2600
Info:
  Processes: 262 Uptime: 7m wakeups: 1 Memory: 15.52 GiB
  used: 3.54 GiB (22.8%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1534 lib: 372 Shell: fish
  v: 3.4.1 running-in: yakuake inxi: 3.3.15
Garuda (2.6.3-2):
  System install date:     2022-05-01
  Last full system update: 2022-05-18
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            systemd-sysctl.service 

Can't reply anymore for some reason but I already did that. I'm not as nooby as some users here lol @SGS

LMWTFY

3 Likes

And where are your results?

It's a pain if on any helpers questions the answer is, yes I have read and tried already that, you know?

Let me try this again as it was assumed I hadn't already googled this query last time. I did check for answers and tried them but had no luck. That is why I am asking here. Therefore this is not a precondition failed question as I did my research first to no avail. I'll try to remember to mention that I researched first next time.

Hey, so I'm not sure if this is related to Garuda or not if I'm being honest so apologies for that, but I have been really trying to get a startup sound on my laptop. It's more just for aesthetics, but as it does not work, it shows that there is likely an issue and I worry about what this issue may be. I have tried different audio files with wav and ogg files and I tried on bore and zen kernel in case it was related to the kernel.

The way I set this up was by getting the wav or ogg file and going into KDE system settings>Notifications>Configure>Plasma Workspace>Configure Events and then selecting Login and my audio file. I was expecting this, upon a reboot, to play the wav or ogg file loaded but on boot I have silence like before. If anyone has any clue what could be causing this then I would greatly appreciate any help. Thanks

System:
  Kernel: 5.17.8-1-bore arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-bore
    root=UUID=95b636ca-42a5-47b4-9b7a-038581af6cdf rw rootflags=subvol=@
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=41193397-191d-45b5-8c2b-405cf71e73b2 loglevel=3
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
    wm: kwin_wayland vt: 2 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: X510UA v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: X510UA v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: X510UA.312 date: 04/29/2020
Battery:
  ID-1: BAT0 charge: 27.1 Wh (92.8%) condition: 29.2/42.1 Wh (69.4%)
    volts: 11.5 min: 11.5 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
    status: discharging cycles: 475
CPU:
  Info: model: Intel Core i7-7500U bits: 64 type: MT MCP
    arch: Amber/Kaby Lake note: check family: 6 model-id: 0x8E (142)
    stepping: 9 microcode: 0xF0
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 556 high: 583 min/max: 400/3500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 533 2: 583 3: 557 4: 552
    bogomips: 23220
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  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, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
    ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:5916
    class-ID: 0300
  Device-2: IMC Networks VGA UVC WebCam type: USB driver: uvcvideo
    bus-ID: 1-6:2 chip-ID: 13d3:5a07 class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa gpu: i915 display-ID: 0
  Monitor-1: eDP-1 res: 1920x1080 size: N/A modes: N/A
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.3
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.17.8-1-bore running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:24fd class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-8:3 chip-ID: 8087:0a2b class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 931.52 GiB used: 253.23 GiB (27.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO M.2 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
Partition:
  ID-1: / raw-size: 448.4 GiB size: 448.4 GiB (100.00%)
    used: 158.72 GiB (35.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 32.1 MiB (10.7%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 448.4 GiB size: 448.4 GiB (100.00%)
    used: 158.72 GiB (35.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-4: /var/log raw-size: 448.4 GiB size: 448.4 GiB (100.00%)
    used: 158.72 GiB (35.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-5: /var/tmp raw-size: 448.4 GiB size: 448.4 GiB (100.00%)
    used: 158.72 GiB (35.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.52 GiB used: 256 KiB (0.0%)
    priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 17.06 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda3 maj-min: 8:3
Sensors:
  System Temperatures: cpu: 54.0 C pch: 41.5 C mobo: N/A
  Fan Speeds (RPM): cpu: 2600
Info:
  Processes: 262 Uptime: 7m wakeups: 1 Memory: 15.52 GiB
  used: 3.54 GiB (22.8%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1534 lib: 372 Shell: fish
  v: 3.4.1 running-in: yakuake inxi: 3.3.15
Garuda (2.6.3-2):
  System install date:     2022-05-01
  Last full system update: 2022-05-18
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            systemd-sysctl.service 

Can't reply anymore for some reason but I already did that. I'm not as nooby as some users here lol @SGS

Possibly a known bug? There's a rather hacky workaround which may help in the comments here.. 422948 – Startup sound does not play; system muted until after login

2 Likes

Well I didn't think to document every step I tried and I don't remember everything I did try to be honest as I kept restoring snapshots to undo whatever I did but some of the things I remember trying was switching between wireplumber, pipewire and pulseaudio and modifying the pulse config file as shown in one of the links. I'll try and find specifically what I did but my search history clears on closing so I'll have to look through the pages until I recognise it and my phrasing of the question.

I'll take a look at this thank you

Okay so I've been going through that thread with not much luck. Although it did give me the idea of looking through the autostart folder and setting up a Desktop Entry. I followed a guide where you can use mpv to play the audio file. I created the entry at /etc/xdg/autostart and for execute I gave it the command to run the file through mpv. I saved the file and logged out and back in and it worked! I heard the audio play when I logged back in. The problem though, is that it does not play when rebooting the laptop. I can see from the graphical visualiser widget that the audio is playing, but I can't hear it as it is seemingly muted although my audio is at max. So something about wireplumber or pipewire might possibly be muting the audio at boot but not when logging out and back in? Not sure what to do to fix this but at least a little progress was made.

2 Likes

I have a crappy loud sound from my laptop when I boot into BIOS and I can't turn it off, although it always wakes my neighbours at night.

So everyone has their problems, why do you need that sound?
Habit of M$?

:smiley:

1 Like

I mean does it really matter? I've got a problem I'm trying to fix regardless of the reason lol. It's just nice to have aesthetically and so I know it's on due to me stepping away sometimes. And it's not just about the bootup but also sounds in general for other warnings and notifications. It's just a problem I want to know how to fix incase it has a bigger impact. Like what if this problem is caused by something more serious elsewhere? Regardless of the importance of a feature I just don't like something to be broken and not acting as expected. Simple as that really.

1 Like

All right, I like it quiet and dark.

Let everyone be happy according to their wishes. :slight_smile:

You can use mpv, but perhaps a terminal app such as aplay would be better to play your sound file at startup.

Example of a systemd "user" service (default.target):

[Unit]
Name=Play Startup Sound
After=sound.target
Before=mpd.service

[Service]
Type=oneshot
ExecStart=/usr/bin/mpv --volume=80 /startup_sound.wav

[Install]
WantedBy=default.target


Example of a system wide service (multi-user.target):

[Unit]
Description=Boot Sound
Requires=pulseaudio.socket

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/paplay /var/local/biosbeep.wav

[Install]
WantedBy=multi-user.target

You could also use cron to schedule an autoplay of a sound file (.wav file format) with aplay at startup (@reboot).

Also, KDE & Wayland is still pretty buggy, so there is that to consider as well.

6 Likes

It's possible the sound files need to be under usr --in some subdir under there--and not in your $HOME. I'm just dredging stuff up here...

EDIT: Nevermind...@tbg knows what he's doing, not me. :smiley:

1 Like

Thanks for the information guys. Currently in a warehouse for work but will give it a go when I'm back. As I mentioned before it isn't a big deal and is more asthetics so no worries if it doesn't work out but would just be good to narrow down the cause. And yeah you're definitely @tbg in that it could be a wayland thing. Hadn't even considered that to be honest considering everything else I've been messing around with. I'll give it a test with xorg first with my current method and if not working then I'll try your way through xorg and wayland too.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.