Jump to content











Photo
- - - - -

Out of range error from monitor


  • Please log in to reply
22 replies to this topic

#1 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 30 July 2008 - 12:47 AM

Hello, i've successfully built the livexp project and have a working cd. However most recently I started a new project and moved some of my scripts over and ran the project. It ran fine in qemu but after burning to a disk and booting from it I'm having a problem. It boots and even gets to the desktop screen but after a few seconds the monitor goes black and presents the message: Out of range. So then I deleted the project and started over. I downloaded only the livexp minimum project and made absolutely no changes and did not add any scripts. I built the project but end up with the same results. I have tried it on two different monitors both of witch are able to run at resolutions up to 1280x1024. I can press ctrl+shift+l and it sets the resolution to 640x480. I can then set the resolution to anything up to 1280x1024 and it works fine. I made no changes to thet setresolution script so it is still set to 800x600.
I can't think of anything i've done wrong here, I'm using the same cd source I was previously without any problems. Anyone else want to give some input?

#2 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 30 July 2008 - 12:58 AM

I'd like to debug this if possible. Please boot the PE again and post the output file '%temp%\SetResolution.log'.

Thanks,
Galapo.

#3 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 30 July 2008 - 05:25 AM

esgaroth:

in Basic->Tweaks->Display Properties choose 800x600 (which is default)

in Basic->Tweaks->SetResolution ;
uncheck "default to highest supported res" if selected.
and "Resolution for native machines" choose "1024x768"

i hope these help, a friend of mine had a problem like too but he went to a vacation after he reported :cheers:

#4 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 30 July 2008 - 11:07 AM

Update: I've been able to reproduce the issue on another system and am testing a solution at the moment. I intend to upload a new version with fix tomorrow.

Regards,
Galapo.

#5 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 30 July 2008 - 12:38 PM

I used to have the same problem, somehow the autodetect doesn't always work right, that's why i insisted on a switch to vga option.
But basicly it's just there so we can tell users: "Press this key and you get a working desktop again."
In reality it's good enough to switch so long to a smaller resolution till you get to see the desktop again. That's usually 1 time!

:cheers:

#6 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 30 July 2008 - 04:28 PM

well, I'm back at work now, But it looks like you have been able to reproduce the problem so you probably don't need this information now. But here is the contents of my setresolution.log file:

640x480, 8bits, @1Hz
800x600, 8bits, @1Hz
1024x768, 8bits, @1Hz
1280x1024, 8bits, @1Hz
640x480, 16bits, @1Hz
640x480, 32bits, @1Hz
800x600, 16bits, @1Hz
800x600, 32bits, @1Hz
1024x768, 16bits, @1Hz
1024x768, 32bits, @1Hz
1280x1024, 16bits, @1Hz
1280x1024, 32bits, @1Hz
1600x1200, 8bits, @1Hz
1600x1200, 16bits, @1Hz
1400x1050, 8bits, @1Hz
1400x1050, 16bits, @1Hz
2048x1536, 32bits, @1Hz
640x480, 4bits, @1Hz
800x600, 4bits, @1Hz
800x600, 4bits, @1Hz
mutiplier = 65536
Native Machine detected
BestRes successfully set to: 2048x1536.

so its definately setting the resolution way too high.

#7 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 30 July 2008 - 11:09 PM

Hi esgaroth,

Out of interest: is the monitor crt of lcd. My current hunch is that this issue occurs with crt monitors.

Thanks,
Galapo.

#8 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 30 July 2008 - 11:46 PM

it is a crt

#9 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 30 July 2008 - 11:55 PM

Thanks for reporting.

I'm still coding around this issue at the moment and will release later today.

Regards,
Galapo.

#10 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 31 July 2008 - 12:07 AM

I tried the same disk on a couple of new laptops, the resolution is correctly set to 1440x900.

#11 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 31 July 2008 - 12:10 AM

Yes, I've had no issues with laptops either. I suspect it is with crt monitors only.

Another question: do you use a driver for the display adapter, or just use default vga.sys?

#12 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 31 July 2008 - 12:55 AM

