Saturday, 2015-04-11

vgradenn01:14
*** exadeci <exadeci!uid35778@gateway/web/irccloud.com/x-orqupntckzbzrqcv> has quit IRC (Quit: Connection closed for inactivity)01:22
*** zhxt_ <zhxt_!~zhxt@124.205.254.8> has joined #sailfishos-porters02:05
*** Stocco <Stocco!bd045911@gateway/web/freenode/ip.189.4.89.17> has joined #sailfishos-porters03:25
*** AYEHAN <AYEHAN!~behave@111.68.108.75> has quit IRC (Ping timeout: 248 seconds)03:45
*** AYEHAN <AYEHAN!~behave@111.68.108.75> has joined #sailfishos-porters03:48
*** Sazpaimon__ <Sazpaimon__!wat@pool-98-111-146-164.phlapa.fios.verizon.net> has joined #sailfishos-porters03:56
*** Stocco <Stocco!bd045911@gateway/web/freenode/ip.189.4.89.17> has quit IRC (Ping timeout: 246 seconds)03:56
*** Sazpaimon_ <Sazpaimon_!wat@pool-98-111-146-164.phlapa.fios.verizon.net> has quit IRC (Ping timeout: 245 seconds)03:59
*** zhxt__ <zhxt__!~zhxt@107.170.151.30> has joined #sailfishos-porters04:17
*** zhxt_ <zhxt_!~zhxt@124.205.254.8> has quit IRC (Ping timeout: 256 seconds)04:17
*** mvmsaikrishna <mvmsaikrishna!~mvmsaikri@117.213.140.195> has joined #sailfishos-porters04:36
*** zhxt_ <zhxt_!~zhxt@125.39.68.36> has joined #sailfishos-porters05:01
*** zhxt__ <zhxt__!~zhxt@107.170.151.30> has quit IRC (Ping timeout: 272 seconds)05:02
*** plfiorini <plfiorini!~plfiorini@net-93-71-167-160.cust.vodafonedsl.it> has quit IRC (Remote host closed the connection)05:41
*** plfiorini <plfiorini!~plfiorini@net-93-71-167-160.cust.vodafonedsl.it> has joined #sailfishos-porters05:50
*** AYEHAN <AYEHAN!~behave@111.68.108.75> has quit IRC (Remote host closed the connection)05:52
*** AYEHAN <AYEHAN!~behave@111.68.108.75> has joined #sailfishos-porters05:59
*** harha <harha!~harha@a91-153-12-92.elisa-laajakaista.fi> has joined #sailfishos-porters06:08
*** arcean <arcean!~arcean@apn-95-40-68-117.dynamic.gprs.plus.pl> has joined #sailfishos-porters06:46
*** olafh <olafh!~olafh@p4FF48A86.dip0.t-ipconnect.de> has joined #sailfishos-porters06:47
*** zhxt_ <zhxt_!~zhxt@125.39.68.36> has quit IRC (Ping timeout: 252 seconds)07:09
*** iTune <iTune!~PhompAng@wf-171-99-2-190.revip9.asianet.co.th> has joined #sailfishos-porters07:14
*** zhxt_ <zhxt_!~zhxt@124.205.254.8> has joined #sailfishos-porters07:19
alinmorgen07:25
Stskeepsmorn07:26
Nokiuso/07:33
Nokiusmal- lpotter symlink sensors.MSM8960.so and sensors.oem.so?07:35
Nokiusmh with sysmlinks https://gist.github.com/Nokius/3903ddf545111e447621 (https://gist.github.com/Nokius/3dcd3a781987b747663b)07:44
Nokiusadded sensors.qcom.so (https://gist.github.com/Nokius/d1376e227d001161e935)07:50
Nokiusstrace https://gist.github.com/Nokius/d2f7ecc9f987033fae21 after the add07:50
Nokiuslooks like I have no "/usr/libexec/droid-hybris/system/lib/libidl.so"07:52
*** mou <mou!~yaaic@tre29-1-78-239-180-37.fbx.proxad.net> has joined #sailfishos-porters07:52
*** plfiorini <plfiorini!~plfiorini@net-93-71-167-160.cust.vodafonedsl.it> has quit IRC (Ping timeout: 256 seconds)07:56
*** SfietKonstantin <SfietKonstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has joined #sailfishos-porters07:59
*** GodGinrai <GodGinrai!~God@unaffiliated/godginrai> has quit IRC (Quit: leaving)08:00
*** iTune <iTune!~PhompAng@wf-171-99-2-190.revip9.asianet.co.th> has quit IRC (Ping timeout: 272 seconds)08:06
*** iTune <iTune!~PhompAng@wf-171-99-2-203.revip9.asianet.co.th> has joined #sailfishos-porters08:16
*** r0kk3rz <r0kk3rz!~chatzilla@host-92-23-115-96.as13285.net> has joined #sailfishos-porters08:20
*** Lipevakala <Lipevakala!~sailfish@85-76-99-129-nat.elisa-mobile.fi> has quit IRC (Ping timeout: 245 seconds)08:20
*** cloanta <cloanta!~sailfish@2a02:a03f:14fd:4f00:5256:a8ff:fe01:18f9> has joined #sailfishos-porters08:22
Nokiusln -s libidl.so /usr/libexec/droid-hybris/system/lib/libidl.so is not the best08:22
Stskeepsidl?08:23
Stskeepssure you don't mean libdl08:23
NokiusStskeeps: let me doublecheck08:27
Nokiusstat64("/usr/libexec/droid-hybris/system/lib/libidl.so", 0xbeaf26b0) = -1 ENOENT (No such file or directory)08:28
Nokiusalso after coping instedt of linking looks like this (https://gist.github.com/Nokius/af59f0d5221d5e1f57af)08:28
Stskeepsdoes /system/lib/libidl.so exists?08:29
*** PhompAng <PhompAng!~PhompAng@wf-171-99-2-203.revip9.asianet.co.th> has joined #sailfishos-porters08:32
NokiusStskeeps: yes I copied to the /usr/libexec/droid-hybris/system/lib/08:32
Stskeepsbtw08:33
Stskeepsstat64 or a lib missing is ok as long as it's found further down.08:33
*** iTune <iTune!~PhompAng@wf-171-99-2-203.revip9.asianet.co.th> has quit IRC (Ping timeout: 246 seconds)08:33
*** electrolux <electrolux!~Adium@62-78-217-43.bb.dnainternet.fi> has joined #sailfishos-porters08:33
Nokiusokay08:33
mal-it does find it from stat64("/system/lib/libidl.so", {st_mode=S_IFREG|0644, st_size=9296, ...}) = 008:34
Nokiusadded libsensor1.so and libsensor_reg.so to /usr/libexec/droid-hybris/system/lib/ ( get this now https://gist.github.com/Nokius/005dfc4f0459a7efb25b)08:35
mal-why did you add those, it did find those from /system/lib/08:37
mal-only copy files if they are not found at all08:37
mal-and that most likely happens only if the name of the file is wrong08:39
Nokiusah okay :(08:39
mal-https://gist.github.com/Nokius/3903ddf545111e447621#file-gistfile1-txt-L28908:40
mal-you can see in there that it first looks in /usr/libexec/droid-hybris/system/lib/, then /vendor/lib/ and finally /system/lib/08:41
Nokiusah okay thanks08:41
mal-get a backtrace of that08:42
*** alin <alin!~alin@opensuse/member/ealin> has quit IRC (Ping timeout: 252 seconds)08:44
Nokiusremoved the copies https://gist.github.com/Nokius/6608cbdfd640ad607592 ecxept the ln you menation last night will do have to go now sorry :(08:45
mal-run that in gdb and get a backtrace as I told you08:46
*** phdeswer_ <phdeswer_!~phdeswer@mobile-access-bceecf-2.dhcp.inet.fi> has joined #sailfishos-porters08:48
*** phdeswer_ <phdeswer_!~phdeswer@mobile-access-bceecf-2.dhcp.inet.fi> has quit IRC (Read error: Connection reset by peer)08:49
*** zhxt_ is now known as zhxt_away08:50
*** phdeswer_ <phdeswer_!~phdeswer@mobile-access-bceecf-2.dhcp.inet.fi> has joined #sailfishos-porters08:50
*** PhompAng <PhompAng!~PhompAng@wf-171-99-2-203.revip9.asianet.co.th> has quit IRC (Ping timeout: 250 seconds)09:07
*** hexo_ is now known as wrongosaurus09:15
*** mvmsaikrishna <mvmsaikrishna!~mvmsaikri@117.213.140.195> has quit IRC (Quit: mvmsaikrishna)09:16
*** phdeswer_ <phdeswer_!~phdeswer@mobile-access-bceecf-2.dhcp.inet.fi> has quit IRC (Ping timeout: 252 seconds)09:21
*** mvmsaikrishna <mvmsaikrishna!~mvmsaikri@117.213.140.195> has joined #sailfishos-porters09:22
carepackfirst mobile nightmare: dreamed my jolla was broken. woken up sweat-soaked. HORROR :-) Goo morning everybody09:24
*** Lipevakala <Lipevakala!~sailfish@85-76-99-129-nat.elisa-mobile.fi> has joined #sailfishos-porters09:28
*** vakkov <vakkov!~vakkov@79.132.29.146> has quit IRC (Ping timeout: 252 seconds)09:35
Stskeepscarepack: there's also micropanics like when your device falls to the floor and you're not sure if the display died09:38
*** vakkov <vakkov!~vakkov@79.132.29.146> has joined #sailfishos-porters09:38
*** Lipevakala <Lipevakala!~sailfish@85-76-99-129-nat.elisa-mobile.fi> has quit IRC (Ping timeout: 256 seconds)09:41
*** SfietKonstantin <SfietKonstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has quit IRC (Ping timeout: 250 seconds)09:48
*** SfietKonstantin <SfietKonstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has joined #sailfishos-porters09:56
*** Lipevakala <Lipevakala!~sailfish@85-76-151-130-nat.elisa-mobile.fi> has joined #sailfishos-porters10:01
*** SfietKonstantin <SfietKonstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has quit IRC (Quit: Konversation terminated!)10:01
*** Sfiet_Konstantin <Sfiet_Konstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has joined #sailfishos-porters10:01
*** zhxt_away <zhxt_away!~zhxt@124.205.254.8> has quit IRC (Remote host closed the connection)10:10
*** zhxt_away <zhxt_away!~zhxt@125.39.68.36> has joined #sailfishos-porters10:10
carepackyes. that's everytime a shock. In my dream the display was broken and the worst thing: no damage for warranty :-) sand got no money to rebuy. hell. I'm happy about my awakening10:13
carepackand my device is ready again ,)10:13
*** exadeci <exadeci!uid35778@gateway/web/irccloud.com/x-zonjmeshawotolea> has joined #sailfishos-porters10:22
*** schiggn <schiggn!~quassel@p200300808F01EC51C4AABAB983910B3F.dip0.t-ipconnect.de> has joined #sailfishos-porters10:27
*** Sfiet_Konstantin <Sfiet_Konstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has quit IRC (Ping timeout: 264 seconds)10:28
*** M4rtinK <M4rtinK!~M4rtinK@mail.melf.eu> has joined #sailfishos-porters10:57
*** cloanta <cloanta!~sailfish@2a02:a03f:14fd:4f00:5256:a8ff:fe01:18f9> has quit IRC (Ping timeout: 276 seconds)11:05
*** cloanta <cloanta!~sailfish@109.134.121.57> has joined #sailfishos-porters11:09
*** mou <mou!~yaaic@tre29-1-78-239-180-37.fbx.proxad.net> has quit IRC (Ping timeout: 245 seconds)11:10
*** cloanta <cloanta!~sailfish@109.134.121.57> has quit IRC (Remote host closed the connection)11:17
*** cloanta <cloanta!~sailfish@109.134.121.57> has joined #sailfishos-porters11:17
*** electrolux <electrolux!~Adium@62-78-217-43.bb.dnainternet.fi> has quit IRC (Quit: Leaving.)11:32
*** Sfiet_Konstantin <Sfiet_Konstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has joined #sailfishos-porters11:36
*** mvmsaikrishna <mvmsaikrishna!~mvmsaikri@117.213.140.195> has quit IRC (Quit: mvmsaikrishna)11:43
*** OrokuSaki <OrokuSaki!470bf285@gateway/web/freenode/ip.71.11.242.133> has joined #sailfishos-porters11:51
*** OrokuSaki <OrokuSaki!470bf285@gateway/web/freenode/ip.71.11.242.133> has left #sailfishos-porters11:51
*** OrokuSaki <OrokuSaki!470bf285@gateway/web/freenode/ip.71.11.242.133> has joined #sailfishos-porters11:52
OrokuSakiI rant  a lot11:52
OrokuSakiMorning!11:52
OrokuSakiI think my Federal Trade Commission thing is going well.11:55
OrokuSakihttp://justinshafer.blogspot.com/2014/09/my-federal-trade-commission-statement.html11:56
OrokuSakihttps://www.ftc.gov/news-events/press-releases/2015/04/ftc-staff-offers-guidance-promoting-competition-health11:56
OrokuSakiI can't stand waiting, so I am porting sailfish. =)11:57
OrokuSakiJust wanted to let "someone" know11:57
OrokuSakiI found a database on "the internet" with 11,000 people in it, and a doctor blamed me and said I uploaded it... it has ticked me off11:57
OrokuSakidavid vs goliath11:59
OrokuSakiLet me give you some advice, anyone ever asks you guys to do something shady.. record as much as you can.12:01
OrokuSakihttp://justinshafer.blogspot.com/2014/05/how-i-beat-henry-schein-and-dentaltown.html12:01
OrokuSakiOkay back to porting!12:02
mal-I finally managed to get audio working on port last night12:02
vgrade\o/12:03
OrokuSakiabout to test droidmedia again...12:03
OrokuSaki=)12:03
mal-had to disable suspending of sinks and sources when idle in pulseaudio12:04
*** TheBootroo|work <TheBootroo|work!~TheBootro@2a01:e35:2e23:d5d0:c685:8ff:fe31:3774> has joined #sailfishos-porters12:04
TheBootroo|workohia12:04
TheBootroo|workI saw that SF has been ported very well on Nexus 412:04
TheBootroo|worki was wondering if the LTE is activated on it12:05
*** arcean <arcean!~arcean@apn-95-40-68-117.dynamic.gprs.plus.pl> has quit IRC (Read error: Connection reset by peer)12:05
TheBootroo|workbecause there are cyanogen roms that enable it12:05
TheBootroo|workso maybe the sailfish one can do it too12:05
mal-maybe carepack or sledges can tell you, if they are around12:10
OrokuSakiStupid PirateBay... rofl.. I mean.. oh12:13
*** zhxt_away is now known as zhxt_12:31
*** Sfiet_Konstantin <Sfiet_Konstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has quit IRC (Ping timeout: 276 seconds)12:39
MSameermal-: still working on gst audio decoders?12:56
*** klopsi-u3 <klopsi-u3!~klopsi-u3@p4FD90054.dip0.t-ipconnect.de> has joined #sailfishos-porters13:08
klopsi-u3good day sfosp13:08
*** plfiorini <plfiorini!~plfiorini@net-93-71-167-160.cust.vodafonedsl.it> has joined #sailfishos-porters13:14
MSameergood day klopsi-u3!13:16
*** Sfiet_Konstantin <Sfiet_Konstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has joined #sailfishos-porters13:17
*** TheBootroo|work <TheBootroo|work!~TheBootro@2a01:e35:2e23:d5d0:c685:8ff:fe31:3774> has quit IRC (Remote host closed the connection)13:43
*** nh1402 <nh1402!021f7802@gateway/web/freenode/ip.2.31.120.2> has joined #sailfishos-porters13:52
nh1402TheBootroo|work: The Nexus 4 doesn't have an LTE antennae, there is one band which it might work on, but its not licensed that is why Google blocked people from trying to enable it with a software update, not sure if CM11 is old enough for it to be enabled.13:54
*** cloanta <cloanta!~sailfish@109.134.121.57> has quit IRC (Quit: IRC for Sailfish 0.9)13:58
Nokiusnh1402: it only working in Canada iirc14:11
Nokiusmal-: bt https://gist.github.com/Nokius/f35d8bb7d20cbd09d46614:12
Nokiuscarepack Stskeeps avoid dropping the Jolla phone :p14:15
*** iTune <iTune!~PhompAng@ppp-124-122-80-82.revip2.asianet.co.th> has joined #sailfishos-porters14:17
MSameerdidn't I fix sensors a few weeks ago?14:21
MSameernh1402: i had an idea re. android runtime for sailfish, can't we take the chromium runtime libraries and glue them somehow?14:23
NokiusMSameer: will check my clone thanks for the hint14:24
mal-MSameer: maybe I'll look at codec support again today, just got back, had to go out because of nice weather14:26
MSameermal-: free for some testing?14:26
nh1402MSameer: that was what I was thinking, haven't looked into it enough yet.14:27
*** phdeswer_ <phdeswer_!~phdeswer@mobile-access-bcee03-47.dhcp.inet.fi> has joined #sailfishos-porters14:29
mal-MSameer: sure14:29
MSameermal-: OK. get gst-droid (droidmedia_audio branch) and droidmedia (audio branch). build both and tell me if aac and mp3 decoding work for you or not ;)14:30
Stskeepswasn't there like some guy that made the ARC run on non-chromeos?14:30
mal-MSameer: ok, will get those now14:30
MSameermal-:  you will need to rm gst-libs/ext/droidmedia/*.h and copy the ones from the audio branch instead14:31
mal-ok14:31
MSameerwe will just need to clean the code up and merge to droidmedia branch14:33
MSameerbut let's see14:33
MSameertested on nexus5 and both work14:34
mal-nice14:34
MSameermal-: sorry for stepping on your toes but I had some free time which I did not know what to do with!14:34
mal-no problem, just curiuos what was wrong in the code?14:36
MSameeri wrote it from scratch but used raw as the stream-format14:36
mal-ok14:36
MSameerhad to reconstruct esd atom to make stagefright happy so I ripped off some code from another gstreamer plugin14:36
MSameerso seems these were the only bits needed14:37
nh1402MSameer: The only thing about that is this "A small set of shared objects can be built which are part of ARC currently. A fully running system cannot currently be built.", but might be able to fill in the gaps with AOSP code.14:37
MSameermp3 -> worked out of the box by adding the needed struct and a small fix14:37
MSameernh1402: I tried to find out where the code is and what cannot be built but failed14:37
nh1402MSameer: chromium.googlesource.com/arc/arc/14:39
* MSameer checks14:40
Stskeepsarc is really quite ingenious, they basically convert bionic into being a library that uses the nacl libraries14:40
MSameernh1402: so find -name .so are the ones that are closed? anything else?14:42
mal-MSameer: don't know if you read the logs but I got pulseaudio working on my port14:43
MSameermal-: i can't read all logs really :/14:43
MSameermal-: but good work!14:43
MSameermal-: now I hope audio decoding will work for you :)14:44
mal-we'll know soon14:44
MSameermal-: this is the pipeline I used:14:44
MSameer[nemo@Jolla ~]$ gst-launch-1.0 filesrc location=Music/teetradio.mp3  ! mpegaudioparse ! droidadec ! pulsesink14:44
MSameerfor mp314:44
MSameerand:14:44
MSameer[nemo@Jolla ~]$ gst-launch-1.0 filesrc location=Videos/Jolla/jolla_product_video.mp4 ! qtdemux name=d  d. ! aacparse !  droidadec ! audioconvert ! pulsesink14:44
MSameerfor aac14:45
mal-I'll use those for testing14:45
MSameerbut change the mp3 to a file you have :D14:45
mal-naturally :)14:45
MSameerthere is still a deadlock when you press ctrl+c with gst-launch14:46
mal-MSameer: I had to disable suspending of sinks and sources to prevent pulseaudio from hanging14:46
MSameerbut that's a bit minor ATM14:46
MSameermal-: check with jusa_. he's our pulseaudio expert14:46
mal-I told him already14:46
Nokiuspulled the latest for the sensors and installed the new rpm  gdb looks the same14:47
MSameeri don't have much experience with audio. in fact this is the first time I wrote a gstreamer decoder for audio14:47
MSameerNokius: might be something else. run under valgrind and see14:48
Nokiusstrace https://gist.github.com/Nokius/42427ebcae6861e3638214:48
*** nh1402 <nh1402!021f7802@gateway/web/freenode/ip.2.31.120.2> has quit IRC (Ping timeout: 246 seconds)14:48
MSameersensors.oem.so?14:48
MSameersi_code=SEGV_MAPERR, si_addr=0x9014:48
MSameerthis looks like a NULL pointer is cast to a struct and the offset 0x90 is being accessed14:49
Nokiuswe saw this last night is linked14:49
* Nokius door bell14:49
StskeepsMSameer: smells like a HAL interface14:49
Stskeepsthat doesn't get resolved14:49
Stskeepsor the likes14:49
NokiusMSameer: it's ln -s sensors.msm8960.so sensors.oem.so14:51
* Nokius sorry have to go afk :-/14:51
MSameerStskeeps: or it tries to access a property without initializing an internal struct. that was the previous issue14:52
MSameerNokius: valgrind it14:52
StskeepsMSameer: nod14:52
*** plfiorini <plfiorini!~plfiorini@net-93-71-167-160.cust.vodafonedsl.it> has quit IRC (Ping timeout: 248 seconds)14:53
*** cloanta <cloanta!~sailfish@2a02:a03f:14fd:4f00:5256:a8ff:fe01:18f9> has joined #sailfishos-porters14:54
MSameermal-: come on, I want to get some food before shops close :)14:54
MSameerit's +10 outside and sunny :(14:55
mal-doing repo sync and building gst-droid, my computer is a little slow14:55
MSameerwhy do you need repo sync?14:56
mal-to build droidmedia14:56
MSameercd external/droidmedia && git pull && cd -14:56
MSameersource build/envsetup.sh14:56
MSameerbreakfast ...14:56
MSameermake libdroidmedia.so14:56
MSameerscp out/blah/system/libdroidmedia.so nemo@192.168.1.3:~/14:57
MSameerssh nemo@...14:57
MSameerdevel-su14:57
MSameermv libdroidmedia.so /usr/libexec/...14:57
MSameerdone14:57
mal-external/droidmedia has no remote defined14:57
MSameerrm -rf external/droidmedia && git clone ...14:57
MSameeranyway, use what works best for you14:58
MSameeri rebuild in under a minute14:58
mal-I know, I just thought to use repo sync, it just get the new stuff anyway14:58
MSameerthis is actually what I use:14:58
MSameer[root@Jolla lib]# pwd14:58
MSameer/usr/libexec/droid-hybris/system/lib14:58
MSameer(scp 192.168.2.14:~/mer/android/n5/out/target/product/hammerhead/symbols/system/lib/libdroidmedia.so .; killall -KILL minimediaservice14:59
MSameerand killing the service isn't required14:59
* MSameer goes out for food15:00
*** arcean <arcean!~arcean@apn-95-40-207-191.dynamic.gprs.plus.pl> has joined #sailfishos-porters15:10
*** zhxt_ <zhxt_!~zhxt@125.39.68.36> has quit IRC (Quit: Konversation terminated!)15:13
mal-MSameer: you forgot to add gstreamer-audio-1.0 >= $GST_REQUIRED to configure.ac15:16
mal-of gst-droid15:17
MSameermal-: sorry :)15:17
*** AYEHAN <AYEHAN!~behave@111.68.108.75> has quit IRC (Read error: Connection reset by peer)15:17
mal-have to rebuild gst-droid15:17
MSameermal-: added and pushed15:18
*** nh1402 <nh1402!021f7802@gateway/web/freenode/ip.2.31.120.2> has joined #sailfishos-porters15:19
nh1402Didn't realise I timed out there15:19
MSameerbbl15:21
OrokuSakiGoing to try different buffers now for libdroidmedia.so after the soccer game15:24
OrokuSakisame error as last time on the latest commit15:24
mal-MSameer: seems to be working15:28
mal-MSameer: is there no way to downmix multichannel audio, currently the decoder is only allowing 1 or 2 channels15:31
mal-I'll see what happens if I enable more channels15:33
*** AYEHAN <AYEHAN!~behave@111.68.108.75> has joined #sailfishos-porters15:33
mal-MSameer: enabling up to 6 channels did not work15:47
mal-MSameer: I get this with 6-channel audio audiodecoder gstaudiodecoder.c:1294:gst_audio_decoder_finish_frame:<droidadec0> error: buffer size 4096 not a multiple of 1215:51
mal-my test audio is from big buck bunny15:52
MSameermal-: are you sure the stagefright decoder supports 6 channels?16:40
mal-no16:41
MSameermal-: I guess 6 channels * 2 bytes per channel = 1216:41
MSameermal-: I don't know what android supports. it might be possible that it does downmixing and gives us only 2 channels16:42
mal-could be, would have to try to play the same video in android16:43
MSameer        if (!(property_get("media.aac_51_output_enabled", value, NULL) &&16:44
MSameer                (!strcmp(value, "1") || !strcasecmp(value, "true")))) {16:44
MSameer            ALOGI("Downmixing multichannel AAC to stereo");16:44
mal-I'll se what happens if I force the output format to 2 channels with that video16:44
mal-ok16:45
*** electrolux <electrolux!~Adium@62-78-217-43.bb.dnainternet.fi> has joined #sailfishos-porters16:45
mal-MSameer: that setprop works16:46
MSameerthe problem is how to support that in a generic way16:46
mal-true16:47
MSameerhow can we detect that android is doing downmixing and adjust the output channels accordingly?16:47
mal-I did not need to adjust it with that16:47
mal-the decoder gives the correct number of channels when that is used16:48
mal-2 in this case I think16:49
MSameerhow do we get the number of channels from the decoder?16:49
*** spiiroin <spiiroin!~spiiroin@87-93-137-217.bb.dnainternet.fi> has quit IRC (Ping timeout: 256 seconds)16:50
mal-I actually don't know how that works16:50
MSameeri can't find a way to get that16:51
mal-I think those come from the gst_droidadec_set_format caps parameter16:53
*** cloanta <cloanta!~sailfish@2a02:a03f:14fd:4f00:5256:a8ff:fe01:18f9> has quit IRC (Ping timeout: 252 seconds)16:53
mal-what ever call that function gives it the correct channel number16:55
*** cloanta <cloanta!~sailfish@109.134.121.57> has joined #sailfishos-porters16:55
mal-MSameer: maybe in that function we could set that prop if we find more that 2 channels?16:59
mal-but maybe it's too late already at that point16:59
MSameerwe can't blindly flip a property like that17:00
MSameermaybe we can detect from the size of the decoder output17:01
MSameerwe know the number of samples and we can calculate the size of it17:01
MSameerfinal output size = sample size * number of channels17:01
MSameerso number of channels = output size / sample size17:01
*** spiiroin <spiiroin!~spiiroin@87-95-83-49.bb.dnainternet.fi> has joined #sailfishos-porters17:03
*** electrolux <electrolux!~Adium@62-78-217-43.bb.dnainternet.fi> has quit IRC (Quit: Leaving.)17:03
mal-but isn't it late when you already have the decoder running and then try to make it output different format instead17:03
MSameerit's not a different format17:04
MSameerit's a different number of channels17:04
MSameerwe can delay configuring the decoder until we are ready to push the first buffer17:05
MSameerso gst_audio_decoder_set_output_format () waits until we have the first buffer ready17:05
MSameerjust before we call _finish_frame()17:05
mal-ok17:06
MSameerit's not that easy17:08
* MSameer digs17:08
nh1402MSameer: any idea if there's enough ARC stuff combined with AOSP stuff online to get it working on Sailfish?17:10
MSameernh1402: i have no idea. I need to know what are the closed bits needed for arc17:11
MSameermal-: I don't think it is possible. how important is playing 6 channels really?17:14
mal-no sure how common those are but I would assume quite common17:14
mal-if someone wants to what a tv series in mp4 format on their phone for example, that could easily have 6 channels17:16
mal-*watch17:16
mal-MSameer: I did not quite understand what was your idea for that17:17
mal-and why can't we set the prop17:18
mal-if we know the number of channels17:18
NokiusMSameer: will trie valgrind17:23
MSameermal-: what do you want to do?17:26
mal-not quite sure17:28
Stskeepsso it downmixes aac by standard unless explicitly told not to? (probably for a google tv like scenario or hdmi stick)17:29
mal-Stskeeps: that prop did not seem to be set at least not on my phone17:29
mal-I had to manually enable downmixing to get 6 channel aac to work17:30
MSameerwell, phone speakers are mostly mono anyway17:30
* MSameer downloads big buck bunny aac surround17:32
MSameerthe other issue is we get the number of input channels and we use them blindly for the output17:32
mal-still it seems to work even with 6 channels17:33
mal-after downmixing17:33
mal-log still has pulse pulsesink.c:1021:gst_pulseringbuffer_acquire:<audiosink-actual-sink-pulse> negotiated to: pcm, format.sample_format = "\"s16le\""  format.channels = "6"  format.rate = "48000"17:34
mal-but does not seem to matter17:34
MSameerstrange17:35
MSameermight mean that pulse takes what it wants and rejects the rest17:35
NokiusMSameer: valgrind https://gist.github.com/Nokius/662fde2eca3f7ff4c992 (short afk for food)17:35
Stskeepsor does downmixing itself?17:36
MSameerbut there is no data17:36
MSameeror it detects the situation17:36
Stskeepsah17:36
MSameerStskeeps: we give it a buffer and lie about the channels. we tell it it has 6 while it has only 217:36
mal-maybe pulseaudio is smart17:37
*** cloanta <cloanta!~sailfish@109.134.121.57> has quit IRC (Read error: Connection reset by peer)17:37
MSameeri think I found a way17:38
*** Tassadar <Tassadar!~tassadar@ip4-83-240-20-212.cust.nbox.cz> has joined #sailfishos-porters17:42
MSameerNokius: which hw is that?17:46
MSameerebmlread ebml-read.c:151:gst_ebml_peek_id_length:<d> Invalid EBML ID size tag (0x0) at position 0 (0x0)17:50
MSameerWH17:50
MSameersomething erased the video from the phone17:53
StskeepsO_o17:54
*** Sazpaimon__ <Sazpaimon__!wat@pool-98-111-146-164.phlapa.fios.verizon.net> has quit IRC (Read error: Connection timed out)17:55
*** Sazpaimon__ <Sazpaimon__!wat@pool-98-111-146-164.phlapa.fios.verizon.net> has joined #sailfishos-porters17:55
MSameeri know it sounds strange but it happened17:58
MSameersomething erased the video from the phone :/17:59
StskeepsMSameer: i've last seen that when alien dalvik went trigger happy17:59
MSameerunless i choose delete from gallery pully by mistake and closed it which triggered the remorse timer17:59
MSameerStskeeps: yes I remember that17:59
MSameerok i will assume it's a user error18:03
MSameermal-: since it works, I guess we can extend channels to [1, 6] then18:04
mal-MSameer: do you plan to add some kind of check for that property before creating the codec?18:05
OrokuSakiI remember people say not to use display-caf with media... though... I have been able to play youtube with a rom that way... curious what happens18:05
MSameermal-: nop18:05
MSameermal-: a proper solution would be getting the format from OMXCodec and checking the channels there18:06
*** plfiorini <plfiorini!~plfiorini@net-93-71-167-160.cust.vodafonedsl.it> has joined #sailfishos-porters18:06
mal-I still don't understand why the 6 channel audio does not work without downmixing, at least the decoder has to know how to handle it because it can downmix it18:07
mal-for some reason it gives output that has incorrect size18:07
OrokuSakiAnyone have an xwayland rpm? =)18:08
OrokuSakithought I would ask before compiling18:08
mal-OrokuSaki: where do people say that it should not be used with media?18:08
OrokuSakiShoot... 2 years ago.. somewhere18:09
mal-ok18:09
NokiusMSameer: what you mean ? device is find518:10
NokiusMSameer: platform Qualcomm APQ8064  (source cm wiki)18:12
MSameermal-: because we lie. we tell gstreamer we will give you 6 channels but we give it only 2 so it gives us a warning18:13
MSameermal-: if i understand your question correctly18:13
MSameerNokius: it needs more debugging. try using load_sym_files.py from hybris and gdb18:14
OrokuSakisweet. http://talk.maemo.org/showpost.php?p=1439988&postcount=1118:14
klopsi-u3javispedro is cool18:15
Nokiusjavisperdro show it me at FOSDEM :P18:15
*** cloanta <cloanta!~sailfish@2a02:a03f:14fd:4f00:5256:a8ff:fe01:18f9> has joined #sailfishos-porters18:15
mal-MSameer: but we are not lying, we have 6 channels everywhere (if we allow that in caps I mean)18:17
mal-like I did when I tried that before setting the downmix property18:19
MSameerwhat is the problem?18:21
*** cloanta <cloanta!~sailfish@2a02:a03f:14fd:4f00:5256:a8ff:fe01:18f9> has quit IRC (Read error: No route to host)18:21
MSameermal-: I don't understand your issue18:21
mal-MSameer: try playing the big buck bunny without setting the downmix property, does it work?18:21
MSameerno18:22
MSameerbecause caps has channels 1,2 only18:22
mal-MSameer: but if you change that to 1,618:22
MSameerit still works18:23
mal-?18:23
MSameermmm18:23
MSameerthe prop is true by default here18:23
mal-oh18:23
MSameercan't disable it18:24
MSameergetprop always returns true18:24
mal-ok, I did not have that set at all18:24
MSameerwhat is the problem you have when it is false?18:25
NokiusMSameer: assume you mean this https://raw.githubusercontent.com/mer-hybris/libhybris/b981d65d17f6ffa8c3aa031d17eaf463d1c7d13b/libhybris/utils/load_sym_files.py right?18:25
mal-MSameer: audiodecoder gstaudiodecoder.c:1294:gst_audio_decoder_finish_frame:<droidadec0> error: buffer size 4096 not a multiple of 1218:26
MSameerNokius: https://github.com/libhybris/libhybris/blob/master/utils/load_sym_files.py18:26
MSameermal-: this is what I answered: we lie to gstreamer so gstreamer slaps us18:27
NokiusMSameer: thx18:27
MSameermal-: we tell it we are outputting 6 channels but we output 2 only18:27
MSameermal-: so it tells us that we are doing something wrong18:27
mal-MSameer: but shouldn't pulseaudio handle that18:27
mal-I don't see where we lie18:28
MSameermal-: this warning is from gstaudiodecoder so i's before we go to pulse18:28
MSameermal-: and 2) we tell it we have 6 channels so it expects a number of bytes. if we give it less then how would it know?18:28
MSameer  gst_audio_info_set_format (&info, GST_AUDIO_FORMAT_S16, dec->rate,                                      dec->channels, NULL);18:28
MSameerchannels is 6 because we get it from input18:29
mal-tell me where we give it only data for two channels?18:29
mal-we give it the whole input and and it should give us the 6 channel output like we define in gst_audio_info_set_format18:30
MSameerno18:31
MSameerwe give it the whole output18:32
MSameerwhich we get from the decoder after the decoder did the downmixing18:32
mal-but if I don't do the downmixing18:32
MSameerwho said so?18:32
mal-so you say it does downmixing what ever we have in media.aac_51_output_enabled?18:33
MSameerno18:34
MSameerif he property is false, it will downmix18:34
mal-I understood that property the opposite way18:34
MSameerit seems there is something I don't understand about your problem18:34
MSameer5.1 output enabled = use 6 channels18:35
MSameer5.1 output enabled false = use 2 channels18:35
MSameer:)18:35
mal-I don't know how I managed to get that wrong18:35
NokiusMSameer: do I need a extra package have  python but I get import command not found :-s18:35
MSameermal-: shit happens :)18:36
mal-MSameer: sorry about that :)18:36
MSameerNokius: source /full/path/to/script18:36
MSameermal-: a way to solve that is to get the number of channels from the decoder and configure gst correctly18:36
OrokuSakiCan we use bluetooth headphones? ;)18:38
*** Nokius_ <Nokius_!~Nokius@p5DDB46AD.dip0.t-ipconnect.de> has joined #sailfishos-porters18:38
Nokius_MSameer: mh https://gist.github.com/Nokius/cf1f7d404dd5c4efef5718:38
mal-MSameer: get the number of channels from caps and check for that prop and if no 5.1 output is enabled then set output channels to 2 (in gst_audio_decoder_set_output_format), otherwise set to real value18:38
MSameerNokius_: IN gdb18:39
mal-MSameer: does that sound reasonable?18:39
MSameermal-: that's a hack18:39
mal-I don't see that as a really bad hack18:40
*** Nokius <Nokius!~Nokius@p5DDB7C5C.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 245 seconds)18:41
MSameernow WTH18:42
*** Nokius_ is now known as Nokius18:42
MSameerseems the decoder outputs only 1 channel18:42
mal-how did you determine that?18:43
OrokuSakistupid april fools18:44
OrokuSakihttps://www.winehq.org/pipermail/wine-patches/2013-April/123281.html18:44
MSameermal-: I asked the decoder18:45
MSameermal-: http://pastebin.com/Eg5MbeEN18:46
NokiusMSameer: sorry to bother again but gdb source /path/load_sym_files.py | gdb file /path/load_sym_files.py and gdb --args /path/load_sym_files.py  not in executable format: File format not recognized set chmod a+x :-s18:46
MSameerit tells us it outputs 1 channel but it ouputs 218:46
MSameerNokius: gdb test_sensors; r; wait for crash; source ....18:46
mal-MSameer: that's odd18:47
StskeepsNokius: enter gdb; source load_sym_files.py18:47
Stskeeps:P18:47
mal-MSameer: but you are setting that value just few line before?18:49
mal-MSameer: and at that point it does not have any data yet anyway18:50
Nokiusthx MSameer Stskeeps18:51
NokiusMSameer: hope I did it right :-shttps://gist.github.com/Nokius/0cffc0f03fd606c0e16918:51
MSameerNokius: load-sym-files /18:52
MSameermal-: good catch18:53
MSameer            if (!isConfigured()) {18:53
MSameer                aacParams->nChannels = 1;18:53
MSameermal-: I need to think how to do it in a generic way18:54
MSameerI guess a new API call:18:54
MSameerdroid_media_codec_get_properties() maybe18:54
NokiusMSameer: like this ? https://gist.github.com/Nokius/22912e72dfb5c162ff42 sorry18:54
mal-new api call could be one option18:56
MSameerNokius: don't you read what output you get?19:01
MSameer(gdb) source /home/nemo/Downloads/load_sym_files.py /19:01
MSameer/home/nemo/Downloads/load_sym_files.py /: No such file or directory.19:01
* MSameer goes to make coffee19:02
NokiusMSameer: I saw it and it's the /19:03
Nokiusah got it sorry19:06
MSameermal-: i am too tired to implement that now really. will try tomorrow but anyway, aac is working and 6 channels is not really that common19:06
mal-and it works if the prop is set19:07
* Nokius apologize 19:07
NokiusMSameer: gdb run https://gist.github.com/Nokius/de7d656e912ba05cb36819:08
mal-MSameer: no hurry, I can always add that property to init so it will work19:08
MSameerNokius: bt19:10
MSameermal-: we have that and the deadlock with ctrl+c and then we can perhaps merge to main branch19:10
NokiusMSameer: https://gist.github.com/Nokius/6717885d5451068f941619:10
MSameerah and I don't like the aac_profile property and need to find a better solution19:10
mal-MSameer: any idea what causes the deadlock19:11
MSameerNokius: WTF! back to square 0 :D19:11
MSameermal-: might be how we stop the loop function19:11
mal-MSameer: nice work so far, thanks19:11
MSameermal-: glad it works for you19:12
MSameernow we perhaps need an aac encoder too19:12
MSameerNokius: i really don't have an idea19:12
mal-MSameer: I was thinking about that also19:12
mal-it should not be more difficult than decoder19:14
NokiusMSameer: so gdb run was in correct order19:14
MSameerNokius: yes but no useful output19:15
MSameermal-: in theory yes :D19:15
NokiusMSameer: okay :(19:16
mal-MSameer: maybe I should try if my code works for encoder, never tried it19:18
mal-MSameer: do you know a command for testing encoder, like the one you had for decoder19:24
NokiusMSameer: thanks for your help :)19:25
Nokiusdigging19:32
*** beidl <beidl!~quassel@91-113-125-144.adsl.highway.telekom.at> has joined #sailfishos-porters19:33
*** beidl_ <beidl_!~quassel@188-23-72-244.adsl.highway.telekom.at> has quit IRC (Ping timeout: 246 seconds)19:36
*** phdeswer_ <phdeswer_!~phdeswer@mobile-access-bcee03-47.dhcp.inet.fi> has quit IRC (Ping timeout: 244 seconds)19:42
*** harha <harha!~harha@a91-153-12-92.elisa-laajakaista.fi> has quit IRC (Quit: Leaving.)19:43
*** iTune <iTune!~PhompAng@ppp-124-122-80-82.revip2.asianet.co.th> has quit IRC (Ping timeout: 252 seconds)19:44
NokiusMSameer: is the sensor.oem.so a generic .so or specific device for each device? Do you know?19:45
Stskeepsif you end up in a situation where it doesn't find an obviously properly named .so, then something's wrong with properties19:46
NokiusStskeeps: thanks we found out that it's missing  sensor.oem.so (https://gist.github.com/Nokius/294bd43afbf7198f6026#file-gistfile1-txt-L353)19:48
Stskeepsexcept it naturally shouldn't miss anything :)19:49
Stskeepsas the /system is all there, and the android side works19:49
Stskeeps(if HADK steps to check that was done)19:50
NokiusStskeeps: checking CM if works there :-/ long time when I used Android on this device19:54
Stskeepsnod19:55
Stskeepsif it works there; it's something in our glue.19:56
Stskeepswhich is why the big checklist is there, to make sure we don't get false positives :)19:56
NokiusStskeeps: sure19:57
mal-Nokius: one odd thing about your strace is that it searches for example from this location /vendor/lib//system/lib/hw/sensors.oem.so20:06
mal-which is obviously wrong20:06
MSameeri think that's normal20:06
mal-MSameer: why does it happen only in that case20:07
MSameermal-:  gst-launch-1.0 -e pulsesrc ! audioresample ! voaacenc ! qtmux ! filesink location=foo.mp420:07
mal-MSameer: ok, so replaceing that voaacenc with my own would be the way20:08
*** olafh <olafh!~olafh@p4FF48A86.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 276 seconds)20:08
MSameeryes20:08
mal-ok20:08
*** olafh <olafh!~olafh@p4FF48F15.dip0.t-ipconnect.de> has joined #sailfishos-porters20:08
Nokiusoh Android :-s | sensor are working20:10
mal-Nokius: do you see that oem file anywhere in android?20:12
Nokiusmal- atm in recovery and use adb shell20:15
*** Nekron_dev <Nekron_dev!~nekron@p5B3F05F2.dip0.t-ipconnect.de> has joined #sailfishos-porters20:21
Nokiusmal-: mh find . -name sensors.*.so 2>&1 | sed 'Permission denied/d;' find only sensors.msm8960.so20:32
Nokiusin Dorid this Terminal  is ....20:32
Nokiusback to SFOS20:47
*** Nekron_dev <Nekron_dev!~nekron@p5B3F05F2.dip0.t-ipconnect.de> has quit IRC (Quit: IRC for Sailfish 0.9)21:07
Nokiusmh wondering why it's looking up sernsors.oem.so21:20
*** Sfiet_Konstantin <Sfiet_Konstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has quit IRC (Quit: Konversation terminated!)21:27
*** Sfiet_Konstantin <Sfiet_Konstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has joined #sailfishos-porters21:27
*** Sfiet_Konstantin <Sfiet_Konstantin!~sk@AOrleans-156-1-31-249.w86-221.abo.wanadoo.fr> has quit IRC (Ping timeout: 246 seconds)21:32
NokiusStskeeps: what you mean with checklist ? which chapter ?21:35
Stskeepsthe one where it lists what to check works21:36
*** olafh <olafh!~olafh@p4FF48F15.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 252 seconds)21:37
*** olafh <olafh!~olafh@p4FF49B05.dip0.t-ipconnect.de> has joined #sailfishos-porters21:37
Nokiusoh androsenso is gone21:39
Nokiusused this https://f-droid.org/repository/browse/?fdfilter=Sensor&fdid=com.naman14.stools to test sensors21:41
NokiusStskeeps: test the sensors and sensors are working21:51
*** Tassadar <Tassadar!~tassadar@ip4-83-240-20-212.cust.nbox.cz> has quit IRC (Ping timeout: 240 seconds)22:02
*** nh1402 <nh1402!021f7802@gateway/web/freenode/ip.2.31.120.2> has quit IRC (Ping timeout: 246 seconds)22:07
*** homrs <homrs!5760a43d@gateway/web/freenode/ip.87.96.164.61> has joined #sailfishos-porters22:44
*** asv <asv!5760a43d@gateway/web/freenode/ip.87.96.164.61> has joined #sailfishos-porters22:45
*** asv <asv!5760a43d@gateway/web/freenode/ip.87.96.164.61> has quit IRC (Client Quit)22:48
*** r0kk3rz <r0kk3rz!~chatzilla@host-92-23-115-96.as13285.net> has quit IRC (Ping timeout: 250 seconds)22:49
Nokiussledges:  tried jolla-devicelock-plugin-encsfa but installing is falling rpm -i via cli Fehler: can't create transaction lock on /var/lib/rpm/.rpm.lock (Keine Berechtigung) is a another package missing ?22:49
Nokiusvgrade: no bad :)22:53
Nokiusgn823:13
*** olafh <olafh!~olafh@p4FF49B05.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 250 seconds)23:35
*** schiggn <schiggn!~quassel@p200300808F01EC51C4AABAB983910B3F.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)23:40

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!