VOGONS


First post, by Falcosoft

User metadata
Rank l33t
Rank
l33t

Hi,
First and foremost according to new forum community rules here is a warning:
!!! This project and thus this related topic is about an AI (more specifically ChatGPT) collaboration !!!

Preface:
I have never used AI Coding tools in my personal hobby projects so far since I like coding and in case of my projects there is no 'rush to market' that would justify such tools.
But I was curious how AI Coding would behave in situations where there are no known working solutions or best practices. We all know that AI Coding is very efficient when the problem domain is well known and the AI can use modern environments/frameworks/languages. There is no doubt that it can write the 1000th CRUD Web application in C#/Javascript without problems.
Also it can write legacy DOS based tools like FTP/File commanders etc. as can be seen here on Vogons.
But what happens if AI needs to write never existing legacy tools where really genuine new approaches are needed?

The idea:
My Thinkpad T430 always boots to DOS with full LCD brightness. Of course you can always press Fn+F8 multiple times to set the backlight level but e.g. Norton Commander interprets the Fn+F8 combo and changes the sort order of files.
So it would be more convenient to set the proper backlight level from CONFIG.SYS/AUTOEXEC.BAT. This is not a trivial task since on the T430 you cannot do this with the help of the known legacy interfaces and using ACPI from DOS is not without problems. But this is a very focused and well defined problem so I thought I gave a chance to AI to give me some solutions.

First I tried Google/Gemini. It was very confident at first and gave me solutions that either did not do anything or simply rebooted my T430. Finally Gemini declared that Lenovo disabled all possible routes to set the backlight level from DOS and the only possible solution is to alter VGA palette registers to fake lower brightness level (not the backlight).

Then I tried ChatGPT. The experience was similar at first but ChatGPT was more persistent and did not give up. And finally it could make a working solution 😀
It was rather funny that at the 1st 'confident' phase it even gave me compiled executable files but when I reported that the binaries rebooted my PC it switched to 'careful' mode and it was not willing to give me compiled binaries anymore 😀.
I did not use an AI enhanced IDE like Codex with ChatGPT but used the interactive console. It was very interesting experiencing how it reacts to failures or even to successful test results. The whole conversation can be read here:
https://chatgpt.com/share/6a636504-b994-83eb- … 65-4788ac1a851e

And finally here is the repository where the source files and the working binaries can be downloaded from:
@EDIT:
https://github.com/Falcosoft/T430LCD

Last edited by Falcosoft on 2026-07-26, 14:32. Edited 2 times in total.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 1 of 10, by onethirdxcubed

User metadata
Rank Member
Rank
Member

Will have to take a look at this; I noticed a while back that the backlight control keyboard shortcuts on the T430 work in DOS but hang the system when running Windows 98 (QuickInstall version).

Reply 2 of 10, by ntalaec

User metadata
Rank Member
Rank
Member
Falcosoft wrote on 2026-07-24, 14:06:

And finally here is the repository where the source files and the working binaries can be downloaded from:
https://github.com/Falcosoft/T430BLC

I was looking here: DOS software to change brightness/gamma? for DOS software that can change monitor brightness in my Netbook Sony VPCW11S1E. Using this software I get this error: MMIO write readback did not match requested duty. My graphic chip it's an Intel 945GM Express.

It's possible to add support for this hardware?

Reply 3 of 10, by Falcosoft

User metadata
Rank l33t
Rank
l33t
ntalaec wrote on 2026-07-25, 10:48:
Falcosoft wrote on 2026-07-24, 14:06:

And finally here is the repository where the source files and the working binaries can be downloaded from:
https://github.com/Falcosoft/T430BLC

I was looking here: DOS software to change brightness/gamma? for DOS software that can change monitor brightness in my Netbook Sony VPCW11S1E. Using this software I get this error: MMIO write readback did not match requested duty. My graphic chip it's an Intel 945GM Express.

It's possible to add support for this hardware?

I do not think it's possible for me since as can be read in the history of development the process required multiple interactive hardware testing steps.
So the best option would be to do the same process with ChatGPT on your hardware.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 4 of 10, by dr_st