If the problem only occurs with crt and not with tft, it stands to reason that the max resolution might be detected right. Just the max allowed frequency for that resolution was exeeded.

:cheers:

#13 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 31 July 2008 - 01:05 AM

Just the max allowed frequency for that resolution was exeeded.


That is indeed the problem.

When calling EnumDisplaySettingsEx, I had first thought not setting EDS_RAWMODE would be enough as per MSDN note. However, if only generic vgasave device is utilised at PE, then it seems that with crt monitors, returned supported resolutions may indeed be too high for refresh rate. Trouble is, we have no way of knowing (to the best of my knowledge) of obtaining the proper rate as rates returned from EnumDisplaySettingsEx for vgasave device are simply given as "default" -- but we don't know the "default". So I have to code around this for vgasave device if it is used.

Regards,
Galapo.

#14 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 31 July 2008 - 02:55 AM

SetResolution script has now been updated: http://www.boot-land...?...ost&p=40863

Download either from my site or the LiveXP server.

Regards,
Galapo.

#15 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 31 July 2008 - 01:07 PM

Not my favorite kind of solution, besides, nVidia driver show the same problem. :cheers:
Galapo can you make the log show which frequency was applied or do you know which frequency setResolution tries to apply?

Tried to find a Vesa modi chart for you, as those frequencies will have to work, but no luck so far.

:cheers:

#16 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 31 July 2008 - 01:45 PM

esgaroth, can you also post the list of modes your monitor supports?

:cheers:

#17 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 31 July 2008 - 08:36 PM

Galapo can you make the log show which frequency was applied or do you know which frequency setResolution tries to apply?


Yes, at any point, SetResolution knows the current resolution and the resolution being attempted to be applied. If an unsuccessful resolution change attempt can be determined (unfortunately, not the case for the refresh rate issue) SetResolution writes the unsuccessfully applied resolution to the log as well as the resolution at which that attempt was made.

I am more than will to take further suggestions on this issue. I was unaware that it affects more than vgasave device but also nvidia drivers.

Regards,
Galapo.

#18 cjc343

cjc343

    Newbie

  • Members
  • 25 posts
  •  
    United States

Posted 31 July 2008 - 10:06 PM

I had a similar problem with SetResolution:

When I used the disc on a computer with a DVI lcd, it worked fine. Switch to a VGA lcd, and it would complain. I had set it to use the resolution 1280x1024 (NOT to use the default highest), which was supported on both monitors. I ended up simply setting it in Display Properties and unchecking SetResolution.

Dunno if that helps...

Hardware used:

Dell Optiplex 755 w/ ATI Radeon 2400 XT
Samsung SyncMaster 915n

#19 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 31 July 2008 - 10:23 PM

Well, most LCD displays work fine up to a frequency of 75Hz, while some don't work with more than 60Hz.
If things work fine with a DVI - but not with a VGA connection, it seems setRes tries to apply a frequency above 60Hz maybe even above 75Hz.

:cheers:

#20 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 31 July 2008 - 10:39 PM

Had a look. The monitor that blanks supports it's max. Resolution at 75Hz.

The problem i'm starting to see.
SetRes has to set actually a higher frequency with autodetect than without.
Else LCD displays would never work on a VGA connection for PE with setRes. :cheers:

:cheers:

#21 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 01 August 2008 - 12:00 AM

Tested my desktop: running a SyncMaster 753dfx on nVidia GeForce4 mx 440.

SetResolution.log on w2k:

