Struggle with Feedbackd

Hello everyone,

I have set up Droidian on a Xperia 5 and I managed to change the ringtone by the corresponding setting in Mobile Settings.
After testing I was satisfied with the result: Incoming calls triggered the soundfile as expected.

After that I fiddled around with the alarm sound. As there’s no setting for this in the mobile settings / feedback graphical user interface I replaced the sound file /usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga because the original sound is quite shocking in the early morning :wink: [thanks rootbeef for the hint for that].
As the vibration which is triggered simultanously is also very strong and thus loud I wanted to change it too.
I got the hint to the documentation on feedbackd (see: GitHub - droidian/feedbackd: A daemon to provide haptic (and later more) feedback on events ), which was very helpful for this [thanks to Kiddoh and Guido for this!].

Using the documentation I tried making use of a custom.json in ~/.config/feedbackd/themes/ as described but it caused strange behaviour: When triggering the first feedback by entering the password after booting there was a message, that “Something went wrong” and Firefox opened. The password could not be entered; the prompt blocking use of the rest of the screen.
So I ended up changing the systemwide default.json.
It worked well - I thought: The alarm now was triggering my desired sound file and the vibration was not to be heared/sensed as I had set magnitude and duration to a minimum.

But: Now real phone calls trigger the sound file set in the graphical user interface as well as another sound (which is again quite shocking) - both are played at the same time, which is weird.
Interesting: It only is the case for real calls.
When testing by
fbcli -t 0 -E phone-incoming-call
it works well and only the sound file set in the mobile settings UI is played.

Does anyone have a nice idea on that?

Thanks in advance!

Lucas

Hi! Apologies for replying this late.

But: Now real phone calls trigger the sound file set in the graphical user interface as well as another sound (which is again quite shocking) - both are played at the same time, which is weird.

which sound is that? Is that the stock phone call sound? Or something else?

Does running something like this in a SSH terminal help you pinpoint what is happening?

killall /usr/libexec/feedbackd ; G_MESSAGES_DEBUG=all /usr/libexec/feedbackd

it will kill the eventual running feedbackd instance and start a new one with Debug messages enabled.

Hello and thanks for your reply!

It seems that it is the stock sound which can be found in usr/share/sounds/freedesktop/stereo/…

I have replaced that file with the sound file I prefer and set the sound for incoming calls in the graphical user interface (“mobile settings”) to an empty sound file and now I have the desired behaviour.

But I guess there’s a risk that after some update I could end up with only the empty sound file being played and missing a call if the update should “repair” the current behaviour. So this is some kind of an “ugly” fix…

I will try running feedbackd with debug messages as you described and get back here with the results (as soon as I find the time, as my child has fever)…

By the way: I cannot hear the other person talking on calls right now so I can’t use the phone at the moment anyway…

Regards,

Lucas

Ok, no problem, and I hope your child gets better soon!

This sounds like a worse problem indeed… which provider and network technology are you using ? Did it ever work for you?

Hi again,

sorry for waiting so long…

As my child is (very) well again (thanks for the wishes) I now found the time for testing.

When running the command you suggested to start feedbackd with debug messages enabled I get only this on an incoming call:

(feedbackd:5130): fbd-feedback-vibra-periodic-DEBUG: 13:28:26.398: Periodic Vibra: (0.000000,1000) (0.000000,500)

On the other hand the running vibration and ringtone only lasted about two seconds and then the phone rebooted (which is the first time I experience this).

About the other problem (not hearing the calling person): I use the setting “2G, 3G, 4G (preferred)“ and the service provider is Aldi Talk (actually using O2 network and O2 settings in APN configuration).

Regards,

Lucas

Hi Lucas, no worries, and actually apologies from my side for my late reply.

I’m glad your child feels better :slight_smile:

Which sound theme is set? You can use the following command to get it:

gsettings get org.gnome.desktop.sound theme-name

should be __custom if you did set a new ringtone manually. If not, then there might be some wrong indeed.

For the calling issue… while you’re on call, open the quick-settings menu (swipe down from the top border). Do you have a phone :telephone_receiver: icon in place of the speaker icon :speaker_medium_volume: on the volume slider? Can you hear the other person if you put it to 0 first, then to 100?

Thanks!

As I reported elsewhere I’m also experiencing issues with the sound in calls. While on a call I don’t have a phone icon in place of a speaker on the volume slider. Could that be an issue in general? How to get one or debug that issue?

Hello Eugenio,

thanks again for your reply.

I just found a little time to try again.

I can say that the desktop sound theme is indeed __custom.

Surprisingly when I tried calling again it just worked fine. I could hear the other side. I tried again after reboot. Still working.

Could it be possible that the command gsettings… triggered something?

I don’t know. Especially I don’t know how to rely on it :wink:

Best regards,

Lucas

hi Lucas, it is indeed interesting. The gsettings get command shouldn’t really change anything :slight_smile:

However I’m glad that it works, this is how it should be set by the Mobile Settings application.

I am curious to know if it will break again in future.