[4.1.0.23][4.0.1.48][4.4.0.64] No notification sounds (ringing, SMS, alarm)

REPRODUCIBILITY (% or how often): second time so far
BUILD ID = OS VERSION (Settings > About product): 4.0.1.48
HARDWARE (XA2, Xperia 10…): Xperia 10
UI LANGUAGE: Slovenian
REGRESSION: (compared to previous public release: Yes, No, ?): Yes (compared to v3)

DESCRIPTION:

Twice so far (first time was with 4.0.1.45) notification sounds stopped working - no alarm, no ringing, no SMS alert tone), in addition if I go to Settings → Sounds and try to change the volume there, the Settings app freezes for about a minute (this doesn’t happen if I use the buttons to change the volume, although volume changes have no effect – notification sounds aren’t played despite volume being at 100%)

Phonecalls work normally, and I can hear the other person without problems

Rebooting the phone seems to fix the problem

PRECONDITIONS:

Unknown

STEPS TO REPRODUCE:

Unknown

EXPECTED RESULT:

Sounds work

ACTUAL RESULT:

Sounds don’t work

5 Likes

This has been happening quite regularly now.

Also forgot to mention, there’s no vibration for notifications either (but the phone does vibrate while I’m using the keyboard).

I can confirm, on Sony XA2 Ultra running 4.0.1.48.
The only available choice under Settings -> System -> Sounds and Feedback (or whatever this is called in english) -> Ringtone is “no sound”.
I used to have similar issues with mp3 files being used as ringtones which became unavailable, but this time even the build in ringtones are unavailable and greyed out.

That’s a different problem then - I still see all my ringtones, and they do play if I select them, they just don’t play when the notifications should happen.

Hey “awesome”, we might have found another bug :wink:
Thank you for sharing, will open another bug report.

Any news regarding this? This has been happening nearly every day, and I’ve missed several calls.

To add a little more to this; since the Koli update, switching from a silent Ambience to my normal daytime Ambience leaves Ringtone and Message sounds (the only two that vary between my Ambiences) set to ‘No Sound’. They then have to be manually set back to their correct sounds.

This is not fixed in 4.1.0.23 – my phone isn’t ringing and vibrating again when people call me, and Settings app freezes if I try changing the volume there.

This has been happening regularly to me too. I now need to make sure I restart my phone each night so that my alarm goes off in the morning. I’m not sure what causes it, but every so often audio completely stops working - a restart always fixes it, however. To be clear, the alarm part still works, it just doesn’t make a noise. This is on Xperia 10 - 4.1.0.24

I’m pretty certain this was made worse with 4.1.0.24. My ringtone is coming up silent when receiving calls, while playing media still makes sound - though this is all over the place, and sometimes all sound fails. Mic and earpiece are fine, however.

Just had it happen today on 4.1.0.24, too…

I believe what might have been causing my issue was bluetooth - still a bug, but given I don’t use bluetooth, my audio keeps working.

I do use bluetooth, but I’m pretty sure the issue didn’t happen with SFOS 3.

I recently noticed another related problem: while notification sounds are broken, trying to open the pulley menu in Contacts will cause the app to freeze for about a minute (this is similar to the Settings app freeze when trying to adjust volume through it).

Happened to me this morning on 10 II. Alarm didn’t make sound and I slept too long. Tested alarms after waking up. Alarm was triggered but no sound was played. Reboot fixed it but still was late from work. This is quite a critical bug.

This is getting worse – now the screen doesn’t light up either, and the LED doesn’t change colour to indicate there are missed calls/unread SMS messages. Still on Xperia 10, SailfishOS 4.2.0.21.

Happened to me now for two nights in a row, on my 10 II w/ 4.2.0.21.
Yesterday I tried to restart Home screen, but that looked up the whole phone so had to force a restart. To day I restarted before I found this thread, so I never tried switching ambience etc. For me the vibration is lost also. Another thing is that I where not able to kill my Alarm from the pulley menu, the alarm kept reappear after some time.

This has also happened at least once before (also on Verla) and I think I had to reboot to get things back to normal that time.

Still happening on 4.3.0.12

Ditto on 4.3.0.12, Xperia 5, ngfd seems very dead and https://github.com/sailfishos/ngfd/pull/1 should help but got no idea how to build it.

According to the HADK:

The Non-Graphical Feedback Daemon provides combined audio, haptic, and LED feedback for system events and
alarms. These events include such things as ring tones, message tones, clock alarms, email notifications, etc.
systemctl status --user ngfd