User metadata
Rank l33t
Rank
l33t

Nice work!
I perused the solution and If I understand it correctly - most of the hard work is getting PCI MMIO to work in DOS.
After that it is just a matter of knowing the register offsets to read and write and the values corresponding to the intended functionality.

So the existing solution + reading the specs for one's specific chipset --> can help adapt the existing program to any device as long as the configuration is based on PCI MMIO.

Also, I think there have been some projects in the past aiming to port the generic PCIUTILS (LSPCI/SETPCI) to DOS. Not sure what the status of those is.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 5 of 10, by Falcosoft

User metadata
Rank l33t
Rank
l33t
dr_st wrote on 2026-07-26, 10:14:
Nice work! I perused the solution and If I understand it correctly - most of the hard work is getting PCI MMIO to work in DOS. A […]
Show full quote

Nice work!
I perused the solution and If I understand it correctly - most of the hard work is getting PCI MMIO to work in DOS.
After that it is just a matter of knowing the register offsets to read and write and the values corresponding to the intended functionality.

So the existing solution + reading the specs for one's specific chipset --> can help adapt the existing program to any device as long as the configuration is based on PCI MMIO.

Also, I think there have been some projects in the past aiming to port the generic PCIUTILS (LSPCI/SETPCI) to DOS. Not sure what the status of those is.

Yes, besides finding the proper MMIO writing routine the big help for ChatGPT was my DSDT table dump that was already available for me because of my external/express card GPU related experiments.
BTW, I continued the development with the help of ChatGPT and based on the achievements related to backlight controlling we successfully created a TSR (ASPECT.COM) that can correct aspect ratio on the internal LCD display of the T430.
Unfortunately currently it only works when the TSR is started from real mode (that is EMM386 or similar memory manager is NOT loaded) but it also works with protected mode programs/games.

Aspect ratio corrected Norton Commander:

The attachment norton_ar_corrected.jpg is no longer available

Aspect ratio corrected DOOM:

The attachment doom_ar_corrected.jpg is no longer available

Source and binary:

The attachment ASPECT.zip is no longer available

Soon I will rename the GitHub repository to T430LCD so it can include even more future tools (besides the current backlight and aspect ratio related ones) that are related to the internal LCD of the T430.
I will also update the documentation (generated by ChatGPT) with the new findings.

BTW, I think that at least the aspect ratio correction should work with other Ivy Bridge era laptops but none was tested besides the T430. Feedbacks are welcome.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 6 of 10, by zyzzle

User metadata
Rank Oldbie
Rank
Oldbie

Outstanding. It has always been a severe limitation of modernish laptops that their AR in DOS can't be changed from the hardcoded 16:9 to the proper 4:3 windowboxed on the standard 16:9 laptop displays. This is a revelation and a great proof of concept.

I do have a system with Intel HD 4000 graphics and Ivy Bridge CPU. I'll have to test, when I get back home in a week.

