The sounds of incoming calls, SMS, notifications disappear

With my problem, I contacted zendesk support, from where I received an unsubscribe that
your phone contains some extra repositories (they should not be there):

– mentaljam-obs … Index of /obs/home:/mentaljam/4.3.0.12_aarch64 /

– – sailfish os-com … https://repo.sailfishos.org/obs/sailfishos:/chum/4.3.0.12_aarch64/and

WHAT TO DO NOW

We have just this advice for you at this point:

Install/flash OS release 4.3.0.12 to your phone.

There is no other way to fix it.

Then as I understand it, it was an isolated case.

I flashed the phone and haven’t used repositories since. But nothing changes from version to version and still the sounds of incoming calls, SMS, notifications disappear.

For myself, I solved the problem by screwing a script that checks pulseaudio.service every 15 minutes and, in case of a crash, restarts it with an entry in the log. I also created a separate simple script for manually restarting from applications – for those moments when I found a loss and waiting for the script to run on a timer does not make sense.
I’ll post the scripts below, maybe it will be useful to someone.

# manual script launch

On the path /home/default user/.local/share/applications/ create the pulseaudio_script.desktop script
With such content

[Desktop Entry]
Type=pulseaudio
Name=Run my script
Icon=/home/defaultuser/Templates/icon_my_script.png
Exec=fingerterm -e “/home/defaultuser/Templates/pulseaudio_script.sh”
Comment=Terminal application
X-Nemo-Single-Instance=no

It is needed to display icons (you can choose at your discretion) in applications and for execution. As you can see above, the icon and the script itself are located in /home/defaultuser/Templates/
You throw an icon there icon_my_script.php and create a script there pulseaudio_script.sh

#!/bin/bash

echo `systemctl --user stop pulseaudio.service
echo `systemctl --user start pulseaudio.service`
echo `systemctl --user is-active pulseaudio.service` >>/home/defaultuser/Documents/hand_pulseaudio

# running the script on a schedule

In /home/defaultuser/.config/system/user/ create two scripts

  1. check-pulseaudio.timer
[Unit]
Description=AUDIO Checker timer

[Timer]
OnCalendar=*:0,15,30,45
Persistent=true
WakeSystem=false

[Install]
WantedBy=timers.target
  1. check-pulseaudio.service
[Unit]
Description=AUDIO Checker
After=lipstick.service

[Service]
Type=simple
ExecStart=/bin/bash /home/defaultuser/Templates/pulseaudio.sh

On the path /home/default user/Templates create pulseaudio.sh

#!/bin/bash

if (systemctl --user is-active --quiet pulseaudio.service); then
    echo "work"
else
    date >> /home/defaultuser/Documents/pulseaudio
    echo `systemctl --user stop pulseaudio.service`
    echo `systemctl --user start pulseaudio.service`
    systemctl --user is-active pulseaudio.service >> /home/defaultuser/Documents/pulseaudio
fi

make it executable: chmod +x pulseaudio.sh
That’s almost all, it remains only to turn it on and run:
systemctl --user enable check-pulseaudio.timer
systemctl --user start check-pulseaudio.timer

I’m not a developer, I did what I could and it works for me. For several months now, I have not been worried if the sound suddenly disappears again.
Perhaps there are other solutions.

3 Likes