g7 / jolla-settings-screenmonitor

A simple screen usage monitor for Sailfish OS
3 stars 3 forks source link

Doesn't work in Sailfish 3.3.0.16 Rokua #3

Open juanro49 opened 4 years ago

juanro49 commented 4 years ago

Hi, I installed this tool bit it doesn't work in latest Sailfish version. Service is running but when I enter in Screen usage menu, I have the error "Error loading page".

Captura_20200613_005 Captura_20200613_006

juanro49 commented 4 years ago

I found this error running journalctl -xe

Jun 13 23:14:18 SailfishEmul systemd[1]: Starting ScreenMonitor...
-- Subject: Unit ScreenMonitor.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit ScreenMonitor.service has begun starting up.
Jun 13 23:14:18 SailfishEmul dbus-daemon[168]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.85" (uid=0 pid=1087 comm="/usr/bin/ScreenMonitor --dbus")
 interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=146 comm="/usr/sbin/mce --systemd")
Jun 13 23:14:18 SailfishEmul dbus-daemon[168]: dbus-daemon[168]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.85" (uid=0 pid=1087 comm="/usr/bin/ScreenMoni
tor --dbus") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=146 comm="/usr/sbin/mce --systemd")
Jun 13 23:14:18 SailfishEmul dbus-daemon[168]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.85" (uid=0 pid=1087 comm="/usr/bin/ScreenMonitor --dbus")
 interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=146 comm="/usr/sbin/mce --systemd")
Jun 13 23:14:18 SailfishEmul dbus-daemon[168]: dbus-daemon[168]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.85" (uid=0 pid=1087 comm="/usr/bin/ScreenMoni
tor --dbus") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=146 comm="/usr/sbin/mce --systemd")
Jun 13 23:14:18 SailfishEmul systemd[1]: Started ScreenMonitor.
-- Subject: Unit ScreenMonitor.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit ScreenMonitor.service has finished starting up.
-- 
-- The start-up result is done.
Jun 13 23:14:18 SailfishEmul kernel: audit: type=1130 audit(1592079258.251:138): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ScreenMonitor comm="systemd" exe="/lib/systemd/sys
temd" hostname=? addr=? terminal=? res=success'
Jun 13 23:14:18 SailfishEmul audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ScreenMonitor comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=?
 res=success'
Jun 13 23:14:18 SailfishEmul polkitd(authority=local)[459]: Unregistered Authentication Agent for unix-process:1081:41807 (system bus name :1.84, object path /org/freedesktop/PolicyKit
1/AuthenticationAgent, locale es_ES.UTF-8) (disconnected from bus)
Jun 13 23:15:50 SailfishEmul PackageKit[553]: daemon quit
Jun 13 23:15:50 SailfishEmul packagekitd[553]: Source ID 13 was not found when attempting to remove it
Jun 13 23:15:50 SailfishEmul packagekitd[553]: adaptation0: [adaptation0|plugin:/ssu?repo=adaptation0] Valid metadata not found at specified URL
Jun 13 23:15:50 SailfishEmul packagekitd[553]: jolla: [jolla|plugin:/ssu?repo=jolla] Valid metadata not found at specified URL
Jun 13 23:15:50 SailfishEmul packagekitd[553]: adaptation0: [adaptation0|plugin:/ssu?repo=adaptation0] Valid metadata not found at specified URL
Jun 13 23:15:50 SailfishEmul audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=packagekit comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=? res
=success'
Jun 13 23:15:50 SailfishEmul kernel: audit: type=1131 audit(1592079350.141:139): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=packagekit comm="systemd" exe="/lib/systemd/system
d" hostname=? addr=? terminal=? res=success'
Jun 13 23:16:40 SailfishEmul encpartition[378]: Device /dev/sailfish/home doesn't exist or access denied.
Jun 13 23:16:40 SailfishEmul encpartition[378]: Device /dev/sailfish/home doesn't exist or access denied.
Jun 13 23:16:41 SailfishEmul encpartition[378]: Device /dev/sailfish/home doesn't exist or access denied.
Jun 13 23:16:41 SailfishEmul encpartition[378]: Device /dev/sailfish/home doesn't exist or access denied.
Jun 13 23:16:41 SailfishEmul mce[146]: tklock.c: tklock_dbus_notification_end_cb(): notification end from name=:1.34 owner=:1.34 pid=641 uid=100000 gid=995 priv=1 cmd=/usr/bin/lipstick
 -plugin VBoxTouch --systemd
Jun 13 23:16:46 SailfishEmul dbus-daemon[567]: dbus-daemon[567]: [session uid=100000 pid=567] Activating service name='com.jolla.settings' requested by ':1.34' (uid=100000 pid=1097 comm="/us
r/libexec/mliteremoteaction com.jolla.settings ")
Jun 13 23:16:47 SailfishEmul dbus-daemon[567]: dbus-daemon[567]: [session uid=100000 pid=567] Successfully activated service 'com.jolla.settings'
Jun 13 23:16:47 SailfishEmul booster-silica-qt5[1101]: [D] unknown:0 - Using Wayland-EGL
Jun 13 23:16:48 SailfishEmul booster [silica[1101]: booster [silica-qt5][1101]: SilicaBooster: Initiate asynchronous preload.
Jun 13 23:16:51 SailfishEmul dbus-daemon[567]: invoker: Invoking execution: '/usr/bin/jolla-settings'
Jun 13 23:16:57 SailfishEmul lipstick[641]: [W] unknown:0 - WindowPixmapItem does not have a source texture, cover will be dropped..
Jun 13 23:17:16 SailfishEmul estart[755]: [W] unknown:807 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.qml:807: Error: Error while loading page: file:///usr/share/jolla-settings
/pages/screenmonitor/jolla-settings-screenmonitor.qml:24 module "org.freedesktop.contextkit" is not installed
Jun 13 23:17:51 SailfishEmul encpartition[378]: Device /dev/sailfish/home doesn't exist or access denied.
Jun 13 23:17:51 SailfishEmul encpartition[378]: Device /dev/sailfish/home doesn't exist or access denied.
Jun 13 23:18:02 SailfishEmul encpartition[378]: Device /dev/sailfish/home doesn't exist or access denied.
Jun 13 23:18:02 SailfishEmul encpartition[378]: Device /dev/sailfish/home doesn't exist or access denied.
Jun 13 23:18:05 SailfishEmul estart[755]: [W] unknown:807 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.qml:807: Error: Error while loading page: file:///usr/share/jolla-settings
/pages/screenmonitor/jolla-settings-screenmonitor.qml:24 module "org.freedesktop.contextkit" is not installed

Jun 13 23:18:05 SailfishEmul estart[755]: [W] unknown:807 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.qml:807: Error: Error while loading page: file:///usr/share/jolla-settings /pages/screenmonitor/jolla-settings-screenmonitor.qml:24 module "org.freedesktop.contextkit" is not installed

juanro49 commented 4 years ago

I created a pull request that solve this issue #4

I try this and work fine: Captura_20200614_004