640x480, 8bits, @60 Hz
640x480, 16bits, @60 Hz
640x480, 32bits, @60 Hz
320x200, 8bits, @75 Hz
320x240, 8bits, @60 Hz
320x240, 8bits, @70 Hz
320x240, 8bits, @72 Hz
320x240, 8bits, @75 Hz
400x300, 8bits, @60 Hz
400x300, 8bits, @70 Hz
400x300, 8bits, @72 Hz
400x300, 8bits, @75 Hz
480x360, 8bits, @60 Hz
480x360, 8bits, @70 Hz
480x360, 8bits, @72 Hz
480x360, 8bits, @75 Hz
512x384, 8bits, @60 Hz
512x384, 8bits, @70 Hz
512x384, 8bits, @72 Hz
512x384, 8bits, @75 Hz
640x400, 8bits, @60 Hz
640x400, 8bits, @70 Hz
640x400, 8bits, @72 Hz
640x400, 8bits, @75 Hz
320x200, 8bits, @60 Hz
640x480, 8bits, @70 Hz
640x480, 8bits, @72 Hz
640x480, 8bits, @75 Hz
640x480, 8bits, @85 Hz
640x480, 8bits, @100 Hz
640x480, 8bits, @120 Hz
640x480, 8bits, @140 Hz
720x480, 8bits, @60 Hz
720x576, 8bits, @60 Hz
800x600, 8bits, @60 Hz
800x600, 8bits, @70 Hz
800x600, 8bits, @72 Hz
800x600, 8bits, @75 Hz
800x600, 8bits, @85 Hz
800x600, 8bits, @100 Hz
848x480, 8bits, @60 Hz
848x480, 8bits, @70 Hz
848x480, 8bits, @72 Hz
848x480, 8bits, @75 Hz
848x480, 8bits, @85 Hz
848x480, 8bits, @100 Hz
848x480, 8bits, @120 Hz
848x480, 8bits, @140 Hz
960x600, 8bits, @60 Hz
960x600, 8bits, @70 Hz
960x600, 8bits, @72 Hz
960x600, 8bits, @75 Hz
960x600, 8bits, @85 Hz
960x600, 8bits, @100 Hz
1024x768, 8bits, @60 Hz
1024x768, 8bits, @70 Hz
1024x768, 8bits, @72 Hz
1024x768, 8bits, @75 Hz
1024x768, 8bits, @85 Hz
1152x864, 8bits, @60 Hz
1152x864, 8bits, @70 Hz
1152x864, 8bits, @72 Hz
1152x864, 8bits, @75 Hz
1280x720, 8bits, @60 Hz
1280x720, 8bits, @70 Hz
1280x720, 8bits, @72 Hz
1280x720, 8bits, @75 Hz
1280x720, 8bits, @85 Hz
1280x768, 8bits, @60 Hz
1280x768, 8bits, @70 Hz
1280x768, 8bits, @72 Hz
1280x768, 8bits, @75 Hz
1280x768, 8bits, @85 Hz
1280x800, 8bits, @60 Hz
1280x800, 8bits, @70 Hz
1280x800, 8bits, @72 Hz
1280x800, 8bits, @75 Hz
1280x960, 8bits, @60 Hz
1280x1024, 8bits, @60 Hz
320x200, 16bits, @60 Hz
320x200, 16bits, @70 Hz
320x200, 16bits, @72 Hz
320x200, 16bits, @75 Hz
320x240, 16bits, @60 Hz
320x240, 16bits, @70 Hz
320x240, 16bits, @72 Hz
320x240, 16bits, @75 Hz
400x300, 16bits, @60 Hz
400x300, 16bits, @70 Hz
400x300, 16bits, @72 Hz
400x300, 16bits, @75 Hz
480x360, 16bits, @60 Hz
480x360, 16bits, @70 Hz
480x360, 16bits, @72 Hz
480x360, 16bits, @75 Hz
512x384, 16bits, @60 Hz
512x384, 16bits, @70 Hz
512x384, 16bits, @72 Hz
512x384, 16bits, @75 Hz
640x400, 16bits, @60 Hz
640x400, 16bits, @70 Hz
640x400, 16bits, @72 Hz
640x400, 16bits, @75 Hz
320x200, 8bits, @70 Hz
640x480, 16bits, @70 Hz
640x480, 16bits, @72 Hz
640x480, 16bits, @75 Hz
640x480, 16bits, @85 Hz
640x480, 16bits, @100 Hz
640x480, 16bits, @120 Hz
640x480, 16bits, @140 Hz
720x480, 16bits, @60 Hz
720x576, 16bits, @60 Hz
800x600, 16bits, @60 Hz
800x600, 16bits, @70 Hz
800x600, 16bits, @72 Hz
800x600, 16bits, @75 Hz
800x600, 16bits, @85 Hz
800x600, 16bits, @100 Hz
848x480, 16bits, @60 Hz
848x480, 16bits, @70 Hz
848x480, 16bits, @72 Hz
848x480, 16bits, @75 Hz
848x480, 16bits, @85 Hz
848x480, 16bits, @100 Hz
848x480, 16bits, @120 Hz
848x480, 16bits, @140 Hz
960x600, 16bits, @60 Hz
960x600, 16bits, @70 Hz
960x600, 16bits, @72 Hz
960x600, 16bits, @75 Hz
960x600, 16bits, @85 Hz
960x600, 16bits, @100 Hz
1024x768, 16bits, @60 Hz
1024x768, 16bits, @70 Hz
1024x768, 16bits, @72 Hz
1024x768, 16bits, @75 Hz
1024x768, 16bits, @85 Hz
1152x864, 16bits, @60 Hz
1152x864, 16bits, @70 Hz
1152x864, 16bits, @72 Hz
1152x864, 16bits, @75 Hz
1280x720, 16bits, @60 Hz
1280x720, 16bits, @70 Hz
1280x720, 16bits, @72 Hz
1280x720, 16bits, @75 Hz
1280x720, 16bits, @85 Hz
1280x768, 16bits, @60 Hz
1280x768, 16bits, @70 Hz
1280x768, 16bits, @72 Hz
1280x768, 16bits, @75 Hz
1280x768, 16bits, @85 Hz
1280x800, 16bits, @60 Hz
1280x800, 16bits, @70 Hz
1280x800, 16bits, @72 Hz
1280x800, 16bits, @75 Hz
1280x960, 16bits, @60 Hz
1280x1024, 16bits, @60 Hz
320x200, 32bits, @60 Hz
320x200, 32bits, @70 Hz
320x200, 32bits, @72 Hz
320x200, 32bits, @75 Hz
320x240, 32bits, @60 Hz
320x240, 32bits, @70 Hz
320x240, 32bits, @72 Hz
320x240, 32bits, @75 Hz
400x300, 32bits, @60 Hz
400x300, 32bits, @70 Hz
400x300, 32bits, @72 Hz
400x300, 32bits, @75 Hz
480x360, 32bits, @60 Hz
480x360, 32bits, @70 Hz
480x360, 32bits, @72 Hz
480x360, 32bits, @75 Hz
512x384, 32bits, @60 Hz
512x384, 32bits, @70 Hz
512x384, 32bits, @72 Hz
512x384, 32bits, @75 Hz
640x400, 32bits, @60 Hz
640x400, 32bits, @70 Hz
640x400, 32bits, @72 Hz
640x400, 32bits, @75 Hz
320x200, 8bits, @72 Hz
640x480, 32bits, @70 Hz
640x480, 32bits, @72 Hz
640x480, 32bits, @75 Hz
640x480, 32bits, @85 Hz
640x480, 32bits, @100 Hz
640x480, 32bits, @120 Hz
640x480, 32bits, @140 Hz
720x480, 32bits, @60 Hz
720x576, 32bits, @60 Hz
800x600, 32bits, @60 Hz
800x600, 32bits, @70 Hz
800x600, 32bits, @72 Hz
800x600, 32bits, @75 Hz
800x600, 32bits, @85 Hz
800x600, 32bits, @100 Hz
848x480, 32bits, @60 Hz
848x480, 32bits, @70 Hz
848x480, 32bits, @72 Hz
848x480, 32bits, @75 Hz
848x480, 32bits, @85 Hz
848x480, 32bits, @100 Hz
848x480, 32bits, @120 Hz
848x480, 32bits, @140 Hz
960x600, 32bits, @60 Hz
960x600, 32bits, @70 Hz
960x600, 32bits, @72 Hz
960x600, 32bits, @75 Hz
960x600, 32bits, @85 Hz
960x600, 32bits, @100 Hz
1024x768, 32bits, @60 Hz
1024x768, 32bits, @70 Hz
1024x768, 32bits, @72 Hz
1024x768, 32bits, @75 Hz
1024x768, 32bits, @85 Hz
1152x864, 32bits, @60 Hz
1152x864, 32bits, @70 Hz
1152x864, 32bits, @72 Hz
1152x864, 32bits, @75 Hz
1280x720, 32bits, @60 Hz
1280x720, 32bits, @70 Hz
1280x720, 32bits, @72 Hz
1280x720, 32bits, @75 Hz
1280x720, 32bits, @85 Hz
1280x768, 32bits, @60 Hz
1280x768, 32bits, @70 Hz
1280x768, 32bits, @72 Hz
1280x768, 32bits, @75 Hz
1280x768, 32bits, @85 Hz
1280x800, 32bits, @60 Hz
1280x800, 32bits, @70 Hz
1280x800, 32bits, @72 Hz
1280x800, 32bits, @75 Hz
1280x960, 32bits, @60 Hz
1280x1024, 32bits, @60 Hz
mutiplier = 65536


