Switched from Xperia X to Xperia 10 III - and figured out neither the “Night Silence” app nor “Situations” are available, probably because the Xperia 10 III is aarch64.
Is there any way to automatically stop the phone making any noise at night (and automatically set it to “loud” in the morning again)?
Is the source code of “Night Silence” somewhere available?
1 Like
Situations runs just fine on aarch64. Not sure what the problem here would be.
You may also try Ringing Restorer (but I have never used it).
Alternatively, one might simply use a pair of systemd services/timers:
~/.config/systemd/user/dnd-activate.service
[Unit]
Description=Do-not-Disturb mode toggle
[Service]
Type=oneshot
ExecStart=/usr/bin/dconf write '/lipstick/do_not_disturb' 'true'
~/.config/systemd/user/dnd-deactivate.service
[Unit]
Description=Do-not-Disturb mode toggle
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/dconf write '/lipstick/do_not_disturb' 'false'
~/.config/systemd/user/dnd-activate.timer
[Unit]
Description=Do-not-Disturb mode Activation
[Timer]
OnCalendar=Mon..Fri 23:59
OnCalendar=Sat,Sun 01:15
Persistent=true
[Install]
WantedBy=timers.target
~/.config/systemd/user/dnd-deactivate.timer
[Unit]
Description=Do-not-Disturb mode Deactivation
[Timer]
OnCalendar=Mon..Fri 06:30
OnCalendar=Sat,Sun 08:30
Persistent=true
[Install]
WantedBy=timers.target
After creating these:
systemctl --user daemon_reload
systemctl --user enable dnd-deactivate.timer
systemctl --user enable dnd-activate.timer
systemctl --user start dnd-deactivate.timer
systemctl --user start dnd-activate.timer
4 Likes
Thank you @nephros , should the second service be called dnd-*de*activate.service
?
2 Likes
You’re right: Situations is available in Jolla Store. My bad. Thanks!
eson
20 January 2025 17:32
6
Then you can simply use ambiences to automatically stop the phone making any noise at night. That way the silence mood also gets very visible.
If I did this, and manually set volume level to 10% will the deactivate
set volume (back) to 100% (I’d guess not)
It should not affect volume either way. It has the same effect as activating Do not Disturb in the Settings UI.
right, I have this “problem” where setting ringtone to 0%
manually via UI I cannot use (systemd -timed) script to unsilence (see below)
(this is related as I use it to silence at 22:00 and then unsilence at 07:00
(which does not work if manually set to 0%) – I hoped this could make a difference but naturally it doesn’t ;/ – the workaround is to “silence” carefully just to 20%)
REPRODUCIBILITY: Always
OS VERSION: 4.6.0.15
HARDWARE: Xperia 10 III
UI LANGUAGE: Finnish
REGRESSION:
DESCRIPTION:
After setting ringtone volume to 0% via slider or using harware buttons,
and then executing:
/usr/bin/dbus-send '--type=method_call' --print-reply '--dest=com.nokia.profiled' /com/nokia/profiled com.nokia.profiled.set_value string:general string:ringing.alert.volume string:100
does not change ringtone volume (slider stays in left end, and phone does not ring when call is b…