Some progress to mention:
As far as I can tell from the sources, setting FastDormancy should work, but I'm not sure I am looking at the right sources (gitlab ubports development core ofono-ubports)
For a check:
phablet@ubuntu-phablet:/usr/sbin$ ./ofonod --version
1.29
and
phablet@ubuntu-phablet:/usr/lib/systemd/system$ dpkg -l | grep ofono
...
ii ofono-sailfish 1.29+git8-0ubports1~20240527210340.1~66073d0+ubports20.04 arm64 Mobile telephony stack (daemon)
...
If I run testscript set-fast-dormancy (location mentioned above, from subdirectory test), it responds
phablet@ubuntu-phablet:~/.local/bin$ set-fast-dormancy 1
Setting fast dormancy for modem /ril_0...
Traceback (most recent call last):
File "/home/phablet/.local/bin/set-fast-dormancy", line 26, in <module>
radiosettings.SetProperty("FastDormancy", dbus.Boolean(enable));
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.ofono.Error.NotImplemented: Implementation not provided
Testscript get-tech-preference returns:
phablet@ubuntu-phablet:~/.local/bin$ get-tech-preference
Technology preference: umts
and this value changes correctly if I switch to 2G or to 2G/3G/4G
I added two lines to this script slightly to return all radiosettings:
for p in properties:
print(p)
It shows:
phablet@ubuntu-phablet:~/.local/bin$ get-radiosettings
TechnologyPreference
AvailableTechnologies
So it seems that my current ofono implementation does not have a FastDormancy setting. @lduboeuf You suggest the reason might be the component in between the modem and ofono. What component is that?