SetResolution.log under PE using vgasave device:

640x480, 8bits, @defaultHz
800x600, 8bits, @defaultHz
1024x768, 8bits, @defaultHz
1280x1024, 8bits, @defaultHz
640x480, 16bits, @defaultHz
640x480, 32bits, @defaultHz
800x600, 16bits, @defaultHz
800x600, 32bits, @defaultHz
1024x768, 16bits, @defaultHz
1024x768, 32bits, @defaultHz
1280x1024, 16bits, @defaultHz
1280x1024, 32bits, @defaultHz
1600x1200, 8bits, @defaultHz
1600x1200, 16bits, @defaultHz
1400x1050, 8bits, @defaultHz
1400x1050, 16bits, @defaultHz
2048x1536, 32bits, @defaultHz
mutiplier = 65536
Native Machine detected
BestRes successfully set vgasave device to: 1024x768
BestRes successfully set vgasave device to: 1280x1024


Quite a difference in what the api reports.

Big thing to note: I checked reported current frequency at boot and it was simply reported as "1", ie default. Trouble is, we need to know a) current frequency to know if it needs to be altered (but we don't as it's only reported as default); and b) we need to know supported frequency at a particular resolution (but we don't as it's only reported as default).

Not sure what to do when automatically setting to highest supported resolution in PE other than what I implemented yesterday, ie attempting to adjust to predefined known working resolutions which won't be out of frequency range.

