We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

Questions regarding individual status LED customization on Sony Xperia X

asked 2017-12-27 17:52:55 +0300

JMLatJolla gravatar image

updated 2017-12-27 17:54:31 +0300

Hello, Sailfishers,

first of all, happy festivities to all.

I'm very new and fresh here, due to the fact, that I gave myself a Sony Xperia X and a SailfishOS license for Christmas, birthday and the upcoming new year. :) After short functional tests under Android, I unlocked the device and loaded SailfishOS. My first impression, despite of a few shortcomings, is positive and I have a lot of fun.

Now, time is coming to configure the device according to my personal needs and of course there are, as expected, some questions that I couldn't get answered through a forum search so far. As one of the first adaptations under the hood, I did adjust the LED status indicators - here are a few related questions that I have:

  1. What functionality is exactly covered by the following pattern configuration definitions:

    • PatternDeviceOn
    • PatternDisplayDimmed
    • PatternCommunication
    • PatternCommonNotification
    • PatternCommunicationAndBatteryFull
    • PatternBatteryChargingFlat

    Is there any documentation around?

  2. If I set a pattern status configuration to ...;500;500;ffffff (blinking white), the displayed color is more magenta than white. Is this the normal behavior?

  3. My understanding of the pattern configuration definition PatternWebcamActive is that the LED should light up when the camera is turned on (front & rear). It doesn't happen on my mobile, absolutely no glow. Have I maybe

    • a comprehension problem, or
    • did I define an incorrect configuration (PatternWebcamActive=20;1;0;2500;500;ff0000), or
    • is there the need to load the camera module first, or
    • is this functionality not available (yet?), or
    • is this a bug?
  4. I want the LED to light up blue when Bluetooth is on. Is there a way to getting this work?

Tx.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
4

answered 2017-12-27 19:05:27 +0300

spiiroin gravatar image

About patterns: Basically the configuration parameters are documented in the pattern config files e.g. https://git.merproject.org/mer-core/mce/blob/master/inifiles/hybris-led.ini. But when/how/etc patterns are used is not really documented anywhere.

  • PatternDeviceOn, PatternCommonNotification, PatternCommunicationAndBatteryFull, PatternBatteryChargingFlat: Unused/disabled/non-working legacy (Nokia maemo devices) patterns
  • PatternDisplayDimmed: "About to turn display off and can't use display dimming to indicate that", see https://together.jolla.com/question/172490/blue-led-when-screen-is-about-to-power-off/
  • PatternCommunication: "generic" communication notification pattern, not used by SFOS itself

About colors: The config file defines "standard rgb888" color, how well that maps to hw varies from one device to another - and from one user to another / viewing angle etc

About PatternWebcamActive: Yet another maemo legacy pattern (IIRC it was N900 - triggered when kernel indicated via sysfs that webcam is recording). Might still work in N900 if one were able to run SFOS, but using it from any other device would require code changes.

About Bluetooth activity triggering led: Anything is possible, but it requires new logic somewhere and will not happen just by adjusting configuration. For pointers see https://together.jolla.com/question/117545/network-state-mce/

edit flag offensive delete publish link more

Comments

Thank you very much for the quick answer and interesting information, @spiirion. I'm not yet sure if I should feed the camera recording notification as an enhancement request for the LED status indicator... Will think a little bit about whether something like this really makes sense on a mobile device... :)

JMLatJolla ( 2017-12-27 19:26:48 +0300 )edit
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2017-12-27 17:52:55 +0300

Seen: 359 times

Last updated: Dec 27 '17