Active Topics

 


Reply
Thread Tools
Posts: 9 | Thanked: 12 times | Joined on Sep 2017
#511
Hi peterleinchen,

many thanks for the answer. I try this before, but this not solved the problem. I don't know if the username is the problem. It was only an idea.

Kind regards
enai
 
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#512
Hi,

There's a new pre-release that should fix many of the problems with latest SF OS versions, available here:

https://github.com/pastillilabs/pack...leases/tag/271

Actually it has been sitting there already for a while. I'm updating the Android version at the same time but it has been stuck in the Play Store publishing process, so the Sailfish version got forgotten there also...

Can you pleas try that version and report back?

Br,
Heikki
 

The Following 3 Users Say Thank You to hhaveri For This Useful Post:
Posts: 9 | Thanked: 12 times | Joined on Sep 2017
#513
Hi Heikki,

many thanks for the response. I have tested this version before I post. But now I have tested this version again. It didn't work. Situations didn't detect if the display is on. Has anyone the same problem with an XA2? Many thanks.

kind regards
einai
 

The Following User Says Thank You to enai For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#514
Hi enai,

I only have Xperia 10 to test with and there the display condition works (with 271). If you (or anyone) can find out where to read & get notified of display state changes on XA2, I can try to add it also to the app.

The app is currently monitoring '/var/run/state/providers/mce/Screen/Blanked' (which is deprecated) and '/sys/class/backlight/panel0-backlight/brightness' which seems to work for Xperia 10.

Br,
Heikki
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#515
On XA2 with SFOS 3.2 (DualSIM, no Plus/no Ultra) following path reports 0 when on and 1 when blanked:
/var/run/state/providers/mce/Screen/Blanked

/sys/class/ does not have a path for backlight/....

On a X with SFOS 3.4 it is absolutely the same
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2021-01-27 at 12:56. Reason: adding version info 3.2 and comparison to X with 3.4
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 9 | Thanked: 12 times | Joined on Sep 2017
#516
Hi Heikki,

many thanks for the Info, that was the information that I need. I have no other directories under /var/run/state/providers/ und no directory /sys/class/backlight , that should be the problem. But if I use the programm mcetool, I get the correct information about the display state. I try to find out where mcetool get this information about the display state.

I have found a display state in /sys under

/sys/devices/soc/c900000.qcom,mdss_mdp/c900000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight/brightness

There a the correct state.

Edit: I found the solution. The problem was the statefs-provider-mce package was not installed. pkcon install statefs-provider-mce and reboot solved the problem. After reboot I have /var/run/state/providers/mce/Screen/Blanked

I read that statefs is deprecated and this should be the problem. It is not default installed in new(3.4.0.24) fresh Sailfish installation.
https://irclogs.sailfishos.org/logs/...11-24.log.html

Kind regards
enai

Last edited by enai; 2021-01-27 at 13:07.
 

The Following User Says Thank You to enai For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#517
Thanks, I'll check if it would make sense to switch to using mce dbus api.

Br,
Heikki
 
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#518
Switched (almost) all file system based conditions to dbus now:

https://github.com/pastillilabs/pack...leases/tag/272

Br,
Heikki
 

The Following 6 Users Say Thank You to hhaveri For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#519
Mildly celebrating 10000 downloads of Situations in Jolla Store with an internal viewer for Log action + 64bit arm build. Available here:
https://github.com/pastillilabs/pack...leases/tag/273

And naturally / hopefully soon in Jolla Store.

Br,
Heikki
 

The Following 7 Users Say Thank You to hhaveri For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#520
Next alpha version with Do Not Disturb support added:

https://github.com/pastillilabs/pack...leases/tag/275

Br,
Heikki
 

The Following 2 Users Say Thank You to hhaveri For This Useful Post:
Reply

Tags
sailfish os, situations


 
Forum Jump


All times are GMT. The time now is 11:31.