yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] tihimasmo:
I'll add another variable to battery time reporting:

Try2 build.

Always on: off

Minimal use. Waking screens a couple times per hour. Placing a handful calls during the day and receiving a dozen notifications.

6 am 100%

7 p.m. 70%
[Samsung Gear 2] biktor_gj:
I see your batteries are in quite a better shape than mine, I guess so much flashing, rebooting, and connecting to usb is finally starting to kill mine ;)

Let's play a bit more with power management!

I've built a 'custom' power hal library. It's not much, but I've set it to limit the max frequency most of the time except when you're actively using the watch

Want to try it out?

Grab the new library: http://www.mediafire.com/download/39mz2dzmk08zs23/power.exynos3.so.zip

Unzip it and place in some folder,

Connect to USB, reboot to recovery and run:

adb shell mount /dev/block/mmcblk0p15 /system

adb push power.exynos3.so /system/lib/hw

adb shell chmod 755 /system/lib/hw/power.exynos3.so

To get back, simply flash again the try2 package (or backup the older power library and push it back)

Let's see if we get some more juice!
[Samsung Gear 2] jeffc83:
Well, it didn't blow up my watch;) (yet) Testing now, thanks! (testing with screen always ON) I will try to find some time to do some research too, it has been a busy day here:(
[Samsung Gear 2] cool2004:
command line answers - error: device offline. Why is that?
[Samsung Gear 2] McGuigew:
Thank you for being always so precise on the procedure. I've always been able to follow the progress without having questions. FLASHED! Let's see :)

---------- Post added at 09:29 PM ---------- Previous post was at 09:28 PM ----------

you are in TWRP when you perform the commands right?
[Samsung Gear 2] jeffc83:
Correct

No drain in 10 minutes with screen always on...that may be a good sign! (fingers crossed)
[Samsung Gear 2] cool2004:
Problem solved.
[Samsung Gear 2] McGuigew:
Here is an even more precise description :

1) Unzip the file Bikor gave us

2) Take power.exynos3.so and put it in the folder C://adb

3) put your device in TWRP and connect it

3) Start cmd and type all of this :

cd c://adb

adb shell mount /dev/block/mmcblk0p15 /system

adb push power.exynos3.so /system/lib/hw

adb shell chmod 755 /system/lib/hw/power.exynos3.so

All good!

Edit : OOPS, too late! Maybe that'll help someone else :)
[Samsung Gear 2] Didace33:
Good job, I like Android Wear, but I can't deactivate the hand gesture, is possible do it?

Thank you.
[Samsung Gear 2] tnbx:
Guys wanna report ir working good with my tvs , about battery is really bad really drains alot in 1 houer , should i try the mod kernel ?
[Samsung Gear 2] McGuigew:
Open Android Wear on phone, go to settings (little gear up on the right), click on Gear2, an then I'm sure you find alone ;)

---------- Post added at 11:12 PM ---------- Previous post was at 10:28 PM ----------

With always on screen and touchwake active (light use) I lost 26% of battery in 1h30min :/
[Samsung Gear 2] Didace33:
I know, but it does not work, I wonder if you can really turn it off.
[Samsung Gear 2] McGuigew:
It works on mine...
[Samsung Gear 2] Didace33:
Ok thank you, do you have another kernel?

In my device not work and drain the battery too fast.
[Samsung Gear 2] McGuigew:
Are you on "always on" screen ? If yes you should turn that off because it's a battery killer...

I flashed the last thing shared by Biktor...
[Samsung Gear 2] Alxoom33:
Tried this with always on. Tremendous battery drain. Much faster than yesterday's test 2. Drained in 3 hrs. Also looks like IR blaster keeps blasting. Channels change when I moved my wrist towards the TV[emoji12]
[Samsung Gear 2] biktor_gj:
With always on, for me at least, the draining was exactly the same with that kernel (10%/hour), with screen set to off, it got a bit better, but like 1% less per hour... Doesn't matter, I was testing the original touchscreen driver to see if there was any difference on the voltage regulator settings, I was going to revert it anyway.

