yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] redeyedjedi:
Brilliant! Then adjusting cap value would also adjust time delay accordingly.

---------- Post added at 11:25 AM ---------- Previous post was at 11:17 AM ----------

The dvb loading script you use is probably in init.d correct???

After a reboot this script runs, so it sets up the dvb tuner...but that script doesn't run again after screen off/screen on.

You need to make a copy of it and place it in /data/ then after screen on..... you would enter in terminal "./data/path/to script/loaddvb.sh

Of course I would recomend making a gscript shortcut, or using tasker to automate this....but you can have TV again without rebooting.

To the other issue...power event manager is activated by usb host mode. For regular tablet use....go to advanced settings > wakelock blocker and kill what you don't want. Same effect.

---------- Post added at 11:28 AM ---------- Previous post was at 11:25 AM ----------

YES! You can do more than make smoke! :good::laugh::victory:
[Nexus 7 Android Development] michiil:
Yes i ment in paralell (: its pretty hard for me to write somethin technical in english (:

Had a lot of fun blowing up caps when i was a apprentice (:

i attached the circuit for you guys. i put the diode d1 so you dont supply anything else but the relay with the cap.
[Nexus 7 Android Development] dakjones:
are most of you guys using powered USB hubs for fixed car installs? I'm going 12v to 4.2 amp dual port adapter. My tablet, USB hub and DAC are getting power from the power lead on my otg y cable. The tablet is loosing power faster than its receiving it. What's the recommend setup here? Do I need to go to a dual 12v and use like a DC to ac converter to power the hub and its devices? Surly there is a better way. Advice on configuration and supporting hardware would be much appreciated.

Thanks
[Nexus 7 Android Development] gregthomas129:
My setup is the same as yours. I have one 5 amp charger which charges my tablet and powers my hub and anything plugged into the hub.

What all is plugged into your hub? When sizing your power supply, you need enough current for 2 amps to the tablet + .5 amps for the hub + .5 amps for every device plugged into the hub.

Look at your battery stats on your tablet. At the top does it say USB Charging? It should say AC Charging if your system is set up correctly.
[Nexus 7 Android Development] dakjones:
Battery stats do say AC power. All I have plugged into the hub is a flash drive and a Berhinger 202 DAC.
[Nexus 7 Android Development] gregthomas129:
Does it gain any charge at all while it's charging? Or is it just losing too much charge while it's off?

---------- Post added at 05:40 PM ---------- Previous post was at 05:36 PM ----------

Has anybody used the dsp audio manager? I'm not sure it's working on my setup.
[Nexus 7 Android Development] dakjones:
No it doesn't gain. It looses around 1% every 30 minutes or so. I have firm sleep and fast charge set but I still loose like 15%-20% over night.
[Nexus 7 Android Development] gregthomas129:
Wow... 15 to 20% overnight is WAY too much! I lose 2 to 3%. You got an app that's draining your battery.
[Nexus 7 Android Development] dakjones:
I don't have too many apps on it and I thought firm sleep was supposed to take care of that?
[Nexus 7 Android Development] gregthomas129:
The only other thing i can suggest is reflashing. I have had similar problems related to a broken ribbon cable in my wife's in dash set up, but it would only show USB Charging.

---------- Post added at 11:45 PM ---------- Previous post was at 11:44 PM ----------

Do you have any suggestions as to the capacitor and resistor values?
[Nexus 7 Android Development] papinist:
I think my setup beats all records this weekend: parked the car friday at 6 pm, used on sunday at 7 pm, nexus still has battery at 100% :cool:

DSP audio manager does not work for me too. I'm using Poweramp integrated equalizer.
[Nexus 7 Android Development] dakjones:
So the 15% power loss overnight happened on Saturday night. It must have been a fluke (maybe firm sleep somehow wasn't achieved). I checked it this morning and only lost 2% over night. My problem is still the fact that the tablet is losing charge faster than its gaining. I'm looking for a powered USB hub that uses USB to get power. This way I can just plug it into the second port of my 5v adapter. I don't know if such a thing even exist. Any other suggestions? So Greg, you said that you have basically the exact same setup as me and your able to gain power while the car is on and your streaming music with location services on? This is how I tested mine. Started the car, opened slacker and launched Gmaps. I felt this would replicate a real use case test.

Thank you for your help
[Nexus 7 Android Development] Iceman_jkh:
It is VERY possible that the power/USB cable has a faulty connection AND that the Nexus still reports it as being properly connected!

I had the above issue for a few months and the Nexus always showed that it was charging (on AC/USB) but would actually gain (or lose) about 1% every few hours. Depending on the exact angle/orientation of the cable (btw, vibrations and going over small bumps in the road was enough to change the angle), the faulty cable would 'work' or simply disconnect. In the end, the 'working' connection was still only barely getting a good enough connection with the Nexus to give it +1% battery/3 hours!!!

Finally, I had to replace the cable, which resulted in proper charging/connection (ie: at least +30%/hr).
[Nexus 7 Android Development] gregthomas129:
Yes, I drive 2 hours per day, waze on for navigation and streaming audio with iheart radio. I never lose charge. Try taking your tablet out and plugging it into the wall charger with location and streaming ruining to see if you lose charge. That will tell you if it's your tablet or your charging setup.
[Nexus 7 Android Development] dakjones:
I had this problem as well and have actually had to order a new OTG Y cable because the first one got bent during the install. Im also using a new nexus OEM micro USB cable for the charging lead. I cannot reproduce the charging issue using the same cables when plugged into a wall outlet in my house.

I've purchase 2 new items that I hope will solve my issue.

1: A powered USB hub so that it can power itself, the DAC and the flash drive http://www.amazon.com/gp/product/B00008VFAF/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

2: Barrel connector to USB adapter so that I can power the hub off the other port on the 5V adapter. http://www.amazon.com/gp/product/B006MWXZM0/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

I really hope this works.
[Nexus 7 Android Development] papinist:
I can't get Easycap and reverse camera to work.

I think is because of easycap is a DC60+.. searching the net I find that it uses UTV007 instead of STK1160.

Is this supported?

Carcam app seems to support it, but autodroid do?
[Nexus 7 Android Development] gregthomas129:
UTV007 is what mine is, or at least that's the setting I have to use in carcam. None of these cheap ebay easycaps have any info about what chipset they use.

If you install an app called "USB Host Controller" it will show you what USB devices it recognizes. If it sees your easycap then it's probably not getting a video signal from your camera.

---------- Post added at 12:33 PM ---------- Previous post was at 12:27 PM ----------

If it works good on a wall charger then it's a power supply issue. I'd look for a new power supply.
[Nexus 7 Android Development] redeyedjedi:
Use a terminal app and type:

>su

then type:

dumpsys alarm

The output will show anything trying to wake the tablet, but you should see numerous alarms but ZERO wakes. If you could show me the output I'd like to see it.

Are you sure you have Fixed Installmode ON, firm sleep ON, and is power event manager putting your tablet to sleep automatically on power loss?
[Nexus 7 Android Development] papinist:
thanks for the suggestion.

It reports 3002:1b71 Fushicai usbtv007

I tried changing dev/videox in carcam from 0 to 5 but nothing happens.

It seems that carcam does not recognize this easycap because when I give power to the reverse camera, nothing happens..
[Nexus 7 Android Development] redeyedjedi:
Insert device....then open terminal and type

>su

>ls /dev

Then your device will be shown at whatever node it is on,

Either video0 or video1

Use that number in carcam.

*********************

ALL EASYCAP devices are supported, the only issue is with empia devices as they default to svideo input.
[Nexus 7 Android Development] redeyedjedi:
Fushicai utv007, but I had to degrade the quality a little to fit as an attachment.
[Nexus 7 Android Development] dakjones:
Im using this 12v (12v is 12v right) http://www.amazon.com/gp/product/B001JT7B3A/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1

And this adapter (it was recommended in a few threads i found http://www.amazon.com/gp/product/B00KFVM6K6/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1
[Nexus 7 Android Development] papinist:
thanks, tried that

u0_a89@android:/ $ su
root@android:/ # ls /dev
__properties__
alarm
android_adb
ashmem
battery
binder
block
bus
com.android.settings
com.android.settings.daemon
console
cpu_dma_latency
cpu_freq_max
cpu_freq_min
cpuctl
device-mapper
elan-iap
files
fscklogs
fsynccontrol
full
fuse
graphics
i2c-0
i2c-1
i2c-2
i2c-3
i2c-4
iio:device0
iio:device1
input
keychord
kmsg
knvmap
lightsensor
log
log_modem
loop-control
max77663
max_online_cpus
mem
mi1040
min_online_cpus
mtp_usb
nct1008
network_latency
network_throughput
null
nvhdcp1
nvhost-ctrl
nvhost-dsi
nvhost-gr2d
nvhost-gr3d
nvhost-isp
nvhost-mpe
nvhost-vi
nvmap
pn544
port
ppp
ptmx
pts
random
rfkill
rtc0
snd
socket
tegra-crypto
tegra_avpchannel
tegra_camera
tegra_dc_0
tegra_dc_1
tegra_dc_ctrl
tegra_rpc
tegra_sema
tf_driver
timerinfo
touchpanel
tty
ttyACM0
ttyACM1
ttyGS0
ttyGS1
ttyGS2
ttyGS3
ttyHS1
ttyHS2
ttyHS3
ttyHS4
ttyS0
ttyS1
ttyS2
ttyS3
tun
uhid
uinput
urandom
usb
usb_accessory
vga_arbiter
video1
watchdog
xt_qtaguid
zero
root@android:/ #

so I thinks is that "video1" at the end.

I set dev/video1 in carcam but nothing changes :-/

I got black screen in carcam, nothing happens when plug ppower to the reverse camera. I know it receives power because it has leds for illumination that lights up.

What can I try?

Edit: I tried carcam app v1.3 and v1.4bbb
[Nexus 7 Android Development] gregthomas129:
Turn your camera on and check the /dev folder for a videox file (x could be any number) it's not a folder, it's a file.
[Nexus 7 Android Development] redeyedjedi:
It's there...it's video1.

That carcam app should show a picture if you choose the right settings. As far as auto detect is concerned, I've never gotten it to work. No source code is available and the developer never finished it. The only reliable thing you can do is view the raw video stream.

I'm working on a new app for easy cap devices it's still gonna be awhile tho..
[Nexus 7 Android Development] gregthomas129:
Carcam works every time for me. It's a tad slow but it always pops up.

That being said, I'm sure yours would be much better. [emoji6]
[Nexus 7 Android Development] bourdier:
Hello guys, I'm back to try again my nexus with this Rom. The first time was not good, a lot of problems the first time, but I'll try again.

Anyone is having problem with the bad GPS reception when the car radio is on? Because my nexus, when I have the radio is on I'm getting very low GPS reception, on navigation stop a lot of time. But this not happen when the radio is off.

Any suggestions?

Actually is not a full installation, I connect the table at night at home and use on day at car.

Thanks

Jose
[Nexus 7 Android Development] papinist:
I think I used the right settings, it has only a few of it.. video stream, type of device and pal/ntsc (tried both). I only get a black screen. I should try the reverswe camera separately to be sure it works!

This evening I'll connect easycap + reverse camera to a winxp pc, I'll report back if it works or not.

Thanks for now.

A specific app for easycap cameras would be great :)
[Nexus 7 Android Development] Iceman_jkh:
:) Great news.

Any chance this will work with a FEBON100 too? (which uses standard USB UVC drivers, I believe)
[Nexus 7 Android Development] besjr69:
I'm still having USB mount issues. The drive mounts fine on initial boot up but fails on resume from sleep mode. To get it working properly again I have go to storage settings and unmount and remount USB storage. Anyone have this issue or a possible fix?
[Nexus 7 Android Development] dvdivx:
set the cpu minimum to 475 not 300. Works for other sleep problems.
[Nexus 7 Android Development] redeyedjedi:
Yes. Instead of using a background service that looks for /dev/videoX, I'm going to borrow a method from crue's remote input manager, which is basically the same as stickmount, it involves making a small database of the USB pids for easycap devices, etc. Then the app will launch whenever a "USBDeviceattached" occurs and it queries the PID of inserted device....this should lead to rock solid stable autolaunch.

The "gonna be awhile" part is figuring out how the end user can each add their own PID for their device for automatic detection

And...deinterlacing the video so it looks right. Febon has no need for this, but all easy cap devices do.

Lastly, it should be possible to support audio input.

I'm still teaching myself more advanced java and basic app building. Its a PIA.
[Nexus 7 Android Development] hugo_bjk:
Hi all

Does anyone use bt headset with nexus 7? What i am trying is when i push the headset's button autovice will launch and i can give commands to my n7 with my voice. With my samsung s2 i can do it but not with n7.
[Nexus 7 Android Development] Iceman_jkh:
Awesome!

(Btw, I can provide PID data for my device now if you want to add it to your db. Then I could test earliy versions of your app for the other things like autoswitching, display resolution, audio, etc. if that helped your dev process) :)
[Nexus 7 Android Development] bourdier:
Awesome rom, great work.

I got video, now to start the modifications. I'm thinking in remove my radio completely, any suggestions?
[Nexus 7 Android Development] aameghoo:
I have 2 issues which I think might actually be related to each other. The first one being 80% of the time my nexus 7 won't detect the charger when it's plugged in when the screen is off (nexus is on but sleeping but not deep sleep) and thus does not start charging. Now if I plug the charger in when the screen is on, the nexus detects the charger consistently every time and starts charging.

Now the second issue, which I feel is caused by the first, is that the screen won't turn on the Nexus is plugged in or receives power, even with the option enabled under the display settings. I also tried using Tasker but due to the first issue, the trigger doesn't get activated in Tasker.
[Nexus 7 Android Development] gregthomas129:
Is this with a wall charger or in the car?

---------- Post added at 09:09 AM ---------- Previous post was at 09:07 AM ----------

Care to share which one you got? Sounds like a good power supply for our setups.
[Nexus 7 Android Development] aameghoo:
Any charger, I tried with a handful of anker chargers and even the OEM charger that comes with the Nexus 7
[Nexus 7 Android Development] redeyedjedi:
I've looked into this, as well as the HIGHLY requested feature all over the net in EVERY tablet forum....using a tablet as a headset. The answer? Not possible with androids current Bluetooth stack. There is some protocol for this that is not supported by Android. Those little headsets have a firmware chip with this installed...but for privacy reasons and ability to maybe spy on others with your device is why it is not implemented.

"But....but....but...you are wrong" "the parrot astro can do it so you are wrong!"

Actually, the parrot astro has TWO Bluetooth modules....one for the device, and another, a Bluetooth headset built in. I'm not sure this feature will ever happen. This is an android security issue.

---------- Post added at 10:18 AM ---------- Previous post was at 10:13 AM ----------

This has to do with the custom otg driver. If using otg y cable it will work like normal.....but when using a regular charge cable simply turn screen on, plug charger in, then you can turn screen back off. This is not.really a bug....just a difference from other Roms due to otg while charging mod.
[Nexus 7 Android Development] papinist:
sure! It's the Minibox.com DCDC-USB power supply, you can find it here if you are in the US, or here if you are in Europe.

I follow the usb rom thread on rootzwiki for a long time, and every time a problem arose was the power supply not having the stated output Ampere. Using this PSU always solve problems :)
[Nexus 7 Android Development] machmanx:
Exactly what I was thinking

I see, makes sense. Don't worry, ohm's law applies to EVERYTHING electrical, though not always directly ;)

