yashsingh1/xdaforums huggingface dataset:
[Sony Smartwatch 3] alex6600:
Exactly right. Work well.

Sometimes I use BT headset. And use this feature.
[Sony Smartwatch 3] craigcharlie:
That's good to know! Thanks for the super quick reply. I might try flashing your kernel so!

By the way, I'd made some modifications to the cwpalmer kernel so that the watch is recognized as a flash drive when plugged into PC. Would you be interested in those changes? Will take me a couple days to dig out and get back to you...
[Sony Smartwatch 3] alex6600:
Of course interested. PM me, and I implement these feature soon.

[MENTION=2956869]craigcharlie[/MENTION] did you mean this changes?
[Sony Smartwatch 3] alex6600:
OP Updated with version 1.13.

In 1.12.x version number of swap devices was 4 (=num of processor cores).

In 1.13 version number of swap devices is 2. And increased vm.page-cluster (for swaps 2 pages of memory at a time, instead of default 1).

On the one hand- 4 swap devices use one core per device (in theory). This will help in massive swapping.

But on the other hand- our device is not so powerfull for that.

Generally- it is necessary to understand which of the variants is best (2 or 4 swap devices).

Please, give feedback about performance and battery life 1.13 vs 1.12.10/1.12.11.
[Sony Smartwatch 3] alex6600:
OP updated with version 1.14.

New in version- ZRam release, with multi stream functionality and new lz4 algorithm.

Set of compression streams set to 4 (= number of processor cores), with one zram device.

This revert previous releases of multiple swaps.

Also vm.page-cluster revert to stock (1 page of memory at a time).

Please, give feedback about performance and battery life 1.14 vs 1.12 and 1.13 versions.

PS. For those who use test versions- it is recommended update.
[Sony Smartwatch 3] seargejw:
Quick question. When flashing newer versions of you kernel do I have to wipe everything or just do a cache wipe? Thanks
[Sony Smartwatch 3] alex6600:
You don't need to wipe anything. Just flash new kernel img.
[Sony Smartwatch 3] alex6600:
OP updated with version 1.15.

I've removed some tweaks (go_hispeed_load -> 50), and set it by default.

Also include some patches.

Hope this will increase battery life a little.
[Sony Smartwatch 3] broderbluff:
1.14 was very stable and battery loss around 35% over a day with screen always on. Time for 1.15
[Sony Smartwatch 3] alex6600:
OP updated with version 1.16.

In 1.15 some parameters for interactive governor are missing. 1.16 fixed this.

Also turned off some unnecessary usb drivers (Reduces kernel size a little).
[Sony Smartwatch 3] alex6600:
Who want to test- try version 1.17.

I've turn on adaptive LMK. Interested how will be with memory drain.

Download tetra_1.17
[Sony Smartwatch 3] alex6600:
OP updated with version 1.18.

New in version- Linux kernel updated to 3.10.98.

Also set some compiler optimization flags.
[Sony Smartwatch 3] broderbluff:
damn you're active =D yeah i noticed that 1.15 was weird, it drained 85% battery over a workday. Flashing 1.18 right now
[Sony Smartwatch 3] craigcharlie:
Yes, exactly! I just remembered I'd posted the files on XDA and was gonna reply to your mail with that link. :)

**********EDIT: Since alex linked to this post, I'll make the install steps more thorough here:

Ensure that you have root access. You DON'T need to unlock your bootloader to do this - Just follow NUT's instructions here.

After flashing the kernel, connect the watch to a PC with adb installed. Enter the following commands:

adb shell
su
setprop persist.sys.usb.config mtp,adb

After you do this, adb will disconnect. This is normal.

** Important: Unplug the cable from the PC. Otherwise you'll see a blank 'SW3' explorer window as the watch is booting, which will worry you for no good reason :)

Open Settings on the watch, and Restart.

Wait until watch is fully restarted and responsive, then reconnect cable.

Help Windows figure out the correct driver to use. Tbh, every time I've wiped/reflashed/config'ed a watch, different drivers seem to be defaulted.

I chose MTP-compliant drivers on Win7: Post#120

