I have a Geniatech ATV1220 android set top box running android 4.2.2 and am using an arduino with motion sensor connected to it to modify content on a website when someone is in front of the sensor via NodeJS.
This works great, but what I would like to do is to manipulte the complete system viewport of the android system. For example if someone steps in front of the sensor, the whole system should be displayed in a reduced size like 1/4 original at the bottom right side of the screen while the other area should just display black or basically nothing.
It is really hard to find something because of the pretty common keywords like display, viewport, size and so on. I could probably do it dependent on individual applications but I also want to use it in third party applications, which I cannot modify.
Currently I am sometimes using commands like this:
Code:
echo 1 >/sys/class/graphics/fb0/blank
to modify the actual content that is displayed, in this case it all turns black/blank and I wonder if there is a similar way to achieve what I want to do. Any help is greatly appreciated.
Related
I am connecting my Nexus 4 to a projector - but the resulting image is trapezoidal due to keystone. I want to be able to control this using software such that the image that goes out of the android is already corrected for this problem (In such a case, the projection will get smaller for the wider edge of the trapezoid and will be equal to the narrow edge; the remaining area can be black pixels.) There are two things to do here - one is the actual algorithm for keystone correction, which I think I have found here - Algorithm for software keystone correction. Any other efficient algos? And the second is how to modify the displayed screen in android to the one I want to send (if I were somehow able to change the android screen resolution to a trapezoidal value!). I don't mind distorting the phone display as long as the projected display is good. Also, would prefer this for any running app, not necessarily my app. Thanks a ton!
Hi, everyone!
I had to flash my phone because one day it got stuck in the boot logo. I didn't have the ROM backed up since I was not planning to mess with the phone's software in any way.
I own a Star N800+. Sadly, I couldn't find a suitable ROM anywhere. So I followed @cybermaus ' advice (find a ROM for a phone that has same processor, same memory, same buttons, same screen type and resolution, same sensors, same camera -- http://forum.xda-developers.com/showthread.php?p=36326293#post36326293) and decided that Star/Ulefone N9770 had to have the same hardware. So I flashed a couple of ROMs for N9770 into my N800+ and each one worked great (that is, camera, gps, wifi, g-sensor, buttons where all working) but the screen was rotated upside-down. I mean, every single thing that gets diplayed on the phone from boot logo, to android menu, to every app, to the image from the camera are shown rotated upside-down but in order to operate the phone you have to tap as if you were viewing it right. For example, to tap on the upper-left corner of the image you have to tap on the lower-right corner of the phone's display.
Mi guess is that even if both phones may have the same hardware, there should be some parameters that are not the same for both models. Could anyone, please, give me a hint on this matter?
Here is my phone info:
Star N800+
MT6577 processor,
bootloader came unlocked from factory,
Android version e1909c_v77_jbl_9p017_6628
Baseband version MAUI.11AMD.W12.22.SP.V15
Camera Aptina A-pix MT9p017
Build.prop settings
heraklejon said:
... the screen was rotated upside-down. I mean, every single thing that gets diplayed on the phone from boot logo, to android menu, to every app, to the image from the camera are shown rotated upside-down but in order to operate the phone you have to tap as if you were viewing it right. For example, to tap on the upper-left corner of the image you have to tap on the lower-right corner of the phone's display.
Mi guess is that even if both phones may have the same hardware, there should be some parameters that are not the same for both models. Could anyone, please, give me a hint on this matter?
Click to expand...
Click to collapse
Update:
I tried to change ro.sf.hwrotation in /system/build.prop from 0 to 180. Some people reported this will rotate lcd display while keeping touchscreen settings. Nothing happened in my device.
Hi,
I'm trying to screen cast from a Nexus 4 to a large screen TV (using a PTV3000). I want to put the TV in portrait mode and have the screen case occupy the entire screen, however I don't seem to find a way to accomplish this. When the phone's orientation is vertical (portrait) it assumes the TV is in landscape orientation and the phone screen is displayed small in the middle of the TV with black space on the sides.
After doing some searching it seems that this behavior can only be changed with a custom ROM, however I haven't been able to pinpoint where in the AOSP tree this behavior can be changed. Any suggestions are much appreciated.
Thanks!
Full screen
mariusmuja said:
Hi,
I'm trying to screen cast from a Nexus 4 to a large screen TV (using a PTV3000). I want to put the TV in portrait mode and have the screen case occupy the entire screen, however I don't seem to find a way to accomplish this. When the phone's orientation is vertical (portrait) it assumes the TV is in landscape orientation and the phone screen is displayed small in the middle of the TV with black space on the sides.
After doing some searching it seems that this behavior can only be changed with a custom ROM, however I haven't been able to pinpoint where in the AOSP tree this behavior can be changed. Any suggestions are much appreciated.
Thanks!
Click to expand...
Click to collapse
Did you ever get the full screen to work?
Hey guys,
I've been working on a small projector using a high aperture camera lens in small box (painted matte black internally) and have tried various mirrors and magnifying glasses to reverse the mirrored effect that is projected. With a mirror the image is inverted back to normal but has some flaws. Without the mirror the image comes backwards. I have found apps to reverse landscape mode so the image projected is upright, but the image is still inverted (text is backwards).
I've mounted a box with the lens on a tripod and I can place the device inside, adjust it to the preferred size and adjust the lens focus till the image becomes clear. The projection is only visible in low light/unlit rooms with even full brightness. I'll share what I've done at some point as soon as the project is complete, I've found it extremely useful already for watching videos on the walls and ceiling, though my main goal is to use it to project images onto a canvas to be traced and painted over. Rather then spend $100+ on a projector, I figured I'd save the money and use what I have available.
I've searched endlessly for a solution. Mirrors and/or additional lenses cause too much light loss and quality distortion. The ideal solution would be to invert the reversed landscape so the projection appears in full brightness, quality and allows the projection to appear "normal"... Through remote access the device could be controlled without removing it from the projector housing.
For static image projection I could manually flip the image, but I'd like to have the entire display flipped for full functionality of all apps, games, movies, etc...
So far I've managed to get a crisp display projected at about 40 inches although the color is slightly desaturated.
Perhaps this isn't something that an app can solve but maybe a custom kernel could.
If somebody were to make an app that did this, I'm sure it would be marketable.
Any suggestions or help with this would be greatly appreciated.
Thanks in advance,
-Kompster
Hey,
So hoping someone can point me in the right direction here,
My use case is the following:
I will be using an android smart TV to feed into a projector. Normally it will be an 80" projection, however when I am watching network TV I would like to reduce the size of the projection to a smaller size (lets say 50").
So to do this I would like to be able to tell the Android TV to only 'draw' the bottom centre of the screen, so for example if the normal projection is 4k I would like to draw a 1080p picture in the bottom middle and have the rest of the picture essentially 'off'. An alternative would be to just send a black image to the rest of the picture but still only have the active part of the screen in the bottom middle.
Is this possible, and if so what should I be looking for?
bump
Bump :/