How do you hide certain menu items via Aptio V Setup ifr?

Hi,

@Lost_N_Bios

Assuming you have this code snippet:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
End {29 02}
0x78EE0 One Of: 5G LAN Card, VarStoreInfo (VarOffset/VarName): 0x11BF, VarStore: 0x1, QuestionId: 0xDC2, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 90 22 91 22 C2 0D 01 00 BF 11 10 10 00 01 00}
0x78EF1 One Of Option: Disabled, Value (8 bit): 0x0 {09 07 0B 13 00 00 00}
0x78EF8 One Of Option: Enabled, Value (8 bit): 0x1 (default) {09 07 30 18 10 00 01}
0x78EFF End One Of {29 02}
0x78F01 Subtitle: Statement.Prompt: , Flags: 0x0 {02 87 02 00 00 00 00}
0x78F08 End {29 02}
0x78F0A Suppress If {0A 82}
0x78F0C QuestionId: 0xDC2 equals value 0x0 {12 06 C2 0D 00 00}
0x78F12 One Of: 5G LAN PXE Option ROM, VarStoreInfo (VarOffset/VarName): 0x11C0, VarStore: 0x1, QuestionId: 0xDC3, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 92 22 93 22 C3 0D 01 00 C0 11 10 10 00 01 00}
0x78F23 One Of Option: Disabled, Value (8 bit): 0x0 (default) {09 07 0B 13 10 00 00}
0x78F2A One Of Option: Enabled, Value (8 bit): 0x1 {09 07 30 18 00 00 01}
0x78F31 End One Of {29 02}
0x78F33 End If {29 02}
0x78F35 One Of: Intel LAN Controller
 


How would you hide from being displayed in bios setup the 5G Menu Lan option?

Thanks

Will this work:

0A 82 Supress if
12 06 C2 0D 01 00 variable dc2 equals 1 (moved up to top from below)
05 91 90 22 91 22 C2 0D 01 00 BF 11 10 10 00 01 00
09 07 0B 13 00 00 00
09 07 30 18 10 00 01
29 02
02 87 02 00 00 00 00
29 02
05 91 92 22 93 22 C3 0D 01 00 C0 11 10 10 00 01 00
09 07 0B 13 10 00 00
09 07 30 18 00 00 01
29 02
29 02

So, hide 5G LAN and unhide 5G LAN PXE? Or do you want to hide them both? It looks like you are hiding both now, but you’d have to test the edit and see what it looks like in IFR post-edit
In general, yes, you can move suppression from the bottom to the top, entirely so only top is hidden (needs 1x 2902 moved up to top for that too), or make it encompass both, just make sure you aren’t adding or subtracting any bytes

What is the edit here for? >> variable dc2 equals 1, and if you meant to change that to avoid the suppression 01 may not work either, best to use FF.
Also, be sure to check similar suppressions with variable other than 00 to make sure you are adding the 01 or FF in the correct location

You can also do this, to avoid suppression and not edit the variable at all (unless MSI BIOS)
Suppress If {0A 82}
QuestionId: 0xDC2 equals value 0x0 {12 06 C2 0D 00 00}
End If {29 02}
One Of: 5G LAN PXE Option ROM, VarStoreInfo (VarOffset/VarName): 0x11C0, VarStore: 0x1, QuestionId: 0xDC3, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 92 22 93 22 C3 0D 01 00 C0 11 10 10 00 01 00}
One Of Option: Disabled, Value (8 bit): 0x0 (default) {09 07 0B 13 10 00 00}
One Of Option: Enabled, Value (8 bit): 0x1 {09 07 30 18 00 00 01}
End One Of {29 02}


This may need done via AMIBCP Show/Hide, if setup edit fails to have any effect.



I want to hide both as this bios is actually DSankes coffeelake mod port of an Apex X to Apex IX bios and as such does not have the 5G lan port like its successor. I mean its completely harmless as far as I can tell just leaving it there but for cosmetic reasons it would be ideal to hide the menu entry and its option rom sibling. For some reason AMIBCP does not identify the menu items by name where they should be. I tried AMIBCP ver 5.01 and 5.02.0023 and both failed to read and display the menu names. So using AMIBCP is not an option. So I moved the suppress if varialbleid equals part to the top that way it keeps the byte count the same. Will take your advice and use ‘FF’ instead against to compare against. Thanks.

I hear that, I’d want to hide them both too then. Try AMIBCP 5.02.0031, if you can’t find it shoot me a PM
Since you are hiding it you can leave variable as original, no need to edit to 01 or FF



That was even worse. Version 5.02.0031 didn’t even properly open the file correctly. Said ‘Maximum number of setup strings exceeded!’ and wouldn’t display the setup tree structure.
It did this to both @dsanke mod and the stock file he used to create the mod. Maybe he could comment further…

Thanks

Link me to BIOS and a stock flashed FPT dump, combined into a single package. Did your setup edit not work? If not, are you sure it was OK, looked good and proper on edited file IFR output?
You may need to use older version if 0023 worked and 0031 didn’t, try 5.01.0014