Camelia, the Perl 6 bug

IRC log for #motoactv, 2012-05-11

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

All times shown according to UTC.

Time Nick Message
00:04 Snoothy ds2: whats up?
00:04 ds2 browseable maps on the actv
00:05 Snoothy nice, how?
00:05 ds2 going to go outside and see if the gps works with that
00:05 Snoothy bogus location :P
00:05 ds2 the demo application from mapsforge + local maps load
00:05 ds2 got a replacement settings.apk that will expose mocklocation settings?
00:05 Snoothy if it works
00:06 ds2 this combined with my keyhack to give me menu/home makes it quite useable
00:07 ds2 next task up is to setup some power efficient bluetooth thing
00:07 ds2 have it poll messages from my phone
00:08 ds2 or maybe it is to find a way to expose the accel
00:08 Snoothy expose the accel?
00:08 ds2 yeah
00:08 Snoothy [mbm] already did that
00:08 ds2 he did? is there a write up?
00:08 Snoothy don't think so
00:09 Snoothy it wasn't enabled in the kernel
00:09 ds2 is that it? thought it was wired up to the msp430 for power reasons?
00:09 Snoothy it is
00:09 Snoothy android is just not picking anything up from the msp430
00:10 Snoothy but values are being spit out
00:10 ds2 oh so there is a driver to talk to the msp430 that is not turned on?
00:10 ds2 I don't understand why the kernel is involved
00:11 Snoothy btw: adb shell am start -a com.android.settings.APPLIC​ATION_DEVELOPMENT_SETTINGS <- this will get you mock locations
00:12 ds2 nice
00:15 Snoothy CEnnis91: com.motorola.android.FITNESS_KEY_TOGGLE <- that is the intent for the start button
00:16 ds2 hmmmm
00:16 ds2 is there a way to find out of the moto apps are running?
00:17 Snoothy try this:
00:17 Snoothy am start -n com.android.settings/.ManageApplications
00:17 ds2 that crashes
00:18 Snoothy am start -n com.android.settings/.ApplicationSettings
00:18 Snoothy thats the one then
00:20 ds2 NICE!!!
00:26 Quietlyawesome94 joined #motoactv
00:31 Quietlyawesome94 joined #motoactv
00:38 Snoothy CEnnis91: that intent won't start a workout
00:49 [mbm] .
01:54 Quietlyawesome94 joined #motoactv
03:13 ds2 wheeeeeee mapping and gps works
04:10 [mbm] ?
05:23 CEnnis91 ds2: you can find if an app is running from "ps" at least
05:23 ds2 CEnnis91: not quite
05:23 ds2 running here means it is in focus
05:24 ds2 ps doesn't give you that info
05:24 CEnnis91 Snoothy: that was part of a receiver intent so it doesn't work the same as the ones you've been calling
05:26 CEnnis91 ds2 how so
05:27 CEnnis91 ps | grep <package name>
05:28 CEnnis91 And if you want to get specific get the oom_adj value of the PID
05:29 CEnnis91 It should give you a basic idea if its in the foreground or background, specifically this would work because of the low memory
05:29 ds2 android keeps processes around
05:29 CEnnis91 Right
05:29 CEnnis91 But not with this amount of ram
05:29 CEnnis91 Its a lot tougher
05:30 ds2 what I want to do is have keys do different things based on context
05:33 ds2 like the fitness key only work as a fitness key inside the moto apps
05:34 CEnnis91 Look up tasker
05:34 ds2 tasker? a process or an android thing?
05:34 CEnnis91 Not sure if it'll help with the keys but you will enjoy it
05:34 CEnnis91 Its an app
05:35 ds2 on market only?
05:35 CEnnis91 Paid unfortunately but well with it, I think its PayPal
05:35 ds2 I don't mind paying. I mind market.
05:38 CEnnis91 http://tasker.dinglisch.net/download.html
05:38 CEnnis91 That's the trial
05:38 ds2 on a different note, doesn't the OMAP3 have a temperature sensor on it?
05:38 CEnnis91 Battery sensor?
05:39 CEnnis91 Actually it should have processor too but you may need to mod the kernel for that
05:39 ds2 that is a no go. "requires google maps". googlemaps is not welcomed.
05:39 CEnnis91 Nah
05:39 ds2 battery sensor isn't standard so it'd be specific to the actv
05:40 CEnnis91 You can probably use it without
05:40 CEnnis91 Just certain functions will crash
05:40 ds2 thinking of a way to add temperature to the unit
05:42 ds2 interseting but seems overkill
05:42 CEnnis91 Its very nice
05:43 CEnnis91 Just figured id show you
05:43 ds2 u have it on the actv?
05:43 CEnnis91 No haven't tried it there yet
05:43 CEnnis91 But I don't see why it wouldn't work
05:43 ds2 unless moto intercept events in a different way
05:44 CEnnis91 I doubt it
05:44 CEnnis91 It uses intents mostly
05:49 ds2 this won't work on my actv
05:49 ds2 my actv has no direct IP to the outside world
05:51 [mbm] most gps devices have a temperature sensor
06:23 CEnnis91 [mbm]: how much do you know about scancodes?
06:25 [mbm] quite a bit but you'll need to be more specific
06:25 CEnnis91 [mbm]: well looking at this: http://www.kandroid.org/online-pdk​/guide/keymaps_keyboard_input.html
06:25 CEnnis91 the value for the key is a scancode
06:26 CEnnis91 would it be possible to setup an AND in that file to register as 2 key inputs?
06:26 CEnnis91 from what i can tell, no because the keys are valued without separation
06:28 christefano joined #motoactv
06:40 CEnnis91 [mbm]: also, would i be able to simulate a keypress by writing to /dev/input?
06:40 CEnnis91 or is that just the output
06:44 CEnnis91 oh neat you can
06:46 [mbm] you might be able to set up one of the keys as a modifier, but probably the better thing to do is just do the filtering at the kernel level before the keys are reported to userspace
06:46 ds2 [mbm]: input keyevent
06:46 ds2 oosp
06:46 ds2 I mean mean CEnnis91:
06:47 CEnnis91 ds2: oh, thats much easier then the way i did it =)
06:49 CEnnis91 wow i never knew this was here
06:49 ds2 there is also sendevent
06:49 CEnnis91 you can scare the shit outta someone with this
06:50 CEnnis91 ds2: that's more on the lines oh what i did
06:50 ds2 that is needed if you want to fake TS
06:51 CEnnis91 yea
06:51 CEnnis91 but i dont need that
06:51 CEnnis91 now we have a way to emulate a menu button
06:51 ds2 thta's what I am doing
06:51 CEnnis91 yep, so the keymap will stay as it is
06:52 ds2 mod'ing the keymap is useful
06:52 ds2 if you need to filter keys, that's the only way
06:52 CEnnis91 yes
06:52 CEnnis91 well
06:52 CEnnis91 its the most efficient
06:52 CEnnis91 you can still use the init.rc method of keyevents
06:53 CEnnis91 actually
06:53 CEnnis91 hmmm
06:53 CEnnis91 [mbm]: ds2: what if we just made a keycode switch the functionality of the keys
06:54 CEnnis91 on the fly
06:54 CEnnis91 that would probably work better then trying to figure out and remember key combinations
06:54 ds2 which key?
06:54 CEnnis91 you only need to remember one
06:54 [mbm] that's called a modifier
06:54 CEnnis91 [mbm]: heh i know
06:54 CEnnis91 i guess i didnt pick up on that before
06:54 ds2 problem is they are all needed in different contexts
06:54 CEnnis91 ds2: no
06:54 CEnnis91 ds2: think of it this way
06:54 ds2 i.e. motostuff wants all of them
06:55 CEnnis91 it boots up
06:55 CEnnis91 and your keys are stock
06:55 CEnnis91 you press start+media at the same time
06:55 CEnnis91 now start = home and media = menu
06:55 CEnnis91 hit start+media again, they are back to stock
06:55 ds2 that would get confusing
06:56 CEnnis91 why
06:56 CEnnis91 its not like you wouldnt know whats going on
06:56 CEnnis91 you have immediate display of what you did
06:57 ds2 cuz there are times i need menu w/o things starting up on me
06:57 CEnnis91 then just hit back
06:57 CEnnis91 its not like you will be switching back and forth between them constantly
06:58 CEnnis91 [mbm]: any opinion on this? other then just noting that you suggested this earlier?
06:58 CEnnis91 =P
06:59 ds2 that is the problem
06:59 CEnnis91 you need all 4 functioning at the same time?
06:59 ds2 i do it once and forget about it then it does the wrong thing later
06:59 CEnnis91 oh
07:00 christefano joined #motoactv
07:00 CEnnis91 ds2: how about a timeout to revert them to stock
07:00 CEnnis91 if the screen is off for so long
07:00 CEnnis91 (probably just complicating things more)
07:00 ds2 that'd be confusing for my use case too
07:00 ds2 it really needs to be aware of - moto vs non moto apps
07:01 CEnnis91 ds2: might be possible
07:01 [mbm] think the proper answer is to change the start and music keys to standard keycodes and then recompile the stock apps to use standard keycodes
07:02 CEnnis91 [mbm]: meh, you realize how much that would suck
07:02 [mbm] ?
07:02 ds2 [mbm]: what would that do? there aren't enough keys
07:02 CEnnis91 that would require smali hacking for one
07:02 CEnnis91 and you still lose functionality, like the music keys
07:03 ds2 no need to recompile to do that
07:03 ds2 we can translate keys on the fly
07:05 [mbm] well, does the start key need to be global?
07:06 [mbm] what happens if you make the start key into a menu button and just reprogram the exercise app to start the timer on a press of the menu button?
07:08 ds2 start key as designed needs to be global
07:09 ds2 it acts like a stopwatch functionaltiy
07:09 [mbm] huh?
07:09 CEnnis91 ds2: imo so far the best way to accomplish that is using the modifier method
07:09 CEnnis91 ds2: i agree it can be confusing
07:09 CEnnis91 but functionality wise, none is lost
07:10 [mbm] in the stock rom if I press the start key all that happens is that it goes into the exercise activity
07:10 CEnnis91 [mbm]: start an activity
07:10 CEnnis91 [mbm]: actual moto activity
07:10 CEnnis91 not am =P
07:10 CEnnis91 then its used to start and stop
07:10 [mbm] I don't really see the harm in breaking that functionality and saying that the app has to be active
07:10 CEnnis91 [mbm]: havent figured out a way to determine if the app is in the foreground
07:11 CEnnis91 unless you know of one
07:11 [mbm] you're not getting this are you?
07:11 CEnnis91 guess not
07:12 [mbm] suppose we hack the exercise app so that after you select an exercise, you don't press START to begin, you press MENU
07:12 [mbm] then we remap the button to be MENU
07:12 [mbm] if you're in the exercise app, the functionality looks the same as it did before
07:13 [mbm] but switch to a different app and suddenly you have a menu key
07:13 CEnnis91 oh you're still on that
07:13 CEnnis91 i wouldnt even know where to begin to add that kind of functionality in smali
07:14 CEnnis91 or java bytecode, whatever its technically called
07:14 [mbm] :P
07:15 [mbm] start button doesn't really provide much global functionality
07:16 CEnnis91 oh wait i just forgot something
07:16 CEnnis91 this is a watch =P
07:17 [mbm] hardly
07:17 CEnnis91 agreed, but designed as one
07:17 [mbm] there's a clock in the corner of my task bar; is my computer a watch?
07:18 [mbm] this thing was designed as an exercise toy
07:18 [mbm] the watch functionality seems almost incidental
07:18 CEnnis91 heh
07:19 CEnnis91 ds2: fwiw, i just thought of a hacky / inefficient way to determine the foreground app if you're that keen on going that route
07:19 CEnnis91 ds2: poll the logs looking at what activity manager does
07:20 CEnnis91 i suppose on a keypress you can dump the log, and look at the last "I/ActivityManager( ####): Displayed " line
07:21 CEnnis91 but this is getting really fucking messy, yet im kinda interested in trying that
07:21 [mbm] eww.
07:21 CEnnis91 yea
07:21 CEnnis91 also just found a flaw
07:22 CEnnis91 BACK wont issue an activity manager intent
07:22 [mbm] better to go through binder and get either the activity state or window manager state
07:22 CEnnis91 can i access binder in shell?
07:22 [mbm] dumpsys activity
07:23 CEnnis91 [mbm]: actually...that would work
07:26 CEnnis91 [mbm]: dumpsys activity | grep -i ".*(top-activity)"
07:26 CEnnis91 ds2: ^
07:27 CEnnis91 heh god this is ridiculous
07:28 ds2 actually it does work globally
07:28 ds2 start a walk
07:28 ds2 go do something else
07:28 ds2 you can tap that button to pause your walk
07:28 CEnnis91 ds2: did you see the dumpsys command?
07:28 CEnnis91 ds2: that way you can see the running activity
07:29 [mbm] ds2: ok, but is that required functionality or can we change the start button to be slightly more context aware?
07:29 ds2 [mbm]: IMO, that is required
07:29 [mbm] also there's another button you all seem to have forgotten about
07:29 CEnnis91 power?
07:29 CEnnis91 or back
07:30 [mbm] keep guessing :P
07:30 CEnnis91 media?
07:30 [mbm] keep guessing :P
07:30 CEnnis91 vol + / vol - .........now just say it
07:30 [mbm] ...
07:31 [mbm] it's not power, start, menu, or volume or back
07:32 CEnnis91 my last two guesses are SEARCH and the touchscreen itself
07:32 CEnnis91 but search is kinda pointless
07:32 [mbm] there's no search button on this thing and I don't mean the touchscreen
07:32 CEnnis91 i give up
07:32 [mbm] CEnnis91: did you get the stock headphones?
07:32 CEnnis91 nope
07:33 CEnnis91 they came with controls?
07:33 [mbm] yep, there's a single button on there
07:33 CEnnis91 play/pause?
07:33 [mbm] yep, but it can be remapped
07:34 CEnnis91 ds2: btw, no matter how much context related you make the code for the keys, there will always be someone or some situation where it will need to be overridden
07:35 CEnnis91 [mbm]: well i guess because theres no speaker, we wont have to worry about losing the media key
07:35 CEnnis91 but idk
07:36 [mbm] I don't really like the idea that each button press it performs a bunch of shell commands to figure out which app has focus :/
07:36 CEnnis91 neither do i
07:36 CEnnis91 i was just toying with the idea basically
07:37 CEnnis91 the only idea im set on is the modifier to swap out the functions of the keys
07:37 [mbm] could do one of thos onscreen button things but have some obscure gesture to trigger it
07:37 [mbm] not really sure how supported that is though
07:38 CEnnis91 meaning there has to be an intent to display it
07:38 CEnnis91 but still
07:38 CEnnis91 the onscreen key is not only ugly but takes up space =/
07:38 CEnnis91 if anything
07:39 CEnnis91 find a way to notify the user of the change
07:39 CEnnis91 led would work
07:39 [mbm] was thinking that the app could remain hidden until there was some activation
07:39 CEnnis91 but then you lose reliable notifications
07:39 CEnnis91 [mbm]: or worst case, kill it/ start it lol
07:40 [mbm] if we remapped the back button to be home, set the home app as button savior, then pressing the back button would pop up an ics style onscreen set of buttons for back home and menu
07:40 CEnnis91 then theres no actual home application
07:41 ds2 shell command sucks
07:41 ds2 there has to be a simple go or no go check in C
07:41 [mbm] CEnnis91: well, they thought of that .. there's a pref in button savior for which app is the "real" home app
07:42 [mbm] so it becomes app -> button savior -> "real" home
07:42 CEnnis91 ds2: fine, make a program in C with a bunch of system(cmd); commands
07:42 CEnnis91 =P
07:42 CEnnis91 ill make*
07:43 CEnnis91 oh
07:43 CEnnis91 thats useful
07:43 CEnnis91 [mbm]: now you do realize button savior is paid right =/
07:43 [mbm] https://play.google.com/store/apps/d​etails?id=com.smart.swkey&amp;hl=en
07:44 CEnnis91 i thogut i remember that being a 7 day trial
07:44 CEnnis91 oh maybe it was another app theyve been using
07:45 [mbm] there are a bunch of those style apps
07:46 CEnnis91 yes, but we need to find one that fits our needs
07:48 CEnnis91 ds2: what about setting up 2 modifiers
07:49 CEnnis91 so you can force which one to use
07:49 CEnnis91 before you hit a key
07:49 CEnnis91 ie - vol up + start = stock keys   / vol down + start = HOME/MENU
07:53 ds2 i have a variant of that
07:53 ds2 need Z's
07:54 CEnnis91 should probably set up a simple app to notify the user of the change
09:15 Snoothy joined #motoactv
10:38 jyx joined #motoactv
16:19 MotoLoco joined #motoactv
16:24 dproldan joined #motoactv
18:17 Snoothy joined #motoactv
19:05 christefano joined #motoactv
19:31 MotoLoco yo
19:33 dproldan hi
19:37 MotoLoco I'm new here (since yeaterday), still waiting on my motoactv to arrive by mail...
19:37 MotoLoco you're happy with your motoactv?
19:57 ds2 greatest thing since sliced bread ;)
20:09 dproldan MotoLoco: yeah,  I like it a lot.  always liked digital watches,  and this is the best at the moment
20:09 MotoLoco Cool
20:10 MotoLoco CAnt wait to get mine...
20:10 MotoLoco so what have you done to customize yours?
20:13 dproldan In my job,  many times I have to get inside factories that won't allow me to go in with a moblie phone,  so I have installed everything I could think of
20:13 dproldan email,  messaging apps,
20:14 Snoothy dproldan: did you even stock porn?
20:14 dproldan uhm,  didn't think of it,  good idea
20:14 dproldan :-)
20:16 MotoLoco hehe
20:16 MotoLoco I guess It'll be great for airplane rides as well...
20:17 Snoothy reminds me.. how do you set airplane mode on this thing?
20:17 dproldan power widget and untick everything
20:18 Snoothy not "true" airplane mode
20:22 dproldan boat browser mini + QuickPic + YouJizz.com   all the porn you'll ever need,  videos work just right
20:29 MotoLoco LOL
20:29 dproldan I haven't finished it yet.  But I have made a small attachment speaker and modified some audio tones
20:29 dproldan so it actually beeps when I receive a message
20:31 dproldan the prototype works fine,  I have ordered a few of these speakers:  http://www.murata.eu/news/en/pr/murata-an​nounces-mass-production-of-worlds-MUR183
20:32 MotoLoco Nice...
20:32 MotoLoco So you open up the hardwarew and wire them to the speaker output?
20:33 dproldan no,  it goes to the audio jack and the speaker is laying on the watch band
20:33 dproldan let me take a pic
20:36 dproldan https://picasaweb.google.com/11106​7582235558199450/MotoACTV_speaker#
20:37 dproldan and the mic accessory  :-)
20:37 dproldan https://picasaweb.google.com/111067​582235558199450/MotoACTVMicrophone
20:37 [mbm] dunno why they call it airplane mode, that speech that they give you on airplanes about turning off electronics is so that you put the damn things away and pay attention
20:38 dproldan yep
20:39 dproldan I'm planning on using that speaker from murata,  enclose it in a black encapsulant...
20:40 dproldan there's one 15x13x1 mm that's should fit perfectly over the watchband
20:40 Quietlyawesome94 joined #motoactv
21:02 christefano joined #motoactv
21:20 MotoLoco COOL!
21:21 MotoLoco wow that mic accessory is really nicely done!
21:22 MotoLoco +1
22:01 dproldan night
22:21 MotoLoco nighty night
22:45 PhoenixMage joined #motoactv
22:47 PhoenixMage Hi is there a wiki or something for rooting, what can be done, etc with the motoactv?
22:47 PhoenixMage \Doesnt seem to be an entry in the xda dev wiki
22:48 [mbm] http://motoactv.wikispaces.com/
22:50 PhoenixMage Thanks, bought a 16Gb and it arrived today
23:09 ds2 [mbm]: heard you got hold of the accel data?
23:12 [mbm] http://wiki.opticaldelusion.org/wiki/Motoactv
23:49 PhoenixMage Is there anything yet that lets you get email, fb alerts, etc yet?

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