Someone else chose 'USB Composite Device' drivers on Win 10: Post#128

After choosing a driver, you may need to unplug/replug the watch to get Window's to recognize the device.

After following these steps on your PC, the watch will be automatically detected as a 'Portable Media Player' device on subsequent connections.

Note, when I connected the watch to a non-ADB, non-dev machine, it was recognized as a media drive right away.

Hope this helps some people!
[Sony Smartwatch 3] Nonda95:
No ;)
[Sony Smartwatch 3] alex6600:
You can try boot with other kernel, and find out- kernel issue, or not.

For test- just download new kernel, and type- fastboot boot <kernel>.img. This will boot you device with other kernel. After reboot- you will return to you flashed kernel.
[Sony Smartwatch 3] craigcharlie:
Thanks a ton for answering the newb question! I only mess with android dev for specific tasks, which means I get android amnesia after months of not using it :)

Unfortunately, rebooting with the new kernel didn't solve the call answering issue, so it seems to be caused by android wear itself. I'm thinking now that the call answer issue is related to another issue - my watch won't successfully install system updates - it downloads them but the installation fails. crpalmer mentioned this would happen, so no surprises there.

I'm wondering, does your kernel allow OTA updates? If not - would anyone be willing to provide some pointers on how to get the watch to accept an OTA update? eg, flash the stock kernel, then update? I'm not even sure what stock kernel I should be updating it to. Also, is there a way to force the watch to download the update? When I check the 'system update' in the watch wear settings, it says it's up to date, even though the OTA update failed.

thanks,

Charlie
[Sony Smartwatch 3] matejdro:
Best way to receive an OTA is to boot up TWRP recovery and make full system and boot (kernel) backup before flashing any custom stuff. Then when OTA comes, you just restore them and can flash OTA without issues.
[Sony Smartwatch 3] alex6600:
These commands should be entered after every watch connect? Or after reboot?
[Sony Smartwatch 3] craigcharlie:
Actually just one time. The setting persists.

But, be aware, after you enter it, the watch will *only* be accessible via adb if you're using a kernel that has those config settings.

This was a real pain for me, I kept having to factory reset the watch to make it accessible to adb again. Until I figured out that I could use minuum keyboard and sideloaded terminal emulator to type this on the watch:

setprop persist.sys.usb.config adb

Hope that helps!
[Sony Smartwatch 3] craigcharlie:
Hi, since this thread has a bunch of smart people watching it, I wanted to ask a quick question.

At some point 'swipe to answer call' stopped working on my SW3. I'm unsure if it was after a particular update. Rejecting a call still works fine - but when I swipe to answer, the notification gets a check mark and then goes away as though the call was answered - but it keeps ringing on my phone.

I've updated to the latest OTA and the problem still happens. The version details are:

Android Wear

1.3.0.2160025

Google Play Services

8.4.89(2428711-534)

Android OS

5.1.1

I've googled around and see that a bunch of people have seen this problem (or a missing answer button) with different phone/watch/version combinations - in some cases a Wear OTA update seems to have solved it.

I have a Galaxy S5 on KitKat 4.4.2. Perhaps it's some KitKat incompatibility with Wear? I know that Lollipop has some additional settings related to notifications/'interruptions'?

Does anyone else have a KitKat phone that they can use to answer calls?

thanks,

Charlie
[Sony Smartwatch 3] alex6600:
OP updated with version 1.21.

In this version- many interactive governor impruvements for longer battery life.

Kernel mode NEON support.

And USB MTP Mode. For make it work- see this and this craigcharlie's posts.
[Sony Smartwatch 3] alex6600:
OP updated with version 1.22.

Small update. Same as 1.21 plus some fs improvements.

Also small apply to interactive governor (ramp down to min freq if below 6% load)
[Sony Smartwatch 3] alex6600:
OP Updated with version 2.2.

Versions 2.x based on stock LCA43 google sources android-wear-5.1.1_r0.5 (still waiting latest...)

Version 2.2 have almost same patch set, as latest 1.x versions.

Main benefits:

- ported and modified version of ZRAM with LZ4 compression, and multi stream functionality. Number of streams set equal to 4.

