[00:57] <lotuspsychje> good (early) morning all
[01:06] <lotuspsychje> http://news.softpedia.com/news/canonical-s-ip-policy-is-vague-for-a-reason-but-matthew-garrett-says-ubuntu-is-not-free-496496.shtml
[01:38] <lotuspsychje> heyia daftykins :p
[01:38] <daftykins> ^_^ o/
[01:38] <daftykins> just popped back after grabbing my laptop adapter
[01:39] <lotuspsychje> :p
[01:42] <lotuspsychje> morning OerHeks :p
[01:42] <lotuspsychje> insomnia too?
[01:43] <OerHeks> no, maybe ..
[01:43] <OerHeks> :-D
[01:43] <lotuspsychje> lol
[01:43] <lotuspsychje> 24/7 support heh
[01:48] <lotuspsychje> full house here, hi Ben64 :p
[02:05] <daftykins> well i'm actually playing a game now ^_^
[02:06] <TJ-> morning :)
[02:07] <lotuspsychje> hey there TJ-
[02:14] <daftykins> o/
[02:16] <TJ-> Anyone here got an HTC One M8 ?
[02:16] <lotuspsychje> bq here :p
[02:16] <lotuspsychje> TJ-: whats the issue
[02:17] <daftykins> TJ-: yeah i've got one upstairs doing nothing with stock 5.x installed
[02:17] <Ben64> hi lotuspsychje
[02:22] <TJ-> lotuspsychje: Ooooo my friend :)
[02:23] <TJ-> I've got Cyanogenmod 12.1 on mine, and am hacking the Duo Camera UFocus capability so its available for Cyanogenmod users. I would like to get an 'adb logcat' capture that includes the Camera app being started for the first time after power-on.
[02:24] <lotuspsychje> oh never played with cyan
[02:24] <TJ-> I've already figured out the reason it doesn't work on CM is that the code is trying to read a customized 'bundle' of settings, and so I'm trying to identify what creates that bundle - it could be a missing Java class, or it might be text settings in an XML file shipped with the phone.
[02:24] <daftykins> mmhmm, so as simple as throwing debug mode on, plugging into the PC and using adb; i can do that, i have a minimal adb and fastboot install on my desktop
[02:26] <TJ-> daftykins: right, precisely that. Power up phone from off so nothing's already been done, from the PC do "adb logcat |& tee /tmp/m8.log" and then start the Camera application and use it to take a UFocus photo (not sure if there's some user-controlled setting in the app to choose UFocus, or if it is automatic)
[02:26] <daftykins> hrmm not even heard of such a thing before
[02:27] <TJ-> I currently see this on CM 12.1: http://paste.ubuntu.com/13383367/
[02:28] <TJ-> daftykins: the One M8 has 2 main cameras, 1 of which captures depth-of-field info, that allows the Gallery app/Effects/UFocus function to change the object of focus in the picture
[02:30] <daftykins> weird, i just powered it up and it says safe mode in the corner - i sense that might throw things?
[02:30] <TJ-> I've decompiled the Camera.apk to Java code using JDL-GUI so I have the source on view, but the method that throws the exception doesn't get decompiled correctly, so I'm a bit in the dark. I've just downloaded the stock M8 ROM image and am working on that, too
[02:31] <TJ-> Safe mode? You installed windows on it? :D
[02:31] <daftykins> lawl
[02:31] <TJ-> I think that happens when the buttons get pressed in certain ways at power-up
[02:33] <daftykins> weird, don't think i was leaning on anything
[02:33] <daftykins> ok debug mode on, rebooted so it's normal, just installed on this lappy will get adb going
[02:33] <TJ-> thanks :)
[02:34] <daftykins> yay adb working, often you have to get a windows driver that works =|
[02:34] <daftykins> so i'll run the camera app
[02:34] <daftykins> do i need to go to anything specific within?
[02:36] <daftykins> nm i re-read, gonna try to find this feature
[02:37] <TJ-> It may be entirely automatic; I replaced stock immediately I got the phone in 2014 so can't recall
[02:37] <daftykins> okie dokie lets try
[02:40] <daftykins> TJ-: not sure if i got the right bit; http://www.techblo.gg/stuff/log.txt
[02:44] <TJ-> wow, that output looks amazingly different to the logs I captured
[02:44] <daftykins> android 5.0.1 on this guy atm
[02:45] <daftykins> happy to try anything else you like whilst it's here
[02:47] <TJ-> ahhh, I see why
[02:48] <TJ-> Just found some tips on the Android Dev web site
[02:48] <daftykins> oh ja?
[02:48] <TJ-> "By default, the Android system sends stdout and stderr (System.out and System.err) output to /dev/null. "
[02:49] <TJ-> apparently, to enable it we do "adb shell stop; adb shell setprop log.redirect-stdio true; adb shell start"  ... then the "adb logcat ... " again
[02:50] <TJ-> Directions at the end of this page: http://developer.android.com/tools/debugging/debugging-log.html#outputFormat
[02:51] <daftykins> TJ-: http://www.techblo.gg/stuff/log.txt updated
[02:51] <daftykins> or replaced, even
[02:51] <daftykins> all those commands were accepted by the minimal adb i have here, so i assume they were honoured
[02:54] <daftykins> doesn't hugely look that different does it? :S
[02:56] <TJ-> Unfortunately not, that's a shame!
[02:57] <daftykins> it could be this thing i'm using then, would it be of any use to throw the tools on a Linux laptop i have around instead; then let you SSH in and have a fiddle with getting adb running properly?
[02:57] <TJ-> my log has none of those 'mm-camera' entries. Seems to be totally different
[02:57] <TJ-> I don't think so, I suspect its related to the HTC spin of the ROM
[02:57] <daftykins> ah right
[02:57] <daftykins> i've been keeping this thing around with the idea to update it when marshmallow goes live, heh
[02:57] <TJ-> I know there are a lot of classes of the name-style HTCWrapXXXX where XXXX is some standard Android
[02:57] <daftykins> probably need to sell this phone
[02:57] <TJ-> class name
[03:00] <TJ-> I have what is supposed to be a stock ROM image here so I'll plug away in that to try to figure it out.
[03:00] <daftykins> how on earth does this thing use 6.62GB of the storage after a factory reset 0o
[03:04] <TJ-> the ROM image is about 1.5GB compressed ZIP
[03:06] <lotuspsychje> TJ-: it"s FOSS website has alot of nice tuts, maybe you can find what your looking for there?
[03:07] <daftykins> i think it's more treading new ground getting this camera stuff working off the official ROM :)
[03:07] <TJ-> lotuspsychje: unfortunately they don't document the Camera to that degree; The issue appears to be that stock and custom ROMs with te HTC 'Sense' interface have UFocus support, others don't. So I'm trying to track down what else is needed to add to enable this. currently it looks like this CustomizedBundle is the key
[03:07] <lotuspsychje> or maybe the XDA forums also very handy
[03:08] <lotuspsychje> there might be some HTC8 projects there
[03:08] <TJ-> XDA is clueless too; There's isloated camera packages that work on Sense-based ROMs, but no one has put in the effort to analyse what is needed without a Sense ROM
[03:09] <lotuspsychje> ic
[03:09] <daftykins> this is the problem with going custom ROM, you get rid of all the junk on the official... but some features just don't work
[03:09] <TJ-> I actually know what I'm looking for - what I don't know is where it is stored, and it what kind of file! It could be a simple .xml properties file or a Java Class file with attributes
[03:10]  * daftykins hands over a Sherlock Holmes hat
[03:13] <TJ-> the HTC Camera has a class FeatureConfig, with a .query() method. It checks a linked-list of FeatureConfig objects, each of which contains a 'feature' flag. Currently its returning "W/FeatureConfig( 4296): mIsUFocusSupported:false" mIsUFocusSupported is the one I have to change.
[03:13] <lotuspsychje> TJ-: can this help for dir search? http://www.apkmirror.com/apk/cyanogenmod/cyanogen-camera/cyanogen-camera-2-0-005-04864afef4-00-android-apk-download/
[03:14] <TJ-> lotuspsychje: unfortunately not; the stock camera app doesn't know about the Duo/Ufocus camera, I'm working with the com.htc.camera Camera code from the HTC ROM
[03:14] <TJ-> You can install the HTC Camera and Gallery apps from the Play Store; the problem is they don't enable the UFocus support due to this issue I'm hacking on
[03:15] <daftykins> i didn't even twig why there are the two rear cams :D
[03:15] <TJ-> It seems there's something done when the entire Sense API classes/configs are installed that causes a FeatureConfig class to be instantiated that has the mIsUFocusSupported set to true
[03:15] <daftykins> only got given this thing by my mum when i got asked to move her data over to the LG G4
[03:16] <TJ-> I know the class that sets it - what I have to find is the code/file that causes that class to be instantiated
[03:17] <TJ-> daftykins: the M8 camera is amazing - it has ultra-large CCD pixels so works really well in low-light conditions, and this DepthMap means you can pull out detail from a photo logn after it was taken
[03:17] <daftykins> kinda like shooting RAW?
[03:18] <lotuspsychje> TJ-: how about this: http://stackoverflow.com/questions/15077257/windows-phone-8-htc-8x-flashlight-does-not-turn-onwithout-using-camera
[03:18] <TJ-> No, the CCD actually takes in more photons per pixel, so though its 'only' a 4 mega-pixel, those pixels collect a lot more photons
[03:19] <daftykins> funky tech!
[03:19] <TJ-> lotuspsychje: no, that's a Windows Phone 8 API security issue - the app has to claim rights to the camera to control the flash
[03:20] <lotuspsychje> just trying to find relevant files/dirs :p
[03:23] <lotuspsychje> TJ-: how about this: http://developer.android.com/reference/android/hardware/Camera.html
[03:23] <daftykins> ;)
[03:24] <TJ-> lotuspsychje: unfortunately not; this stuff is all specific to the M8's Duo camera setup, and it capturing a DepthMap using the 2nd camera, and storing that in the photo data so it can be used by the Photo Editor
[03:24] <lotuspsychje> right
[03:24] <TJ-> lotuspsychje: none of the stock Android code knows anything about the Duo/Ufocus
[03:25] <TJ-> I even have the HTC DuoCamera SDK but its for application writers, it doesn't go into detail on the underlying driver functionality
[03:29] <TJ-> There are so many parallel tracks to follow and compare to find the differences I've got lost! Time for a coffee
[03:30] <TJ-> daftykins: thanks for the logs; there may be some clues in them yet, once I'm a bit clearer on what to be looking for
[03:31] <lotuspsychje> TJ-: http://forum.cyanogenmod.org/topic/99456-will-ufocus-or-the-double-camera-function-work-on-cm11-m9-or-m10/
[03:32] <daftykins> TJ-: :D my pleasure; although i already deleted the files so i hope you snagged a copy :>
[03:34] <TJ-> yeah, I did
[03:34] <TJ-> lotuspsychje: yeah, already been there :)
[03:35] <lotuspsychje> TJ-: http://mostlyirrelevant.info/2015/08/19/duo-camera-support-for-htc-one-m8-roms/ ?
[03:35] <TJ-> daftykins: hmmm, question: did you have the Camera app in Video or Stills mode?
[03:35] <daftykins> TJ-: stills definitely, took a couple of pics of the cat by tapping on the still square/circle before ending the cap :D
[03:35] <TJ-> lotuspsychje: right, that page has the table showing the support matrix across Sense and non-Sense ROMs
[03:36] <lotuspsychje> The trouble for people who like to use custom ROMs is that many non-stock (Sense) based ROMs break the Duo camera because the camera drivers do not capture the necessary additional photographic data to make post-processing possible. Here’s a compatibility matrix to figure out if you’ll be able to use Duo camera effects like U-Focus:
[03:36] <TJ-> daftykins: OK... I asked due to "W/System.err(12741):  at com.htc.camera.component.AudioManager.setVolumePanelOrientation(AudioManager.java:887)"
[03:37] <daftykins> hey lotus' link says something about HTC gallery update, this phone being reset might need an update of some kind?
[03:37] <TJ-> daftykins: in your logs there's some Class/process running called "HfmClient" - I don't see that on CM, I'm wondering if it could be the missing link
[03:38] <daftykins> :D
[03:38] <daftykins> is that in your image too?
[03:38] <TJ-> daftykins: right, originally folks had to install the HTC Camera.apk/Gallery.apk by sideloading via Recovery... then HTC released those apps on the Play store and they contain updates, so you can install the apps directly rather than side-loading
[03:39] <daftykins> hmm, so would i maybe have needed to add a google account and grab that for it to supply the data you needed?
[03:39] <TJ-> "HfmClient" makes me think the "H" stands for HTC ... not sure about the rest, but its not in the Cyanogenmod images
[03:39] <daftykins> right now it's just been turned on after a factory reset, then every menu skipped to get it to the home screen
[03:39] <TJ-> No, since that phone has the stock HTC ROM that always contains the UFocus code
[03:39] <daftykins> ah ok
[03:40] <TJ-> I actually found a properties XML file in the Camera.apk ufocus.xml that has no settings and I'm reall, really, hoping all I need do is add some magical attribute there :)
[03:40] <daftykins> hehe
[03:41] <lotuspsychje> lol
[03:41] <TJ-> The way the FeatureConfig  works, as far as I can tell,  is all features are disabled unless some confguration parameter specifically enables them
[03:41] <daftykins> reverse engineering some companies' approach to a topic must be so enlightening / horrifying all at once
[03:42] <TJ-> So it could be as stupidly simply as adding "<config attrib="mIsUfocusSupported" value="true" />
[03:43] <TJ-> The Camera.apk I'm working from has another, related, FeatureConfig value set to true. If I can find how that is configured in the APK I might be able to deduce how to enable the other features
[03:49] <lotuspsychje> chinese for me :p
[03:51] <TJ-> daftykins's log has some similar entries: "W/HTCCamera(12741): onPause() - mIsUIReady = false" - that 'mIsUIReady' also appears in my CM12/Camera.apk logs "W/HTCCamera( 4296): onPause() - mIsUIReady = false"
[04:01] <TJ-> daftykins: I don't think that phone does have UFocus support! I found 2 matching blocks in the log files, and on mine after "W/UIComponentFactory(14969): Creating component 'Zoe UI Controller'" I have "W/UIComponentFactory( 4296): Creating component 'UFocus UI Controller'" but on yours it doesn't try that
[04:02] <daftykins> hrmm
[04:03] <daftykins> doesn't make sense that it'd lack their main prized feature
[04:03] <TJ-> But HAHA!
[04:03] <TJ-> "E/CameraConfigFileReader( 4296): CONFIG_FILE does not exist !"
[04:03] <daftykins> :O
[04:03] <TJ-> whilst on yours: "V/CameraProfiler(14969): [PROFILE][INTERVAL][CameraConfigFileReader.ReadConfigFile.Start -> CameraConfigFileReader.ReadConfigFile.End] 28.901 ms (28900781 ns)"
[04:06] <TJ-> and 6 lines later I see "W/FeatureConfig( 4296): mIsUFocusSupported:false" - so, there's a CONFIG_FILE to find
[04:27] <daftykins> two down D:
[04:28] <OerHeks> jups
[04:57] <TJ-> wow, the wind speed alarm has gone off on the weather station... might end up in the English Channel at this rate!
[05:01] <OerHeks> hmm see france http://earth.nullschool.net/#current/wind/isobaric/250hPa/orthographic=-0.07,50.51,1050
[05:09] <TJ-> red/purple is faster ?
[05:13] <TJ-> oh, it wasn't the wind-speed alarm, it was low-temperature: -27C !!
[05:17] <OerHeks> brrr
[05:21] <TJ-> I think either we had bad wind-chill or the weather station has been blown down and is having a fit... I'll wait until daylight to go out into the field to check
[05:37] <daftykins> :D
[05:37] <daftykins> g'night folks, i've thrown a second duvet on the bed and it's time to retire
[05:38] <daftykins> TJ-: i'll have that HTC kicking around for a while i think, so let me know if it can be of any further use :)
[05:44] <TJ-> daftykins: thank-you. I'm currently struggling to build the lateset Java decompiler in order to get to see more of the Camera source-code, but hit a problem with incorrect Java libraries using the 'gradle' build system, so it might be put on hold for a few days
[05:44] <daftykins> doh!
[05:44] <TJ-> as in https://github.com/java-decompiler/jd-gui/issues/97
[05:47] <TJ-> OK, I'm braving the wind and rain, the alarm is doing my head in! Send the rescue huskies if I'm gone too long :)
[05:49] <OerHeks> What if the alarm stops?
[05:49] <OerHeks> I'll send Drabber
[06:00] <TJ-> Had to dry it out with a hair dryer, the transmitter was hanging on the wires upside-down and had got rain in it
[06:03] <OerHeks> let me invent the tyrip for you
[06:12] <TJ-> it's gone quiet now, thankfully
[09:38] <lordievader> Good morning.
[09:38] <TJ-> morning :)
[09:43] <lordievader> Hey TJ-, how are you doing?
[09:48] <TJ-> fighting android decompiliation to hack a fix :)
[10:02] <lordievader> Hehe, the best fixes :P
[12:49] <BluesKaj> Hey all
[13:38] <pauljw> Hi everyone
[13:53] <TJ-> g'afternoon :)
[13:53] <pauljw> hi TJ- :)
[13:54] <OerHeks> ~~~~~~/\~~~~~\o/~~~~~~
[13:54] <pauljw> OerHeks: heheh..
[13:56] <pauljw> as usual, i'm a day late and a dollar short, but i want to say thanks to all of you guys who i watch day after day in awe of your knowledge and willingness to help we of lesser abilities...
[15:42] <pauljw> brb
[16:54] <pauljw> why would someone that hasn't even figured out where to find xorg.conf think he can successfully overclock his vid card???
[16:54] <OerHeks> yeah, plus i think the drivers are not all suitable for such overclokc action
[16:55] <pauljw> :)  just asking for trouble
[17:01] <BluesKaj> who really needs to overclock on computers for th last 10 yrs anyway, I doubt very much if has made much difference in response time, even on 3d games
[17:02] <pauljw> i haven't even heard anyone use the term in years.
[17:02] <BluesKaj> overclocking is a holdover from distant past IMO
[17:03] <pauljw> agreed
[17:03] <OerHeks> overclocking processors i do hear sometimes
[17:03] <OerHeks> and underclocking
[17:04] <pauljw> yeah, i just read something on supercomputers referring to overclocking the processors...  doubt that's what he's talking about.
[17:06] <BluesKaj> tafaik overclocking was used on the cpu
[17:07] <OerHeks> not sure what guide he comes up with, we'll see.
[17:09] <lordievader> Intel processors overclock themselves these days.
[17:12] <BluesKaj> hyper thread?
[17:12] <lordievader> No, turbo boos.
[17:12] <lordievader> boost*
[17:13] <lordievader> Hyperthreading is intelligent scheduling of operations to reduce stalls.
[17:14] <BluesKaj> turbo boost sounds like some king phony internet spped boost from my dialup days :-)
[17:15] <pauljw> lol
[17:15] <BluesKaj> err something
[17:16] <lordievader> https://en.wikipedia.org/wiki/Intel_Turbo_Boost
[17:19] <pauljw> cool, i have an i7 but didn't know that about it
[17:19] <BluesKaj> well, that leaves me out , my laptop is an i3
[17:19] <pauljw> :(
[17:20] <BluesKaj> but i didn't expect an entry level cpu to come with something like that
[17:21] <BluesKaj> i3 is perfectly fine, it's plenty fast enough for my needs
[17:21] <pauljw> no doubt
[18:04] <Bashing-om> It Saturday, how tight should I cinch up when climbing in the saddle ?
[18:04] <pauljw> tight
[18:05] <pauljw> :)
[18:05] <Bashing-om> Ho-kay .. will be a wild ride .. See what I can learn .
[18:30] <OerHeks> persons that mess with runit, and don't know sudo ..
[18:30] <OerHeks> please kill me, have mercy
[18:31] <pauljw> lol
[18:49] <MonkeyDust> there
[19:27] <lotuspsychje> good evening to all mates
[19:44] <DosTuMai> EvEning.
[19:44] <pauljw> hi
[19:49] <lotus|xenial> !info inity-tweak-tool xenial
[19:49] <lotus|xenial> !info unity-tweak-tool xenial
[19:49] <lotus|xenial> hey ioria
[19:50] <ioria> lotus|xenial, hi ... how are you doing ?
[19:50] <lotus|xenial> ioria: im gonna try unity8 on xenial
[19:50] <ioria> oh...
[19:52] <lotus|xenial> not sure if this will overwrite unity7 or not
[19:52] <Bashing-om> lotus|xenial: Great, someone has to blaze the trail :) .
[19:53] <lotus|xenial> Bashing-om: im curious :p
[19:54] <ioria> lotus|xenial, don't know .... http://askubuntu.com/questions/447891/how-to-install-unity-8
[19:54] <ioria> lotus|xenial, maybe not
[19:55] <lotus|xenial> ok lets test this== logout
[19:55] <Bashing-om> lotus|xenial: Huh ! Being curious, generates a high level of smart .
[19:55] <lotus|xenial> brb
[19:56] <pauljw> hasn't worked for me...
[20:13] <lotusMIR> ioria Bashing-om i had to install that mir
[20:13] <lotusMIR> and logout brings me to choose mir login
[20:13] <ioria> mmmmm......
[20:14] <lotusMIR> looks like ubuntu-touch phone
[20:14] <ioria> !info unity8-desktop-session-mir
[20:14] <lotusMIR> yep thats the one
[20:14] <ioria> i see....
[20:15] <ioria> !info unity8-desktop-session-mir xenial
[20:15] <lotusMIR> ok back to normal unity
[20:18] <lotus|xenial> that was fun :p
[20:18] <ioria> ^_^
[20:35] <lotus|xenial> http://oi64.tinypic.com/2nk31c0.jpg
[20:35] <lotus|xenial> unity7 and unity8 settings :p
[20:39] <ioria> the upper bar is interesting ...
[20:39] <lotus|xenial> ioria: its like on ubuntu touch
[20:39] <ioria> i see...
[20:41] <Bashing-om> lotus|xenial: ^^ it's alive --- it's alive !
[20:41] <lotus|xenial> :p
[21:00] <lotus|xenial> nite nite
[21:35] <daftykins> Bashing-om wins the points for most patient support; lasting what feels like a week now with the same user :>
[21:35] <pauljw> :)
[21:36] <Bashing-om> daftykins: If I only know better .. In my defense, when I started this I did warn that " I know nothing " .
[21:37] <daftykins> :D very brave!
[21:38] <Bashing-om> wow ^^, makes me wonder at the deffinition of "brave" .. a glutton for punishment might fit better .
[21:38] <daftykins> hahaha
[22:58] <pauljw> bbl... dinner time