I wonder if this "AI experiment" may also be applied to the "Intel HD Graphics 620" and the Kaby Lake CPU (the system I'm typing this on right now). I do not have the DSDT table dump nor know how to get this from DOS for this system. I'd assume this would be required in order to either modify brightness directly in DOS or change aspect ratio. (But, my current system does allow to modify monitor backlight brightness in BIOS, just not via any DOS or Windows commandline program which directly modifies the registers.)

Reply 7 of 10, by Falcosoft

User metadata
Rank l33t
Rank
l33t
zyzzle wrote on 2026-07-26, 23:01:

Outstanding. It has always been a severe limitation of modernish laptops that their AR in DOS can't be changed from the hardcoded 16:9 to the proper 4:3 windowboxed on the standard 16:9 laptop displays. This is a revelation and a great proof of concept.

I do have a system with Intel HD 4000 graphics and Ivy Bridge CPU. I'll have to test, when I get back home in a week.

I wonder if this "AI experiment" may also be applied to the "Intel HD Graphics 620" and the Kaby Lake CPU (the system I'm typing this on right now). I do not have the DSDT table dump nor know how to get this from DOS for this system. I'd assume this would be required in order to either modify brightness directly in DOS or change aspect ratio. (But, my current system does allow to modify monitor backlight brightness in BIOS, just not via any DOS or Windows commandline program which directly modifies the registers.)

You do not need to get the DSDT from DOS. What's more there are no known tools to get it from DOS. You need Windows (or Linux) to get it.
You can use this package to extract the DSDT:

The attachment DSDTEditor-Linux-Mac-Win.zip is no longer available

Also you need Java to run it.

You should:
1. Run DSDT Editor.bat
2. File -> Extract DSDT
3. Save DSL as -> yoursystem.dsl
4. Upload it to ChatGPT.

The attachment dsdt1.png is no longer available

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 8 of 10, by zyzzle

User metadata
Rank Oldbie
Rank
Oldbie

I'm very happy to report that your 4:3 switching AR .com file works on my generic 3rd Gen core i5 Lenovo laptop. It is a great proof-of-concept. The brightness control also works in bare metal DOS, perfect.

I'll have to install Java specifically to get the DSDT off my 8th gen i5 vbios. Hopefully this will work and I can finagle ChatGPT to generate the resulting .com for that system.

Reply 9 of 10, by NeoG_

User metadata
Rank Oldbie
Rank
Oldbie
Falcosoft wrote on 2026-07-26, 12:21:
Yes, besides finding the proper MMIO writing routine the big help for ChatGPT was my DSDT table dump that was already available […]
Show full quote

Yes, besides finding the proper MMIO writing routine the big help for ChatGPT was my DSDT table dump that was already available for me because of my external/express card GPU related experiments.
BTW, I continued the development with the help of ChatGPT and based on the achievements related to backlight controlling we successfully created a TSR (ASPECT.COM) that can correct aspect ratio on the internal LCD display of the T430.
Unfortunately currently it only works when the TSR is started from real mode (that is EMM386 or similar memory manager is NOT loaded) but it also works with protected mode programs/games.

Aspect ratio corrected Norton Commander:

The attachment norton_ar_corrected.jpg is no longer available

Aspect ratio corrected DOOM:

The attachment doom_ar_corrected.jpg is no longer available

Source and binary:

The attachment ASPECT.zip is no longer available

Soon I will rename the GitHub repository to T430LCD so it can include even more future tools (besides the current backlight and aspect ratio related ones) that are related to the internal LCD of the T430.
I will also update the documentation (generated by ChatGPT) with the new findings.

BTW, I think that at least the aspect ratio correction should work with other Ivy Bridge era laptops but none was tested besides the T430. Feedbacks are welcome.

Is a TSR required because the aspect ratio resets after every display mode change and the GPU needs to be set up again for aspect correction?

98/DOS Rig: BabyAT AladdinV, K6-2+/550, V3 2000, 128MB PC100, 20GB HDD, 128GB SD2IDE, SB Live!, SB16-SCSI, PicoGUS, WP32 McCake, iNFRA CD, ZIP100
XP Rig: Lian Li PC-10 ATX, Gigabyte X38-DQ6, Core2Duo E6850, ATi HD5870, 2GB DDR2, 2TB HDD, X-Fi XtremeGamer

Reply 10 of 10, by Falcosoft

User metadata
Rank l33t
Rank
l33t
zyzzle wrote on Today, 00:05:

I'm very happy to report that your 4:3 switching AR .com file works on my generic 3rd Gen core i5 Lenovo laptop. It is a great proof-of-concept. The brightness control also works in bare metal DOS, perfect.

I'll have to install Java specifically to get the DSDT off my 8th gen i5 vbios. Hopefully this will work and I can finagle ChatGPT to generate the resulting .com for that system.

I'm glad it worked. I have suspected that the tools are not that T430 specific overall but your result is the 1st that confirms this.

NeoG_ wrote on Today, 00:43:

...
Is a TSR required because the aspect ratio resets after every display mode change and the GPU needs to be set up again for aspect correction?

Yes, exactly.

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)