REPRODUCIBILITY: always
OS VERSION: 4.1.0.24
HARDWARE: Xperia 10 II
UI LANGUAGE: cz
REGRESSION: no (on this device)
DESCRIPTION:
I am using memory level reported by MCE daemon for controlling application caches to avoid attention low-memory-killer. But on Xperia X II, MCE always reports “unknown” level. By wiki page https://sailfishos.org/wiki/Mce , it may happen when kernel subsystem memnotify is missing. It is correct, device /dev/memnotify
is not present on the device (but it exists on old Jolla 1).
Would be possible to include memnotify in next release? Or kernel is provided by Sony and it is out of Jolla control?
STEPS TO REPRODUCE:
[defaultuser@Xperia ~]$ dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.get_memory_level
method return time=1623344738.268430 sender=:1.1 -> destination=:1.189 serial=423 reply_serial=2
string "unknown"
[defaultuser@Xperia ~]$ ls -alh /dev/memnotify
ls: /dev/memnotify: No such file or directory
EXPECTED RESULT:
on Jolla 1:
[nemo@Sailfish ~]$ dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.get_memory_level
method return time=1623345782.652745 sender=:1.1 -> destination=:1.397 serial=3547 reply_serial=2
string "normal"
[nemo@Sailfish ~]$ ls -alh /dev/memnotify
crw-rw-rw- 1 root root 10, 31 Jun 10 13:09 /dev/memnotify