Tampilkan postingan dengan label bug. Tampilkan semua postingan
Tampilkan postingan dengan label bug. Tampilkan semua postingan

Jumat, 31 Januari 2014

Jolla battery life power consumption problems

Reading on Jolla browser? Change to mobile view

Update (31-Jan-2014)

Great news - Installing Sailfish 1.0.3.8. Naamankajärvi fixes the NFC bug. For those who did the mask-workaround for better battery life: Jolla has confirmed that tohd.service can be left masked while updating system. This means that you can remove the mask either before installing the update or afterwards. Personally I'm leaving it on at this point, as I have no use for TOH connection yet. To enable the connection with your Other Half again (removing the workaround), here's a detailed HowTo

Sailfish 1.0.3.8 also changes the way of The Other Half connection. When attaching TOH, the ambience changes only if it's marked as a favourite, or in the first time when TOH is connected.

Original article 22-Dec-2013

After 90 reports posted with User Report Tool,  and 10 more received directly from friends, I've managed to estimate some power consumptions of most elements in Jolla. A big THANKS for everyone in the community for using the report tool - this would have been a slow (or impossible) project without your help.

In general Jolla's hardware parts have a reasonable power consumption, especially those in the Qualcomm chip (processor, connectivity, graphics, memory handling). The main problem is Jolla's NFC connection with The Other Half - that's quite a power sucker, considering it seems to be on all the time. It actually seems to reduce Jolla's standby hours from max 500h to poor 48h. Removing The Other Half, or the white chip inside it (Update, see comments) fixes the problem. We don't want to do that! Unfortunately there's no setting for turning the NFC off, but maybe after this article Jolla start to work to offer us one. NFC connection sucks the battery about 2% per hour.

As usual in modern smartphones, the screen is the biggest power sucker, also in Jolla. Jolla's IPS LCD screen is worse than some OLED screens used in other models, sucking the battery 5% - 10% per hour. Recommended to use dark tone ambiences and as low screen brightness as reasonable.

Then comes the graphic chip, processor and data transfer - but as already said, Qualcomm has actually done a very good job with these in their Snapdragon 400 chip which Jolla is using. Anyway they matter, so if you really want to see the percentages drown, try playing a powerful online 3D game with full screen brightness.

Below, power consumption in different cases is listed as percentage/hour & the usability time

Jolla's battery life in varying scenarios

  • Screen OFF, all connections (including mobile network) OFF, The Other Half removed:
    consumption 0,2% per hour, max 500h standby time
  • Screen OFF, all connections (including mobile network) OFF, The Other Half attached:
    consumption 1,7-2,5% per hour, average 48h standby time
  • Screen OFF, mobile network ON, other connections and accounts off
    consumption 1,7-2,8% per hour, average 43h standby time
  • Screen OFF, mobile network ON, WLAN ON, some accounts synching data
    consumption 2,4-4,6% per hour, average 30h standby time
    (depends a lot of the amounts of data transfered)
  • Phone in normal use, including some screen using, phone calls, data transfer
    consumption 3,6-14,3% per hour, variance 7-28h usability time
    (normal use varies a lot, as you can guess)
  • Phone in continuous use, screen staying ON at low brigtness
    consumption 5,9-14,3% per hour, variance 7-17h usability time
    (unfortunately, the reports didn't include what kind of screen use (video/3D gaming/static img)
  • Phone in continuous use, screen staying ON at high brigtness
    consumption 10,0-30,5% per hour, variance 3-10h usability time
    (lowest usability time reported playing Angry Birds)

The effect of NFC connection with The Other Half 

Above, the 4th dot is maybe the best to describe the normal standby hours of Jolla, so let's calculate some more with that. NFC itself, when in use, eats the battery with a speed of 2% per hour. Using this value we can calculate that the stanby time of 30h mentioned above, or 20-40h variance of it, would rise to 38-250h when removing The Other Half.

To confirm this result

This result is based on only 4 tests where The Other Half was removed, two of them done myself. At the very moment I'm running my third test with even SIM card removed, and after 13h my battery shows 98%. Anyway, for even more reliable confirmation, I've added the selection to the last page of User Report Tool. Now I wish that many of you will reports new test results with The Other Half removed. To people who have already sent reports: It would be ideal to repeat the test with exactly the same other settings (please mention this in comments when posting).

Thanks to the community

As mentioned, this finding wasn't possible without the great community work of several Jolla owners. Special thanks to jollatides.com & jollasuomi.fi for sharing the User Report Tool for their readers.

Forwarding the information

I've sent a link to this article and to the user reports data to Jolla customer care. Answers will be commented to here, if I get one and if it's ok for them - maybe they will also confirm the problem.

In the end, I hope our great community work, multiple user reports and this article will help the whole community to have, in time, even a better phone. We are Unlike! Thanks once again!

UPDATE, Picked up from comments: Two possible workarounds (Software solution and Hardware solution) until Jolla comes up with a Sailfish hotfix

A) Software Solution with developing tools 

