改变外部输出分辨率

时间:2011-08-31 07:52:08

标签: android sdk settings resolution

是否可以在Android手机中更改hdmi-output的外部分辨率? 没有评论那么深刻,只是说,他们能够播放高清,但不是,如果Android能够手动更改设置..

sdk中有任何功能吗?

1 个答案:

答案 0 :(得分:0)

回来与那些也遇到过这种情况的人分享我的解决方案。

在运行Lollipop的Note3上,我可以通过运行(通过终端应用程序或adb shell)检查支持的外部分辨率

  let stream = Rx.Observable.fromArray([1, 2, 3]);

  let div$ = stream.map(i => {
    let div = document.createElement('div');
    div.innerHTML = `NOT WORKING DIV ${i}`;
    return div;
  })
  //Make div$ into a connectable Observable so the subscriptions will
  //share the underlying Observable
  .publish()

  div$.subscribe(div => {
    document.querySelector('body').appendChild(div);
  })

  let click$ = div$.flatMap(
    div => Rx.Observable.fromEvent(div, 'click')
  );

  click$.subscribe(click => console.log('click'));

  //Nothing happens until you call connect which subscribes to the underlying
  //Observable
  div$.connect();

和(用grep过滤)寻找行:

>dmesg
您将注意到的

对应于支持的解决方案:

<6>[  581.051746] hdmi_edid_add_sink_video_format: EDID: format: 1 [640x480 p60 4/3], Supported
<6>[  581.051756] hdmi_edid_add_sink_video_format: EDID: format: 1 [640x480 p60 4/3], Supported by MHL
<6>[  581.051767] hdmi_edid_add_sink_video_format: EDID: format: 16 [1920x1080 p60 16/9], Supported
<6>[  581.051777] hdmi_edid_add_sink_video_format: EDID: format: 16 [1920x1080 p60 16/9], Not-Supported by MHL
<6>[  581.051790] hdmi_edid_add_sink_video_format: EDID: format: 4 [1280x 720 p60 16/9], Supported
<6>[  581.051801] hdmi_edid_add_sink_video_format: EDID: format: 4 [1280x 720 p60 16/9], Supported by MHL
<6>[  581.051812] hdmi_edid_add_sink_video_format: EDID: format: 133 [1280x1024 p60 5/4], Not-Supported
<6>[  581.051822] hdmi_edid_add_sink_video_format: EDID: format: 133 [1280x1024 p60 5/4], Not-Supported by MHL
<6>[  581.051833] hdmi_edid_add_sink_video_format: EDID: format: 132 [1024x768 p60 4/3], Not-Supported
<6>[  581.051843] hdmi_edid_add_sink_video_format: EDID: format: 132 [1024x768 p60 4/3], Not-Supported by MHL

然后使用以下选择您的首选输出:

>cat /sys/devices/virtual/graphics/fb1/edid_modes 
1,4

然后重新插入mhl适配器。

在我的情况下产生了640x480,这是我的800x600投影机支持的唯一选项。

感谢StackExchange answer