Odroid-XU4 Android全屏纵向定位

时间:2017-05-10 12:44:47

标签: android orientation odroid

我想在Odroid-XU4设备上安装Android操作系统,并通过HDMI将其连接到垂直触摸屏。我希望内容显示为肖像并适合屏幕。

我在Odroid上安装了4.4.4,6.0(Cyanogenmod 13.0)和7.1(Lineage 14.1)安卓图像。默认情况下,所有这些都将屏幕显示为横向,因此我必须配置操作系统以将其显示为纵向。

我首先使用AndroidUtility(操作系统映像中包含的工具)并将HDMI方向设置为纵向。使用4.4.4 OS映像显示屏幕(纵向和全屏)。不幸的是,4.4.4操作系统对我不起作用,因为设备必须是COSU,这需要6.0或更高版本的操作系统。

但是使用AndroidUtility,屏幕在6.0和7.1操作系统中都显示如下:

通过论坛,博客查看...我发现解决方案应该在OS build.prop配置文件中编辑这些行:

     static void Main (string[] args) {
        concatMedia (new string[] {
        args[0], args[1]
        }, args[2]);
     }

    private static string makeTempFile (string fileName) {
        FFMpegConverter c = new FFMpegConverter ();
        FileInfo fileInfo = new System.IO.FileInfo (fileName);
        string tempFile = Path.Combine (fileInfo.DirectoryName, Path.GetFileNameWithoutExtension (fileName) + ".ts");
        c.Invoke (string.Format ("-i {0} -c copy -bsf:v h264_mp4toannexb -f mpegts -y {1}", fileName, tempFile));
        return tempFile;
    }

    private static void concatMedia (string[] files, string output) {
        FFMpegConverter c = new FFMpegConverter ();
        List<string> tempFiles = new List<string> ();
        foreach (var item in files) {
            tempFiles.Add (makeTempFile (item));
        }
        c.Invoke (string.Format ("-i \"concat:{0}\" -c copy -bsf:a aac_adtstoasc -y {1}", string.Join ("|", tempFiles), output));
        foreach (var item in tempFiles) {
            System.IO.File.Delete (item);
        }
    }

执行此操作,7.1操作系统版本看起来像portait并填满所有屏幕......但它显示为颠倒。

6.0操作系统版本看起来不仅被转动,而且还被裁剪:

如何将其显示为纵向和全屏?

2 个答案:

答案 0 :(得分:0)

我使用here

中的LineageOS遇到了同样的问题

Source

我将更新从ODROID Utility运行到最新版本,它更改了&#34; HDMI Landscape / HDMI Portrait 90 + 270&#34;直接0,90,180,270。要改变它需要重新启动。

Fetched

ODROID XU4 on an ELO 32" Touchscreen

答案 1 :(得分:0)

所有Android设备都以相同的方式管理屏幕尺寸,因此这与您的android odroid无关,除非您被迫在横向使用且显示器源为纵向。

enter image description here您只需要使用屏幕菜单菜单->显示->(水平或垂直)来调整屏幕显示监视器的信号源方向即可。

相关问题