With the hand-made powerhal, metrics for the last 9 hours of sleep time:

up time: 09:26:34, idle time: 07:56:49, sleep time: 05:02:08

Won 30-40 minutes of sleep time, not that bad ;)

In the last 6 hours, with screen always on disabled, it lost 16% of battery (from 60% to 44%), yesterday it was from 61 to 33, so it's getting a bit better.

My next test will be:

Create new function on the display kernel driver to expose the LPM mode

Find all the sysfs/procfs entries for non-essential devices

Modify PowerHAL library to catch when the display is dimmed (given that I can't find how to ask android if it is in Doze mode, I will use the brightness setting as a reference) and launch a set of commands to the kernel from it to enter low power mode on the lcd, turn down the display refresh, and shutdown audio, IR, and everything except sensorhub, bluetooth, and a few things more.

We'll see how that goes!
[Samsung Gear 2] annson08:
Why do you guys have fast draining rate? Just before I gave my watch to service center, I got 1day of average use and my watch still has 26% of juice left. I was on the build before IR blaster was working when I noticed this battery life of my watch. I had my brightness at level 3 and disabled the always screen on option. Sorry for no screenshot.
[Samsung Gear 2] Gabri98:
[MENTION=803006]biktor_gj[/MENTION]

Please sir, can you tell me directly command for how decompile and recompile Rootfs.img ? i have linux + root please reply me.
[Samsung Gear 2] flatherskevin:
[MENTION=803006]biktor_gj[/MENTION] Ever realize that you're the Cyanogenmod of the Gear 2 and the Gear 2 Neo and that your work will be the foundation for a lot of ROMs? Pretty incredible. Thanks a ton for the brilliance you've put into developing this watch.
[Samsung Gear 2] DAGr8:
It somewhat depends on your distro, but it shouldn't be to hard for you to find out using Google. Also this isn't directly related to this particular thread *.img files are used in all Android devices..
[Samsung Gear 2] mkamal1:
Audio not working

I flashed the 12th july build and audio is not working,please tell me how to fix that.

Thanks
[Samsung Gear 2] Gabri98:
i use ubuntu.

i don't find any tutorial.
[Samsung Gear 2] emuandco:
Which app? Btw, same for me.
[Samsung Gear 2] biktor_gj:
You don't need to decompile it, you just mount it:

From a linux terminal, at the directory where you have rootfs.img

mkdir MountPoint

mount -o loop rootfs.img MountPoint/

The entire system partition will be at MountPoint/

You can do the same for the boot partition (ramdisk-recovery.img) and recovery (modules.img)
[Samsung Gear 2] Gabri98:
Sir succesfull mount but i can't view file why ? the folder mountpoint are locked and when open, open folder tizen but no file there
[Samsung Gear 2] Arry87:
I'm not doing too bad, using latest download.

Screen always on = off

Brightness = 5

Tilt to wake = on
[Samsung Gear 2] mkamal1:
I checked for incoming calls and music.
[Samsung Gear 2] Gabri98:
[MENTION=803006]biktor_gj[/MENTION]

Finally mounted but can't make my rom the file is locked please tell me all command for unbuild and rebuild the rootfs.img i have linux ubuntu and windows
[Samsung Gear 2] tihimasmo:
Funny bug. I once answered a Viber text message by clicking the Google notification card on watch and selecting reply. When Google now recorder started I said "yes" and that answer was sent. Now several days later and several flashes later (well at least one) some Viber messages are instantly answered by "Yes". Also I send "yes" at random times. Luckily only to my wife so far.

Viber related, wear related, Google related or related to this build... Idk.
[Samsung Gear 2] alvaromartinezb:
Hey [MENTION=803006]biktor_gj[/MENTION] , according to my knowledge, doze is only for android M... We still don't have M on the watch... If you want to know how to check if a device is dozing, we can try anything on my phone... I'm running android M preview 2, it could be good to know because we will be getting M soon (ish)
[Samsung Gear 2] mettercomputers:
Will be waiting to try thanks for your great work
[Samsung Gear 2] Binary100100:
Finally decided to give this a go. Glad that I did! I was getting rather bored with Tizen anyway. Strange thing though, FInd My Phone doesn't work for me. Couldn't find a mention of that here yet. Other than that, great job!
[Samsung Gear 2] fernandogdl:
hello [MENTION=2981094]bitstra[/MENTION]

about your app, is there a way i can add more devices not listed? if i have the codes for example, i have a phillips and LG blu-ray players, can i manunally add them?
[Samsung Gear 2] alvaromartinezb:
Find my phone works perfectly for me
[Samsung Gear 2] bitstra:
theoretically YES!

You could clone the directory of one of "my remotes"-folders under

"/data/data/org.esolutions.irremote/files/remotes_v2/"

and edit the button-files in it...

i.e.:

""/data/data/org.esolutions.irremote/files/remotes_v2/Samsung TV.remote"

to

"/data/data/org.esolutions.irremote/files/remotes_v2/my_BLUERAY.remote"

try the following:

- reboot to recovery

when in recovery use adb shell -> cmd:

(use the ls cmd with "" because of space cahracter in file names!)

ls "/data/data/org.esolutions.irremote/files/remotes_v2/Samsung TV.remote"

result will be:

b_1.button
b_10.button
b_11.button
b_12.button
b_13.button
b_14.button
b_15.button
b_16.button
b_17.button
b_18.button
b_19.button
b_2.button
b_20.button
b_21.button
b_22.button
b_23.button
b_24.button
b_25.button
b_26.button
b_27.button
b_28.button
b_29.button
b_3.button
b_30.button
b_31.button
b_32.button
b_4.button
b_5.button
b_6.button
b_7.button
b_8.button
b_9.button
remote.options

if you clone this folder to name of your choice, you can edit edit each button file with the right IR-code-sequences...

the file structure for the buttons looks like this:

(cat cmd in shell)

cat "/data/data/org.esolutions.irremote/files/remotes_v2/Samsung TV.remote/b_1.button"

result:

{
"bg": 3,
"code": "0000 006c 0025 0000 00aa 00ab 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 06f7 00aa 00ab 0015 0016 0015 0030",
"h": 59.0,
"ic": 1,
"id": 1,
"r": 700.0,
"rtl": 700.0,
"text": "pwr",
"ts": 12,
"uid": 1,
"w": 59.0,
"x": 11.0,
"y": 11.0
}

the line with hex-colons after "code:" represent the IR-code-sequences...

If you will play with this - it could be doable - and if you are successful, maybe you want to write a tutorial for other users :)