[defaultuser@Xperia5 ~]$ systemctl status --user ngfd
● ngfd.service - Non-Graphic Feedback Daemon
Loaded: loaded (/usr/lib/systemd/user/ngfd.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-11-11 20:58:53 CET; 2h 13min ago
Process: 10002 ExecStart=/usr/bin/ngfd $NGFD_ARGS (code=exited, status=2)
Main PID: 10002 (code=exited, status=2)

Relevant journalctl -xe part
Nov 11 23:16:36 Xperia5 systemd[5890]: Started Non-Graphic Feedback Daemon.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has finished starting up.
-- 
-- The start-up result is RESULT.
Nov 11 23:16:36 Xperia5 systemd[5890]: selinux: Unknown class service
Nov 11 23:16:36 Xperia5 systemd[5890]: selinux: Unknown class service
Nov 11 23:16:36 Xperia5 ngfd[15251]: libprofile: session bus connection requested while blocked
Nov 11 23:16:36 Xperia5 ngfd[15251]: Vibra upload effect: Invalid argument
Nov 11 23:16:36 Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: Only accept custom waveforms
Nov 11 23:16:36 Xperia5 ngfd[15251]: [0.087] ERROR: ffmemless: Could not load default fall-back effect
Nov 11 23:16:36 Xperia5 ngfd[15251]: [0.087] ERROR: core: sink 'ffmemless' failed to initialize
Nov 11 23:16:36 Xperia5 ngfd[15251]: [0.087] ERROR: daemon: Initialization failed.
Nov 11 23:16:36 Xperia5 systemd[5890]: ngfd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 11 23:16:36 Xperia5 systemd[5890]: ngfd.service: Failed with result 'exit-code'.
Nov 11 23:16:36 Xperia5 connmand[5615]: ntp: adjust (slew): +0.102386 sec
Nov 11 23:16:37 Xperia5 systemd[5890]: ngfd.service: Service hold-off time over, scheduling restart.
Nov 11 23:16:37 Xperia5 systemd[5890]: ngfd.service: Scheduled restart job, restart counter is at 1.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Automatic restarting of the unit UNIT has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Nov 11 23:16:37 Xperia5 systemd[5890]: Stopped Non-Graphic Feedback Daemon.
-- Subject: Unit UNIT has finished shutting down
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has finished shutting down.
Nov 11 23:16:37 Xperia5 systemd[5890]: Started Non-Graphic Feedback Daemon.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has finished starting up.
-- 
-- The start-up result is RESULT.
Nov 11 23:16:37 Xperia5 ngfd[15256]: libprofile: session bus connection requested while blocked
Nov 11 23:16:37 Xperia5 ngfd[15256]: Vibra upload effect: Invalid argument
Nov 11 23:16:37 Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: Only accept custom waveforms
Nov 11 23:16:37 Xperia5 ngfd[15256]: [0.099] ERROR: ffmemless: Could not load default fall-back effect
Nov 11 23:16:37 Xperia5 ngfd[15256]: [0.099] ERROR: core: sink 'ffmemless' failed to initialize
Nov 11 23:16:37 Xperia5 ngfd[15256]: [0.099] ERROR: daemon: Initialization failed.
Nov 11 23:16:37 Xperia5 systemd[5890]: ngfd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 11 23:16:37 Xperia5 systemd[5890]: ngfd.service: Failed with result 'exit-code'.
Nov 11 23:16:38 Xperia5 healthd: battery l=100 v=4387 t=25.5 h=2 st=2 c=292 fc=2963000 cc=0 chg=a
Nov 11 23:16:39 Xperia5 systemd[5890]: ngfd.service: Service hold-off time over, scheduling restart.
Nov 11 23:16:39 Xperia5 systemd[5890]: ngfd.service: Scheduled restart job, restart counter is at 2.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Automatic restarting of the unit UNIT has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Nov 11 23:16:39 Xperia5 systemd[5890]: Stopped Non-Graphic Feedback Daemon.
-- Subject: Unit UNIT has finished shutting down
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has finished shutting down.
Nov 11 23:16:39 Xperia5 systemd[5890]: Started Non-Graphic Feedback Daemon.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has finished starting up.
-- 
-- The start-up result is RESULT.
Nov 11 23:16:39 Xperia5 ngfd[15258]: libprofile: session bus connection requested while blocked
Nov 11 23:16:39 Xperia5 ngfd[15258]: Vibra upload effect: Invalid argument
Nov 11 23:16:39 Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: Only accept custom waveforms
Nov 11 23:16:39 Xperia5 ngfd[15258]: [0.094] ERROR: ffmemless: Could not load default fall-back effect
Nov 11 23:16:39 Xperia5 ngfd[15258]: [0.094] ERROR: core: sink 'ffmemless' failed to initialize
Nov 11 23:16:39 Xperia5 ngfd[15258]: [0.094] ERROR: daemon: Initialization failed.
Nov 11 23:16:39 Xperia5 systemd[5890]: ngfd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 11 23:16:39 Xperia5 systemd[5890]: ngfd.service: Failed with result 'exit-code'.

Could anybody else confirm that the service is not working correctly?

1 Like

Will try the next time it happens.

With the above PR and the below configuration, I finally have working alarms (plus it vibrates)!

/usr/share/ngfd/plugins.d/50-ffmemless.ini
[ffmemless]
system_effects_env = NGF_FFMEMLESS_SETTINGS

supported_effects = touch;touch_weak;touch_strong;release;release_weak;release_strong;drag_start;drag_fail;drag_boundary_drag_end;short;strong;long;notice;message;attention;alarm;ringtone

touch_TYPE = periodic
touch_WAVEFORM = custom
touch_CUSTOM = 2
touch_MAGNITUDE = 24000

short_TYPE = periodic
short_WAVEFORM = custom
short_CUSTOM = 5
short_MAGNITUDE = 24000

strong_TYPE = periodic
strong_WAVEFORM = custom
strong_CUSTOM = 5
strong_MAGNITUDE = 65535

long_TYPE = periodic
long_WAVEFORM = custom
long_CUSTOM = 5 # Heavy click
long_DURATION = 850
long_PERIOD = 150
long_MAGNITUDE = 24575
long_ATTACK = 0
long_ALEVEL = 0
long_FADE = 180
long_FLEVEL = 0

notice_TYPE = periodic
notice_WAVEFORM = custom
notice_CUSTOM = 5
notice_DURATION = 100
notice_REPEAT = 2
notice_DELAY = 500
notice_PERIOD = 0
notice_MAGNITUDE = 24575
notice_OFFSET = 0
notice_PHASE = 0
notice_DIRECTION = forward
notice_ATTACK = 0
notice_ALEVEL = 0
notice_FADE = 5
notice_FLEVEL = 0

message_TYPE = periodic
message_WAVEFORM = custom
message_CUSTOM = 1
message_DURATION = 240
message_REPEAT = 2
message_DELAY = 140
message_PERIOD = 50
message_MAGNITUDE = 27000
message_OFFSET = 0
message_PHASE = 0
message_DIRECTION = forward
message_ATTACK = 0
message_ALEVEL = 0
message_FADE = 80
message_FLEVEL = 0

attention_TYPE = periodic
attention_WAVEFORM = custom
attention_CUSTOM = 2
attention_DURATION = 100
attention_REPEAT = 3
attention_DELAY = 100
attention_PERIOD = 0
attention_MAGNITUDE = 37000
attention_OFFSET = 0
attention_PHASE = 0
attention_DIRECTION = forward
attention_ATTACK = 0
attention_ALEVEL = 0
attention_FADE = 5
attention_FLEVEL = 0

alarm_TYPE = constant
alarm_WAVEFORM = custom
alarm_CUSTOM = 1
alarm_LEVEL = 32767
alarm_DURATION = 4000
alarm_ATTACK = 1000
alarm_ALEVEL = 0
alarm_FADE = 400
alarm_FLEVEL = 0

ringtone_TYPE = constant
ringtone_WAVEFORM = custom
ringtone_CUSTOM = 1
ringtone_LEVEL = 32767
ringtone_DURATION = 24000
ringtone_REPEAT = 200
ringtone_DELAY = 400
ringtone_DIRECTION = forward
ringtone_ATTACK = 500
ringtone_ALEVEL = 2560
ringtone_FADE = 300
ringtone_FLEVEL = 4096

touch_weak_TYPE = periodic
touch_weak_WAVEFORM = custom
touch_weak_CUSTOM = 2
touch_weak_MAGNITUDE = 24000
touch_strong_TYPE = periodic
touch_strong_WAVEFORM = custom
touch_strong_CUSTOM = 5
touch_strong_MAGNITUDE = 24000

Some things like vibration on the keyboard are broken though as this configuration is for another driver, not targeting the qti-haptics one used by the Xperia.

Relevant journalctl -xe part (unsupported effects showcase)
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect -26256 is NOT supported
Xperia5 invoker[6314]: WARNING: Effect failed, id 1
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect -18992 is NOT supported
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 invoker[6314]: WARNING: Effect failed, id 2
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect 11296 is NOT supported
Xperia5 invoker[6314]: WARNING: Effect failed, id 3
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect -19136 is NOT supported
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 invoker[6314]: WARNING: Effect failed, id 4
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect 11872 is NOT supported
Xperia5 invoker[6314]: WARNING: Effect failed, id 5
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect 8416 is NOT supported
Xperia5 invoker[6314]: WARNING: Effect failed, id 6
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect 8560 is NOT supported
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 invoker[6314]: WARNING: Effect failed, id 7
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect 8704 is NOT supported
Xperia5 invoker[6314]: WARNING: Effect failed, id 8
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect 8560 is NOT supported
Xperia5 invoker[6314]: WARNING: Effect failed, id 9
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect 8416 is NOT supported
Xperia5 invoker[6314]: WARNING: Effect failed, id 10
Xperia5 ngfd[8682]: Vibra upload effect: Invalid argument
Xperia5 ngfd[8682]: Vibra erase effect: Invalid argument
Xperia5 kernel: qcom,haptics c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000: predefined effect 11872 is NOT supported

Will add an edit tomorrow to see if ringtones work as well.

EDIT: can confirm that ringtones (with vibration) work; after digging a little deeper it seems that the configuration is actually correct for the current vibrator driver as the “effect” ID entries from the DTS match with the ones of the DRV260X driver. Keyboard/pulley vibrations work now as well without #define CACHE_EFFECTS.