(Please check Important below before you start )
  1. Go to Settings -> Developer Mode
  2. Enable developer mode. Enable SSH connection.
  3. Enter or generate a new password after SSH. Remember it and Save.
  4. Reboot the phone, open Terminal (Terminal becomes a visible app after enabling developer mode)
  5. In the terminal, write the bolded commands exactly as here and press enter after each row:

    devel-su
    (your password)
    <- note: password is written invisible (you don't see your input). When your password is accepted, $ mark changes to #, telling you that you're in developer superuser mode. Go on with:
    systemctl mask tohd.service
    systemctl stop tohd.service
    exit
    exit

    With the first exit you leave the developer superuser mode (# changes back to $). Second exit closes the whole terminal, and everything is done. Your phone will not establish connection to The Other Half any more, not even after reboot, and your idle battery use is 10% of what it used to be. (If you want your phone to connect TOH after reboot, leave the row with word "mask" unwritten)
  6. To enable connection again and return everythihg as it was, open terminal and write:

    devel-su
    (your password)
    <- note: password is written invisible (you don't see your input)
    systemctl unmask tohd.service
    systemctl start tohd.service
    exit
    exit
  7. Extra: In any time you can check the status of your connection to The Other Half. You can do it either in devel-su mode (#) or in basic mode ($) with this command:

    systemctl status tohd.service

    Important: Playing with developer mode might affect to your phone's warrantly. These commands are tested by several users and they don't seem to break anything, but writing something else might - so please doublecheck every letter before pressing enter. Everything you enter in the developer mode is in your own responsibility. If unsure, use the HW solution written below (after terminal images)

    Note: There has been some testing going on with disable / enable commands also. They might work, even as good, and they can be tested as well. However I would recommend the masking procedure above, as otherwise the system is left a change to enable connection later for other reasons (if there are any, I don't know), or the system halts in cases where it excepts that tohd isn't disabled. Commands instructed above (5) should give a working, permanent solution, which will last until commands (6) is given.
Image 1, Jolla terminal: TOHD checking, masking, stopping and checking again. Note one typo in "service". Note also that the exit written only exits the devel-su mode (# -> $). Second exit entered would close the app. Click twice for full size img.

    Image 2, Jolla terminal after REBOOT: checking, failing to start (in testing purpose) and finally starting TOHD.

    B) Hardware solution with foil

    1. Reboot your phone without The Other Half. (For testing in the end: Change your ambience)
    2. Cover the NFC chip with a suitable piece of tin foil.(3 layers is found to be enough)
    3. Attach The Other Half. (To be sure the tin foil is in place, your ambience shouldn't change now.)
    Both of these solutions fixes the battery drain problem (tested). I recommend the upper, but if writing to a Sailfish terminal scares you a bit, just go with the HW solution. It should work as well, if there's enough foil. You might also just wait for a while, as reading the comment below written by Harri Hakulinen (Chief engineer at Jolla) we can guess that the hotfix won't take forever. Isn't it just great how Jolla community and Jolla the company can do things faster together? Now let's give them and ourselves a well earned Christmas holidays, and let's be patient while waiting for the Sailfish update fixing the problem.

    Selasa, 21 Januari 2014

    Jolla: GPS Navigation (updated: bug located)

    Update 2:  Navfree above version 2.1.14 doesn't get GPS connection.

    Recommended not to update above this version (2.1.14), which seems to be the latest working one.

    Update: Location data bug located - I call it a GPS Velocity Bug

    User have been wondering why several Android Navigation Apps running on Jolla shows the car location at closeby roads and crossings, or shows you driving sideways / backwards. I've been observing this behaviour the best I can, and by that I'm pretty sure that there is a bug in the velocity data calculation, calculated from the gps data.

    Jolla uses OpenSource code Geoclue, originally contributed by Garwin, for location data handling. This code should provide all the needed data very well, so the problem is within Qt or Sailfish code. My findings are based on observations only, so I can only share some possible options for the type of this bug. Either:
    •  Location is shown in the Navi app before the direction calculation is done. In this case, the Navi App would assume the direction sometimes as 0 (pointing to North)
    • Direction is calculated with inaccurate data. It should be calculated from the last two readings provided by gps, and if either of these readings is occasionally missing or old, the direction could show anything (e.g. making the Navi app to circle the map)
    • Direction data is not calculated at all. In this case the Navi app might show it as north all the time. 
    In a modern smartphone there are three ways to determine the phone current direction: (1) Directly from the magnetometer data, (2) calculated from that and the accelerometer data, or (3) calculated from two data readings received from GPS. Navi apps are using this method.

    Some Navi apps are able to use compass (Magnetometer sensor) as a supportive reading for the direction (e.g. when gps data is missing). Jolla's compass should work fine, but it's currently providing data to only some of the Android apps. (This is another known bug already under work. I'm expecting it to be fixed after Qt 5.3. release). However, this is not related to the velocity bug.

    We are also looking forward for a native Navi application for Jolla phones, but it's not expected to be released yet in the next update. I'm not expecting a fix to the velocity bug either unless it's very small, as it was just discovered (well, I suppose some coders have noted this earlier)

    Original article 12-Dec-2013

    While waiting for updates to HERE Maps features, here's a simple HowTo for installing GPS Navigation to your Jolla smartphone. Voice navigation included, tested to work myself.

    INSTALLING

    1. Register a Jolla account (needed to access Jolla store in the phone)
    2. Open Jolla store and install Android Support (close the store)
    3. Open your phone browser, go to address m.aptoide.com/installer.* Install Aptoide store (close browser)
    4. Open Aptoide store and search Navfree. Install the application (close the store)
    5. Open Navfree, follow the instructions and load your countrymap into the phone. WLAN recommended - e.g. road map files for Finland were 180Mb

      *Note: I made a typo (missing e) in the store installing address before. Corrected now.

    USAGE

    1. Enable Location in your Jolla settings
    2. Start the app, wait for GPS lock and on to the road.

    TEST NOTES

    1. User inteface works perfectly. Navfree has a nice set of settings.
    2. Supports voice navigation, POI's, speed cameras, speed limits (in selected countries) etc.
    3. Full offline support. To navigate, no connection or SIM card needed. 
    4. Sound (finnish tested) was loud and clear, instructions ok too. No need to use with max volume.
    5. In my first time, driving was shown in reverse on the map. Restarting the phone fixed this.
    6. If you navigate without internet connection, the phone might ask for it. This doesn't prevent the navigation app to talk, but the question screen hides the map. Tap to clear, but it appears again.
    7. You can drop the app to your home screen (swipe from left/right). Voice navigation keeps on running, but the map doesn't update in the active cover screen. Tapping the active cover opens the app and updates the map again.
    8. Landscape mode works well, even when dropping the app to home screen.
    9. If you close your screen yourself (swipe from up), navigation stops talking. I haven't tested if it stops talking when the screen is closed automatically.
    10. Navfree offers free map update download 4 times a year

    Coming up...

    My next app related blog post will reveal how to enable Adobe Flash Player on Jolla, with no special tricks needed. Comments are welcome, if you have wishes for the one after that. Thanks for your visit.

    Kamis, 02 Januari 2014

    Workaround: Jolla rotation and video format problems





    Jolla phone - video formats

    With Beta releases, it's sometimes just needed to do something yourself. This time, unless a fix is released, it has to do with the video recordings using Jolla's camera. There's a minor bug in rotation, turning some videos upside down (and some photos too), and there's another problem related to Jolla's less common video format h.263. Oh... and the recorded audio quality isn't great either (I hope the problem is just in the software)

    Workaround for the rotation bug

    When recording a landscape video, turn your Jolla anticlockwise (to the left).
    This way the rotation angle will be 0. If you turn it right, the video will show upside down in your computer.

    Workaround for the less supported video format

    When sending videos to services like Youtube or Vimeo, the videos are automatically converted, and the file size & quality is reduced. No problem in here, if you're satisfied to the quality and the service.

    Jolla records videos in format mp4v/h.263 (MPEG-4 Visual Simple@L6 to be exact). Not all players, and especially not the common web players are able to show this (you'll only hear the sound).

    If you don't want to use 3rd party services, here's what you can do for the empty video frames and whining relatives: Convert your video to a better supported format. Here's a HowTo for mp4/avc1 format, which is well supported:

    For converting a video, I used VLC Player. HowTo:

    1. Save your video to any folder in your computer. You can transfer it via USB cable, Bluetooth or Email (attachment). Moving it via 3rd parties is not recommended, as it's usually converted in their desired way when uploaded, reducing the quality
    2. Open VLC Player (link is to the official download site)
      Select from menu: Media -> Convert/Save...
    3. Add... the video / videos you want to convert to the File selection list
    4. Click Convert / Save
    5. Browse Destination File. Select the Folder and write the name for the converted video, ending to text .mp4 (note the dot)
    6. Select any profile from the dropdown menu, as it need to be edited anyway. I used Video - MPEG4 + AAC (mp4)
    7. Edit your selected profile (click the tools icon)
    8. For encapsulation, choose mp4
    9. Video codec selections (this is what we convert)
      The selection boxes: Select "Video", unselect "Keep original video track"
      Codec: choose H.264
      Bitrate: 10 000 Kbit for max quality, 300-600 for web viewing purposes. This selection is the most important considering the file size and quality, and the processing time too. You could start with smaller values, and make another setting later if you're not satisfied with the outcome.
      Frame rate: 30fps for max quality, less to get smaller file size. At least 12 fps recommended.
      Scale 1 / Width 0 / Height 0 for original size, or change only one of the values for desired size.
    10. For audio codec, select "Audio" and also select "Keep original audio track"
    11. Save the settings (next time they will be ready in your selected profile)
    12. Leave the checkboxes unselected, and start. Convertion takes a while, you can follow the advance from the bar at bottom. After it's ready, the player shows its stopped (no notifications)
    You can find your converted video in the Folder you selected earlier. The original video is left unchanged. The format of the new video is mp4/avc1 (MPEG-4, Advanced Video Codec High@L4.0) which is recognized by most web players and html5. Html5 supported browsers are at least Mozilla Firefox (from v21), Internet Explorer, Google Chrome & Safari. Opera does not support mp4 - to gain visibility there, convert video also to ogg format.

    Sharing videos in mp4/avc1 format is currently the best way considering most viewers, as both the web and most players in several devices/computers support viewing this format. As an example, here's a 7 second teddy clip not using iframe or Java/Flash. The format is simply supported by html5 programming language. You shouldn't see this with Opera browser, but with most others, yes:

    Jumat, 27 Desember 2013

    Jolla HowTo: Workaround for battery life NFC bug

    Link to mobile view for Jolla Sailfish browser (browser is not automatically recognized yet):
    http://reviewjolla.blogspot.com/2013/12/jolla-howto-workaround-for-battery-life.html?m=1

    After publishing an article about finding the NFC bug, lot's of users have tested workarounds to fix the bug. The software solution given there is now confirmed as safe, so I share it again in this detailed HowTo. Workarounds like this remains the only change for users to extend their battery life for normal level, as the next Sailfish update 2, version 1.0.2.5 does not offer a fix the this bug yet, but an update is on it's way:

    To enable developer superuser mode in Jolla

    1. Go to Jolla Settings -> Developer Mode
    2. Enable developer mode. Enable SSH connection.
    3. Enter or generate a new password (options are visible after SSH). Remember it and Save.
    4. Reboot your phone
    After steps above, your phone has a new app called Terminal in the laucher view. Via terminal you are able to give commands to the phone as a root user, and practically everything is possible there - even causing the phone not to start, so please be careful and doublecheck every letter you write there. Giving wrong commands might affect to the warranty of your phone.

    To prevent Jolla's communication with The Other Half (NFC bug)

    Open terminal. You see an exchanged keyboard, and an enter line showing "bash-3.2$ ". That's where you write your commands. During the following commands, the enter line changes to "bash-3.2# ", telling you that you have entered developer superuser mode. In this mode it's possible to command the phone's hardware. During your writing, either the keyboard or the command line is higlighted - you can write even when keyboard changes to grey. Write the bolded commands below, and press enter after each:

    devel-su <- you command your terminal to enter developer superuser mode
    (your password) <- note: invisible writing. Jolla confirms that you are the superuser
    systemctl mask tohd.service <- you put a mask to a buggy service commanding NFC chip
    systemctl stop tohd.service <- you stop the service
    exit <- you leave the devel-su mode
    exit <- you leave the terminal (it closes)

    Terminal closes, and you have now a phone using less battery. Cconsumption is reduced by 2% per hour, giving you max 500h standby time. Your phone does not recognize The Other Half any more, so the ambience does not change when you attach it. Everything else is normal. Masking the service, like commanded above, prevents the phone to enable connection after reboot, so this offers a permanent fix until removed.

    To return everything the way it was

    After Jolla distributes a Sailfish OS update fixing the NFC bug, you can remove your changes to the system. It's safer to do before installing that update, but this should work as well after it. Open terminal again, write the bolded commands below, and press enter after each:

    devel-su <- you command your terminal to enter developer superuser mode
    (your password) <- note: invisible writing. Jolla confirms that you are the developer.
    systemctl unmask tohd.service <- you take the mask away, so the system can find the service again
    systemctl start tohd.service <- you start the service
    exit <- you leave the devel-su mode
    exit <- you leave the terminal (it closes)

    Terminal closes, and your Jolla can communicate with The Other Half again.

    Is this all safe?

    According to Harri Hakulinen, Chief engineer at Jolla, yes it is:
    According to several users, yes it is. I've been carefully following comments going on at forums, twitter and The User Report tool during the last 4 days. People are reporting better standby hours, and none of them has reported  problems caused by this fix.

    However, keep in mind that you must be careful with what you do. In the developer mode, wrong commands given can break your phone.