[Q] DEV Help needed : looking to force a hdmi resolution - Motorola Atrix HD

I am looking to do something similar to this :
http://raspberrypi.stackexchange.co...bly-connect-pi-hdmi-to-motorola-atrix-lapdock
in Android OEM 4.1.1 (or 4.1.2)
it is how they tweak/force the HDMI out resolution on a raspberry PI on Linux.
Basically, they override the HDMI detection that have a problem with the lapdock ID and force 720p or 768p.
any clue for experienced devs ?
I am able to reliably get the Lapdock to display HDMI video using 1280x720 resolution. I achieve this using the following parameters in my /boot/config.txt file:
# Force DMT mode 85 HDMI
hdmi_group=2
hdmi_mode=85
hdmi_drive=2
# Ignore the devices EDID information
hdmi_ignore_edid=0xa5000080
tvservice -s returns:
state 0x12001a [HDMI DMT (85) RGB full 16:9], 1280x720 @ 60Hz, progressive
fbset --show returns:
mode "1280x720"
geometry 1280 720 1280 720 16
timings 0 0 0 0 0 0 0
rgba 5/11,6/5,5/0,0/16
endmode
Click to expand...
Click to collapse

One way to do it :
after the lapdock is plugged in, open a terminal window and as a superuser, run this :
Code:
echo 4 > /sys/devices/virtual/graphics/fb1/video_mode
it will stick until you disconnect the hdmi wire (or lapdock)
now if we could just make the file video_mode permanent it would be great but even changing the permissions didn't work.
any idea to make this more simple like a switch/app/script ???

I just found this thread via some searching I was doing.
I am looking into hooking my phone up to the headunit in my car to display gauages via the Torque app.
I have been searching for a way to get tasker to recognize that the hdmi cable has been plugged in. Apparently this is pretty difficult to do. There are hints that it should work, but so far I haven't seen it working.
If we can get the detection working then we can use tasker and secure settings to run a shell command every time you plug in the hdmi cable.
The closest thing you can do is tell it to run this when the phone is docked. Tasker allows you to select "car" or "desk" and I have no idea how it tells the difference (which one is simple power + hdmi??).
---------- Post added at 03:16 PM ---------- Previous post was at 02:55 PM ----------
More: http://forum.xda-developers.com/showthread.php?t=1963785 How to make an app that watches for the specific broadcast intent that happens when hdmi is plugged in.
android.intent.action.HDMI_PLUGGED is apparently the jellybean ics intent to look for.
http://tasker.dinglisch.net/plugins.html
I guess I or someone else could write a simple tasker plugin that does this. (Or one could simply write an app that runs that shell command if that intent is broadcast.)

Related

[Q] USB Microphone - High pitched sound

