Camelia, the Perl 6 bug

IRC log for #motoactv, 2012-05-10

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

All times shown according to UTC.

Time Nick Message
03:17 * ds2 does the happy dance
03:17 ds2 sending a home key works as expected!
03:17 ds2 start+music seems to cause extra dialog
03:36 CEnnis91 ds2: yea i got key combinations working last night lol
03:36 CEnnis91 but the power key doesnt register
03:37 ds2 power key registers
03:37 ds2 it is on a different device
03:37 CEnnis91 huh?
03:37 ds2 CEnnis91: mind resummarizing it? my overnight log had one channel with 7hours of continuous join flood :(
03:37 ds2 how are you catching it?
03:38 CEnnis91 in init you can create a service that is registered with key input
03:38 ds2 Ohh like that
03:38 CEnnis91 when that input is detected i will run a service that will start the intent to the activities
03:38 ds2 I wrote a program to read /dev/input/eventN
03:38 CEnnis91 did you check if it effects battery life?
03:38 ds2 power key and buttons are in 2 different input devices
03:39 ds2 I don't see why it should.. it spends 99% of its time block on a file descriptor
03:39 ds2 are you looking at single keys or chords of them?
03:50 ds2 wheee got both menu/home/music/start/vol+/vol-/back/power all available as keys!
04:11 CEnnis91 ds2: i can do single and chords
04:11 CEnnis91 nice, just not sure how the polling will affect battery life
04:43 Quietlyawesome94 joined #motoactv
05:37 ds2 CEnnis91: what's the trick to specify a chord in init.rc?
05:37 CEnnis91 http://www.droidforums.net/forum/bugless/52854-​how-make-script-run-using-hardware-keys-2.html
05:38 CEnnis91 scroll down a bit
05:38 ds2 let see if this is easier then what I am doing
05:45 ds2 on this platform, which init.rc it is?
05:46 ds2 is it
05:46 ds2 i know goldfish is emulator
05:48 CEnnis91 it can be anywhere actually
05:48 CEnnis91 init.rc init.*.rc
05:48 CEnnis91 just not goldfish
05:49 CEnnis91 i put mine in init.rc
05:49 ds2 init.rc is not used if there is a more specific one
05:49 CEnnis91 no it is
05:49 ds2 okay, then there isn't one for this platform, I assume?
05:49 CEnnis91 things will just overwrite it
05:49 ds2 really? on other systems, init.rc isn't used if init.platform.rc exists (AFAIK)
05:49 CEnnis91 nah
05:49 CEnnis91 [mbm]: can confirm if he's around
05:50 ds2 'k
05:50 CEnnis91 init.rc is more android standard, then you add in the extras in the init.<platform>.rc
05:50 CEnnis91 specific to the platform
05:50 ds2 one thing I suspect that cannot be one in init.rc is filtering of existing keys
05:51 CEnnis91 what do youmean
05:51 ds2 what I have done with the music key is - if it is a chord or a quick tap, ignore it. if it is held down, process it as a real music key press since pressing htat key brings up a stupid box about no antenna
05:51 ds2 for me - menu + start = home; vol+ and vol- gives me menu
05:52 CEnnis91 vol+ and vol- combo dont seem to work
05:52 [mbm] hmm?
05:52 ds2 works for me at my level
05:53 CEnnis91 ds2: yea, you're polling the actual input, i would hope that works lol
05:53 ds2 debating moving home to Music + volup and menu to Music + voldown
05:53 ds2 yes I am.. I am more familiar with the kernel
05:53 christefano joined #motoactv
05:54 CEnnis91 without proper source kernel isnt exactly the best method =(
05:54 ds2 i'll leave it running and see if there is a noticeable diff in bat life
05:54 ds2 what do you mean?
05:54 CEnnis91 ds2: and those key combos will be similar to what im doing
05:54 CEnnis91 the init method wont affect battery life
05:54 ds2 neither will my method
05:54 CEnnis91 nice
05:54 ds2 as long as I am blocked in the kernel
05:54 [mbm] init.rc is the generic stuff, init.*.rc is the platform specific extensions/fixups
05:55 ds2 [mbm]: so they are overlaid?
05:55 [mbm] yep
05:55 CEnnis91 init.rc gets read first
05:55 ds2 cool. I learned something new
05:55 CEnnis91 you can actually have init files outside the boot.img
05:55 ds2 how is that done?
05:55 ds2 boot.img is becoming a hassle ;)
05:55 CEnnis91 source?
05:55 CEnnis91 one  sec i have to check on that
05:55 [mbm] CEnnis91: you thinking symlink?
05:55 CEnnis91 no
05:56 CEnnis91 [mbm]: cm6 started it =)
05:56 CEnnis91 no on seemed to notice
05:56 CEnnis91 one*
05:56 ds2 hmmm
05:56 ds2 my trick is to have a service in init.rc pointing to a shell script in /system and modify that to get around it
05:57 [mbm] CEnnis91: doesn't sound like an aosp thing :P
05:57 CEnnis91 it is
05:57 CEnnis91 "import"
05:57 CEnnis91 cm does it this way
05:58 CEnnis91 import /system/etc/init.local.rc
05:58 CEnnis91 its quite useful actually
05:58 CEnnis91 you can change init bits on the fly
05:58 ds2 ohhhhh nice
05:58 [mbm] ah, cool.
05:58 ds2 I must remember this
05:58 ds2 I much rather not have this stupidity with the ramdisk though
05:59 [mbm] when you say change them on the fly, do you need to HUP to get init to reread the file?
05:59 ds2 there are better ways of getting the recovery and other modes without it
05:59 CEnnis91 HUP?
06:00 [mbm] kill -HUP ...
06:00 CEnnis91 not sure, i always rebooted to take effect
06:00 [mbm] general way to signal to a program that it's supposed to reread the config files
06:00 CEnnis91 because it's always read once
06:00 [mbm] ah
06:00 CEnnis91 but
06:00 CEnnis91 thinking about it
06:00 CEnnis91 you can probably create a loop service to reread it
06:01 ds2 now that I got a way to launch apps... next step is to find a decent mini offline mapping program!
06:02 [mbm] ds2: hmm, it already has a set of offline maps on the device that the exercise program uses for gps tracking .. would be nice if someone hacked that and created just a generic map app
06:03 ds2 yes it would
06:04 ds2 got to figure out the other bits of the HW
06:04 ds2 [mbm]: how much into the Nook's are you? noticed you get referenced in that stuff too
06:05 * [mbm] rooted the nook color the weekend it first came out
06:05 ds2 from what I heard, that part is a no brainer
06:05 ds2 ;)
06:06 ds2 they left boot from SD enabled
06:06 [mbm] well, thing boots from sd card
06:06 ds2 but have you done anything else with it?
06:06 [mbm] but getting an sd card properly formatted and building a bootloader and kernel for an unknown device was a bit of a pain
06:06 ds2 eh?
06:06 [mbm] lot of blind debugging there and generic settings
06:07 ds2 that is a standard TI format used for all their devices
06:07 [mbm] not like they posted gpl sources at the time :P
06:07 ds2 kernel and bootloader, I'd agree with you
06:07 CEnnis91 [mbm]: is readlink a good way to get the full path of a file
06:07 CEnnis91 (seems like the best way ive found so far without using find and ls)
06:07 [mbm] ds2: yeah, but you need to mess with the disk geometry for it to work
06:08 ds2 [mbm]: yes... that part is in all the boot from beagle/panda board pages ;)
06:09 [mbm] I also found out that when the device is booted and acting as an sd card reader it's actually showing you mmcblk*p1 instead of mmcblk* itself
06:09 ds2 doh
06:09 [mbm] so wasted a bunch of time messing around with the formatting before I discovered that I was creating a partition table inside a partition
06:09 ds2 reason I am asking is I am tackling the NST
06:10 ds2 heh
06:10 [mbm] tbh, once it was rooted the channel got taken over by cm fanboys who quckly put cm on it and I left
06:11 CEnnis91 [mbm]: droid?
06:11 ds2 oh so that's the history
06:11 ds2 no interest in CM
06:11 [mbm] CEnnis91: nook color
06:11 CEnnis91 [mbm]: ah
06:12 CEnnis91 [mbm]: anything look strikingly wrong here? http://pastebin.com/RTHEg1Kh
06:12 [mbm] ds2: cm has become a religion :/
06:12 CEnnis91 ds2: i most certainly love cm
06:12 ds2 I don't see the point of CM
06:12 CEnnis91 ds2: but you'll notice i dont try to put it on EVERY device ;)
06:13 CEnnis91 ds2: there are alot of features that are useful
06:13 ds2 it is just as a bad spyware wise
06:13 CEnnis91 nah
06:14 ds2 i want alt firmware to do thins I want to do and CM doesn't come close
06:14 ds2 like all that crap about putting market in there.
06:14 ds2 don't want google apps on my devices
06:14 CEnnis91 why
06:15 ds2 drains battery
06:15 ds2 spyware
06:15 CEnnis91 thats actually one of the biggest pulls for many people to android
06:15 ds2 it is one of the biggest turn offs
06:16 [mbm] CEnnis91: missing quotation around variables, probably blows up quite spectacularly if the filename has a space
06:16 christefano joined #motoactv
06:16 ds2 I can get better battery life on the actv then on a tablet with the google crap
06:16 ds2 that is untterly and completely absurd
06:16 CEnnis91 [mbm]: hrm didnt test that, ill have to fix thta
06:16 [mbm] ds2: background data
06:17 ds2 [mbm]: yep. that's why I don't want it
06:17 CEnnis91 ds2: you can technically run anddroid without gapps
06:17 CEnnis91 (in turn you can run cm without gapps too)
06:17 ds2 CEnnis91: I do.. I do that quite often... the actv is an example
06:18 ds2 battery life is important enough to me that I am exploring a eInk based tablet
06:18 CEnnis91 bad example =p what about on your phone?
06:18 [mbm] ds2: well, I mean you can turn background data off
06:18 ds2 [mbm]: that actually breaks some things. I tried it once
06:18 CEnnis91 [mbm]: so what? gapps lie in /system so they can do w.e they want -_-
06:18 ds2 and google doesn't honor device policies anyways
06:20 CEnnis91 oh also ds2
06:20 CEnnis91 going back to init
06:20 CEnnis91 ds2: you can setup an init.d if you so wish as well
06:20 CEnnis91 wasnt sure if you explored that yet
06:21 ds2 where is init.d?
06:21 [mbm] CEnnis91: btw, -r is reduntant with cp -a
06:21 ds2 /?
06:21 CEnnis91 ds2: you would add it in
06:21 CEnnis91 cm does it a bit strange in this case
06:22 ds2 I mean where would you add it
06:22 CEnnis91 so ill give you the other way
06:22 [mbm] and what's with the chown?
06:22 CEnnis91 init.rc
06:22 CEnnis91 [mbm]: just in case
06:22 CEnnis91 [mbm]: i had an issue with it actually
06:22 [mbm] CEnnis91: in case what? clearly you're running the script as root or you wouldn't be able to mount
06:23 [mbm] and I don't think you want everything on the filesystem owned by ennis
06:23 CEnnis91 ds2: really you would just "run-parts /system/etc/init.d"
06:23 CEnnis91 or wherever you so choose
06:23 ds2 oh like that
06:24 ds2 that's basically  the sysv stylized version of my hack
06:24 ds2 i run a script and you run directories akin to bsd vs sysv
06:24 [mbm] CEnnis91: umm, run-pats was a cm thing last I looked
06:24 CEnnis91 [mbm]: busybox
06:24 CEnnis91 ds2: so yea, you need busybox included^
06:25 ds2 i can live w/o busybox
06:25 ds2 too dangerous to have that around
06:25 CEnnis91 [mbm]: so in the event i dont own the files, should i just sudo cp?
06:25 [mbm] yep.
06:25 CEnnis91 ds2: want the run-parts binary?
06:25 ds2 nah
06:25 ds2 I am happy with monolithic scripts
06:25 ds2 <-- old bsd fan
06:25 [mbm] CEnnis91: but realistically you should run the entire script as sudo instead of sudoing every individual command
06:26 CEnnis91 i thought of that
06:26 CEnnis91 not sure why i decided on the current method
06:26 ds2 [mbm]: the kernel's fork/exec needs a good work out anyways ;)
06:26 CEnnis91 ds2: but toolbox is so useless =/
06:26 CEnnis91 [mbm]: dont you even include busybox on your devices?
06:26 ds2 CEnnis91: using toolbox won't paint a lawsuit target on me like a busybox installation would
06:26 CEnnis91 (motoactv doesnt count)
06:27 ds2 busybox seriously needs to be avoided
06:27 CEnnis91 ds2: oh you're one of those guys =P
06:27 ds2 uh no
06:27 ds2 busybox has a habbit of sueing people
06:27 [mbm] CEnnis91: yeah, I usually have my own version of busybox .. I hate it when roms install busybox and crap all over the filesystem with symlinks to it
06:27 ds2 even the author are abandoning it cuz of that crap
06:28 ds2 authors
06:28 [mbm] ds2: huh?
06:28 CEnnis91 really?
06:28 CEnnis91 isnt it gpl?
06:28 [mbm] it is
06:28 * [mbm] used to know mjn3 and anderse
06:28 ds2 [mbm]: the whole lawyers working for free to enforce the GPL has gone seriously arwy
06:29 [mbm] openwrt sent them so many damn patches that for a while they would just idle in the openwrt channels
06:29 CEnnis91 My company was distributing BusyBox binary without the source. We are contacted by users asking for the source, and we don't have it. Are we in trouble?
06:29 CEnnis91 ^ looks like if you dont show source you're in trouble
06:29 CEnnis91 and you start distributing of course
06:29 ds2 landley is suppse to be working on a replacement product
06:29 ds2 CEnnis91: no, the problem is they sue first before letting people comply
06:29 [mbm] ds2: well, there were a bunch of gpl violations regarding the use of busybox and they were rather trigger happy in enforcing them
06:29 CEnnis91 ds2: but sue on what grounds? the source issue?
06:30 CEnnis91 or something i missed?
06:30 ds2 and if you respond with a copy of the sources, they demand $$$$$
06:30 [mbm] CEnnis91: companies would use busybox in their firmware and not post any sources
06:30 ds2 CEnnis91: yep... mere threat of lawsuits to extort money
06:30 CEnnis91 *shrug* that doesnt effect me
06:30 ds2 and none of that money is going back into improving busybox so it doesn't improve things
06:30 CEnnis91 so im not worried
06:30 * [mbm] helped them out by pulling apart several firmware images to show gpl violations
06:30 CEnnis91 but i udnerstand why you would boycott them
06:30 ds2 sure it does... you post a image w/busybox it in
06:31 ds2 and forget to execute the exact word of the GPL, you get can get fried
06:31 ds2 cuz it isn't just providing sources. you need to make a written offer
06:31 CEnnis91 ds2: the source of the busybox version i use will be available
06:31 CEnnis91 written offer?
06:31 ds2 CEnnis91: on the same webpage?
06:31 ds2 yep. gpl requires you make a written offer of the sources
06:31 CEnnis91 ds2: i can link it if i need to
06:32 ds2 if you are late, they'll just extort you
06:32 CEnnis91 what do youmean by written offer thou
06:32 ds2 it is rediculous. I am all for providing sources but give folks a chance to comply instead of extorting money
06:32 [mbm] ds2: an individual posting a random rom somewhere? not really; a multinational company shipping millions of products with a gpl violation and suddenly they're interested in suing
06:33 ds2 a statement along the lines of 'this contains GPL software. you are entitled to a copy of the sources. it may be obtained at....'
06:33 ds2 [mbm]: they ahve gone after a lot of people. some deserved it. some didn't.
06:33 ds2 [mbm]: and if they run out of people, they'll probally go after individuals
06:33 CEnnis91 ds2: so if i release a rom containing a busybox version of https://code.google.com/p/busybox-android/ and link that
06:34 CEnnis91 safe?
06:34 ds2 CEnnis91: I donno, I don't want to chance it
06:34 [mbm] I've seen a lot of companies that are absolutely horrible at gpl, some even insisted that they didn't use gpl up until the point the decompiled firmware image was provided for them, upon which it was said to have been done by a 3rd party and they had no knowledge of the gpl
06:34 ds2 there are big companies out there that have explicit orders to not put busybox in any way or form in their stuff
06:35 [mbm] well, actually there are strict orders not to use *any* gpl in big companies
06:35 ds2 [mbm]: those deserved it. some just didn't know. all they needed was a pointer saying ... hey, you got gpl in there, please post it.
06:35 ds2 [mbm]: that is hard to do in a Linux product
06:36 CEnnis91 so wait, does all gpl require source to be posted?
06:36 [mbm] I've even heard of companies firing people who worked on open source because they had visibility into gpl sources and are contaminated .. ie, they've seen how a particular problem was solved in gpl and they might accidentally base the proprietary software on a similar routine
06:37 CEnnis91 [mbm]: wow
06:37 ds2 yes
06:37 [mbm] CEnnis91: gpl basically says that if you're given a binary you can ask for sources and you shouldn't get hassled for any more than the cost of physically shipping you a machine readable disk of some sort
06:37 ds2 and GPLv2 is slightly different from GPLv3
06:37 ds2 [mbm]: I don't think v2 requires machine readable, IIRC
06:38 [mbm] most companies post stuff on their websites, some are assholes and will take their sweet time shipping you a cd
06:38 [mbm] ds2: iirc that's always been there
06:38 [mbm] major shift from gplv2 to gplv3 was the tivo clause
06:39 ds2 there are more details then that to complicate things :(
06:39 [mbm] the concept that something can be open sourced like the linux kernel but the particular implementation on the device be signed
06:39 [mbm] so gplv3 went and said that absolutely everything needed to rewrite the gpl pieces be included
06:40 ds2 'be replaceable'
06:40 [mbm] with only minor exceptions for things like the compiler, if you used a standard version of gcc you didn't need to include the gcc sources
06:41 [mbm] companies are absolutely dead set against gplv3 because it's extremely viral
06:41 ds2 there is apparently some issue with the GPLv3 gcc's
06:41 * CEnnis91 always gets lost in all the legal specific dialog..
06:41 [mbm] include one piece of gplv3 in the firmware and suddenly you have to release everything below that that builds your firmware image
06:42 [mbm] so the concept of signing the firmware is out of the question, or at the very least pointless since v3 would require you to post your signing keys
06:42 ds2 so fork at the last v2 release ;)
06:43 [mbm] yep
06:43 CEnnis91 and then release nothing
06:43 ds2 [mbm]: you deal with this stuff in your day job?
06:43 [mbm] ds2: yeah, all the time
06:43 ds2 [mbm]: what do you do in your day job?
06:43 * [mbm] works for $big_company writing firmware
06:44 ds2 oh heheheh...
06:44 ds2 in the same boat myself
06:44 [mbm] honestly most of te time we're assholes that deserve to be sued because the management has absolutely no clue when it comes to gpl
06:45 CEnnis91 ds2: in case you havent noticed, [mbm] likes to keep most information about himself off the internet
06:45 ds2 CEnnis91: that is very understandable
06:45 ds2 for all I know I met him in person before ;)
06:45 [mbm] CEnnis91: makes it easy to slander the company if I don't actually name the company ;)
06:45 CEnnis91 hehe, well his name is available
06:45 CEnnis91 [mbm]: indeed it does
06:45 kr1t1c4l [mbm]: also you covered the GPL issue quite alot with OPenWrt
06:46 [mbm] otherwise I'd be getting a visit from HR
06:46 ds2 heheheheheeh
06:46 CEnnis91 holy shit it feels like im adding too many quotes to this script
06:47 CEnnis91 but they need to be there
06:48 kr1t1c4l ds2: you wouldn't know - there is only one photo of him on the web
06:49 ds2 hmmm
06:49 [mbm] I also don't need my association with any specific company to be seen as an endorsement
06:49 [mbm] or worse, tech support
06:49 kr1t1c4l :D
06:49 ds2 haha
06:51 [mbm] CEnnis91: well, according to google I'm a retired navy captain, associated with the cia and fox news
06:52 CEnnis91 also you're a politician who died in 2009
06:53 [mbm] can't seem to find any photos via google
06:54 CEnnis91 it's in bing
06:56 [mbm] *shrug* not seeing any
07:00 kr1t1c4l keywords are your friend
07:01 kr1t1c4l google mike baker linux photo no 1
07:01 kr1t1c4l er should read then look at photo no 1
07:03 CEnnis91 http://www.communityconnectnj.com/wp-conten​t/uploads/2012/04/Gas-Siphoning-Pic-640.jpg
07:04 [mbm] wow, CEnnis91 found it
07:05 kr1t1c4l yee hah
07:06 CEnnis91 [mbm]: (when you're root) will 'whoami' always return "root" or will it return "0" in some cases?
07:06 [mbm] depends on what it finds in /etc/passwd
07:08 CEnnis91 [mbm]: is whoami still the best way to go when detecting for root, or would id be better?
07:08 CEnnis91 in a universal sense
07:08 [mbm] whoami it probably fine
07:09 [mbm] also you might be interested in this stupid trick - echo ${fsimg%%.*}
07:09 CEnnis91 man whoami -- same as id -un
07:10 CEnnis91 huh? doesnt return anything
07:11 [mbm] well, helps if you have the $fsimg var set
07:11 CEnnis91 i did that =P
07:12 CEnnis91 oh there it is
07:12 CEnnis91 i need to learn that shorthand code
07:13 CEnnis91 i dont script enough however
07:13 [mbm] it's all in the man page that nobody ever reads
07:14 CEnnis91 oh i know where to find it
07:14 CEnnis91 its just never put into use, so ill forget it =/
07:16 [mbm] other thing you should do is set a trap so that if something fails the script just aborts
07:16 CEnnis91 i saw that you used that in sbf_flash; dunno what trap is/does
07:16 CEnnis91 (im guessing what you just descibed)
07:17 CEnnis91 heh: No manual entry for trap
07:21 CEnnis91 so how to trap work, does it just jump to that whenever an error occurs?
07:22 CEnnis91 and why 0 1 2 3 15 -- are they just the most common error codes?
07:23 [mbm] those are the ones used to clean up shit if someone hits ctrl-c
07:23 [mbm] kill -l
07:23 ds2 signal numbers
07:23 ds2 man 7 signal
07:24 CEnnis91 hmm cool
07:24 CEnnis91 [mbm]: so just set the command/function for when that happens and im done?
07:24 [mbm] trap just takes a bunch of signals and what to do if they hit
07:25 [mbm] 0 is a special one which means when the shell (script itself) quits
07:26 [mbm] other way to do it is 'set -e'
07:27 [mbm] which will abort the script if anything returns a non zero '$?'
07:59 CEnnis91 [mbm]: http://pastebin.com/x4HbPD8Y that should be the final version
08:01 [mbm] mktemp
08:03 CEnnis91 how come you didnt use that in sbf_flash? - mac?
08:04 [mbm] was trying to cut down on the number of commands the script executed
08:06 [mbm] script looks good enough, not going to bitch over every minor optimization
08:08 CEnnis91 yea, i know theres always room for improvement
08:09 CEnnis91 mktemp makes a file?
08:09 CEnnis91 ah -d
08:10 CEnnis91 two useful commands learned tonight, good enough for me
08:10 CEnnis91 3 -- readlink
08:48 [mbm] hmm .. nst has multitouch now?
13:03 * Snoothy finally got his actv
13:43 Snoothy joined #motoactv
14:34 Snoothy which fastboot drivers should i use for windows?
14:39 Snoothy nvm, figured
17:34 Snoothy is the media scanner not running on the actv?
19:17 Snoothy Is it possible to set the default launcher on the actv when it's already set?
19:17 Snoothy am start -n com.android.settings/.ManageApplications crashes
19:51 Snoothy am start -n com.android.settings/.ApplicationSettings did the trick
20:07 LocoMoto joined #motoactv
20:07 LocoMoto Hello!
20:07 LocoMoto Anyone here?
20:08 LocoMoto I'm (hopefully) a soon to be happy owner of a Motoactv 8GB
20:08 LocoMoto Just wanted to see if anyone was here
20:09 CEnnis91 yea, we're here
20:12 LocoMoto cool!
20:12 LocoMoto I'm trying to read through the huge thread at XDA
20:12 LocoMoto lot's of reading
20:12 LocoMoto but fun!
20:14 LocoMoto everybody still happy with their motoactvs?
20:28 Snoothy just got mine today
20:30 Snoothy LocoMoto: what are your plans with the actv?
20:30 LocoMoto I'm gonna root it as soon as I get it
20:30 LocoMoto :)
20:30 Snoothy tell me something i don't know :P
20:30 LocoMoto then I'm just going to try to maximize every bit of performance and awsomness from it possible
20:31 LocoMoto I'm gonna keep the apk and moto launcher I think
20:31 LocoMoto the orgiginal moto apks that is
20:32 Snoothy the standard apk's is mostly just a launcher
20:32 LocoMoto yeah, I like the look of it
20:32 LocoMoto I'll probably be running launcher pro aswell
20:32 Snoothy most of the look is just the background
20:32 LocoMoto and home switcher
20:33 Snoothy i've gone with adw launcher
20:33 Snoothy you can hide everything
20:33 LocoMoto nice
20:33 LocoMoto how limited is the storage on the device really?
20:33 Snoothy tho, the notification bar is not of much use
20:33 LocoMoto is the 256MByte the only storage for apps (unless you move em to SD)
20:33 LocoMoto ?
20:34 Snoothy i believe so
20:34 LocoMoto wow.. thats rough
20:34 Snoothy should be plenty?
20:34 LocoMoto but I guess, thats ok as long ass app2sd work or something similar
20:34 Snoothy do you want to install games on it?
20:35 LocoMoto I'll probably install loads of stuff to try em out.. eventually I'll stick to stuff that makes sense on such a small device
20:35 Snoothy like widgets :P
20:35 LocoMoto precisely
20:36 Snoothy i made a custom version of xbmc remote to fit on the actv
20:36 LocoMoto I haven't read the whole thread at xda yet, I'm trucking through it...
20:36 LocoMoto but is there any custom ROMs yet?
20:36 LocoMoto XMBC = NICE
20:36 Snoothy i only know of http://cleardroidroms.com/
20:37 LocoMoto ok
20:37 LocoMoto I was thinking of VLC remote and youtube remote
20:37 Snoothy but you just need to flash adb with fastboot really
20:37 LocoMoto ok
20:38 LocoMoto have you tried youtube remote?
20:38 Snoothy oh, vlc remote is open source too :P
20:38 LocoMoto yeah, you'r an avid programmer I guess?
20:38 Snoothy haven't heard of youtube remote before
20:38 Snoothy i only have 1 year of experience
20:39 Snoothy but it suits my needs :P
20:39 LocoMoto cool
20:39 LocoMoto C#?
20:39 Snoothy android is java
20:39 Snoothy at least in the top layer
20:40 LocoMoto yeah, of course.. stupid of me
20:40 LocoMoto lol
20:41 LocoMoto I haven't really gotten into the android application development thing yet, seems intuitive though
20:41 LocoMoto Anyone been able to change voltage on the CPU and over/underclocking yet?
20:43 Snoothy i think there is some trouble with the kernel atm
20:43 LocoMoto ok
20:44 LocoMoto I mean depending on how it scales up and down with stock kernel, There might be room for battery life improvment
20:52 CEnnis91 LocoMoto: ill be making a custom rom shortly
20:52 LocoMoto Nice!
20:52 LocoMoto Gingerbread I presume... based on stock?
20:53 CEnnis91 yea, theres no reason this device should have AOSP roms
20:53 Snoothy CEnnis91: does it really have to be a button which takes you to stock launcher? can't it be an app(icon)?
20:53 CEnnis91 imo
20:53 CEnnis91 Snoothy: sure it can be an app
20:53 Snoothy am start -n com.android.launcher/com.a​ndroid.launcher2.Launcher <- gets the stock launcher
20:54 LocoMoto hmm
20:54 LocoMoto long press of start button maybe?
20:55 LocoMoto so what will you first improvments be for your ROM.... Do you have a lot of ideas?
20:57 CEnnis91 more android-like functionality
20:57 CEnnis91 moto hid alot of shit
20:58 LocoMoto ah, ok...
20:58 Snoothy quite annoying they screwed settings
20:58 LocoMoto since there is no dedicated section on xda forums yet, is there another forum that you guys use?
20:59 CEnnis91 http://forum.xda-developers.​com/showthread.php?t=1534073 and http://forum.xda-developers.​com/showthread.php?t=1399692 are it
21:00 LocoMoto yeah, the last one I'm reading through right now
21:01 LocoMoto seems to go on forever
21:01 CEnnis91 yep
21:01 CEnnis91 that's why i rarely read it =)
21:01 Snoothy a lot of stuff is repeated
21:01 CEnnis91 welcome to xda
21:03 CEnnis91 most of the stuff i do will get passed in here
21:03 CEnnis91 and then ill just release stuff
21:04 LocoMoto yeah, Would it be helpful to have a separate fourm until xda gives us motoactv its own section? I could throw a forum together
21:06 CEnnis91 you mean outside xda?
21:06 LocoMoto yeah, just to get some order to the chaos
21:07 CEnnis91 that's already been suggested, didn't really take
21:07 LocoMoto ok...
21:07 LocoMoto I can see that
21:07 LocoMoto that's usually the story
21:07 CEnnis91 yea, thanks for the offer, but no use wasting your time
21:07 LocoMoto hehe got it
21:09 LocoMoto the main thread is 188 pages long, it's annoying to search back and forward after posts you know you read, and files you seen posted in the massive thread somewhere
21:12 Snoothy have you seen the wikis?
21:17 Snoothy perfect. now i have an app that seamlessly transitions to stock launcher
21:18 Snoothy now i just need the motoactv icon
21:23 Snoothy done
21:24 LocoMoto nice
21:24 LocoMoto I want my motoactv now!
21:24 LocoMoto :D cant wait
21:24 LocoMoto ok, Now I really need to go to bed, work tomorrow
21:25 LocoMoto but tomorrow night it's nerd time
21:25 LocoMoto do you have an URL for the wikis?
21:26 Snoothy http://motoactv.wikispaces.com/
21:26 LocoMoto ah
21:26 LocoMoto yes, seen it
21:26 LocoMoto :)
21:27 CEnnis91 [mbm]: is there a better way to execute this: $(mke2fs -F -T "$fstype" "$fsimg" 1>&2) 2> /dev/null
21:28 CEnnis91 errr $(mke2fs -F -T "$fstype" "$fsimg" 2>&1) 2> /dev/null
21:30 [mbm] umm wtf is with the $() there?
21:34 LocoMoto ok, guys, nice chatting with you. I'm off to bed
21:34 LocoMoto gnight!
21:39 CEnnis91 [mbm]: it didnt work when i excluded that
21:43 [mbm] well, $() means to take the resulting output and parse it as part of a new command
21:43 [mbm] what exactly are you trying to do? just hide all output?
21:43 CEnnis91 yep
21:43 christefano joined #motoactv
21:43 CEnnis91 doesnt $() create a subshell
21:43 [mbm] no, that's ()
21:44 CEnnis91 oh
21:44 CEnnis91 well either way, yes im trying to hide all the output
21:44 CEnnis91 and mke2fs likes to send shit to both stdout and stderr
21:44 [mbm] mkfs >/dev/null 2>&1
21:45 CEnnis91 it's not read in the order it's written?
21:45 [mbm] although a better trick is to use exec to rewrite the fds
21:46 CEnnis91 isnt exec and $() essentially the smae thing too?
21:46 [mbm] nope
21:47 CEnnis91 hmmm so with the "mkfs >/dev/null 2>&1" is it that the entire line is parsed first?
21:47 CEnnis91 because reading left to right doesnt it say, stdout to null, and then stderr to stdout?
21:47 [mbm] I'm being lazy, swap mkfs for the full mke2fs ...
21:48 CEnnis91 yea
21:48 CEnnis91 i understood that
21:48 CEnnis91 it works fine
21:48 CEnnis91 i was concerned about the order of the redirection commands
21:48 [mbm] and the thing about 2>&1 is that the "1" refers to the current stdout, not where you redirect it to later
21:49 [mbm] so the order is important
21:49 CEnnis91 hmmm
21:49 [mbm] you might like this better -
21:50 [mbm] exec 3>&1 >/tmp/log 2>&1
21:50 [mbm] put that at the start of the script
21:50 [mbm] all output will go to the log, unless it's somethig like echo "test" >&3
21:51 [mbm] saves you from having to put >& stuff on every command
21:51 CEnnis91 what fd is 3?
21:51 CEnnis91 i thought it was 0/1/2
21:51 [mbm] :D
21:51 [mbm] see how the exec starts with 3>&1 ?
21:52 [mbm] that invents a 3
21:52 CEnnis91 neat
21:52 CEnnis91 can that only work with numbers?
21:52 [mbm] yeah
21:52 CEnnis91 or can i do MY_FD>&1
21:52 CEnnis91 oh
21:53 CEnnis91 should i close that fd at the end of the script?
21:53 [mbm] nope
22:03 CEnnis91 there we go that's the final http://pastebin.com/TaNkPZ7a
22:18 _ilbot joined #motoactv
22:18 Topic for #motoactv is now MotoACTV Development. Channel logs at http://irclog.perlgeek.de/motoactv/
22:18 [mbm] oh, depends on the shell
22:18 [mbm] ERR is a bash thing
22:18 [mbm] and /bin/sh isn't always the same as /bin/bash
22:19 CEnnis91 yea ive noticed that
22:19 CEnnis91 tried to keep this one /sh
22:21 [mbm] well, there's also a 'set -e' which will end the script immediately if any command fails
22:22 CEnnis91 would it be bad practice to do this
22:22 CEnnis91 trap "rm -r $tmpdir" 0 1 2 3 15
22:22 CEnnis91 trap "echo 'Something went wrong! Read $tmplog for details.' >&3; exit 0" ERR
22:22 CEnnis91 so the two traps are linked, but im technically sending that script ended successfully
22:23 [mbm] not sure that it would run the first trap in that situation
22:24 CEnnis91 it does
22:25 [mbm] cool.
22:25 CEnnis91 you didn't answer the question thou, is it a bad practice to link them that way
22:25 [mbm] looks fine to me
22:26 CEnnis91 also, set -e wont let me run any command in the event of an error right?
22:26 CEnnis91 and i should probably unset it when im done?
22:27 [mbm] no point in unsetting it, ends with the script
22:27 CEnnis91 okay
22:28 [mbm] you can sort of emulate a trap err with a trap 17
22:28 [mbm] not quite the same though
22:29 CEnnis91 17 = SIGCHLD?
22:29 [mbm] right
22:29 CEnnis91 meaning what?
22:30 CEnnis91 looks like child, but cant figure out what htat means
22:30 [mbm] any time you run a command from your script it becomes a child, when that command exits you get a sigchild
22:31 [mbm] trap '[ $? -ne 0 ] && { echo error; exit 1; }' 17
22:31 [mbm] $? is the return value from the command
22:31 [mbm] problem is that if you typo the command name or it's not found, there's no child
22:32 CEnnis91 so it would really only be emulated best in a script that has been proofread i suppose
22:32 CEnnis91 and you would have to check for all binaries
22:33 [mbm] hmm
22:33 [mbm] just had a different idea
22:33 Quietlyawesome94 joined #motoactv
22:34 [mbm] if you had a variable called $done
22:34 [mbm] then trap 0 could check to see if $done was set
22:34 [mbm] or if the script exited because of set -e
22:37 CEnnis91 wait, you can still trap after set -e?
22:38 [mbm] looks like it still runs the trap 0
22:40 CEnnis91 thats odd
22:40 CEnnis91 set -e runs when it exits with a non-zero status, and returns a zero status
22:40 [mbm] not really
22:40 CEnnis91 is the non-zero status saved somewhere?
22:40 CEnnis91 $?
22:40 [mbm] set -e is for child processes
22:41 CEnnis91 oh
22:41 [mbm] and yeah, child return value is $?
22:42 Larry94 joined #motoactv
22:49 CEnnis91 wow, okay i just realized the usefullness of this compression improvement
22:49 CEnnis91 idk i didnt see it before
22:50 CEnnis91 -rw-r--r-- 1 ennis ennis 176M May 10 18:46 preinstall.img
22:50 CEnnis91 -rw-rw-r-- 1 ennis ennis 162M May 10 18:49 stock-MA-166-N16.zip
22:50 CEnnis91 -rw-r--r-- 1 ennis ennis 156M May 10 18:46 system.img
22:56 [mbm] heh
23:01 CEnnis91 wow moving this stuff to my ext harddrive during the wipe really fucked up my perms on this
23:07 Snoothy why didn't anyone tell me that the actv supports bt dun from stock? ._.
23:08 CEnnis91 CONGRATULATIONS YOU PASSED THE TEST!
23:09 CEnnis91 i havent really touched bt on this tbh
23:09 Snoothy it comes with the notification setup :P
23:09 CEnnis91 something i cant configure sadly
23:09 CEnnis91 no moto device that supports it
23:09 Snoothy ?
23:10 Snoothy the moto app supports all phones now
23:10 CEnnis91 oh that
23:10 CEnnis91 yea i didnt isntall that yet either lol
23:10 Snoothy xD
23:10 * CEnnis91 wonders if the motoapp will run on the motoactv
23:10 CEnnis91 appcetion
23:10 Snoothy let's try
23:12 CEnnis91 huh
23:12 CEnnis91 [mbm]: what was the last version number you remember seeing?
23:12 CEnnis91 im seeing a 5.6.24
23:13 CEnnis91 https://rsddownload.motorola.com/download/M​R6.12_SW_Upgrade_Release_Notes_MOTOACTV.pdf
23:13 CEnnis91 fuck that im still using the 1.6.6 as the stock images and im not making anymore
23:19 Quietlyawesome94 joined #motoactv
23:20 Quietlyawesome94 joined #motoactv
23:29 CEnnis91 ummm...why am i getting available disk space = 0 and total = 0 on the motoactv
23:29 Snoothy CEnnis91: my motocast reports a new version named "MA 1.6.7 N8"
23:29 CEnnis91 yea i know about 1.6.7
23:29 CEnnis91 oh there it goes, detecting fine now
23:29 CEnnis91 Snoothy: 1.6.7 removed the golf app if you missed it
23:30 ds2 doesn't sound like there is anything useful in these upgrades
23:30 CEnnis91 ds2: 1.6.6 will be better then the one you've been working off of
23:30 Snoothy i don't think i have the golf app
23:30 CEnnis91 not by much
23:30 ds2 CEnnis91: what is better? battery life or?
23:30 CEnnis91 probably a little better then
23:30 CEnnis91 there*
23:31 CEnnis91 but it has the golf app accessible
23:31 CEnnis91 stock
23:31 ds2 oh
23:31 CEnnis91 like i said, not by much
23:31 ds2 doesn't seem like a useful upgrade then
23:31 CEnnis91 im sure it has a few improvements elsewhere
23:31 ds2 much rather spend time finding a offline mapping prgram that works
23:32 CEnnis91 thanks google drive but i dont care if you dont scan the file i just uploaded for viruses
23:32 Snoothy looking in the app list, there is a map provider
23:32 ds2 who cares about virii
23:32 Snoothy not sure what it does
23:32 ds2 waste of time and energy
23:32 ds2 Snoothy: the stock one?
23:33 Snoothy yea
23:33 ds2 donno of a way to browse with it
23:33 ds2 unless there is a latent intent
23:33 Snoothy and motocast says it has 1.3gb of maps stored
23:33 ds2 they get used with the sports activities...like tracking where you walked and displaying it
23:34 Snoothy but it's only preloaded with USA maps xD
23:34 ds2 lucky to be in the US I guess ;)
23:36 CEnnis91 [mbm]: im sure you'll find something else that can be done to this but finally done with the 16gb stock fxz
23:36 CEnnis91 https://docs.google.com/open?i​d=0B_0QZNUQIPfAMzA4ZUtEMUltdms
23:36 CEnnis91 ill have to make a proper link later
23:37 Snoothy weird.. the actv doesn't reload the app drawer sometimes
23:37 CEnnis91 Snoothy: yea we havent figured out what's up with that yet
23:37 Snoothy i'm using adw launcher atm
23:38 Snoothy updates on reboot tho
23:38 CEnnis91 oh
23:38 CEnnis91 that's strange then
23:38 CEnnis91 if anthing just kill the app
23:42 CEnnis91 heh, what do you know the triple press actually works
23:43 Snoothy it would be cool if you could bind them to apps
23:43 CEnnis91 i ca
23:43 CEnnis91 can
23:43 Snoothy oo
23:43 CEnnis91 i have yet to figure out what the best way is thou
23:43 CEnnis91 i dont want to lose functionality =/
23:43 Snoothy can you set them through a config app?
23:43 CEnnis91 no
23:44 CEnnis91 low level to set them
23:44 Snoothy it has to be flashed?
23:44 CEnnis91 might make home double tap start
23:44 CEnnis91 because double tapping start does nothing useful
23:45 Snoothy what does the normal start do anyway?
23:45 CEnnis91 jumps to a workout
23:45 CEnnis91 actually
23:45 CEnnis91 that shuld probably be menu
23:45 CEnnis91 because i cant hack menu input as much as i could with home
23:45 CEnnis91 home has an intent i can call
23:45 CEnnis91 menu does not
23:45 Snoothy a dedicated button to workout is silly, how many times are you going to use that per day?
23:46 CEnnis91 it would probably have to be
23:46 CEnnis91 start = menu
23:46 CEnnis91 double tap start = activity
23:46 CEnnis91 but
23:46 CEnnis91 the start command also can start / stop workouts =/
23:46 CEnnis91 so if i remap, you basically lose that function
23:46 CEnnis91 unless there is an intent that starts/stops
23:47 Snoothy i guess adb would show the intents?
23:47 Snoothy it has to be intents for it to work globally?
23:49 CEnnis91 intents are just how android calls activities
23:49 CEnnis91 but they can be used in cmdline form
23:49 CEnnis91 using am
23:49 CEnnis91 (activitymanager)
23:49 Snoothy yea
23:50 Snoothy i just realised that workout stuff is inside the launcher, so you never leave the "app"
23:50 Snoothy so it may or may not be an intent
23:50 CEnnis91 hmmm
23:50 CEnnis91 <action android:name="com.motorola.​android.FITNESS_KEY_TOGGLE" />
23:50 CEnnis91 <action android:name="com.motorola.an​droid.FITNESS_KEY_LONG_PRESS" />
23:50 CEnnis91 not sure how receiver intents are used thou
23:50 CEnnis91 may have to ask mbm for that
23:51 Snoothy what activity tag are those in?
23:52 CEnnis91 go to about line 130 http://pastebin.com/tDeLq903
23:53 CEnnis91 but ill be back later
23:54 Snoothy looks like you could just fire the toggle
23:54 Snoothy i can test that real quick
23:54 Quietlyawesome94 joined #motoactv
23:55 CEnnis91 wonder if theres a better way to hack the keymap
23:59 ds2 success!

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