Camelia, the Perl 6 bug

IRC log for #motoactv, 2013-01-22

| Channels | #motoactv index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:02 thedecker joined #motoactv
00:04 thedecker Hows sound coming
00:05 thedecker And dose charging work in the preview
00:05 Atarii charging works :)
00:09 thedecker Sweet. Any closer to sounds
00:10 Atarii no, that hasn't been worked on
00:10 thedecker Whats the current project
00:10 Atarii my build is still not working right
00:11 thedecker Ahhh
00:14 thedecker This preview is smoooooth
00:16 thedecker And the lock screen works with pattern lock
00:20 Atarii yea animations are nice :)
00:35 thedecker can use regular gapps on it
02:09 thed3ck3r joined #motoactv
11:21 zobi8225 hi
11:28 zobi8225 got a question, how many time your battery stay alive ?
11:35 zobi8225 my battery stay less than a day, is it normal ?
17:44 thedecker joined #motoactv
17:54 thed3ck3r joined #motoactv
18:07 evanzo23 joined #motoactv
18:17 thed3ck3r Hey
18:24 CEnnis91 ive actually been just using this as a watch the last few days
18:24 CEnnis91 battery has been nice
18:28 dproldan joined #motoactv
18:30 dproldan joined #motoactv
18:43 evanzo23 Yeah, it's pretty good unless you forget to turn off the wifi. I've done it a few times.
18:45 dproldan ok,  let's try to fix audio now
19:33 Atarii joined #motoactv
19:33 Atarii joined #motoactv
19:38 Atarii hey
19:38 dproldan hi
19:39 Atarii how's it going?
19:39 dproldan good,  reading msp430.c,   trying to find the right ioctl command to set screen on gesture  :-)
19:39 dproldan can you read c?
19:40 Atarii i'll have a look if you like
19:41 dproldan it's all definde there,  but my c knowledge is null
19:44 Atarii where did you find the file? in razr kernel?
19:44 dproldan no,  in motoACTV kernel
19:44 Atarii ok
19:44 dproldan kernel/omap3/drivers/misc/msp430.c
19:47 Atarii do you have a logcat/dmesg for during the shake to wake on stock ROM?
19:48 Atarii could be "msp430_kick_idletimer" method
19:52 dproldan "Got screen on interrupt\n"
19:52 Atarii ok that's in msp430_irq_work_func
19:53 Atarii gesture_type = SCREEN_ON;
19:53 dproldan yes
19:55 dproldan there's another one called tap_tap
19:56 Atarii MSP430_IOCTL_SET_SCREEN_ON_GESTURE_STATUS
19:57 dproldan yes,  but i think we need a hex number
19:57 Atarii should say in the logs
19:57 Atarii msp430_misc_ioctl = "number"
19:58 Atarii when the screen wake is called
19:58 dproldan ok
19:58 dproldan let's try to find a pastibin or something before flashing stock back!
19:58 Atarii heh good idea
19:59 Atarii actually
19:59 Atarii ill just go stock
19:59 Atarii my builds still aren't working anyway yet
19:59 dproldan ok :-)
19:59 dproldan http://www.cmw.me/motodmesg.txt
20:00 Atarii msp430_kick_idletimer() set regsiter 0x99 to 0xaa
20:00 Atarii typo there :p
20:00 dproldan yes,  there are plenty of them in the sources  :-)
20:03 Atarii btw I know why my build won't boot, it's missing a load of framework files
20:04 Atarii like framework.jar, am.jar, android.policy.jar etc
20:04 dproldan your repo didn't sync correctly, maybe?
20:04 Atarii maybe i'll check in a bit
20:05 dproldan in the cm building page,  it says something about github misbehaving lately
20:06 Atarii dmesg during shake to wake: http://pastie.org/private/ocd7hm8yk2h5zwgpobcaig
20:06 dproldan nothing from msp430?
20:06 dproldan issue a "msp430 debug 2)
20:07 Atarii ah
20:07 Atarii :)
20:07 Atarii got it
20:07 dproldan :-)
20:07 Atarii msp430_misc_ioctl = 27
20:08 Atarii there's loads of data, ill dump it all
20:08 Atarii msp430_misc_ioctl = 17
20:08 dproldan try to turn it off then on
20:09 Atarii this is on: http://pastie.org/private/tfi93a02vthy7ql35aga
20:09 dproldan press the clock face,  go down,  etc
20:14 dproldan those are here maybe?  kernel/omap3/include/linux/msp_memory_map.h
20:16 Atarii yea, nice :)
20:17 Atarii and the msp430.h in that folder
20:17 Atarii #define MSP430_IOCTL_SET_ACTIVE_MODE        17
20:18 dproldan aren't we looking for #define MSP430_IOCTL_SET_SCREEN_ON_GESTURE_STATUS?
20:20 Atarii msp430_enable
20:20 Atarii msp430_misc_ioctl = 17
20:20 Atarii set active mode
20:21 Atarii I just saw that in the logs ^^ so that corresponds to that 17
20:21 Atarii that one you mentioned is 39
20:50 thedecker joined #motoactv
20:50 thedecker Hello everybody
21:00 Atarii hey
21:02 Atarii dproldan can't get this to wake by calling the ioctl directly yet
21:02 dproldan yeah,  not easy
21:03 dproldan I have included Kinetics into a the KineticTests.apk
21:03 dproldan try to have it call the method with a button
21:03 dproldan :-)
21:03 Atarii ok nice :)
21:06 Atarii this is how to invoke it directly btw:
21:06 Atarii adb shell ioctl -l "number" dev/msp430 13
21:06 Atarii just haven't got that "number" bit yet
21:06 Atarii you see the output in dmesg
21:07 dproldan I've been trying with "ioctl 0xXX 0xXX",  ti seem to do things with some combinations  :-)
21:08 dproldan what is 13?
21:08 dproldan the address?
21:08 Atarii actually i got it
21:08 Atarii yea
21:08 Atarii 13 matches the number in that header file
21:08 Atarii so 13 = set profile data
21:09 Atarii #define MSP430_IOCTL_SET_USER_PROFILE   13
21:09 Atarii from kernel/omap3/include/linux/msp430.h
21:09 dproldan ok.. but why are you addressing USER_PROFILE?
21:09 dproldan we need the GESTURE things
21:09 Atarii that was just to test :p
21:09 dproldan ok :-)
21:11 Atarii "ioctl /dev/msp430 17" doesn't turn on the screen, so need to figure out the right one
21:11 dproldan I think it needs an address and a data byte
21:12 dproldan something like:  ioctl -l 02 /dev/msp430 F4
21:12 Atarii yea check that dmesg output from earlier
21:13 Atarii that has some data
21:19 dproldan got something better:   ioctl /dev/msp430 0x20 0x17
21:19 dproldan gets you a Failed to read manual calibration table
21:20 Atarii hmm i don't get that
21:20 Atarii oh nvm
21:20 Atarii yea i do
21:20 dproldan maybe you get the actual data
21:20 Atarii i get this:
21:20 Atarii Read manual calibration table from msp
21:20 Atarii Read from MSP:
21:20 Atarii 00
21:20 Atarii then loads of 00
21:21 Atarii (probably as it's fresh flash)
21:32 Atarii so most of the commands from that header work
21:32 Atarii just can't get the screen to wake
21:33 dproldan so, when you turn on teh gesture setting from the GUI,  nothing appears in dmesg?
21:34 Atarii yea it does, one sec
21:34 Atarii just a note, #define MSP430_IOCTL_SET_ACC_DELAY      9 <- will be handy for battery saving
21:35 Atarii that's how often to read the accelerometer
21:35 dproldan nice
21:36 Atarii http://pastie.org/private/pk92qxs1x6i2qxxjtkjta
21:36 Atarii that's togglign the gesture setting
21:37 dproldan cool
21:37 dproldan let's try
21:37 Atarii which matches up with the: #define MSP430_IOCTL_SET_SCREEN_ON_GESTURE_STATUS 39
21:39 dproldan so,  01 for off and 03 for on,  rigth?
21:40 Atarii apparently
21:40 Atarii can't repoduce it though
21:41 Atarii I always get this output: http://pastie.org/5827122
21:41 Atarii whenever I send anything like ioctl  /dev/msp430 39 number
21:41 dproldan 0x01 0x39
21:42 dproldan and 0x03 0x39
21:42 dproldan eh,  no sorry
21:42 dproldan 0x01 0xF5
21:43 dproldan 0x03 0xF5
21:43 Atarii yea i already tried those
21:43 Atarii same output for everything
21:43 dproldan it's expecting more bytes
21:43 Atarii notice the "Set screen on gesture status = 135176" bit, that's very wrong
21:43 dproldan what's that in hex?
21:44 Atarii 0x34CD
21:45 dproldan ?? 0x21008
21:45 Atarii oh lol
21:45 Atarii i missed the 6
21:45 dproldan heh
21:53 dproldan reading line 1971 in msp430.c,  that one is receiving the "39"
21:55 Atarii check out "enum msp_activities" too, that has SCREEN_ON = 0x0C,
21:56 Atarii wonder what that gesture mask thing
21:58 thedecker joined #motoactv
22:01 thedecker Soo how process on sound
22:02 dproldan hi,  no progress
22:13 evanzo23 joined #motoactv
22:34 thedecker joined #motoactv
22:36 dproldan [mbm]: we have new sources from Motorola for the MotoACTV,   http://sourceforge.net/projects/motoactv.​motorola/files/MOTOACTV-Americas/1.7.11/
22:36 dproldan do you think you can find how to send the msp430 the command for activating the screen gesture?
22:38 dproldan it's listening for ioctl at /dev/msp430
22:51 dproldan the command definition seems to be in this file:  kernel/omap3/drivers/misc/msp430.c   ,    https://www.dropbox.com/sh/​bo4lh534v7x6du1/Alzxd8YDj2
22:59 Atarii wish motorola has put the source on github or something, instead of dumb .tgz files
23:00 Atarii actually maybe that's something to do, upload the source there
23:02 dproldan yes,  that would be nice
23:06 Atarii ls out/target/product/G2/system/framework/
23:06 Atarii bouncycastle.jar  com.android.location.provider.jar  core.jar  core-junit.jar  ext.jar  framework-res.apk  jcifs-krb5-1.3.12.jar  jid3lib.jar  sqlite-jdbc.jar
23:06 Atarii that sucks
23:07 dproldan did you sync the vendor tree?
23:07 dproldan there's a file that should copy more things in that folder
23:08 Atarii yea i did
23:08 Atarii if i use "mm" command i can build the missing files
23:08 dproldan I get 21 files
23:08 Atarii like frameworks/base/ mm makes framework.jar
23:08 Atarii 21 files where sorry?
23:09 dproldan in that out/xxxx/framework  folder
23:10 Atarii wonder why i only get 9
23:10 Atarii it's like the rest arn't being called for some reason
23:10 dproldan did you clone the correct git for the source?
23:10 dproldan repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.4_r1
23:11 Atarii yea
23:13 dproldan what about the files.txt I sent you?
23:13 dproldan did you diff it?
23:13 Atarii i did earlier, that's how i noticed the missing framework files
23:14 Atarii cehcking again
23:22 Atarii hmm there's a load of files i'm missing which you have in ./kernel/omap3/include/*
23:22 Atarii ill check that out
23:23 Atarii can't see why kernel stuff would stop framework compiling
23:24 dproldan dunno
23:33 Atarii back  in10
23:45 dproldan Audio out is working now!
23:46 ds2 audio out? *perks up*
23:46 Atarii lol wo
23:46 dproldan yeah!
23:47 Atarii how did you fix that?
23:47 dproldan I was getting a reboot when I pushed the volume down button,  I somehow tough that it could be related to tcmd
23:48 dproldan tried to run adb shell tcmd,    got some missing libraries errors
23:48 dproldan libsmiledetect  :-)   libjanus,  libcamera...
23:50 dproldan just kept adding them until this is working
23:51 dproldan yeah,  boot sound
23:51 dproldan checking FM radio!
23:54 Atarii awesome!
23:54 Atarii nice work dproldan :)
23:54 dproldan thanks!  loving the challenge
23:55 dproldan I'm having problems with the headset plug-in detection,  FM radio complains about it
23:55 Atarii wish my build bloody worked, I'm missing out!
23:55 dproldan But I know I had it working at some time
23:56 dproldan if you're back at ReACTV,  maybe you can check if you get the logcat things about headsetObserver
23:56 dproldan I may have a hardware problem
23:56 Atarii i'm still on dpromatm
23:57 dproldan ok,  np
23:57 dproldan let0s try audio input
23:58 Atarii i saw the picoTTS stuff, so hopefully TTS will work

| Channels | #motoactv index | Today | | Search | Google Search | Plain-Text | summary