Edit:

But we have two (or more) other options:

1. you PM me the Manufacturer-Name/Device-Name/ IR-Codes for buttons

and I insert it in update(s)

2. Maybe - I can write an Import module in one of the next updates :)

3. You decompile/recompile the app and have a look into assets/db folder

there you can put new categories/device with the scheme of the current (common-)devices

4. You wait until I have the big database with all known IR-remotes ready (it's currently a sqlite db with about 2600 devices :) ).

And I have the DB-fragment-module ready (but this is a big, big stack of work!!!)

Edit 2:

Seems - we have to open a thread for this thingy/app/options. But I'm to lazy atm for that,,,
[Samsung Gear 2] fernandogdl:
Thank you a lot for your qick and detailed response, i will try to clone the current directories first and see how it goes, lateer i can try to decompile to play with it.
[Samsung Gear 2] bitstra:
wanted to post something funny here

It was 00:00 o'clock here:

and my watch / fit-app reminded me, that I walked 0 steps today - LOL - what a perfect timing :laugh:
[Samsung Gear 2] mkamal1:
Please help me,I flashed 12th July build and I'm getting no sound.
[Samsung Gear 2] alvaromartinezb:
Please use the Q&A section of the forum or contact me via hangouts @ alvaro.martinez.7c@gmail.com and I'll be glad to help you ;)
[Samsung Gear 2] burgudoy:
AFAIK, we still don't have the watch speaker functionality for calls like Tizen.

You may try Video for "Android Wear&YouTube" to check audio out on speakers/bluetooth headset.

https://play.google.com/store/apps/details?id=com.appfour.weartube

For music, I've tried this app - Music Player for Android wear. A bit slow interface and produces higher pitch music but hey, I haven't heard any other AW smartwatch capable of playing music on speakers!

https://play.google.com/store/apps/details?id=jp.flatlib.flatlib3.musicplayerw
[Samsung Gear 2] mkamal1:
OK I got it.thanks
[Samsung Gear 2] leojab:
great work guys!!! Will try to install this ROM this weekend.. currently Tizen gives me a little more than 2 days of battery life

How is the battery life in he new 13/07/2015 ROM?
[Samsung Gear 2] Darth Ziggurat:
This question might be better suited for the QA thread, but since you ask. The build that does not support screen always on gave me 2 days easily, the current build gets me trough the day of work.
[Samsung Gear 2] McGuigew:
No screen on, no touchwake (because of the cinema mode) --> 70% left after 27 hours

Yes baby!!!
[Samsung Gear 2] fenderstr:
Audio

sorry ...

the audio is working correctly, (ok google, etc ..)

but is silent, it does not emit any sound
[Samsung Gear 2] McGuigew:
You might want to READ the forum before standing here as a captain obvious...
[Samsung Gear 2] fenderstr:
are only 139 pages , it would be better to have an answer ?
[Samsung Gear 2] bitstra:
An updated version of "IR Remote Gear2" will come up today evening!

- "Fix Buttons" - in Setting is set to true now as default (can be changed by user in settings though)

- added/fixed Delay-Value-Setting for Repeating IR-Blasts when long pressing Buttons (in Settings Screen)

(default value = 200 ms between repeated blasts)

- added missing/false IR codes for "_x"-marked Air Condition Remotes

- the Remote Control View "loves" system wide DPI changing now! ;)

(looks nice now on "wm density 240" and less)

I will test the app some hours and will upload to AFH today evening!
[Samsung Gear 2] Gabri98:
Yes requote 240 density it's awesome in all except one bug on notification whatsapp and other notification (semi-small notification)
[Samsung Gear 2] menissalt:
This is a development thread, cut the sarcasm. Do your own work to find the answer; it's only been stated at least 10 times in this thread alone. If you had bothered to read the OP like you are supposed to then you would know that there is a dedicated QA thread for questions. Thst thread will still gripe at you for being lazy because sound has been discussed and asked about many times over.
[Samsung Gear 2] kavinzhao:
Hey biktor_gj, bug report :

Turning Wrist gesture off isn't working. Still wakes up.

And bitstra Yes you need to add more IR to the database. Your app supports neither my AC nor my TV lol.
[Samsung Gear 2] dataonlycod:
Same to me, but sometimes work.
[Samsung Gear 2] youngpro83:
Turn it off from Android wear app.
[Samsung Gear 2] Gabri98:
Anyone have sometime the problem of touchscreen busted ? like not calibrated :/
[Samsung Gear 2] McGuigew:
As I understand the situation, that's exactly what's not working for them.
[Samsung Gear 2] jeffc83:
That's how I read it too but it could be misread very easily since they sound alike. I'm having no problems with wrist gestures on the watch or tilt to wake in wear app....have toggled both several times. (trying to find the sweet spot)
[Samsung Gear 2] bitstra:
uploaded the updated apk to Android File Host: https://www.androidfilehost.com/?fid=24052804347775353

You can download and update the ROM-builtin-apk easily:

(with "-r" - option via adb)

Linux & Mac OSX:
./adb install -r IRremote_Gear2_1.6.apk

Windows:
adb install -r IRremote_Gear2_1.6.apk
[Samsung Gear 2] McGuigew:
Same, it works well too here :)
[Samsung Gear 2] krangineni:
Unable to Pair Gear 2 Neo, after Android Wear Port

Hi,

I tried to port my Gear 2 Neo to Android Wear 5.1.1 July-13th build, porting successful but i am unable pair the watch with my phone (Samsung Note2). I am not evening seeing my watch in any bluetooth devices (its not getting discovered). i am missing something ? Please advice.

Thanks.
[Samsung Gear 2] biktor_gj:
A word about battery life,

I've been testing the low power mode in the LCD, and after a 30% drop in 2 hours, I've noticed that my watchface was responsible for all that draining.

There are some watchfaces that make bluetooth stay working a lot, and I had one which, everytime I looked at the time was measuring my heart rate. So if you notice a big drop in battery life first change your watchface (beware, some of them are still working even when you disable them!)

Still working on the power management and camera. I know more about what's going on with the camera, but possibilities are still unclear. Will tell you more as I go ;)

Edit: by the way, I had zero problems with tilt to wake disabled... A reboot a day makes android stay in place, so in doubt!(well in my case 30-40...)
[Samsung Gear 2] bitstra:
Reboot to recovery/TWRP (via selecting from bootloader) and wipe /data in TWRP - then reboot system and the pairing should be initialized.

Please have a look into Q/A thread if anybody had a tip for your problem...

Edit: Don't try to pair via bluetooth-settings on Noet2! Do it via Android Wear App on Note2!

---------- Post added at 10:42 PM ---------- Previous post was at 10:28 PM ----------

Yes, there are many Sample Code Snippets for watchfaces flowing around the web, that don't handle the "being online aspect" clearly! And some 'developers' used those 'bad' snippets as base for their watchfaces.:;)

I had a similar issue with "weather service" in my own written watchface - but here drained the companion app the phone's battery in rare situations (when changing from WiFi to mobile data)- LOL.

But I got it managed clean!

Apropos: I gave my watchface wallpaper some new faces - slim/jeans/notepaper - see attachments(!) Is somebody interested in DL/using?

It works battery friendly! for sure!

BTW: I've disabled tilt2wake (via android wear app on phone ), because I'm wearing the watch while sleeping(!), since 2 days - and it's working like a charm:good:
[Samsung Gear 2] krangineni:
Thank You, wipe did the magic. now i am able to pair with Note-2. Another stupid question please don't hate me, i see people pairing with iPhone. Can i pair with iPhone ? any guidance or any direction if it has been already answered.

Thanks Again.
[Samsung Gear 2] TheBobMiller:
Please check the Q/A Thread (link below) for all questions like this one. It has been answered there. This thread if for development only!

http://xdaforums.com/gear-2/help/qa-porting-android-to-gear-2-t3018159
[Samsung Gear 2] bitstra:
Have a look here: Pairing wear watch with Iphone

and for the next question use Q/A thread, really,,,
[Samsung Gear 2] smuvman:
Awesome. Ordered pizza for the kids at home while I was work.

Sent from my Note 3's big ass screen
[Samsung Gear 2] biktor_gj:
Looking good, check it out

Screen always on reworked.

I think I found the proper fix for the screen on. Instead of just force it to stop entering suspend like lenok (G watch R) I put the display in Amoled Low Power Mode first when the brightness reaches a certain point (10 from 255). Android calls that exact value when entering ambient mode.

Then, on the s5p MIPI driver (the display controller driver), instead of calling it suspend and resume, which stops the clocks and resets the display, I put it in ULPS mode too (another low power mode). This doesn't entirely shut down the controller communication, but it slows it down, disables the highspeed clock, and some other stuff I don't understand ;)

That by itself wasn't enough, because at resume time, it was resetting the LCD. This was what was making the display show garbage when screen always on was enabled:

dsim->dsim_lcd_drv->displayon(dsim);

Obviously, keeping the display on all the time will make the watch consume more energy than having it off, but hopefully, it will make the function usable ;)

