Re: Dynamic display resolution change in CE 6.0



I've never done this and don't have any particular insight into the
mechanics of it, if it's even possible, but it would be worth looking at the
source code for the shell to see if anything short of a restart will change
its sizing of the desktop and so on. If you have the source for the Window
Manager portion of GWES, you could also see what is needed to change its
impression of the size of the display surface...

Paul T.

"Ishwar AKA Painkiller" <ishwarms@xxxxxxxxx> wrote in message
news:c6a30dbe-559a-49c6-a23e-fafd9e180e54@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Yes APPs can use EnumDisplaySettings and ChangeDisplaySettingsEx()
but it also needs reboot.
I am also looking to crack this..... I was able to get the VGA FB
without restart
but FB still filled with QVGA image :((

On Apr 11, 9:39 am, "Michel Verhagen (eMVP)" <mic...@xxxxxxxxxx>
wrote:
Response from voidcoder (I asked around):

While I haven't tried this myself yet, but it looks like it is
possible. Basically it is done through the GPE::NumModes(),
GPE::GetModeInfo() and GPE::SetMode() methods. He has to override
those methods in his GPE/DDGPE derived class in the disp driver
in order to support dynamic res changes. One of the sample display
drivers (I believe it is ATI RAGEX, don't have sources close at
hand at the mo) supports this.

Apps call EnumDisplaySettings() to find supported resolutions
andChangeDisplaySettingsEx() to change it.

Good luck,

Michel Verhagen, eMVP
Check out my blog:http://GuruCE.com/blog

GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

Danny wrote:
Michael,

I have looked a bit at the RageXL driver, and there are some places
where
that driver does special handling for the case of changing the display
resolution. But it is still not clear to me how the display resolution
change is initiated.

I will try to add this support by intercepting changes to the display
mode
(via SetDisplayMode()), and then manually deleting and reallocating the
primary surface. Not sure if this will be accepted behavior.

Thanks for the attempts to help,
Danny

"Michel Verhagen (eMVP)" wrote:

Danny,

The ATI RageXL display driver code seems to (want to) support dynamic
resolution changes. See
\WINCE600\PUBLIC\COMMON\OAK\DRIVERS\DISPLAY\RAGEXL\DAL\DALLIB\SRC\dalgco.c,
line 1430

But... It looks like a dead end because
DAL_MODECHANGE_MAJOR_DESKTOPRESORBPPCHANGE is only used in that file
and
the header file. No other code seems to use it... Could be a leftover
from the port of this driver from XP.

I think your best chance is to open a support incident with Microsoft
and get some sample code / help from the team. Documentation / example
code should definitely be extended for this functionality...

Good luck,

Michel Verhagen, eMVP
Check out my blog:http://GuruCE.com/blog

GuruCE
http://GuruCE.com
Consultancy, training and development services.

Michel Verhagen (eMVP) wrote:
Doing it from the bootloader is NOT dynamic. It requires a reboot,
and
that trick has been used since the earliest versions of Windows CE.
What
Dean wants is info on the dynamic display change that is now
supported
on CE 6.0

Sorry Dean, no experience with that yet, but I'll see what I can
find...

Good luck,

Michel Verhagen, eMVP
Check out my blog:http://GuruCE.com/blog

GuruCE
http://GuruCE.com
Consultancy, training and development services.

wince...@xxxxxxxxx wrote:
Danny,forget the display driver.You can do it in bootloader if your
platform has one.Then you can chang screen resolution dynamically in
it.You can store lcd infomation in g_ebootCFG and init LCD
controller
in bootloader.What you have to do in dispaly driver is getting the
LCD
information(just LCD_XSIZE and LCD_YSIZE).You even needn't init LCD
controller in display driver since you have it done in bootloader.

Good luck.



.



Relevant Pages

  • RE: Problem in setting Display resolution from TD
    ... I do not see the display resolution settings from TD ... driver so it means the driver is working fine in Windows XP Prof.. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Is there an Nvidia screen resolution fix for Gnome?
    ... display the 1680x1050@60 lcd screen resolution. ... to make the driver ignore any hardware detection. ... Can I otherwise force display device to ...
    (comp.os.linux.hardware)
  • Re: Dynamic display resolution change in CE 6.0
    ... impression of the size of the display surface... ... that driver does special handling for the case of changing the display ... But it is still not clear to me how the display resolution ... information.You even needn't init LCD ...
    (microsoft.public.windowsce.platbuilder)
  • Re: display resolution change
    ... Since your hardware is ok as you tested it, how do you know you are using FVA driver under XP Pro? ... Also, as suggested, you can always enumerate all hardware supported display modes in XP with EnumDisplaySettings API. ... in mind that FBA also uses the same EnumDisplaySettings/ChangeDisplaySettingsEx API for setting up the right display resolution. ... xpe by Device:Display component? ...
    (microsoft.public.windowsxp.embedded)
  • Re: Dynamic display resolution change in CE 6.0
    ... One of the sample display ... that driver does special handling for the case of changing the display ... But it is still not clear to me how the display resolution ... information.You even needn't init LCD ...
    (microsoft.public.windowsce.platbuilder)