yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] jeffc83:
[MENTION=5622621]McGuigew[/MENTION] - I haven't had connection issues with the latest update (yet) but will use OK GOOGLE more often today to test it for you;)

EDIT: Have tested OK GOOGLE for about an hour off and on with no issues. (heard me loud and clear and searched 100% of the time)
[Samsung Gear 2] emuandco:
Btw, here a log of the appcrash with VideoTube http://pastebin.com/vfKFxpJ0 This worked in the past for a short while WITH sound
[Samsung Gear 2] biktor_gj:
Display on works as it does on the G Watch R. It gets much worse battery life though. The problem was that I was asking it to do something that was breaking the kernel, now it does what it's supposed to do. (If curious, look for the __pm_ commands in s3c-fb.c)

That said, I have to make a ton of changes to power management. If the display is going to be up at all times I need to find a way to keep it in powersave mode most of the time. The same with the display controller. I also think that when display is on at all times the rest of devices are being kept awake, and I will need to find a way to suspend them... Feels like PM runtime is not working when display is up :)

I've already tuned bluetooth a bit to sleep more often, and will be changing some other things now that audio is working. The rest, we'll see what I can do. My goal is to get 20-24h with display on, but I don't know what I'll be able to.

Haven't had connection problems, does it happen after a reboot or when it has been hours awake?

[MENTION=2981094]bitstra[/MENTION]: dyiiiing to knoooww if IR is wooorking!

[MENTION=535343]all[/MENTION]: next build will include more changes to camera, let's see if we can fix that too and get all working finally (even with the bugs ;))
[Samsung Gear 2] bitstra:
[MENTION=803006]biktor_gj[/MENTION],

first test with consumer IR:

my App finds device/systemService consumer IR! (fine so far!)

When pressing a button - Signal is been given over to device/systemService consumer IR (fine without an error),

Logcat says "Consumer IR HAL is going to transmit", but LED doesn't blast ! - tested with phone-Camera ( the camera would be recognize IR blast as grey/violet beams in video-picture... - you can test this with any other IR-control (IR-LED/Blast))...

Hmm, no clue where's the gap ...

The Logcat says sporadic "Consumer IR HAL is going to transmit" also when my app is not(!) active, BTW...

any idea???
[Samsung Gear 2] jeffc83:
Thanks Biktor...so it's power management that needs to be worked on. (you're right, we should expect anywhere from 20-28 hours with the screen always on, which is what I get out of my Urbane)
[Samsung Gear 2] emuandco:
And audio has some flaws still. See my log ^^
[Samsung Gear 2] bitstra:
Tester with Samsung device with IR-Blaster needed

[MENTION=535343]all[/MENTION],

is there anybody with an Samsung phone/tablet, that has an IR-blaster (like samsung S4 or so) ???...

If so PM me, please - I could send you the latest IR-remote apk for testing this app on a samy device - so I know, that the app works correct...

---------- Post added at 05:11 PM ---------- Previous post was at 05:03 PM ----------

@biktor_gj,

I think the gap lays on the hardware-abstraction-layer/kernel side...

my Logcats bring no Errors until consumer IR HAL is consuming the signals... Hmm :confused:
[Samsung Gear 2] McGuigew:
Mh, I would say it happen when the phone was disconnected for a while, I am running CM12 and I think it might be the issue... is that possible ?
[Samsung Gear 2] bitstra:
Here is the DL link to the latest bug-free IR-remote apk:

https://www.androidfilehost.com/?fid=24052804347773296

If anyone is brave enough, to test it on a Samsung Galaxy S4 +++ or similar device ? - So we would know, that the app is working correctly wit consumer IR HAL (Samsung MODE)...

- and may someone could report back here...

I'm out of town for some hours now - but will read tonight again here...

Thanx
[Samsung Gear 2] adrock74:
Send it to me.
[Samsung Gear 2] bitstra:
Have a look one posting above yours, please!

Thanx
[Samsung Gear 2] jeffc83:
[MENTION=2981094]bitstra[/MENTION] - I have a Note III and can test the IR blaster for you but am at the office for the next 7 hours. (no TV to test on here) If anyone else can test his app sooner, please do so! If not, I'll test later and will report back:)

EDIT: Scratch that, thanks for testing [MENTION=1992533]emuandco[/MENTION]!
[Samsung Gear 2] emuandco:
Tested on my Note 3. Works nicely on my Samsung TV. At least function wise ^^
[Samsung Gear 2] bitstra:
You can test it without a TV or any other device - because I know the IR-codes are correct - I have to know only, if the IR blaster on samy device lights up,,, this can be seen with another phone's camera preview - the IR-Blaster flash can be seen as gray/violet Beam in camera preview...

thanx!

Have a nice workday at office man :)
[Samsung Gear 2] datom84:
testet with my note 4. works with my lg and samsung tv :)
[Samsung Gear 2] bitstra:
So - we know - the app works properly... and IR-codes seem to be correct! - Thanks a lot!

-------------------------------------------------------------------------------------------------------

So [MENTION=803006]biktor_gj[/MENTION] - I think there is really a gap on HAL/Kernel side - as I thought already.

the funny thing is:

dmesg says irda sent bytes:

<6>[ 6209.501783] [0] 5917 ice4_irda: remocon_store : ir_send called
<6>[ 6209.502038] [0] 5917 ice4_irda: ir_remocon_work: total buf_size: 163
<7>[ 6209.563126] [0] 12285 [VIB] time = 10ms
<4>[ 6209.568185] [0] 10601 vdd_ldo1 range: Failed to create debugfs directory
<4>[ 6209.572431] [0] 12090 cpu1: SWRESET
<4>[ 6209.573835] [1] 0 CPU1: Booted secondary processor
<7>[ 6209.605176] [0] 12285 [VIB] time = 30ms
<4>[ 6209.608349] [0] 10601 vdd_ldo1 range: Failed to create debugfs directory
<6>[ 6209.613919] [1] 5917 ice4_irda: ir_remocon_work : 66 Checksum OK!
<4>[ 6210.596376] [1] 12286 IRQ258 no longer affine to CPU1
<5>[ 6210.601189] [0] 12090 CPU1: shutdown
<6>[ 6210.608307] [0] 12090 _cpu_down ret=0
<4>[ 6211.821964] [0] 12090 cpu1: SWRESET
<4>[ 6211.824633] [1] 0 CPU1: Booted secondary processor
<6>[ 6212.367878] [0] 5917 ice4_irda: ir_remocon_work: emission_time = 2747
<6>[ 6212.368298] [0] 5917 ice4_irda: ir_remocon_work : 66 Sending IR OK!

But let it stay after your work on Camera stuff!

Thanks for the latest ROM - it's really sexy!
[Samsung Gear 2] The7Suggester:
I'm not a dev, but I'm thinking that the problem is probably just the wrong physical address (hardware level) for the Gear 2

watch. If this is the case, then it would make sense that there would be no errors reported at all.

All reports would correctly say that the data was sent correctly...unless I'm wrong about the Gear 2's physical chip that controls

the IR blaster, which of course, could be designed to provide actual feedback to the OS to confirm the LED did in fact turn on...

2 possibilities by my thinking ;),

Would just like to say a big thank you to both of you; bitstra, and also to you gj_biktor.

Thank you both very much for all your hard work, very much appreciated! :)
[Samsung Gear 2] biktor_gj:
At least we know the tunnel between app and hal is OK! That itself is big good news, means that the entire consumer IR framework is working correctly and that I can debug the HAL/kernel side ;)

Will get your app for the rom and will include in all builds if it's OK
[Samsung Gear 2] adrock74:
You IR app controls my vizio TV right out of the gate. Power, channels, vol
[Samsung Gear 2] bitstra:
It's ok To bundle the last version into the ROM!

Thanks a lot!

BTW: I installed the app as system app in /system/app to make sure, it's not a permission conflict - no better result at all.

so the suggested physical address hint by [MENTION=5813676]The7Suggester[/MENTION] (thank you) is worth to think abaout?

[MENTION=535343]all[/MENTION],

The _x marked Air Condition Controls in the App are working not correctly atm - I grabed the right IR codes for those today and will input the codes into the app DB later tonight...

Be prepaired, that one of the next update brings more device types like Audio Amplifier/Blue Ray Player/ more set top boxes (sky, humax aso)

;) - somewhen I can can catch them all - Got a dev-account on the biggest worldwide IR-Code-Database last friday...:good:
[Samsung Gear 2] tooandrew:
I sent a pm, I have a note 4, it seems the testing has been sorted, though
[Samsung Gear 2] biktor_gj:
This was what it should do?

Fixed :)
[Samsung Gear 2] bitstra:
You are the GREATEST - congrats!!!! and hats off! (Chapo!!!)
[Samsung Gear 2] tooandrew:
Works great on my note 4 with sharp aquos 4k 70" and Samsung 1080p 32" led, evidently testing is no longer needed
[Samsung Gear 2] biktor_gj:
Link is up, test it out! It doesn't work on my TV but maybe you're lucky ;)

http://www.mediafire.com/download/6mmb33lftfrr8w8/Wear_511__07_13_2015_Try2.zip

Let's see if this time it works!

Also, those of you who have a Gear2, check the camera, let's see if we're a bit lucky and that starts to work too, or if at least it opens!

When it crashes ;) please send me a logcat and a dmesg to check what happens!
[Samsung Gear 2] jeffc83:
[MENTION=803006]biktor_gj[/MENTION] - That was quick, fantastic job! Downloading new version now;)

EDIT: Tested the IR and the LED is still not lighting up at all. I'm rebooting now just to be sure....rebooted, same thing. (no response from IR blaster) Good news: the app looks very nice, MUCH better than Samsung's:D

[MENTION=2981094]bitstra[/MENTION] - Your IR app is working beautifully on the Note 3 and I'm sure it will on the Gear 2 as well;)
[Samsung Gear 2] bitstra:
What TV manufacturer / model you are running [MENTION=803006]biktor_gj[/MENTION]?
[Samsung Gear 2] biktor_gj:
If you look to the IR with a camera it doesn't light up? It does for me...

Please try the app and then run from adb:

adb shell

dmesg | grep -i ice4

It should be logging the commands that are being sent... Maybe they're not being encoded correctly for the hardware?

[MENTION=2981094]bitstra[/MENTION]: my tv is 4 year old philips. It didn't work before except for volume/power (tizen) after using the setup wizard. Does the ir light up for you at least?
[Samsung Gear 2] jeffc83:
Looked at it with camera, no light. (could be me but I haven't seen it yet) However, the log shows IR SEND CALLED > ONE CHECKSUM OK! See link to download output - https://onedrive.live.com/redir?res...7357&authkey=!AMBZJ0FZ4R03eH8&ithint=file,txt
[Samsung Gear 2] bitstra:
will be at home after 2 hours...

post your Philips-Model name - I can grab the right IR-codes for you and will update the DB... ;)
[Samsung Gear 2] biktor_gj:
Okay, please 2 persons with Gear 2 and another 2 with Gear neo can you please try the latest build (try 2) and check if IR works?

Test against a TV or something and if doesn't work, check with a camera if the IR blasrer lights up when you press a key in [MENTION=2981094]bitstra[/MENTION]'s app. We need to debug this a bit!
[Samsung Gear 2] jeffc83:
[MENTION=803006]biktor_gj[/MENTION] - If you don't get any testers within the next 4 hours, I'll give it a go on my Neo once I get home. (STILL holding off on my Gear 2 since it was a gift, LOL) HOLD ON HERE, a member n the Q & A just pointed out that there is a TRY_2 file, which is NOT the one I have...downloading TRY_2 and testing. I'm sure it'll work and I apologize for the "Monday" confusion....I seriously hate Monday's!

PLEASE STAND BY...flashing now and am confident here;) Aaaand she's almost done booting....c'mon, lol. Booted, testing now!
[Samsung Gear 2] hokamp:
The ir led is blinking <3
[Samsung Gear 2] biktor_gj:
That would explain a lot ;)
[Samsung Gear 2] bitstra:
OK. [MENTION=803006]biktor_gj[/MENTION];

abused a customer PC here (with my gear2/neo):

the IR LED lights up (tested with camera) - It repeats 3 times the signal send ??!!

The TV (a new Sony) doesn't get the signals... :(

DMESG on pastebin : http://pastebin.com/23gB9mn0
[Samsung Gear 2] dataonlycod:
Form me IR is not working :s, but let me try with more TVS
[Samsung Gear 2] jeffc83:
Lol, do you mean MY STUPIDITY!? LOL, yes it is working now but I still don't have a device to test...I see that others are jumping in and I have a conference call in 1 minute. Will be back, sorry for the confusion!
[Samsung Gear 2] biktor_gj:
It's monday for everyone mate, don't worry, my stupidity is here as well ;)

It works meaning it blinks or it works meaning you got to turn a TV off or something?
[Samsung Gear 2] alirey:
I will Test it in the next few minutes with my gear 2...
[Samsung Gear 2] jeffc83:
Lol, thanks;) Thankfully, my call is running a few minutes late here....the LED lights up okay but I don't have a TV to test with for another few hours. [MENTION=2981094]bitstra[/MENTION] is right, it sends the command 3x.
[Samsung Gear 2] a4t:
with Try2 firmware,

I confirm that my Gear2Neo IR Blaster works with Samsung TV, but I need to check at setting about Fix buttons On some devices... blablabla

didn't bring my Gear 2 right now, so I can't test camera now
[Samsung Gear 2] tnbx:
Ill test it on my s4
[Samsung Gear 2] tihimasmo:
IR blinks. No reaction from my old LG tv

Edit: ok NOW it worked. If you ever run across (not betting on it) grab codes for Denver electronics digitalbox plzthx
[Samsung Gear 2] bitstra:
Using IR-remote App -> Setup(3 dot menu in 1st screen with my Remotes...) -> "Fix Buttons"-checkbox and restart the app - all works fine on A Sony and a Samsung TV - from my Gear2/neo

OK [MENTION=803006]biktor_gj[/MENTION] - we can have version with this "fix button" - ON as default...

All went fine - Great JOB biktor!
[Samsung Gear 2] emuandco:
Gear 2:

- IR does not control my TV. (Samsung LE40C750). Note 3 does. But the LED does light up for me.

EDIT: I confirm that the Fix buttons option does the trick! WORKS :D I wonder what it does ^^

GREAT job, you two :D

- Camera does not more than before.

- Sound problems persist.

http://pastebin.com/LDi2snFW First Videotube, then camera and IR as last.
[Samsung Gear 2] cascavalpane:
Same test on Sony xx805W and Samsung with Gear2-Neo

Using IR-remote App -> Setup -> "Fix Buttons"-checkbox and restart the app - all works fine
[Samsung Gear 2] alirey:
IR fix button worked with my new Samsung tv!

Camera FC

Gear2

After a few seconds the watch restarted itself
[Samsung Gear 2] biktor_gj:
Grear job yours! I only patched the kernel ;)

Now only 'big thing' missing is the camera and fix aaaalll the bugs and we'll be done! Can't believe we got this far ;)
[Samsung Gear 2] bitstra:
The wife of my customer told him right now - she wants a Samsung Gear2 watch for her TVs in their home -LOL - they both are very excited about your work biktor!!!
[Samsung Gear 2] jeffc83:
I just told everyone about Gear Wear on my conference call; I think you sold 2 more Gears for Sammy [MENTION=803006]biktor_gj[/MENTION];) You'd better get a commission for that! I am not surprised with how far you got because you are a genius but I am surprised with the amount of time you took to do this!!!
[Samsung Gear 2] biktor_gj:
Hahaha, I think I must be pissing them off a bit, after all, I'm f***ng their sales of the gear live and breaking their ecosystem ;)

And if I finally get myself a Gear S (I'm still thinking about it) they're going to be reeeally mad at me!
[Samsung Gear 2] tooandrew:
[MENTION=2981094]bitstra[/MENTION] [MENTION=803006]biktor_gj[/MENTION] the app works on my phone with the tv's but doesn't appear to work on the watch with the same tv's. Camera still crashes. I'll upload dmesg and catlog here shortly
[Samsung Gear 2] bitstra:
[MENTION=535343]all[/MENTION],

for your information: "Using IR-remote App -> Setup(3 dot menu in 1st screen with my Remotes...) -> "Fix Buttons"-checkbox " is eleminating repeated signal sending on android wear (and android 5.1.1)

This is a Samsung consumer IR/HAL related bug also known on other devices...

So I will make an updated version of "IR remote Gear2" with setting this option as default!
[Samsung Gear 2] tooandrew:
nevermind, enabling the fix buttons option fixed the ir blaster, it's functional. these may still be useful for the camera
[Samsung Gear 2] youngpro83:
Is there any way to stop "ok google" from showing up on watchface screen or no? Not a big deal but just curious.
[Samsung Gear 2] bitstra:
Say 3 or 4 times "OK Google" into the microphone and it will be hidden (NO JOKE!)

BTW: I'm sure you will find that by googling or in Q/A thread!
[Samsung Gear 2] jeffc83:
OR, he could've read this thread since I mentioned it twice before;) Great work Bitstra, my boss allowed me to test on his Samsung TV...worked great:)
[Samsung Gear 2] bitstra:
I forgot to tell you [MENTION=535343]all[/MENTION], that IR remote App has an Edit Menu/option - If you switch to edit mode, you can rearrange buttons or drag down unused/non functional buttons. Use it and save your personal remote control... ;)
[Samsung Gear 2] jeffc83:
Lol, tough s**t Sammy! (they completely deserve what they get handed to them) YOU made the Gear 2 awesome, NOT THEM:)
[Samsung Gear 2] tooandrew:
sorry mistyped command to pull logcat here is the correct one
[Samsung Gear 2] McGuigew:
IR working on my 4 years Sammy TV :laugh:
[Samsung Gear 2] youngpro83:
Where is IR blaster? I flashed test2

Found it

It works on both tvs I own but havent got the cable box to work yet.
[Samsung Gear 2] McGuigew:
Neither did I... my cable provider is Free (France) by the way :cool:
[Samsung Gear 2] jeffc83:
IR Blaster is actually really nice to have again, especially on a Wear device! Obviously it works on several of my TVs at home:) Thanks Biktor and Bitstra! Trying cable box next...
[Samsung Gear 2] kavinzhao:
If biktor_gj is employed by Samsung all other Samsung developers doesn't need to exist any more... He is doing a team's work. (again)
[Samsung Gear 2] alvaromartinezb:
Hey guys! I'm sorry I'm a bit late for testing, but I'm installing right away!
[Samsung Gear 2] blweldon2:
Struggling with bluetooth pairing. It sits endlessly trying to pair with 2 controllers and a non-android phone. Unable to grab any logcats at the moment. Is anyone else having any difficulties with bluetooth devices outside of the paired android phone?
[Samsung Gear 2] bitstra:
simply hold down the home button until gear2 is rebooting - it will begin the process again and it should continue to connect...
[Samsung Gear 2] alvaromartinezb:
Hey I found an issue with the ir app, I was trying it out (it worked like a charm with all my Sony TVs) but it suddenly got stuck sending the power on signal, so it kept rebooting my TV. I closed the app and it kept doing it, so a had to reboot the watch for it to stop. I can give you logs if you tell me how to get them.... And... Aren't the logs lost when rebooting the watch?
[Samsung Gear 2] tooandrew:
Lol see if you can reproduce it, and just cover the ir blaster while you pull logs. Unless [MENTION=803006]biktor_gj[/MENTION] has enabled last_kmesg. Then that might have the info needed
[Samsung Gear 2] bitstra:
Did you checked checkbox "Fix buttons..." in Settings Menu :confused:
[Samsung Gear 2] biktor_gj:
/proc/last_kmsg is persistent accross reboots, but logcat is lost...
[Samsung Gear 2] moabizzi:
Just logged on to say this is bad ass and your doing an amazing job. flashed it and it worked well, but i had to flash back because i was getting 2hrs of on time with the watch. will definitely keep following and THANKS FOR BREATHING A NEW LIFE INTO THIS DEVICE.
[Samsung Gear 2] Gabri98:
Hey [MENTION=803006]biktor_gj[/MENTION], can you tell me why screen always on not working ?

Screen turn black about few seconds with clock white