- UKSM and it's modify for work on Android, with governors support. Choosen quiet governor for low cpu usage and less battery drain.

- Interactive governor, with some battery-life tweaks.

- Fiops scheduler with many improvements.

- Kernel mode NEON.

- Math function optimizations.

- Optimized ARM-related algorithms.

- Many changes in defconfig.

- USB MTP Mode.

- Compiled with latest Linaro 5.2 cross compiler with Cortex-A7 NEON optimizations.

I will be grateful for the comparison and reviews of difference 1.x and 2.x versions.
[Sony Smartwatch 3] craigcharlie:
I've been running 2.x since right after you released it yesterday. If I'm not mistaken, this version is awesome, the best one yet. The battery was at 100% when I flashed the kernel, it's now at 65%.

Wear Battery Stats is showing a discharge rate in the 1.5% range per hour - 1 full percent less than what I was seeing in the 1.x versions!!

Thanks a ton for your continued work on this kernel!
[Sony Smartwatch 3] alex6600:
Glad to hear that.

Thanks for review!
[Sony Smartwatch 3] sirrelevant:
what settings are you using for tilt to wake, gestures, and always-on screen?
[Sony Smartwatch 3] craigcharlie:
I don't use tilt to wake, it annoys the crap out of me having the watch light up every time I move my wrist. Gestures off as well, I found them to be so finicky that I felt like throwing my watch against a wall when trying to scroll through notifications.....wayyyyyy easier to just use the finger.

Always on display is on.... it's a trade-off... the minimal battery loss is outweighed by the convenience of being able to glance at my watch whenever I want. I find that a dimmed, always on display can be viewed in almost no light - transreflective display ftw!!! :)
[Sony Smartwatch 3] chrisoldinho:
Screen 'always on'. Gestures disabled. Using bubble cloud launcher.

Screenshot of 2.22 battery discharge. I've literally not used the watch other than to wear it on my wrist. Currently at 17%. Should make it last circa 1 day.
[Sony Smartwatch 3] alex6600:
Can you post:

- dmesg

- logcat -v time

- dumpsys meminfo

- top -m 10 -n 2
[Sony Smartwatch 3] snake218:
Getting about 35% drop in aprox 5hrs with 2.22 version.

Gesture off, screen always on, tilt to wake on, WiFi and gps off
[Sony Smartwatch 3] craigcharlie:
If people are seeing issues, perhaps post this info from the Wear device - Settings > About > Versions

Here are mine:

Android Wear

1.3.0.2160025

Google Play Services

8.4.89(2428711-534)

Android OS

5.1.1

Phone is S5 on KitKat 4.2.2, latest Android Wear app, whatever that is....
[Sony Smartwatch 3] alex6600:
Can you post some logs?

And post please