Regards,
Galapo.

#22 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 01 August 2008 - 12:21 AM

640x480, 8bits, @defaultHz
800x600, 8bits, @defaultHz
1024x768, 8bits, @defaultHz
1280x1024, 8bits, @defaultHz
640x480, 16bits, @defaultHz
640x480, 32bits, @defaultHz
800x600, 16bits, @defaultHz
800x600, 32bits, @defaultHz
1024x768, 16bits, @defaultHz
1024x768, 32bits, @defaultHz
1280x1024, 16bits, @defaultHz
1280x1024, 32bits, @defaultHz
1600x1200, 8bits, @defaultHz
1600x1200, 16bits, @defaultHz
1400x1050, 8bits, @defaultHz
1400x1050, 16bits, @defaultHz
2048x1536, 32bits, @defaultHz
mutiplier = 65536
Native Machine detected
BestRes successfully set vgasave device to: 1024x768
BestRes successfully set vgasave device to: 1280x1024

Somehow the log makes no sense.
Why is 1280x1024 choosen as bestRes? Shouldn't it be 2048x1536 acording to the log?
And of course in case SetRes would really switch to one of these:

1600x1200, 8bits, @defaultHz
1600x1200, 16bits, @defaultHz
1400x1050, 8bits, @defaultHz
1400x1050, 16bits, @defaultHz
2048x1536, 32bits, @defaultHz

One would get a black screen.

Hope this helps, i'm outta here! :cheers:

#23 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 01 August 2008 - 12:31 AM

Somehow the log makes no sense.
Why is 1280x1024 choosen as bestRes? Shouldn't it be 2048x1536 acording to the log?


That's because the "manual" override I coded yesterday has kicked in: even though windows api reports higher available resolutions, upper limit has been set for vgasave device at 1280x1024.

Regards,
Galapo.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users