Android 6 r1 resolution changing

Discussion in 'Android' started by iddqd, Oct 28, 2016.

  1. iddqd

    iddqd Member

    Joined:
    Mar 24, 2014
    Messages:
    56
    Likes Received:
    11
    Hello.
    How can I set resolution in android 6? Uboot commands that was suitable for android 4.4 doesn't work now.
     
  2. iddqd

    iddqd Member

    Joined:
    Mar 24, 2014
    Messages:
    56
    Likes Received:
    11
  3. agl

    agl New Member

    Joined:
    Nov 2, 2016
    Messages:
    14
    Likes Received:
    2
    Hello, if someone have a solution i'm really really interessed about it :).
    Today i run Android 6 r1 on the quad with a résolution of 1080p on a screen 1280*800 and the performances are sadly too bad and the screen is deformed.
     
  4. agl

    agl New Member

    Joined:
    Nov 2, 2016
    Messages:
    14
    Likes Received:
    2
    Hi everybody,

    Sorry for the double post..
    Is someone can just tell us if setting the HDMI resolution on Marshmallow is a work in progress or if it's already implemented on the 6.0 differently than on the kitkat version please ?

    Thanks :)

    Edit:
    If this can help someone,
    I have simulate a resolution of 1280*720 on the version 6.0.r1, the performances are a little better with this "fix".

    On the adb shell (root) run these commands :
    # allow write on /system
    mount -o rw,remount,rw /system

    # make a save of the build.prop
    cp /system/build.prop /system/save.build.prop

    # modify the pixel density
    echo "ro.sf.lcd_density=240" >> /system/build.prop

    # remount /system read-only
    mount -o ro,remount,ro /system

    Then reboot.
     
    Last edited: Nov 7, 2016
  5. iddqd

    iddqd Member

    Joined:
    Mar 24, 2014
    Messages:
    56
    Likes Received:
    11
    Android Developers? Where are you???
     
  6. iddqd

    iddqd Member

    Joined:
    Mar 24, 2014
    Messages:
    56
    Likes Received:
    11
    50 days and counting...
     
  7. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi @iddqd,
    in Android there is no tool to resize the screen, and we are not developing it.
     
  8. iddqd

    iddqd Member

    Joined:
    Mar 24, 2014
    Messages:
    56
    Likes Received:
    11
    I don't understand. Do you mean that all Android devices use full hd resolution?
    And what about your previous version of Android where we was able to change resolution from uboot?
    And why it takes THREE MONTHS to give such answer?

    Just curious: all of your devices are supported that way?
     
  9. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    What you could do inside the uboot in the previous version, that you can already do via Android settings. In fact, with our previous version you were not able to resize the screen. Instead, there were some predefined resolutions for you to choose. In other words, there was no autoresize of the screen. The very same thing, i.e. choosing a predefined resolution, you can already do it via Android settings.
    You can also try to allow this feature via uboot, trying to change the env variables.
    Which way? Speaking of UDOO X86, as said during the campaign, we are not developing Android for x86, because it already exists: android-x86.org
     
  10. iddqd

    iddqd Member

    Joined:
    Mar 24, 2014
    Messages:
    56
    Likes Received:
    11
    Yes, I can enter the same command, but android won't boot then. And this forum has several reports about this issue.
    Previous version has had some predefined resolutions? So why current version don't have one? I never asked about autoresize or similar things. I asked way to switch from 1080p to 720p, because my screen is unable to work with 1080p.
    Great. It means that neo doesn't have support at all, just like a quad. ))))
     
  11. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Actually as I said there already are predefined resolutions in Android settings.

    Actually I was talking about UDOO X86, not about UDOO Neo.
     
  12. iddqd

    iddqd Member

    Joined:
    Mar 24, 2014
    Messages:
    56
    Likes Received:
    11
    Really? Where I can change HDMI resolution?

    oh sorry about that mistake.
     
  13. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    I was talking about this: http://www.udoo.org/docs/Cookbook_Android/UDOO_Android_Settings.html
    You actually cannot change HDMI resolution. The only choice you have is between LVDS 7, i.e. 7", LVDS 15, i.e. 15.6", and HDMI, i.e. Full HD. There is no other possibility right now. The only way to get other HDMI resolutions is to recompile Android changing the resolution in the kernel.
    We've made a guide in this regard: http://www.udoo.org/docs/Advanced_Topics/Compile_Android_From_Source.html
    If you want to try, the file to edit is this one: https://github.com/UDOOboard/linux_kernel/blob/m6.0.1-udoo/arch/arm/boot/dts/imx6q-udoo-hdmi.dts#L26
    I hope you'll be successful!
     
    iddqd likes this.
  14. iddqd

    iddqd Member

    Joined:
    Mar 24, 2014
    Messages:
    56
    Likes Received:
    11
    Thank you. I definitely try this. :)
     
    Andrea Rovai likes this.
  15. agl

    agl New Member

    Joined:
    Nov 2, 2016
    Messages:
    14
    Likes Received:
    2
    Hi all,

    This solution is not always working.
    With an HDMI<->HDMI cable, changing

    https://github.com/UDOOboard/linux_kernel/blob/m6.0.1-udoo/arch/arm/boot/dts/imx6q-udoo-hdmi.dts#L26


    with mode_str ="1280x800M@60"; worked on my 10.1 screen 16:10 screen.
    But because of the poor quality of the audio output on-board :

    http://www.udoo.org/forum/threads/poor-quality-blowing-sound-on-udoo-q-dl.6523/

    , I tried to pick the sound from an HDMI<->VGA+sound converter. And now the sound is accelerated or decelerated.

    I tried several converters : they are all working on the HDMI output of my laptop (amd64, linux 4.7.0 with xrandr -r 1280x800 -s 60.00)... but not with my build of UDOO-Android 6.0.1R2. (and the sound is accelerated or decelerated also on the official Udoobuntu ROM with a xrandr command).

    Is there an other audio*conf file to modify ? or an other *dts ? or something else in hardware/imx6 or device/udoo or device/imx6 ?

    Thanks in advance.
     
  16. Eva

    Eva New Member

    Joined:
    Jul 21, 2017
    Messages:
    1
    Likes Received:
    0
    yes it works...thanku so much...
     

Share This Page