EDIT : found new bug send sms not working crash the app android wear when tap to it
[Samsung Gear 2] emuandco:
Errr....... Screen always on IS black screen with a white minimal watch and absolute minimum of background light... You dont wanna know what the screen would do to your battery otherwise.
[Samsung Gear 2] annson08:
It's a sad day today; I was always first (figure of speech) to test the latest release but today I won't be testing anything here for 7days as my watch is on service center. My watch's charging terminals are getting corroded and are falling off, good thing it's still covered by the warranty. I'm gonna miss you guys. See you soon!

PS. Sorry for cluttering the thread with useless post.
[Samsung Gear 2] biktor_gj:
Let's all light a candle and hope your watch gets back soon to a healthy state! ;)
[Samsung Gear 2] biktor_gj:
Little battery life test

* Little battery life test:

Did you think I wouldn't give you something to flash today? ;)

Downgraded touchscreen kernel driver:

http://www.mediafire.com/download/art1g84m0ucikkd/tsp_lpaMode.tar

Touch.wake is lost (enabled for a few minutes after screen off, then suspended).

With this kernel and display off, I'm getting quite good battery life (13% in 2 hours with notifications, and a bit of time with screen always on -the first 6%-).

Give it a shot and tell me how it goes (I'm going to be out most of the day and I needed it to last ;))

Metrics so far:

up time: 01:52:53

idle time: 02:00:45

sleep time: 00:47:30

I don't like that little sleep time ratio with the uptime, but it could be worse. Sleep time is 0 with screen always on.

If you're curious to get yours, run:

adb shell uptime

Also, if you want to see what is waking up the watch from idle/suspend:

adb shell cat /sys/kernel/debug/wakeup_sources
[Samsung Gear 2] jeffc83:
[MENTION=803006]biktor_gj[/MENTION] - Thank you for this...flashing now, will test all day:)
[Samsung Gear 2] emuandco:
OK, today I made a test till the end with yesterday's "Try 2" version. 100% @ 07:45, 0% @ ~15:00... No chargin cable @ work, so... sry, no way to test your new one right now ^^
[Samsung Gear 2] tooandrew:
I have this issue as well. What I've done is to wipe the corrosion off the port with lemon juice and salt, then keep it covered with electrical tape while im wearing it to prevent the corrosion from returning.

[MENTION=803006]biktor_gj[/MENTION] the gear live and g watch received a patch for this very purpose, to prevent current flow to the ports while not charging because of corrosion issues. This is what killed my galaxy gear 1. Any chance you could implement something similar for those of us with corrosion woes, at some point?
[Samsung Gear 2] gyuri81:
6% per hour there??
[Samsung Gear 2] jeffc83:
So far, with screen always on, I am getting 10% drain per hour. (I know this shouldn't have changed but it did for the better) If the drain is consistent, that's 10 hours with screen always on.
[Samsung Gear 2] biktor_gj:
Two hours more, this time with screen always on disabled, 8% less, which should be about 4% per hour. I'm going to try to build a power hal library from scratch, to handle better the max/min frequency, and, if possible, suspend all possible devices when display is off (I think everything is being kept awake even in idle mode).

If anyone can find information on the powerhal AND the new Doze mode (specially if it triggers an event into the android runtime) it would be great (if it has examples even better)

That way I could shut down almost everything when the display is idle(in screen always on) so it would last longer...
[Samsung Gear 2] McGuigew:
Yesterday, I used the watch very lightely and put always on screen OFF and activated cinema mode....

9am - 100%

6pm - 90%

Beautiful! :D
[Samsung Gear 2] AntwonJenkins:
Don't feel bad. I lost my charging cradle yesterday so I'll be out the loop for about a week too.
[Samsung Gear 2] fernandogdl:
Hello Bistra.

Just reporting about the performance of your app. yesterday i testes in on my Vizio smart tv, everything worked flawlessly, even the smart tv controlls and netflix controls :)

Tried it on a Dish network from Mexico set top box, and it also worked flawlessly, only that the arrange of the buttons was misplaced but it worked perfectly, i just have to figure out how to rearrange the buttons and that's all.

Regards
[Samsung Gear 2] jeffc83:
Thanks, good comparison! I will try to find some time today to help you research this but am quite busy...who goes to work to actually work!? LOL

EDIT: On the 4th hour, it is at 58%, which is right at about 10% an hour with screen always on. (test complete) Charging it up now...