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

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).

2 Likes

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.

1 Like

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.

1 Like

Still happening on 4.3.0.12

1 Like

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?

3 Likes

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.

ngfd was running for me:


And there’s nothing mentioning ngfd in journalctl -xe output.

Please add 4.3.0.23 into the list.
It just happened today that notifications and ringing stopped working. After rebooting all sounds are back again.
I had this on the Intex Aquafish at random, then on the Sailfish X with 3.3.0.16 it never happens. I will use the X on 3.3.0.16 for now. I need a reliably working daily driver.

This is another issue to piss me off. @Jolla do you hear me? :slight_smile: please take it seriously - take time to get things stable

2 Likes

If you need volume in the number of complaints scribble me down as one seeing this on 4.3.0.12 / Xperia 10 Plus. Please fix.

4.4.0.58, still happening. It’s been over a year since I first noticed this bug, what’s going on?

1 Like

Happened to me as well with no audible alarm, and also no vibration. At the same time my fingerprints where lost and had to be re-enabled through the usual sailfish-fpd procedure.
Don remember if I restarted or restarted homescreen to get back again.
Xperia 10 II w/ 4.4.0.58

I get the same symptoms from time to time. The fact that ngfd is still running is not all. It might have been deadlocked already.

Usually, when I miss notifications, or vibrations, ngfd is using 100% of cpu and some very long time after it crashes / gets restarted.

I can feel that 100% as the phone gets hotter.

Even after adding -vvv to the ngfd service command, I am not sure what is triggering this.

I have the exact same problem with my newly flashed Xperia 10 III.

1 Like

For me ringing stops occasionally after using WhatsApp in Android. It is not 100% reproducible - means not every time I use WhatsApp ringing stops, but the opposite is true all the time ringing stops I happened to use WhatsApp.

Is whatsapp notifying you through the jolla homescreen?

I think so … if I understand your question correctly, then yes.

It pops up messages and plays the configured sound (usually) in the home screen and when phone is locked.

Yes, thats what I meant, thanks for confirming.
I also had the impression that some types of notifications are killing/locking ngfd.

1 Like

what does locking have to do with the sound system? My wife uses still the Intex AquaFish and a lot of WhatsApp - never has the issue.
I was using the Xperia X and now the 10II … issue on both … but I started using whats app only on the 10II. I don’t know what was causing the same issue on the X even before fpd came into the game.