Re: RESOLUTION & default ORIENTATION (of iso image)

901 views
Skip to first unread message
Message has been deleted
Message has been deleted
Message has been deleted

György Pejović

unread,
Jan 8, 2016, 11:44:50 AM1/8/16
to Android-x86
I think...

$source/device/generic/common/device.mk

Resolution

77           PRODUCT_AAPT_CONFIG := normal large xlarge mdpi hdpi
78           PRODUCT_AAPT_PREF_CONFIG := mdpi

Orientation

76            PRODUCT_CHARACTERISTICS := tablet

100          # Get tablet dalvik parameters
101          $(call inherit-product,frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)

2016. január 6., szerda 20:28:03 UTC időpontban Vel Asta a következőt írta:
Hey folks do you know how to (Where in the source code to change and then I'll re-build the image)

1.) Change the Resolution of the Android x86?  --> Need it smaller when running on Virtual box or QEMU. I think it's pre-defined somewhere in the kernel but where and how to change :)

2.) By default the Android x86 is in landscape mode, how can I change it to be in portrait by default :) since tablets can be in portrait too but it needs to be default and not through a  3rd party app. 

Thank you :D
Message has been deleted

György Pejović

unread,
Jan 10, 2016, 10:50:45 PM1/10/16
to Android-x86
I'm not sure.. I never changed those parameters. You can try modifying the line 76, 78, 101 in device.mk under the $source/device/generic/common/

76 PRODUCT_CHARACTERISTICS := phone

78 PRODUCT_AAPT_PREF_CONFIG := hdpi

101 $(call inherit-product,frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk


Chih-Wei Huang

unread,
Jan 11, 2016, 1:38:51 AM1/11/16
to Android-x86
2016-01-10 9:08 GMT+08:00 Vel Asta <pavel.as...@gmail.com>:
> I see, so for line 78 I can just change it to hdpi to make smaller?

That's totally unrelated to the resolution.

The resolution is controlled by the framebuffer driver
you use. Different drivers use different configurations.
Read:

https://docs.google.com/presentation/d/1mUQDFaERipwQQWHiZxmkvwPXNPlqtdv9lXrY5hPoUJ4/edit#slide=id.p75

VM usually uses the uvesa driver.

> As for the orientation sorry I didn't fully understand that :/ do I change
> the product charariestics to Phone or something else to make it portrait? :)

Again it's unrelated.

Again the key is to change the resolution to portrait mode.
Just search the forum.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

György Pejović

unread,
Jan 11, 2016, 9:23:39 AM1/11/16
to Android-x86
Sorry for my wrong answer!
Message has been deleted
Message has been deleted

Chih-Wei Huang

unread,
Feb 1, 2016, 10:57:11 PM2/1/16
to Android-x86
2016-02-02 6:56 GMT+08:00 Vela <pavel.as...@gmail.com>:
> Great powerpoint :) Where is the vesa and uvesa drivers located in the
> source? So to change the size of the screen?

Do you know a linux command 'locate'? Try

locate uvesa

However, don't bother to look into the code.
The resolution is not controlled by the driver
but your hardware.
The hardware tells the driver what resolutions
it supports.

Hint: Google 'vm custom resolution'
Message has been deleted

Chih-Wei Huang

unread,
Feb 2, 2016, 1:00:32 AM2/2/16
to Android-x86
2016-02-02 12:58 GMT+08:00 Pavel Astakhov <pavel.as...@gmail.com>:
> aa I see, that makes sense, thank you. What about the orientation? Isn't
> that a default stated somewhere in the source for the build?
> I see why it's set to landscape but would like to set it to portrait instead
> for device

It's still a custom resolution. (w < h)
Didn't you get it?
Message has been deleted

Povilas Staniulis

unread,
Feb 2, 2016, 8:37:49 AM2/2/16
to andro...@googlegroups.com
I don't think device type (phone or tablet) depends on screen resolution. Tablets can be either portrait or landscape.

On 2016.02.02 08:23, Pavel Astakhov wrote:
I'm sorry I don't understand what you mean by "custom resolution".

My last question was actually how to have the image (.iso) be in portrait mode by default and not landscape.


--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/ughs5URWHBc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Povilas Staniulis

unread,
Feb 2, 2016, 1:09:44 PM2/2/16
to andro...@googlegroups.com
Well, you've asked about device type before, so I assumed you want to make your device work like mobile.

On 2016.02.02 20:05, Pavel Astakhov wrote:
To elaborate, my question now isn't about device type!

It is just about, what do I change in the source code so that the .iso image that we build is set to portrait and not landscape by default? I saw a few people asking this on the forum but no seems to have posted a solution sadly. 

Thank you :)
Message has been deleted

Luis Felipe Hernandez

unread,
Feb 2, 2016, 3:23:33 PM2/2/16
to Android-x86
Hello

I think that android decides default orientation based on resolution. So for example you set resolution to 1280x720, you'll get landscape mode, so if you wanted portrait, you'd have to set resolution to 720x1280.

Hope this helps.


El martes, 2 de febrero de 2016, 12:25:02 (UTC-6), Vela escribió:
Yes thank you.
I was wondering if any of the experienced folk here might know how to change the orientation to portrait by default
 (Note: not using an app to change and lock the orientation to portrait but change something in the source to make it default when building and putting into VirtualBox)
Message has been deleted

Chih-Wei Huang

unread,
Feb 2, 2016, 8:45:49 PM2/2/16
to Android-x86
2016-02-03 6:07 GMT+08:00 Vela <pavel.as...@gmail.com>:
> hmm interesting Luis! Didn't think about it that way. I'd be interesting in
> testing that. Do you know where the source code it says a resolution of
> 1280x720? In which file

This has been answered many times.
It totally depends on the resolutions supported by your device.
Nothing to do with the source.

Why do you keep asking without thinking about that?

If you want portrait, just customize your resolution to portrait.
Doesn't it clear??
Message has been deleted

Chih-Wei Huang

unread,
Feb 2, 2016, 9:42:09 PM2/2/16
to Android-x86
2016-02-03 10:02 GMT+08:00 Pavel Astakhov <pavel.as...@gmail.com>:
> But I'm NOT running this on a device I'm running this on VirtualBox? I run
> it on different computers and it comes out the same on VirtualBox.
>

Google: vbox custom resolution

You still didn't try it. Did you?

Chih-Wei Huang

unread,
Feb 2, 2016, 9:46:55 PM2/2/16
to Android-x86
2016-02-03 10:41 GMT+08:00 Chih-Wei Huang <cwh...@android-x86.org>:
> 2016-02-03 10:02 GMT+08:00 Pavel Astakhov <pavel.as...@gmail.com>:
>> But I'm NOT running this on a device I'm running this on VirtualBox? I run
>> it on different computers and it comes out the same on VirtualBox.
>>
>
> Google: vbox custom resolution
>
> You still didn't try it. Did you?

It just takes you 3 seconds to get the answer:

https://4sysops.com/archives/change-the-screen-resolution-of-an-android-virtualbox-vm/
Message has been deleted

masdeco

unread,
Feb 5, 2016, 12:22:49 AM2/5/16
to Android-x86
thanks for the tips. Now, I can run remix os full screen in virtual box.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages