← Back to team overview

ubuntu-phone team mailing list archive

Re: [Ports] New method to handle the device specific pixel ratio

 

Sony Xperia Neo & Sony Xperia Neo V

*haida.conf*
GRID_UNIT_PX=11
QTWEBKIT_DPR=1.5
FORM_FACTOR="phone"

*hallon.conf*
GRID_UNIT_PX=11
QTWEBKIT_DPR=1.5
FORM_FACTOR="phone"

Regards,
Daniel Winzen

Am 07.04.2013 18:58, schrieb Jonas Schwabe:
HTC Desire S

*saga.conf*
GRID_UNIT_PX=11.5
QTWEBKIT_DPR=1.3
FORM_FACTOR="phone"


Cheers
-Jonas


2013/4/3 Ricardo Salveti de Araujo <ricardo.salveti@xxxxxxxxxxxxx <mailto:ricardo.salveti@xxxxxxxxxxxxx>>

    Thanks for the configs, I created the MR
    https://code.launchpad.net/~rsalveti/session-manager/adding_more_configs/+merge/156729
    <https://code.launchpad.net/%7Ersalveti/session-manager/adding_more_configs/+merge/156729>
    adding them.

    Once merged will make a new package release so we can get that at
    our daily images soon.

    Sorry for the delay, was off last week.

    Thanks,

    Ricardo


    On 03/24/2013 09:22 PM, John Nelson wrote:

        Samsung Galaxy Tab 2 7.0, p3113 and p3110:

        *espressowifi.conf*

        GRID_UNIT_PX=8
        QTWEBKIT_DPR=1
        FORM_FACTOR="tablet"

        Samsung Galaxy Tab 2 7.0, p3100:
        *espressorf.conf*

        GRID_UNIT_PX=8
        QTWEBKIT_DPR=1
        FORM_FACTOR="tablet"


        On Sat, Mar 23, 2013 at 2:15 PM, Henrique Santos Fernandes
        <sf.rique@xxxxxxxxx <mailto:sf.rique@xxxxxxxxx>
        <mailto:sf.rique@xxxxxxxxx <mailto:sf.rique@xxxxxxxxx>>> wrote:

            ro.product.device=GT-I9000B
            ro.product.board=aries


            GRID_UNIT_PX=10
            QTWEBKIT_DPR=1.0
            FORM_FACTOR="phone"


            []'sf.rique


            On Sat, Mar 23, 2013 at 3:00 PM, f69m <launchpad@xxxxxxx
        <mailto:launchpad@xxxxxxx>
            <mailto:launchpad@xxxxxxx <mailto:launchpad@xxxxxxx>>> wrote:

                Thanks, so much easier now! :)

                Config for Asus Transformer Pad TF300T:

                Filename: tf300t.conf
                ---
                GRID_UNIT_PX=10
                QTWEBKIT_DPR=1.6
                FORM_FACTOR="tablet"
                ---



                On 03/22/2013 02:27 AM, Ricardo Salveti de Araujo wrote:

                    Hey,

                    We just landed a merge request [1] created by
        Oliver (ogra)
                    that improves the way we're currently handling the
        device
                    specific pixel ratio values.

                    The main idea is to move the device specific
        configuration
                    from /usr/bin/ubuntu-session to a proper config
        file, in a
                    way it won't be needed to change the original
        sources anymore.

                    As described at
        https://wiki.ubuntu.com/Touch/__Porting#Screen_Pixel_Ratio
<https://wiki.ubuntu.com/Touch/Porting#Screen_Pixel_Ratio>,

                    here's how you can create your device specific
        configuration
                    file from tomorrow's image on:

                    First identify the ro.product.device android
        property used
                    by your device (check the /system/build.prop file
        from your
                    port or from the original Android image). Then
        with the
                    desired DPR, create a file at
        /etc/ubuntu-session.d, adding
                    your custom GRID_UNIT_PX and QTWEBKIT_DPR
        variables, also
                    specifying the default form factor you want, such as:
                    $ cat /etc/ubuntu-session.d/manta.__conf

                    GRID_UNIT_PX=20
                    QTWEBKIT_DPR=2.5
                    FORM_FACTOR="tablet"

                    Another good side effect is that people will be
        able to
                    safely update the ubuntu-session package without
        breaking
                    the previous device specific setup. Also, it make
        way easier
                    to accept new contributions as all we need now is
        to add a
                    config file to the session-manager package.

                    Also, please don't forget to send us the config
        file after
                    you created it for your port, so we can include
        them in
                    ubuntu-session by default.

                    Thanks.

                    [1]
        https://code.launchpad.net/~__ogra/session-manager/posix-__rewrite/+merge/153542
        <https://code.launchpad.net/%7E__ogra/session-manager/posix-__rewrite/+merge/153542>
<https://code.launchpad.net/~ogra/session-manager/posix-rewrite/+merge/153542
        <https://code.launchpad.net/%7Eogra/session-manager/posix-rewrite/+merge/153542>>



                --
                Mailing list: https://launchpad.net/~ubuntu-__phone
        <https://launchpad.net/%7Eubuntu-__phone>
                <https://launchpad.net/~ubuntu-phone
        <https://launchpad.net/%7Eubuntu-phone>>
                Post to     : ubuntu-phone@lists.launchpad.__net
                <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx
        <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>>
                Unsubscribe : https://launchpad.net/~ubuntu-__phone
        <https://launchpad.net/%7Eubuntu-__phone>
                <https://launchpad.net/~ubuntu-phone
        <https://launchpad.net/%7Eubuntu-phone>>
                More help   : https://help.launchpad.net/__ListHelp

                <https://help.launchpad.net/ListHelp>



            --
            Mailing list: https://launchpad.net/~ubuntu-phone
        <https://launchpad.net/%7Eubuntu-phone>
            Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
        <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
            <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx
        <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>>

            Unsubscribe : https://launchpad.net/~ubuntu-phone
        <https://launchpad.net/%7Eubuntu-phone>
            More help   : https://help.launchpad.net/ListHelp






-- Ricardo Salveti de Araujo


-- Mailing list: https://launchpad.net/~ubuntu-phone
    <https://launchpad.net/%7Eubuntu-phone>
    Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
    <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~ubuntu-phone
    <https://launchpad.net/%7Eubuntu-phone>
    More help   : https://help.launchpad.net/ListHelp






--
Daniel Winzen
d@xxxxxxxxxx
My Websites:
https://launchpad.net/~q-d
http://manual.audacityteam.org/man/User:Daniel
http://l10n.gnome.org/users/DanWin/
https://www.transifex.com/accounts/profile/DanWin/
https://github.com/DanWin
http://forum.xda-developers.com/member.php?u=5197875
https://crowdin.net/profile/DanWin


References