Haha, I was actually holding off on installing the relay because I didn't need it. But essentially you're telling me that the cap will delay the deactivation of the relay rather than the devices or buck converter. That's actually pretty smart. I LIKE IT!! RAWWR!

See I had mentioned it in an earlier post:

Of course I wasn't thinking about the cap to the relay coil, so thanks for that. Now to figure out the value of the capacitor required to delay the discharge by two seconds.....

WOW! Thanks for this. Makes my life easier :D

---------- Post added at 12:00 PM ---------- Previous post was at 11:51 AM ----------

By radio I'm assuming you're talking about the FM radio, right? Well it has nothing to do with the two signals because FM Radio broadcasts from 88MHz-108MHz while GPS is at 1.17GHz-1.58GHz (wiki). They will not interfere with each other. It could be that the electronics of your radio is interfering with the electronics inside the tablet. I would test this by taking your Nexus 7 near ANOTHER radio, turn it on, and then see if you can get GPS. If you can, then it's your car's radio. If not, well, I'm open to other suggestions
[Nexus 7 Android Development] michiil:
I did some calculation for the cap size.. So the cap would still be huge with the relay to get some seconds delay. I dont know how good you are with electrics or soldering so maby you want do stop reading and just buy a finished time relay.

Advanced part:

So a 12v relay needs about 150 to 200mA on the coil. Thats to much for a cap that should be physically small.

So what we would have to do it adding a pnp transistor. I will add a circiut diagramm soon..

The transistor amplifies the current of the cap at least 100 times so we need a 100 times smaller cap (:
[Nexus 7 Android Development] redeyedjedi:
http://www.aaroncake.net/circuits/relaytim.asp

Do they still sell 555's at radio shack? This one is simple. I've built some of his guitar circuits before but not this one....it sure looks good. It's also highly adjustable.

BTW, just about anyone with a car install can probably find something useful at

The12volt.com
[Nexus 7 Android Development] hugo_bjk:
I think there is a misunderstanding. I am not trying to use n7 as a headset. Trying to use with a bt headset. And when i push the headsets button in my s2 autovoice appears. But in n7 nothing happens.

My goal is control the n7 with my voice using bt headset. But there is something missing.
[Nexus 7 Android Development] johnny_swindle:
Countdown video clips

I am still configuring/testing my setup and I was thinking, "What can I do to contribute?" We I have located three countdown videos (there are many on the internet); two in blue, and one in orange. I have re-encoded them, placed them in zip files and they are available for you to download. They are royalty free and the site I got them from indicated no link back or credit was required for their use. However, if you are interested here is the site: videov dot net /search/countdown.

They work on my Nexus 7 however as always YMMV............:laugh:

As I locate more I will upload if anyone is interested.

Johnny
[Nexus 7 Android Development] johnny_swindle:
OTG Y Cable

Can anyone recommend an OTG Y cable that works with your Nexus 7? I can't seem to get one that works. I have a simple OTG (right angle) that works but I really would like to get a Y cable.

Thanks...

Johnny
[Nexus 7 Android Development] gregthomas129:
Agreed... I have a scosche motor mouth that I've paired to my N7 before trying to pass voice commands to it and it doesn't work. It will pair but the tablet doesn't do anything when I press the button. Both my Galaxy S3 and S5 will respond. Would be great to be able to pass voice commands to it. Safer too. [emoji6]
[Nexus 7 Android Development] redeyedjedi:
It's not really....the Bluetooth hands free profile simply doesn't support slave mode or any mode. I think it won't work either way......

Unless this code is already there:

http://www.bluez.org/bluez-for-android-status-update/

Edit..!!!!

Maybe it's possible:

https://code.google.com/p/aosp-bluez/

I'm determined to finish my easy cap project first....but I will pursue this afterwards, along with drive mount issues.
[Nexus 7 Android Development] machmanx:
Ooh a nice delay circuit

I am excellent at soldering :D I'm skilled enough to remove dual and quad-in-line SMT ICs from boards with my handy heat gun. But I can't do Grid Array ICs as I don't have any practice on them. So I have a 30A automotive relay that I'm trying to find the specs for so I know how much current the coil sucks. Then again the easiest way would be to hook it up to an ammeter and find out for myself.

Oooh, I'm liking that circuit. Pfft I can build that while I'm sleeping (DON'T DO IT!) :P Though the values should be adjusted for a 12V relay rather than the 9V in the circuit. Hopefully I won't have to change parts because all I need is a two second delay. I just skimmed the circuit so maybe it might need some modification. Otherwise this might be the best solution for me. Thanks both of you guys for helping me out :good:
[Nexus 7 Android Development] papinist:
[MENTION=2362256]RoNeReR[/MENTION]: Finally I tried it, not working (got only black screen)
[Nexus 7 Android Development] RoNeReR:
i try to fix it again i hope this time it will work.

in the bootanimation software it look great and i cant test it so be my tester. and tell me if it working.

download it again

---------- Post added at 12:50 PM ---------- Previous post was at 12:46 PM ----------

look nice but i think 10 sec its alot of time.
[Nexus 7 Android Development] johnny_swindle:
True....I plan on editing and having 5 sec versions available.....pesky things like job and family get in the way of "fun" stuff...
[Nexus 7 Android Development] Draven190:
Hi

I'm wondering if anyone has had any luck with Cambridge Audio's Dac Magic XS. I've tried lots of different things but I cannot get the Nexus 7 to output sound to the DAC. Is there some setting missing It seems to pickup the.

Is there a way in this rom where I can see what is mounted?

I'm just a little worried i've gone out and spent money on this dac and it doesn't work. Any assistance will be fab.

When I plug it in the sound coming out of the speaker on the tablet stops as if it is going to transfer the sound to the Dac Magic but the little LED on the front doesn't come on and everything is silent. If I then unplug the Dac Magic the music player stops. So clearly it is trying to play the music through the DAC but is missing something.

I'm using the latest 1.2.

I'm going to quickly wipe and reinstall it to see if that makes a difference.