The new mode allows the watch to sleep, and also allows the rest of the hardware to be put in runtime_suspend mode, which hopefully will stop all that draining.

Still some bugs to fix, if your screen colors look funny, the lcd LPM mode is stuck, just enter ambient mode and get out again and it will reset. Will fix it when we know the thing works as expected and there are no horrible crashes after some time

So far: 2-3% in about 30 minutes in my watch, far better than the 10-12% / hour which was before, but let's see how it works for you guys!

http://www.mediafire.com/download/jvtfd65paroqgyt/kernel_ALPM-ULPS_mipi+autosuspend_r2.tar

EDIT: Use R3 instead, R2 was disabling ALPM before being ready ;)

http://www.mediafire.com/download/s8b3tci9mas7qxr/kernel_ALPM-ULPS_mipi+autosuspend_r3.tar
[Samsung Gear 2] martreintje:
@ biktor_gj does this have something to add??

http://www.techtimes.com/articles/6...ar-5-1-1-bug-causing-battery-drain-issues.htm
[Samsung Gear 2] Darth Ziggurat:
Activating Cinema mode gives the message (paraphrasing): "To activate screen press side button."

Should be changed to press front button. :)
[Samsung Gear 2] alirey:
[MENTION=803006]biktor_gj[/MENTION]

Touch2wake renabled with the new kernel...

On purpose?
[Samsung Gear 2] biktor_gj:
Yes, the older one had it disabled to measure the power draw from the touchscreen controller on suspend.

50 minutes in ambient mode, 3% battery less ;)
[Samsung Gear 2] jeffc83:
Perfect timing Biktor...lol, my other smartwatches were dead this morning and I need to be able to get through a full day with the screen always on;) Will let you know how it goes!
[Samsung Gear 2] Jnioms:
Hello! A friend of mine had a moto 360 and show me a really cool feature that is doubling taping with two fingers it opened the task manager. I don't know if it was something by default or if he add it, but i think it's a good thing to add in a future if it is easy and it doesn't mean a lot of work for you biktor.

Thanks for all this, you are awesome!
[Samsung Gear 2] llsh:
Hi, guys!

Is possible, to make an app, that makes phone calls like on Tizen? App should intercept calls on the watch (by intent action, maybe), and get control of call process using phone base.

Android devs, is that possible generally?
[Samsung Gear 2] jeffc83:
[MENTION=803006]biktor_gj[/MENTION] - Just reporting some screen flashing with the always on setting. It will look normal like it should in ambient mode then flash black then back to an odd looking ambient mode. (colors are off, image broken up on certain faces) It continuously cycles like this so always on is partially broken again. I may revert back but I guess I can live with the screen off just for today, lol.
[Samsung Gear 2] biktor_gj:
Using r2 or r3?

I had a little bug on r2 (alpm off didn't kick in correctly)and reuploaded the image, not sure if you picked it...

So far no strange things for me, 3 hours and a reboot, 89% left.

One thing, ALPM reduces the color palette to 4 bits or something like that, I guess that's what you're seeing
[Samsung Gear 2] andrew.mackew:
[MENTION=803006]biktor_gj[/MENTION]

Thank you for such awesome advances! :good:

Do you plan to compile a new full package with these latest fixes and new ir blaster app included?

Thank you very much!
[Samsung Gear 2] jeffc83:
I double checked and flashed r3 (c'mon biktor, it's not Monday anymore, lol) You are spot on with that description: " ALPM reduces the color palette to 4 bits". This is exactly what I am seeing, which is actually not that bad....I decided to leave it set to always on in order to test battery life and am now draining at 6% an hour versus 10%+ on the last update! That's a HUGE gain mate, GREAT JOB:D
[Samsung Gear 2] jeffc83:
You DO need some sleep BUT you're sooo close, I can taste it;) If I have time this weekend, I'll play around with it. (once you post the working recovery of course...lol) Having said that, I am NOT a dev by any means but am more like someone who knows a little code and likes to play around for the most part...sometimes, I do get lucky though:)