iMX6Q SABRE-AI Android M6 LVDS Backlight going off while bootup - android

I am working with i.MX 6Quad SABRE-AI board and I tried to flash android image and boot from SD card.
I have followed "android_M6.0.1_2.1.0_docs/Android_Quick_Start_Guide" section 4.3.
I have successfully flashed and booted from SD card , while booting i can see splash screen from u-boot and kernel logo (tux) on the LVDS screen , but suddenly the backlight of LVDS goes off (once the kernel starts).
Also, We have found out that enable pin to LVDS is HIGH during the bootup (backlight ON) and it becomes LOW (backlight OFF) once the kernel starts.
Note : We can see the contents on the LVDS screen (if we look from an angle ) , so we believe if backlight is enabled LVDS would work proper for us.
Suspicious parts in bootup logs:
pwm-backlight supply power not found, using dummy regulator
MIPI DSI driver module loaded
MIPI DSI driver module loaded
mxc_sdc_fb fb#0: registered mxc display driver ldb
imx-ipuv3 2800000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
Console: switching to colour frame buffer device 128x48
How to make logic high on **BACKLITE_ON pin of "Port Expander A" from android M6 kernel?**

You might configure the GPIO of the backlight control properly in boot loader .
Possibility is that either
(1) the GPIO is being used by other driver in kernel space which is overwrite your boot loader configuration, check the GPIOs which is used in kernel driver by using GPIO sysfs command on terminal
Or
(2) If the backlight pins controlled from backlight driver, check logic state of on and off handled in driver

Related

Is there a way to use adb to force android to not timeout the lock screen?

I've been using a special keyboard (the messageEase keyboard) to type in my really long password to get in, and it works well enough, but when I try to use the default keyboard I type slower, and the lock screen will go to black before I'm done typing in my password. Is there a way to stop the lock screen from switching to black, or at least change the time on it to something much longer? There's nothing in the settings for this, and I've tried using the settings command and I can't find anything that seems to work.
I'm using a Samsung Galaxy A32 5G with android 11.
On my device I have found that there is a "Standby intelligent power saving" setting under Battery Settings that needs to be turned off for the lock screen timeout to match the system screen timeout. This setting may go by a slightly different name on other devices. It can be toggled over adb like so:
adb shell settings put system background_power_saving_enable 0
Once this is done, you can use adb to modify the screen timeout time:
adb shell settings put system screen_off_timeout [value]
Where [value] is the amount of time in milliseconds before the screen will go to sleep. Note that this is identical in function to the sleep time setting in Display Settings.

How to rotate Android touch-screen via hid-usb driver

I'm building Android 5.1 with kernel version 3.10.52. Everything goes fine before I attached a hdmi touch screen (http://www.waveshare.net/wiki/7inch_HDMI_LCD_(B)). HDMI output was fine and it's landscape, and touch function was working. But the direction of touch function is different from HDMI output. Touch screen is functioned via USB port by hid-usb driver.
In Linux dist, we usually use Xorg and the libinput config to calibrate. But now it's on Android, and I really don't know how to rotate touch screen.
Could anyone help?

How Do We Try Freeform Multi-Window Mode on the Android N Developer Preview?

