Hi,
I would like to run a .bat file whenever the audio output device changes (a different file depending on the chosen device).
Can it be done?
Can it be done when the output device changes, and not only when I change them electively (e.g when headphones are disconnected, or even if the PC is put to sleep mode with headphones connected and wakes up with them disconnected)?
Motivation: I'm using a system equalizer (EqualizerAPO), and would like to change its settings whenever the audio output device changes. The equalizer settings can be changed via .bat file.
Thanks
You want to detect when the headphones are plugged/unplugged?
I think this might be detected with WM_DEVICECHANGE but I don't have the audio front panel on my PC to check.
You could probably use WMI or get the audio properties, but you'd have to actively check.
Related
Hi all,apologies if this issues have been asked about before - I have locked but couldn't specifically find what I was looking for.
I use my HD2 in the car to play music, whilst doing this I want to use the USB port on my stereo to charge the HD2... however the USB mode on the HD2 kicks in and then disables my memory card from being used directly by the phone. Setting the USB mode to activesync makes no difference.
Having plugged the USB cable in it would be nice if the stereo recognised the USB card when I wanted it too so that tracks could be read directly by the stereo. Other USB storage devices I have work fine but setting the HD2 to USB - Disk mode makes no difference, the stereo does not read any tracks. Anyone had this issue too?
Whilst using the HD2 in the car, playing music (charging or not) I'd like to prevent the screen lock for activating, I'd be happy if the screen darkened but with one tap of the screen I would like it to be back to working brightness and active. Is there a tweak to allow this to happen and for the lock to be set manually, for example by pressing the poweroff button?
Thanks all
Dan
It just sounds like your music collection is not compatible with your stereo. When you plug in the USB cable and select "USB drive", yes, it will stop the phone from accessing the SD card, but if you want to play music via the stereo then who cares!
You can also set the backlight to stay on when connected to an external power source (settings, menu, all settings, system, power, backlight).
That should solve all your issues.
Don't forget, it's not just the file type that your stereo might be finniky about. It might not like the bitrate of the tracks either.
Hope this helps
Thanks John...
I'd rather use the HD2 to play the tracks to be honest, with coverflow it is much easier than the clunky button method on the stereo.
Will the back light option also disable the screen lock? Assuming I can't power the HD2 from Stereo (because I need to have the HD2 access the memory card). Then I will have to set the backlight to be on permanently and that will kill the battery Ideally I need to be able to create a profile based on certain circumstances.
The stereo also has a SD card reader so I will try the card from the HD2 in the stereo direct and see if it has any problems accessing the files.
I wanted to know how to connect via USB to my cars audio system.
I used this tutorial: http://www.mobiletechworld.com/2010/11/18/use-your-windows-phone-7-device-as-a-portable-usb-drive/
I can now store and retrieve picture files from the phone but I still cannot play music files on my cars audio system. It seems as if the phone turns off this feature when my cars head unit tries to communicate with it via USB.
I also cannot connect via bluetooth.
I have read that some folks have been successful in implementing this feat. I really dont want to use the headphone jack because I cannot control the phones audio via my head unit. I guess I am looking to set it up legacy style like my previous phones eg iphone, nexus one, milestone etc.
Any advice would be greatly appreciated.
The portable USB 'trick' doesn't make the device a USB Mass Storage device. It's a client-side registry modification that only makes the device viewable in windows explorer (legacy mode). It's still running its communications over the proprietary MTPz zune-sync protocol. This is why after running the registry modification, you can't just plug your WP7 into another computer and have it pop up, and also why it requires the Zune software to be installed, and to sync up first for it to work.
This is also why it won't/can't work with your USB capable audio system. It has absolutely no ability to do Zune protocol sync (as far as I'm aware, Kenwood made a head unit that could, but I don't know if it works with WP7. I'd doubt it), and despite the misreporting of various sites, your WP7 is not magically now a mass storage device.
Bluetooth may or may not work. I don't know about A2DP support on either your car's head unit, or WP7, and it may be specific to the device/manufacturer as to whether this is present (I have no idea). If bluetooth doesn't work, you're pretty much **** out of luck.
Headphone jack is your best (only) option. I can't recall if the supplied headphone cable has inline media controls. If so, you could probably macguyver that into a line-in cable for your stereo and use the media controls on that. Ghetto, but workable.
wow, that really sucks.. I am liking this phone less and less...
Hi,
I want to send bits and bytes from my phone to my PC via bluetooth Serial Port Profile. On the Android side I want to use something similar to "BluetoothChat" or QkCtrl (genius app) which transmits whatever character to a paired device with SPP.
In windows I will open the virtual COM port for the paired SPP device in TeraTerm or similar, watching and sending bytes back and forth.
But WHY will my phone not show up with SPP profile when paired with my computer?
These are the four profile drivers which are being installed upon pairing of my phone with my PC:
AV Remote Control Target
AV Source
Headset AG
OPP
I have tried searching for my Phone under virtual COM port settings in bluetooth setting on my PC, but my phone does not show up. I have tried adding a port manually, hoping my phone will connect to this upon pairing. Neither worked.
I have confirmed with the bluetooth chipset specs on my PC that it supports SPP. I have used apps like QkCtrl to control robots etc using bluetooth modules which only works trough SPP. I'm lost.
Any help appreciated!
What the hell. I simply opened up TeraTerm and connected to my manually opened bluetooth virtual com port (COM11) at 9600,8,N,1 and the characters sent from my phone magically appears in the terminal window. Well well, now you know.
I got a UG007 ii from Amazon for $50. I ordered the original version UG007 but got the one with two microUSB ports, research shows it is the UG007 ii. Very lucky to get a free upgrade, but after reading some other forums also very lucky to not get a *clone*. After reading about clones, and ordering problems, I can report complete success and happiness.
Not many thorough guides and lots of random stabs at getting rooted. Some of the downloads set off my Avira anti virus which was bad, so anything not totally clean was deleted and not used.
DRIVERS: Getting the drivers to work on Window 7 x64bit took some searching and work. I was surprised that both microUSB ports will supply power to the UG007, but only the microUSB next to the microSD slot will work for adb. Also, there is an extra USB section in the settings that allows your device to communicate (at all) with the PC. Wrapping my head around the fact the UG007 ii device defaults to supporting multiple USB host ports, it makes sense there is a switch to reverse the defaults for connecting to a PC. Twisted brain stuff. LOL.
ROOT: Many various methods exist. I found only one root method that worked, and all others I tested failed. After the drivers are working, it is very easy to root using TPSarky-VonDroid-Root.zip. I really like this method installs SuperSU, and I updated it via the market afterwards. I verified root successfully, loaded busybox and terminal emulator via the marketplace.
RECOVERY: I update.zip installed a CWM recovery successfully. The xda member fun_ has this great post for RK3066 devices. Follow the links to CWM-based Recovery images for RK3066 devices and download the UG007_CWM.zip for Ugoos UG007. Aterwards just rename to update.zip and push to /sdcard and install.
During this whole process I used a USB keyboard with small touch pad for *mouse*. The CWM recovery only works with keyboard, but I could have used only a USB mouse on drivers and root setup, because the device has an onscreen keyboard.
Overall the device works great. There are some cons:
First: There appears to be no microphone nor record ability with the stock ROM. I tried lots of bluetooth headsets which play music and movies fine but the microphones failed. I ordered and will try an external USB soundcard dongle later.
Second: There is a security problem because the screen never locks nor sleeps, with one random exception (clicking on items in notifications). The workaround for security is a wonderful application "Smart Lock Free" and its widget to lock/unlock all with one click.
Nothing else really bothers me, so I must say this device is an exciting Android Stick Computer.
Model: rk30sdk
Android version: 4.1.1
Kernel version: 3.0.8+ [email protected] #169 SMP PREEMPT Thu Dec 20 18:07:08 CST 2012
Build number: RK30_ANDROID4.1.1-SDK-v1.00.1015 rk30sdk-eng4.1.1 JRO03H eng.ant.20121220.180742 test-keys
UPDATE ONE: The device is available on Amazon and others. Search for "UG007 ii", verify 2 microUSB ports, verify Android 4.1.1, verify looks same as below:
Afunta(tm) Bluetooth Ug007 Mini Pc Android 4.1 Google Tv Dongle Dual Core Cortex A9 Wifi 1080p RAM 1gb+rom 8gb+3d (2 Micro USB Slots)
Price $56.99 USD from afunta-mall
or
New Version Bluetooth Ug007 II Mini PC Android 4.1.1 Google TV Dongle Dual Core Rockchip 3066 Cortex A9 Wifi 1080p RAM 1GB+ROM 8GB
Price $62.48 USD from geekbuying.com
The above are just two vendor examples, looks exactly like mine. There are many other good vendors. The geekbuying.com guys are interesting because on their website they released a 4.2.2 ROM for this stick. There are also many bad vendors and clones which look different and are not UG007 ii. Your mileage may vary. Good luck.
UPDATE TWO: I have now tested three USB sound cards. The only working USB soundcard, that survives a reboot still working, is the Syba SD-CM-UAUD USB Stereo Audio Adapter, C-Media Chipset, RoHS. With this USB soundcard the audio input (microphone) and output (speakers) work with the UG007 ii. See further information in next post.
I added the USB sound card. Now I am able to use a microphone on the UG007 ii. Great.
The (semi) working device is Syba SD-CM-UAUD USB Stereo Audio Adapter, C-Media Chipset, RoHS The microphone input works, audio output not.
UPDATE: Finally got audio input and output working with this device. Basically, plug and play is not always a reliable method. Instead reboot with device connected and audio in & out works.
I also got another fancy USB sound card from Syba that does not work for input nor output. This one finally worked. This one did **not** work for me. I did little troubleshooting.
UPDATE: After further testing I found this device also works, but sometimes crashes on plug and play. When I reboot with device connected the audio in & out works, and subsequent plug and play works. Typical problems are caused by plug and play device with recorder application open or music player open, or switching devices with plug and play without rebooting.
So, with a microphone connected on the first, I decided to try VOIP programs again. After installing Groove IP, same as before it crashed when launched. However, Talkatone works. It is complicated to get it working. Here is what I did:
Installed Talkatone, In the settings it gives under the *Phone* tab, I selected Call Settings. I changed Start Call on "normal". It was set to "BlueTooth (when available)", but I could never get the microphone working, listening with bluetooth headset and microphone input to the USB sound card. Bluetooth was wierd because I was able to hear on the headset with setting "Bluetooth (when available)" but neither the bluetooth nor USB sound card microphone input worked. Bluetooth devices never show in the Android Sound settings.
Under Android Settings, Sound, Sound Devices Manager. With the above USB sound card connected the options are:
Talkatone working configuration:
Sound input devices: USB PnP Sound Device (***selected)
Sound output devices:
ROCKCHIP HDMI (***selected)
USB PnP Sound Device (not selected)
Note: I switched my audio OUT setting to HDMI and connected a speaker to the back of my HDMI monitor. You, like me, are probably now saying WTF. Yes? While the microphone is working on USB PnP Sound Device it seems the audio output does not work on either of my USB sound cards. However, with Talkatone setup Start Call on normal, the HDMI audio output works with the microphone input on USB PnP Sound Device. LOL
UPDATE: If you reboot with USB sound card connected you can use USB PnP Sound Device output. But, plug-n-play may kill your output until reboot with connected.
I run tests using Music player for audio output, and the Sound Recorder for input. The Sound Recorder application can be *found* on the stick computer in the /system/app folder. It is bundled with the device but I was unable to find a launch icon. Information on Sound Recorder is Version 4.1.1-eng.ant.20121212.085830 Once run, I can subsequently find & run again using search on "SoundRecorder". Also, in the Play market the Sound Recorder Shortcut by Kayan Nurav gives an icon as a fix to launch Sound Recorder.
Using these configurations I can successfully make Talkatone voice calls with the UG007 ii. My voice quality depends on microphone sensitivity. The sound out via HDMI to speakers sounds perfect.
There are still some annoyances. After reboot or re-plugging the USB sound card: if you want Rockchip HDMI output the Android settings need to be fixed (as shown above). I frequently test sound output using the music player and test input with sound recorder because of frequent sound input and/or output failures requiring me to reboot. Definitely a work in progress, yet interesting.
UPDATE: Finally got audio input and output working with these devices. Basically, plug and play is not a good method. Instead reboot with device connected and audio in & out works. I tested a third USB sound card where audio input/microphone does *not* ever work. If you find some, please post further examples of working USB soundcards in this thread.
quick question
i want to use the stick computer as web/ftp server so i only need it on and there is no need to a TV except for the first time i use+configure
does the stick turn on and boot just by plugging the power ??
mf_ said:
quick question
i want to use the stick computer as web/ftp server so i only need it on and there is no need to a TV except for the first time i use+configure
does the stick turn on and boot just by plugging the power ??
Click to expand...
Click to collapse
No, it does nothing with power plugged only. I must first plug HDMI and then power to get boot.
Bob Smith42 said:
No, it does nothing with power plugged only. I must first plug HDMI and then power to get boot.
Click to expand...
Click to collapse
can you please do me a favor (im asking because not connecting to tv avoids extra electricity costs, since android can be controlled trough airdroid)
connecting the HDMI cable only to ug007ii and leave the other side hanging loose without connecting to TV
does it boot ??
mf_ said:
can you please do me a favor (im asking because not connecting to tv avoids extra electricity costs, since android can be controlled trough airdroid)
connecting the HDMI cable only to ug007ii and leave the other side hanging loose without connecting to TV
does it boot ??
Click to expand...
Click to collapse
No. It does not power up when connected only to cable. But, if you turn off monitor and connect cable it does boot.
There is an old hack of putting resisters on DB15 video connectors and plugging into laptop external video ports. What this did was enable new screen resolutions on 1st generation netbook computers. It was something if done wrong could also ruin your video card. LOL
Thinking along the same lines there us surely some way to fake the HDMI monitor connection by hacking an HDMI plug.
Cant Wait
I just got the exact same unit you did I was expecting the UG007 cant wait to hook it up in the AM Thanks for all your postings it will be a great guideline for me.
Thanks Again
Thx, OP, for this thread~! It came in really handy after I purchased the UG007II and I was looking for a way to root and install CWM. I got this for mom for Mother's Day and she really loves it for watching Netflix shows & movies.
CWM for Official UGOOS 4.2.2 firmware
Has anyone else upgraded to the latest official 4.2.2 firmware? I have and it's very good. Smoother, faster, and everything still works, of course. I also got it rooted using the original method for the original Android 4.1.1 firmware.
But I'm having issues with CWM. I installed the original UG007 CWM through the Rockchip flash tool (as opposed to the update.zip method b/c it doesn't work with 4.2.2 anymore) but I can't actually create any Nandroids inside CWM. Things aren't being mounted & recognized correctly.
Does anyone know of any updated CWM recovery for 4.2.2?
i try everithing and cant connect to my pc de UG007 II
I have Google Nexus Player now for a day. I have not connected any mouse, just using remote. Downloaded ES File Explorer from Google Play on nexus player. It seems to be OK, except one big problem. With my nexus remote, I can not tell what is highlighted, I see only white background with folders in Blue in right panel, and other menu items on left. When I use the remote to go up and down with arrows or left an right and click OK, I have no idea what is selected. Can someone PLEASE help, I am giving up. How do I use ES File explorer? I did once able to get some folders to open an navigate to find some apk file and install it, but it took for ever.
Some other questions if someone can help, I really appreciate.
Wifi seems to randomly drop, and I have to reenter the password.
I have connected the player to hdmi on denon amp with denon out to tv. I let nexus player run ( there is no way to shut it down, can I?), but turn of the denon, and tv when done. When I turn on the denon and tv, there is no picture, looks like nexus went to sleep. Only way to awake is to take out and plug back the hdmi port. Pushing the button on base of the player did not work.
Is there some way to put nexus remote codes in Acoustic Reseach Universal remote? Any other suggestions to use this player will be really appreciated. I really not want to return it , since kodi works fine on it.
Talking about kodi, is there some way to passthrough DTS-HD Master or TrueHD Audio. I can do that on my linux machine running Ubuntu.
Thanks for help.
The latest versions of ES File Explorer (v4.*) are broken on Android TV for the reasons you mention - also when browsing the file pane constantly loses focus, making it hard to navigate through a folder tree with the remote. To fix:
1. Uninstall ES File Explorer.
2. Download the last properly compatible version, 3.2.5.5 from here: http://www.apkmirror.com/apk/es-glo...s-file-explorer-3-2-5-5-android-apk-download/
3. Sideload it with AirShare/AirLaunch, or first install something like AnExplorer File Manager from the Android TV Play Store (which is quite decent in itself, actually, just with fewer features than ES). Uninstall whichever of these when done.
Make sure to disable automatic updates from the Play Store until they fix ES properly!
Success with ES Explorer plus two more questions.
Thanks ghtop. Your suggestion worked very well. I do see the highlighted areas so I know where I am selecting.
I also learned something by accident. I still get the player go to sleep and no picture when I turn the tv and denon on. I used to unplug and plug back the hdmi cord to get the picture. Since then, I turned of hdmi control in denon with no luck. Then, I accidentally discovered that, once I turn tv on, and in denon, change the input to fm, which turns the radio on, then switch the input to hdmi4 where my nexus player is, the picture comes on. I guess that is equivalently plugging back and forth hdmi cable.
Ok, so I am not returning the player. I still have two questions left.
1) Anyway to get the remote transferred to Acoustic Research IR remote?
2) Anyway to get DTD HD Audio in kodi? I do get DTS passthrough, however DTS-HD Master and TrueHD passthrough do not work, it is shown as PCM.