Set_Screen_Mode came out of a need at work. I use my Samsung N130 machine for work and, when I'm at my desk I connect to an ecternal monitor. In additon, when moving around from classroom to classroom quite often there can be an issue with the teacher's PC so I connect my Samsung to the projector to allow me to get on with the cass.
Ths issue is all of these display devices have different resoluations and none of them have the 1024x600 resolution of the Samsung's screen. Most displays do give the defualt 640x480 screen but it's inconvenient to be constantly having to set s better resolution, expecually as I have to hide applications launched at startup such as Lil Calendar. In addtion, some displays don't go down to 640x480 so i get no video ar all, Set_Screen_Mode is designed to address these issues.
Set_Screen_Mode reads the available screen modes as provided by the display and compares these to the modes chosen by the user in a priority ordered list. If no match is found, if will go on to check the returned modes aganst all those preset by the user and when a match is ound set that. It is also possible to force a mode even if it is not listed by the display or ignore the modes set for Set_Screen_Mode entirely. If not forced and no matching mode is found, Set_Screen_Mode will simply exit and the boot can continue as normal. All modes set are 'use' and the envarc: entries are never overwritten.
An environmental variable is created which contains the mode set; this can be queried in other programs and scripts, e.g. I use it with the script that lunches Janus to set the corrrect config to match the screen size. I've also included an application Set_PSI which selects the correct preset for PSI so these screens wil march the mode set too.
Of course this only works with native graphics but it has been tested with IntelGMA and NVidea machines and works with VGA and hdmi output (plus through a VGA to hdmi adapter).
Full instructions are in the included guides. If there is any feeback prior to me commiting this to teh AROS archives I'd much appreciate it.
Cheers,
Nigel.
Edit: I really should have checked my typing on the thread title before I posted...
Edited by ntromans on 29-09-2024 09:26,
2 months ago You do not have access to view attachments
I do get the occasional student asking about the OS. This is where Amigasystem's work on the look of the GUI comes in; he's absolutely correct in saying younger people are very critical if the system doesn't have enough 'eye candy'.
Cheers,
Nigel.