The N Developer Preview documentation cites a freeform multi-window mode option:
Manufacturers of larger devices can choose to enable freeform mode, in which the user can freely resize each activity. If the manufacturer enables this feature, the device offers freeform mode in addition to split-screen mode.
The docs also suggest that you should test your app in freeform multi-window mode.
However, the two devices that I loaded the N Developer Preview images on (Nexus 6 and Nexus 9) use the split-screen approach for multi-window support.
Is there a way to get freeform mode going on something?
Another device? (e.g., Pixel C)
Settings > Developer Options? (I didn't see anything obvious for this, but I may have missed it)
A specific emulator configuration?
Some adb command?
A magic spell, cast by speaking a command backwards?
I am guessing that we might see some hardware that supports freeform mode natively in late May, but I'm just seeing if there's an option to try it out now.
Freeform multi-window is not available in Dev Preview 1 - only split-screen multi-window.
Lifehacker has instructions to enable Freeform Multi-Window Mode. It works in the "Android N final SDK". Here's the essence (with the curly quotes fixed and tips added):
Create an x86 emulator AVD with Android N, for a tablet like Nexus 10.
Tip: Name all your AVDs like "24 N Nexus 10". Starting with the Android API version gets the AVD Manager to sort them helpfully.
Tip: Enable "Multi-Core CPU" with 2 CPUs.
Tip: Set it to open in "Landscape" orientation.
Tip: Don't "Enable Device Frame" unless you have a large monitor. You need the space for the content.
Start the AVD. Wait for it to boot up.
Use adb and a terminal to run these commands:
adb shell
su
setenforce 0
settings put global enable_freeform_support 1
cd /data/local/tmp
mkdir permissions
cd permissions
cp -a /system/etc/permissions/* ./
sed -e "s/live_wallpaper/freeform_window_management/" android.software.live_wallpaper.xml >freeform.xml
mount --bind . /system/etc/permissions
Wait a couple seconds
stop
Wait a couple more seconds
start
The Lifehacker page also has instructions to enable Freeform Multi-Window Mode on an Android N device.
Multi-window is not available, split screen multiwindow is supporting.
In Android N, we're introducing a new and much-requested multitasking feature into the platform — multi-window support.
Users can now pop open two apps on the screen at once.
On phones and tablets running Android N, users can run two apps
side-by-side or one-above-the-other in splitscreen mode. Users can
resize the apps by dragging the divider between them.
On Android TV devices, apps can put themselves in picture-in-picture
mode, allowing them to continue showing content while the user
browses or interacts with other apps.

positioning starting location of Android Virtual Device

I am trying to position the emulated phone in Android Studio virtual device. Launching the Nexus S API 21 virtual device, places the emulation at the top of top of the screen and I'm unable to get the Windows frame to move the emulation or to minimize the device. So it is fixed at the top.
I have tried to modify the file “emulator-user.ini” for this simulation . I can change the window’s. Y location to lets say 530. When the emulator graphics becomes visible I see it on my monitor at what I assume is the Y 500 location for a quick flash and then it quickly shifts back to the top of the screen where y equals 0 and I am unable to position the device. Is there some way to set the starting location?
You can resize your Android Emulator by connecting to it via telnet:
$ adb devices
List of devices attached
emulator-5560 device
$ telnet localhost 5560
Connected to localhost.
Escape character is '^]'.
Android Console: type 'help' for a list of commands
OK
window scale 0.75
OK
I found an answer on this website by rephrasing the question in a google search:
Press the Alt-Space keys and you should get the window with the option allowing you to move the emulator window. Then move it e.g. using keyboard arrows. It works for me on Windows 7.
Credit goes to JeriB on April 9

How to deal with apps that force screen orientation in android-x86 on VirtualBox?

If you've used an Android device, you're aware that there are some apps that force the display to portrait and ignore the device's orientation sensor. On a real device, this is not a problem, as you can physically rotate the device in your hands to use the app.
However, I am trying to use such an app on android-x86 in Oracle's VirtualBox on a Linux Mint PC, and cannot physically rotate my monitor. I have tried the f9-f12 keys that send a rotation event to the app, but since the orientation is fixed, this has no effect.
Short of keeping my neck cricked at a 90° angle, how might I configure android-x86, VirtualBox, and/or Linux to display the app right side up? To be clear, I don't have access to the source code of the app.
For sure now is too late to reply, anyway I discovered that I can rotate back my vd resetting resolution of screen on the fly. If my device is 1200x800 (landscape) and it is rotated left by an app I can get it vertical by shell comamnd: (adb shell) wm size 800x1200
I found that Rotation Locker (com.devasque.rotationlocker) solved the problem for me. Via this mailing list post.

Categories

Resources