meta data for this page
Table of Contents
More Background info can be found in this blog post. Please do NOT run some scripts as root which install additional packages and modify important settings!
- Verify your “sound theme” by issueing:
gsettings get org.gnome.desktop.sound theme-name. If it outputs
freedesktop, it is the default sound theme. That is fine.
- Create your overlay sound directoy:
mkdir -p ~/.local/share/sounds/freedesktop/stereo. (You need to replace freedesktop with whatever sound profile name you might be using, if you have switched away from the default)
- Place a sound file in “ogg” format under the name “phone-incoming-call.oga” in that directory. For instance by:
mv sound.ogg ~/.local/share/sounds/freedesktop/stereo/phone-incoming-call.oga
- Test your new ringtone by issueing:
fbcli -t -1 -E phone-incoming-call
The nitty gritty details
The terminology involved is quite confusing. So be aware that a 1) sound theme, a 2) feedback theme, and 3) feedback profiles are three different things.
- The first one defines in which directories a sound file is looked up (the freedesktop theme will serve as fallback, if a sound profile is not defined). So in the case of mobian, this is simply always be 'freedesktop if you never changed it.
- The feedback theme connects event names and sound files (or visual/haptic feedback) and also defines various feedback profiles.
- Those profiles are full, quiet and silent, providing profiles within a theme. This is what you can change in, for instance, Android phones with the “Do not disturb” settings. You can change them in the settings GUI for everything, or per application.
Sounds and vibrations can be customized. This is controlled by [[https://source.puri.sm/Librem5/feedbackd/-/blob/main|feedbackd]. The most important names of event are listed [[https://source.puri.sm/Librem5/feedbackd/-/blob/main/doc/Event-naming-spec-0.0.0.md|here] and the configuration of events is being explained [[https://source.puri.sm/Librem5/feedbackd/-/blob/main/doc/Feedback-theme-spec-0.0.0.md|here]. In mobian, the feedback themes are configured in the files located in