Hi,
I have read a lot about the possibility to have audio in on the Nook Color, and most of the posts were not particularly optimistic in this ever becoming real. Anyway yesterday I have purchased a micro USB to female USB adapter and have been playing with USB host, so I tried to connect my Logitech QuickCam to a USB hub and the hub to the Nook. I was very surprised to see that, although the video doesn't work, audio kind of does. I was able to use Google Voice Search and give commands that were recognized and performed the intended actions, so I tried the next step that is to use Skype to make a phone call. Unfortunately Skype recognizes the microphone but the voice that is transmitted is very high pitched and accelerated, something like a chipmunk on helium!
What is even more interesting is that the audio I could hear from the receiving PC was high-pitched, but Skype sent also my voice to the Nook speakers, and this was fine: normal pitch and speed.
I have also tried to download a couple of audio recording applications from the store but they all got the high-pitched sound. Same story for Dolphin Sonar, commands are not recognized, I assume because of the very distorted sound.
So, just to recap:
- The USB microphone of the Logitech QuickCam is recognized (I had to put a hub between it and the Nook though)
- Google Voice Search Works fine
- Skype and other recording apps pick the sound, but it is high-pitched and accelerated. Skype however returns a normal pitched voice over the internal Nook speaker, with a very slight delay (maybe less than half a second).
Now the question: Is there a way to tweak the configuration of the microphone? Something like changing the bit rate? Is there an audio library I can upgrade, to see if the issue goes away? Do you think it is worth trying to upgrade to the latest available nightly?
If this problem is solved we could have a functional Skype.
I am currently running CyanogenMod 7.2.0 (Android version 2.3.7, kernel version 2.6.32.9), build date June 15th 2012, build number GWK74.
Thanks in advance for any help.
Ste
Use Terminal Emulator, type su to get # prompt and then type the command shown below:
# cat /proc/asound/card1/stream0
What is the capture rate shown under input?
If it is listed as continuous, it will work. If not, it only might work.
http://forum.xda-developers.com/showthread.php?p=21714449
Look under the audio input section and look at the links. That's about all I've figured out. The "USB audio tester root" app in the market works.
Sent from my NookColor using xda app-developers app
j8048188 said:
Use Terminal Emulator, type su to get # prompt and then type the command shown below:
# cat /proc/asound/card1/stream0
What is the capture rate shown under input?
If it is listed as continuous, it will work. If not, it only might work.
http://forum.xda-developers.com/showthread.php?p=21714449
Look under the audio input section and look at the links. That's about all I've figured out. The "USB audio tester root" app in the market works.
Sent from my NookColor using xda app-developers app
Click to expand...
Click to collapse
Thank you for the info j8048188.
This is the full content of /proc/asound/card1/stream0
USB Device 0x46d:0x9c1 at usb-musb_hdrc-1.2, full speed : USB Audio
Capture:
Status: Stop
Interface 3
Altset 3
Format: S16_LE
Channels: 1
Endpoint: 6 IN (ASYNC)
Rates: 16000
So, as far as I can see, there is not section Input and no Capture Rate parameter.
Maybe I have an older version of this file?
I'll also have a look at the thread you have indicated, to see if I can find something useful.
Ste
That bottom line is the capture rate. I'll check the rates that my USB card supports and post back.
Edit:
My card reports back the following:
# cat /proc/asound/card1/stream0
Generic USB Audio Device at usb-musb_hdrc-1.1, full speed : USB Audio
Playback:
Status: Running
Interface = 1
Altset = 1
URBs = 3 [ 7 8 8 ]
Packet Size = 200
Momentary freq = 44100 Hz (0x2c.199a)
Interface 1
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 1 OUT (ADAPTIVE)
Rates: 48000, 44100
Capture:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 1
Endpoint: 2 IN (ASYNC)
Rates: 48000, 44100
These bottom 2 numbers are my capture rates. I haven't tried any live audio apps yet (Skype, chat, etc) but I can record with a voice recorder app from the market. When I use the built in recorder if I record for 3 seconds it plays back over 15 to 18 seconds. That is a rate mismatch error.
Sent from my NookColor using xda app-developers app
j8048188 said:
Capture:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 1
Endpoint: 2 IN (ASYNC)
Rates: 48000, 44100
These bottom 2 numbers are my capture rates. I haven't tried any live audio apps yet (Skype, chat, etc) but I can record with a voice recorder app from the market. When I use the built in recorder if I record for 3 seconds it plays back over 15 to 18 seconds. That is a rate mismatch error.
Sent from my NookColor using xda app-developers app
Click to expand...
Click to collapse
Apparently you have a problem that is opposite to mine: when I use a voice recorder the audio being captured is highly accelerated (maybe 5x), while yours is slowed down.
I thought I could play a bit with that config file, but I realized that it is being created when the USB mic is attached to the Nook, and destroyed when it is unplugged, and beside that, I could not modify it using a text editor or nano from Terminal, even if I had superuser privileges and I had chmod 777 it.
Do you know if there are other config files we can play with?
(or how to modify that file, although temporarily?)
Thank you
Ste
There was a modified alsa.omap3.so file that Verygreen modified to work with with one of the capture rates that my card supports. Can't find it for download any more.
Some work had been done on the nook simple touch to enable USB Mic input as well. You might want to check that out if you want to dabble in development. ( I won't have a computer to do so until the middle of September.)
Sent from my NookColor using xda app-developers app
j8048188 said:
There was a modified alsa.omap3.so file that Verygreen modified to work with with one of the capture rates that my card supports. Can't find it for download any more.
Some work had been done on the nook simple touch to enable USB Mic input as well. You might want to check that out if you want to dabble in development. ( I won't have a computer to do so until the middle of September.)
Sent from my NookColor using xda app-developers app
Click to expand...
Click to collapse
Unfortunately that file was on a server that does not exist anymore. I found another alsa.omap3.so out there and I wanted to give it a try, but I could not overwrite the current one, since it says that the file system is read-only. Maybe I am missing something, is there a way to make it writable?
Sorry for the very noob question.
Ste
Be really careful that the file is for the nook color and not some other device or build. Use vanilla CM7.2, not another modded version. Use es file explorer. In settings, use the root enhancement and also mount system as writable.
Be very careful, changing system files with unknown files can brick your nook!
Sent from my NookColor using xda app-developers app
j8048188 said:
Be really careful that the file is for the nook color and not some other device or build. Use vanilla CM7.2, not another modded version. Use es file explorer. In settings, use the root enhancement and also mount system as writable.
Be very careful, changing system files with unknown files can brick your nook!
Sent from my NookColor using xda app-developers app
Click to expand...
Click to collapse
I tried to retrieve another version of alsa.omap3.so, but could not find anything. Unfortunately Verygreen's version is no longer available, and the vanilla 7.2 version does not help too much. I then decided to buy the Syba USB2.0 7.1CH Sound Adapter, which was listed in the link you provided me with a while ago, and it arrived yesterday: I was surprised to see that it works; audio is not the best but is enough for a Skype call, which is somewhat surprising to me if you consider that this device costs only $3.10 (free shipping) on Amazon.com. Interesting enough this one works with the USB tester app, and shows speeds of 48000 and 44100.
Regards
Ste

1920x1080 in Webtop 3 (ICS)

Hi,
I been using the webtop 3 on my atrix lapdock and it is really amazing
I connected it to my 37" FULLHD LCD screen and chose 1920x1080 50/60Hz as my resolution but it still looks like 1280x720,does someone knows if it is even possible to output 1080p from the droid 4? (I have seen posts about getting webtop 2 in Atrix to output 1080p).
How does webtop 3 works in terms of outputing,since it is plain ICS there is no X server,right?
Is there any config files that I can play with?
It's just in the normal Android settings menu, though I can't remember exactly where, probably under display.
The option only appears once you have an HDMI cable hooked up, and I don't have one available right now, sorry.
Yep, under Dispaly you can find Webtop resolution and can choose 1920x1080 50 or 60Hz.
I see the option, but it's greyed out for me, for some reason. My TV supports it, but it defaults to 1280*720
Sjaakbanaan said:
I see the option, but it's greyed out for me, for some reason. My TV supports it, but it defaults to 1280*720
Click to expand...
Click to collapse
I`ve just tried it again, connect to my 40-inch Samsung, choose Webtop, by default it`s 1280x720 - but I can change it to 1920x1080.
Sjaakbanaan said:
I see the option, but it's greyed out for me, for some reason. My TV supports it, but it defaults to 1280*720
Click to expand...
Click to collapse
are you sure you don't have a 1080i TV and not a 1080p? webtop might be picky between the two.
This is often the issue. A lot of 1080i TVs aren't even 1920x1080 they are 1366x768 using cheap panels originally intended for computer use. See if you can find the actual specs, including the native resolution, of your TV. Or post the make and model here.
In any case the phone will be querying the TV for it's capabilities and offering up whatever the TV claims to support.
Lum_UK said:
This is often the issue. A lot of 1080i TVs aren't even 1920x1080 they are 1366x768 using cheap panels originally intended for computer use. See if you can find the actual specs, including the native resolution, of your TV. Or post the make and model here.
In any case the phone will be querying the TV for it's capabilities and offering up whatever the TV claims to support.
Click to expand...
Click to collapse
It's a 42" LG 3DTV from 2011, according to the LG remote control app on my phone it's a 42LW570S-ZD. As far as I can tell it's full 1080P with 100 Hz (so assuming 50 Hz should be no problem either, but it might be picky about this I guess?)
Maybe I should turn off the smooth motion thingy?
Edit: probably a TV related issue indeed, with my projector it works fine. I can select from the whole list of resolutions even though its native resolution is 1024*768.
Edit 2: Now the selection seems to work, not sure why. Maybe playing around with the projector 'unlocked' it, or maybe it was the smooth motion thingy. 1920*1080 seems to be a lower resolution effectively than 1280*720 for some reason, browser still says it's 720P so still need to search some more. Strange thing: 1280*720 @ 60 Hz works great without 'scale to fit' enabled, but same resolution @ 50 Hz doesn't fully fit in the screen. Enabling scale to fit make everything look less sharp, so the resizing algorithms aren't that great.
Edit 3: There's something very fishy going on here. It looks like it's always based on 1280*720 resolution somehow:
- My TV reports the selected resolution, but anything over 1280*720 looks like it's downscaled (horribly).
- Web pages always report 1280*720 resolution via stock browser, even when I'm in 640*480 and can clearly see the lowered resolution.
- Android Assistant always reports 1280*672 (or something) resolution, which is excluding the action bar I guess.
No idea if that's related to my TV or just a general WebTop issue though. The TV seems to respond to every resolution change, and shows the selected resolution in its info bar.
I chose the 1920x1080 all that I am saying it is that it looks like 1280x720 to me.
My TV is Full HD and I use it with my PC in 1920x1080.
Can it be that it scales the picture to be in the same dimension?
Same for me, and the phone seem to report the resolution being 1280*720 regardless of the actual selected resolution.
Also the downscaling algorithm is terrible, 1920*1080 downscaled looks less crisp than 1280*720 full resolution.
Tonight I want to try taking some screenshots, and see what sizes they get.
I was wondering if it could be the HDMI cable, but it passes 1080p just fine for other devices.
acipio Robt.
The chipset(OMAP 4430) should support full HD display and from what I understand on webtop2(on atrix I think) people managed to display the full resolution.
The proof is in the pudding. I took screenshots at 640*480 (clearly blocky when shown on TV, and TV indicates resolution as 640*480), 1280*720, and 1920*1080..
They all have the exact same dimensions!
The actual operating system is running at 1280*720, regardless of which resolution you select! It's resized by the output chip. Nasty nasty!!
(but understandable, else every resolution change would require some apps to restart, and using 1080p instead of 720p would be less fluid while most people can't tell the difference anyway = less customer satisfaction for Average Joe)
So we need some config file hack to enable TRUE 1080p probably.
Edit: XDA forum resizes the pictures, so here they are in full resolution (click the corner icon to view full) - http://imgur.com/a/2DuqK
Edit 2: Even for WebTop 2, it looks like Motorola never stated it supported 1080p - looks like 720p is max. But for older WebTop versions, a higher resolution could be hacked via the terminal, so I'm hoping to find something similar for WebTop 3. So far no luck in any config file or DB I checked.
https://motorola-global-portal.cust...ail/a_id/63272/~/webtop---display-resolutions
https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/69653/p/1449,7978
Hello, sad to see that the only google's answare to the fKe fullhd on webtop 3 is this forgotten thread. Any news? (I'm with a razr with webtop 3 after ics update, the latest jb ota update shows no good news
Hi!
any news? Please help how to enable true 1080p in webtop 3.0.
gapcio78 said:
Hi!
any news? Please help how to enable true 1080p in webtop 3.0.
Click to expand...
Click to collapse
Yes, without 1080p (or even 1280x1024) support I'll send back the Razr Maxx inkl. HD Dock BT Mouse & Keyboard. I was testing the Webtop 3 solution to connect to a regular Business Monitor (e.g. 19" and 24") to run a virtual Win7 Desktop via Citrix Receiver over that - but with a limit at (true) 720p this is no acceptable solution for me.
regards
Trashx

Chromecast tab cast resolution

Hey guys!
I've been playing around with my Chromecast after I got it today, and everything seems to be working great. Except when I cast tabs (or the whole desktop) to the Chromecast, somehow the display gets cut off by like a couple of inches on each edge. I tried with a Macbook Pro, and a Win 7 desktop (varied the resolution on the computers as well). I have a Haier L32D1120, wanted to know if anyone else is having similar issues. I tried the different options under the Chrome extension, none of them fixed it. I use a PS3/Roku/Apple TV on my TV using HDMI, and none of them have any issues like this.
Any clues?
crimsonred36 said:
Hey guys!
I've been playing around with my Chromecast after I got it today, and everything seems to be working great. Except when I cast tabs (or the whole desktop) to the Chromecast, somehow the display gets cut off by like a couple of inches on each edge. I tried with a Macbook Pro, and a Win 7 desktop (varied the resolution on the computers as well). I have a Haier L32D1120, wanted to know if anyone else is having similar issues. I tried the different options under the Chrome extension, none of them fixed it. I use a PS3/Roku/Apple TV on my TV using HDMI, and none of them have any issues like this.
Any clues?
Click to expand...
Click to collapse
I'd expect them to handle some overscan, but without some sort of setup util to determine (via user input) the optimal amount, you're likely to still have some. Does it provide a setup in the beginning asking you to move edges of a box or arrows until they are at the edge of the screen (overscan calibration)?
http://en.wikipedia.org/wiki/Overscan
rainabba said:
I'd expect them to handle some overscan, but without some sort of setup util to determine (via user input) the optimal amount, you're likely to still have some. Does it provide a setup in the beginning asking you to move edges of a box or arrows until they are at the edge of the screen (overscan calibration)?
http://en.wikipedia.org/wiki/Overscan
Click to expand...
Click to collapse
I looked at the advanced video settings on my TV, and somehow the Overscan setting is set to On, but it never lets me do anything in that option or change it. Weird. Might have to look at the manual.
Thanks though.
I think it's the TV that is doing the overscan, since it's an HDMI signal, not a Monitor input like VGA or DVI. So it's interpreting that the signal has been adjusted to be overscanned. Idunno.
Anyway, My TV (Samsung) has an option to adjust the fit of the picture
Menu > Picture > Screen Adjustment > Picture Size > Screen Fit
Now I can see the entire video and no overscanning.
gr8bear said:
I think it's the TV that is doing the overscan, since it's an HDMI signal, not a Monitor input like VGA or DVI. So it's interpreting that the signal has been adjusted to be overscanned. Idunno.
Anyway, My TV (Samsung) has an option to adjust the fit of the picture
Menu > Picture > Screen Adjustment > Picture Size > Screen Fit
Now I can see the entire video and no overscanning.
Click to expand...
Click to collapse
Yeah. Overscan isn't accidental. The reasons may be ancient and a result of inexact control and display, but all modern "TV" displays will scale/crop some of the signal (overscanning) to deal with the format of the signals that had to be padded for displays that had no choice (CRT).
That's pretty much THE defining characteristic of a TV vs a "Display". These days, any decent digital TV can display 1:1 pixel ratio (like yours).

HDMI Output to 480p

If anyone can help me out I'd greatly appreciate it. I am running ElemtnalX 3.4 Kernel and ViperONE 1.2.1 ROM. I am trying to hook my HTC One video out into my navigation of my vehicle like I did when i owned an iPhone. I would love to be able to change my video out to 480p before it gets to the conversion device i am running. I feel it will run better(Just my thoughts). I am going out through HDMI into this device HERE I know there are ways to Change the video out to different version in android terminal emulator. So I am asking if there is a way to Change my HDMI output to 480p in android terminal emulator, and if so what is the command. Also, if it is possible i'd like to have the command to reset to default, so I can go back and forth when i leave my Vehicle.
-If this is not needed ...or there is a better way, I am listening to all opinions. Thanks so much everyone!

Wake Home Theater?

Hi,
I shall want to turn on my Home Theater with Tasker.
It's possible?
I know that it is possible with Onkyo remote or peel smart remote but I would want use run tag and to tasker.
Thank you.
(sorry for my English)
I have a project set up to show a permanent notification when connected to my home WiFi. This has a button linked to a task which pings the server & depending on response either sends a wake on LAN command or sends a shutdown command.
It requires secure settings for the ping, WoL Wake On Lan Wan (in play store), Droid Remote Lite for the shutdown option (also in play store but requires a small Java app running on PC) & also auto input to action the shutdown command in Droid remote. I've attached the xml you'd need to add your wifi SID to the profile trigger, setup WOL & link the plugin in tasker to the profile, setup Droid remote for your Home Theatre's IP & change the IP in the secure settings part of the task for the ping. There may be simpler ways if doing the shutdown element but I'm not experienced enough with tasker yet. Any suggestions on improvement welcome.
News mustn't home screen and maybe add every language
There are many ways to achieve this depending what hardware you have at home. I'm able to turn on my TV, Amplifier and HTPC using Tasker and a Veralite Z-Wave hub.
I first sent the "RSPW2" code to my TV which is connected to my LAN using WiFi so the TV can monitor the network for remote control codes even when its in standby mode instead of only monitoring code from it's RS232 port.
Then I created a scene in my VeraLite to send the "POWR1" code (Power On) to the TV which will turn on the TV and the Audio amplifier at the same time since both of them are HDMI CEC compatible. The scene is also sending a wake-on-lan command to the HTPC (I don't have any HDMI-CEC adapter on my HTPC.
Finally used Tasker and the AutoVera plug-in to start that Vera scene.
You can do the same thing for pretty much all TV brands, you just need to find the codes table for your tv brand, most of the time its in the user's manual.
Well if someone need a detailed guide for this kind of Tasker/Z-Wave/Home Theater setup, let me know.
Hi,
I found the solution with remote AnyMote. the application offers Tasker tasks.

Categories

Resources