grep '' /sys/devises/system/cpu/cpu0/cpufreq/stats/*
[Sony Smartwatch 3] craigcharlie:
The power management for low power states on this kernel seems to be awesome. Check this out:

1% per hour!!! Discharged in 5 days!! I can live with that :) :)
[Sony Smartwatch 3] alex6600:
OP updated with version 2.3.

This is small update. Linux kernel up to 3.10.36.
[Sony Smartwatch 3] alex6600:
Are you both using 1.22 version? Or 2.2?

Provide cat /proc/version
[Sony Smartwatch 3] snake218:
Using 2.2.

Will post when i get home, btw, any tutorial on how get those logs?
[Sony Smartwatch 3] alex6600:
In command prompt type: adb shell dmesg > dmesg.txt

And adb shell logcat -v time > logcat.txt
[Sony Smartwatch 3] Glirhuin:
May I have unlocked the bootloader in order to flash this kernel?

Is there a way to return stock, if I will have the need to use the warranty?

Thanks in advange.
[Sony Smartwatch 3] snake218:
Today getting 20% drop in about 6 hrs, with little use
[Sony Smartwatch 3] chrisoldinho:
Apologies for the delay, see attached.
[Sony Smartwatch 3] chrisoldinho:
I have upgraded to 2.23 anyway. Logs were sent from 2.22
[Sony Smartwatch 3] alex6600:
This logs taked after boot?
[Sony Smartwatch 3] chrisoldinho:
Yes.
[Sony Smartwatch 3] Momogs:
Battery stats

I'm getting about 3.19% drain per hour on Tetra 2.3 and this includes using Sleep as Android at night and wifi/bluetooth always on.
[Sony Smartwatch 3] alex6600:
OP updated with version 2.4.

Main improvement- Linux kernel 3.10.99 (latest for now).
[Sony Smartwatch 3] alex6600:
OP updated with version 2.5.

This is small update over 2.4.

Reduced ZRAM SWAP from 160 MB to 128 MB (will see.. maybe 128 is enough).

And some changes to mount point options.

Kernel compiled with Linaro 5.3 RC1 toolchain.
[Sony Smartwatch 3] [NUMINIT]:
Idea: how about a version with adbd insecure?
[Sony Smartwatch 3] alex6600:
Did you mean

ro.secure=0
ro.adb.secure=0

?
[Sony Smartwatch 3] [NUMINIT]:
Yeah.
[Sony Smartwatch 3] Tikerz:
Are all 4 cores enabled on the 2.x versions? Can you compile make a 2 core version? I'm curious on battery life with 2 core version. Thanks!
[Sony Smartwatch 3] alex6600:
In default.prop already has:

ro.secure=0
ro.adb.secure=0
[Sony Smartwatch 3] alex6600:
Yes. All 4 cores are enabled.

But 1-3 core enables only if are needed. Consequently 4-core version not serious affected battery life.
[Sony Smartwatch 3] Tikerz:
Thanks for the prompt answer! Love your work on this!
[Sony Smartwatch 3] alex6600:
Anyone who using latest kernels.

Please post your

dumpsys meminfo
[Sony Smartwatch 3] arthos7:
Here's mine
[Sony Smartwatch 3] alex6600:
This result was obtained after a reboot?
[Sony Smartwatch 3] crunchybutternut:
dumpsys meminfo - Results

Here are mine. Pre, and Post reboot.
[Sony Smartwatch 3] arthos7:
Yep. After flashing your kernel and reboot.
[Sony Smartwatch 3] alex6600:
OP updated with version 2.6.

Linux kernel updated to 3.10.100
[Sony Smartwatch 3] crunchybutternut:
A good bit of battery drain on version 2.6.
[Sony Smartwatch 3] alex6600:
Can you post dmesg when again you have same battery drain.
[Sony Smartwatch 3] alex6600:
OP Updated with version 2.7.

Now kernel compressed by lz4 algorithm (improved boot time).

RTFM :)
[Sony Smartwatch 3] crunchybutternut:
The worst point was when I was using this app: Tracker

However, I use it each time I go to the gym, and the battery use was a lot higher than it has been in the past.

I'll be going to this gym today, after work, and will post dmesg when I get back home.

(I did flash to 2.7 this morning though.)
[Sony Smartwatch 3] Simba83:
Before flashing this kernel, should i make some kind of backup?

Found my questions in another thread.
[Sony Smartwatch 3] alex6600:
OP Updated with version 2.72.

New in this little update:

Optimize math options

Changes in swap subsystem when ZRAM is used.

Changes in Makefile for more performance.
[Sony Smartwatch 3] alex6600:
OP Updated with version 2.8.

In this version- interactive governor improvements. And disable some unnecessary logging.

Will wait you reviews.
[Sony Smartwatch 3] [NUMINIT]:
Oh, cool. I, uh, didn't actually look at it before assuming. Suits me.
[Sony Smartwatch 3] travisdjack:
sekac55, You put lspeed on your sw3? You use adb to do that? Sorry new to this, but lspeed seems pretty awesome.
[Sony Smartwatch 3] travisdjack:
I'm on 2.8 since last night, fully charged the sw3. I used the GPS this morning with Google Fit to go on a run, last about 20 minutes. I am at 80% after 7 hours 6 minutes and it says I have until 3:52pm on Thursday. I'm impressed.

Now just to figure out how to get lspeed on here without bricking it.
[Sony Smartwatch 3] lekofraggle:
While not exactly lspeed, this might get you closer. Be careful.

http://xdaforums.com/showthread.php?t=3126122
[Sony Smartwatch 3] travisdjack:
Thanks, got it installed. Can't wait to play around with it.
[Sony Smartwatch 3] Tikerz:
Running 2.8. 16hr uptime. 2.5% discharge per hour. At 43% right now. Expected to fully discharge in 19 hours. I have Always On screen.
[Sony Smartwatch 3] craigcharlie:
Thanks for the heads-up about lspeed! Just installed it (sideloaded via 'adb install ... ' ) - working fine and watch does seem a little snappier. Interested to see what combined effect on performance/battery will be - will report back in a few days.

[MENTION=949860]alex6600[/MENTION] - I'm running the latest version, will test for a day or so and let you know how it looks.

[MENTION=3021003]travisdjack[/MENTION]- If you're interested, a few tips to easily use lspeed:

- You can run 'adb shell wm density 150' to increase the DPI so that lspeed is easier to use - better layout.

- You can run 'adb shell wm density reset' to set the DPI to normal size when you're done

Further pro tip - you can script setting the DPI on the fly via bluetooth from the phone, using this awesome app by [MENTION=1559352]Diechel[/MENTION] : Wear Toolbox.

Fyi, this also might be interesting to people - you can also run scripts directly on the watch with Gscript lite - that program is the only way I found to run .sh files directly from the watch. It's a bit involved/quirky though - you have to pull the apk off your phone (adb pull /data/app/nl.rogro.GScriptLite-1.apk), then sideload that apk on the watch. Then you can long press one of the 3 existing scripts, save one to the SD Card - this creates an /sdcard/gscript directory. Then you can store further scripts in that folder, load your scripts into one of those 3 slots on the fly. When you run the script, Gscript will run it, then Wear throws a 'Gscript has closed' message you can just dismiss. Convoluted but it works! Oh and also - you can't swipe to dismiss the Gscript Lite app - you have to press the hardware button to return to the homepage. :eek: Hope this script stuff is of interest to someone! If anyone has a less convoluted way to run scripts from the watch please let me know!
[Sony Smartwatch 3] [NUMINIT]:
Nice. I've gotta try this out.
[Sony Smartwatch 3] sekac55:
I use adb to sideload the app. Now I will try over twrp to flash xposed and install amplify. The last version of kernel is so far the best in performance and battery .

Gesendet von meinem SM-G928F mit Tapatalk
[Sony Smartwatch 3] alex6600:
OP updated with version 2.9.

In version: Linux kernel updated to Linux 3.10.101, and some zram subsystem improvements.
[Sony Smartwatch 3] alex6600:
Del
[Sony Smartwatch 3] travisdjack:
I'm on 2.9. I've been off the charger since 0900 on 03/19/16 and I am still at 70% battery. I will update when it is fully discharged.

Loveing the sw3 and this kernel.
[Sony Smartwatch 3] Simba83:
I'm on 2.8 and I really like this kernel to. Only thing I'm waiting on now is marshmallow from Sony.
[Sony Smartwatch 3] craigcharlie:
I installed xposed successfully, but Amplify didn't work for me. Just force closed.

I've been running 2.8 with both Lspeed and Kernel Auditor installed. Battery life doesn't seem great tbh, almost 4%/hour. Wondering if having both of those programs installed is causing some weird issues. Going to flash 2.9 now and see whether I see any improvements.

Note, in Kernel Auditor, I've just updated the the CPU cores setting to use only one core. (this setting does NOT seem to persist across reboots). Will be interesting to see if this helps.
[Sony Smartwatch 3] alex6600:
If you people want kernel with one/two/three cores- let me know.

I can compile such versions, but I still do not see the point in this :)
[Sony Smartwatch 3] craigcharlie:
Thanks alex. I'm guessing there's no point, since as you said before the other cores shouldn't be used unless they're needed. I was really just experimenting to see if there's any tiny improvement in battery life!
[Sony Smartwatch 3] travisdjack:
I've got lspeed and greenify installed, no exposed or anything of that stuff. I'm getting around 1%/hr. Try doing a factory reset and reinstalling everything. Use the suggested settings for lspeed that are posted on the play store download page under description.

I'll keep everyone updated on my battery life. I have screen off and no tilt to wake.
[Sony Smartwatch 3] chrisoldinho:
i sideloaded greenify but it crashes as soon as I go to settings, what's the trick to getting it to work with a rooted rom?
[Sony Smartwatch 3] travisdjack:
Don't go to settings, it obviously doesn't work. Just hit the add button, circle with plus sign, and choose the apps you want greenified. It'll take care of it.

---------- Post added at 11:09 PM ---------- Previous post was at 11:07 PM ----------

So I am currently at 1.14%/hr after being on battery since approximately 0900 hours on Monday the 21st. Loving this watch and kernel. Had some pretty heavy notification activity today too.
[Sony Smartwatch 3] craigcharlie:
Thanks for the info travis! I'm currently under 1% per hour with the screen turned off.

I think I might have had an issue with Wear Battery Stats - I was seeing much higher per hour rates (about 5%), then I uninstalled/reinstalled Wear Battery Stats on a hunch - reported drain is much lower, and the watch is clearly draining much more slowly. It's still at 95% and it's been unplugged for almost 6 hours. Wear Battery Stats says this:

Fully discharged in 5 days.

:) :)

This kernel is awesome!
[Sony Smartwatch 3] travisdjack:
I'm now at 7% and reporting 1.24%/hr say it will be discharged tomorrow at 0937. So I will have gotten 4 days out of the battery. I expect it to be dead by 5pm this evening though, but we'll see.
[Sony Smartwatch 3] craigcharlie:
Hey Chris, what version are you on? 2.8.1 works fine for me.

One thing - Greenify menus don't work so well due to limited screen space on Wear. Here's a way to get around that:

Connect the watch to your computer

Run 'adb shell wm density 150' to increase the DPI

When you're done, run the following command to reset the DPI to normal size: 'adb shell wm density reset'

hope that helps,

Charlie
[Sony Smartwatch 3] travisdjack:
Ok so I got 3 days and 6 hours out of it running lspeed, greenify and screen off most of the time. I put it in theater mode when I am sleeping.
[Sony Smartwatch 3] travisdjack:
I tried changing the dpi, but settings still force closes. I'm on 2.8.1
[Sony Smartwatch 3] caminin:
Hi,

I got some troubles with my watch too. I have no battery drain but my stats are terrible (around 11%/hr, it was 17% before this kernel). I don't know if a fix exists but if you have any idea, I think I tried everything I could think of :

- Install multiple kernel

- factory reset (A LOT)

- change Wear app

- remove a lot of app (i don't have any now)

I have galaxy s6 in 5.1, i'm thinking in upgrading to 6.0 if something could change.

I'm not asking you a tutorial "How to solve all your problems in 5s" but if i can't find any solution i think i will sell it, i've already spent almost 10H trying to fix it and nothing worked so far.

(Sorry for my english)
[Sony Smartwatch 3] alex6600:
For a start- give output top -m 20 -n 3. And dmesg from watch.
[Sony Smartwatch 3] alex6600:
New version 2.10.

In version- some interactive governor tweaks. I think that this changes will reduce number of unnecessary cpu speed changes to high freqs in some cases.

And some compiler flags added.

To all: Use and give feedback.
[Sony Smartwatch 3] travisdjack:
I'm on it.
[Sony Smartwatch 3] janla:
ok. installed 2.10 for better battery time.

Thanks Alex !

I will give feedback in few days if i will survive (watch not on my hand you know...:p).

question for now - how can I check/verify kernel version after installation?
[Sony Smartwatch 3] alex6600:
cat /proc/version
[Sony Smartwatch 3] razielvn:
Kernel is perfect ! I hope you won't drop this project.
[Sony Smartwatch 3] crunchybutternut:
Running 2.10, and battery is draining at 4.57%/hr.

Have Greenify installed, and killing everything, but Google Fit.

Screen Always On is off.

Gestures are on.

I have attached the dmesg log.