Fix decode-dimms detection
Now check exist of eeprom file in /sys/bus/i2c
This commit is contained in:
parent
dd26b367a7
commit
ff9a190a95
|
@ -36,8 +36,7 @@ Public Sub Form_Open()
|
|||
Dim sLine As String
|
||||
Dim MTRR As New String[]
|
||||
Label74.Text = "I-Nex " & Application.Version
|
||||
Logs("Starting log", Logger.Info)
|
||||
ComboBox10.Visible = False
|
||||
|
||||
''Okno na środku
|
||||
''
|
||||
If Settings["Window/X"] = Null Then
|
||||
|
|
|
@ -73,6 +73,67 @@
|
|||
ToolTip = "Generate report"
|
||||
Picture = Picture["AppIcons/printer.png"]
|
||||
}
|
||||
{ ComboBox1 ComboBox
|
||||
Move(322,511,91,28)
|
||||
#Translate = False
|
||||
Font = Font["Bold,8"]
|
||||
ReadOnly = True
|
||||
Text = "Select core"
|
||||
}
|
||||
{ ComboBox8 ComboBox
|
||||
Move(322,511,91,28)
|
||||
#Translate = False
|
||||
Visible = False
|
||||
ReadOnly = True
|
||||
Text = "ComboBox8"
|
||||
}
|
||||
{ Button11 Button
|
||||
Move(245,511,77,28)
|
||||
Visible = False
|
||||
Font = Font["Bold,8"]
|
||||
ToolTip = ("Force detect EDID information from xrandr --verbose")
|
||||
Text = ("Force")
|
||||
Picture = Picture["AppIcons/application-default-icon.png"]
|
||||
}
|
||||
{ !HBox19 HBox
|
||||
Move(210,511,203,28)
|
||||
#Public = True
|
||||
Visible = False
|
||||
{ ComboBox4 ComboBox
|
||||
Move(77,0,63,28)
|
||||
#Translate = False
|
||||
Expand = True
|
||||
ReadOnly = True
|
||||
}
|
||||
{ ComboBox3 ComboBox
|
||||
Move(140,0,63,28)
|
||||
#Translate = False
|
||||
Expand = True
|
||||
ReadOnly = True
|
||||
}
|
||||
}
|
||||
{ Label25 Label
|
||||
Move(112,511,98,28)
|
||||
#Translate = False
|
||||
Font = Font["Bold,10"]
|
||||
Foreground = &HFF0000&
|
||||
Padding = 3
|
||||
Alignment = Align.Center
|
||||
Border = Border.Plain
|
||||
}
|
||||
{ Button6 Button
|
||||
Move(315,511,98,28)
|
||||
Font = Font["8,Bold"]
|
||||
Text = ("Show modules")
|
||||
}
|
||||
{ MenuButton1 MenuButton
|
||||
Move(210,511,112,28)
|
||||
Font = Font["Bold,8"]
|
||||
Foreground = &H0000FF&
|
||||
Text = ("Validate")
|
||||
Picture = Picture["AppIcons/gnome-network-properties.png"]
|
||||
Menu = "Menu2"
|
||||
}
|
||||
{ TabStrip1 TabStrip
|
||||
Move(0,0,476,511)
|
||||
#Translate = False
|
||||
|
@ -2140,65 +2201,4 @@
|
|||
}
|
||||
Index = 0
|
||||
}
|
||||
{ ComboBox1 ComboBox
|
||||
Move(322,511,91,28)
|
||||
#Translate = False
|
||||
Font = Font["Bold,8"]
|
||||
ReadOnly = True
|
||||
Text = "Select core"
|
||||
}
|
||||
{ ComboBox8 ComboBox
|
||||
Move(322,511,91,28)
|
||||
#Translate = False
|
||||
Visible = False
|
||||
ReadOnly = True
|
||||
Text = "ComboBox8"
|
||||
}
|
||||
{ Button11 Button
|
||||
Move(245,511,77,28)
|
||||
Visible = False
|
||||
Font = Font["Bold,8"]
|
||||
ToolTip = ("Force detect EDID information from xrandr --verbose")
|
||||
Text = ("Force")
|
||||
Picture = Picture["AppIcons/application-default-icon.png"]
|
||||
}
|
||||
{ !HBox19 HBox
|
||||
Move(210,511,203,28)
|
||||
#Public = True
|
||||
Visible = False
|
||||
{ ComboBox4 ComboBox
|
||||
Move(77,0,63,28)
|
||||
#Translate = False
|
||||
Expand = True
|
||||
ReadOnly = True
|
||||
}
|
||||
{ ComboBox3 ComboBox
|
||||
Move(140,0,63,28)
|
||||
#Translate = False
|
||||
Expand = True
|
||||
ReadOnly = True
|
||||
}
|
||||
}
|
||||
{ Label25 Label
|
||||
Move(112,511,98,28)
|
||||
#Translate = False
|
||||
Font = Font["Bold,10"]
|
||||
Foreground = &HFF0000&
|
||||
Padding = 3
|
||||
Alignment = Align.Center
|
||||
Border = Border.Plain
|
||||
}
|
||||
{ Button6 Button
|
||||
Move(315,511,98,28)
|
||||
Font = Font["8,Bold"]
|
||||
Text = ("Show modules")
|
||||
}
|
||||
{ MenuButton1 MenuButton
|
||||
Move(210,511,112,28)
|
||||
Font = Font["Bold,8"]
|
||||
Foreground = &H0000FF&
|
||||
Text = ("Validate")
|
||||
Picture = Picture["AppIcons/gnome-network-properties.png"]
|
||||
Menu = "Menu2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,11 +14,24 @@
|
|||
'
|
||||
' You should have received a copy of the GNU General Public License
|
||||
' along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Public Logs As New Logger
|
||||
Public CPUINFO_FILE As String
|
||||
Public Sub Main()
|
||||
Dim PrintErr As Boolean = True
|
||||
MDecode_dimms.List_EEPROM()
|
||||
|
||||
''Check eeprom for SPD
|
||||
Logs("Starting log", Logger.Info)
|
||||
Logs("Checking if eeprom module is loaded", Logger.Info)
|
||||
If Exist("/sys/bus/i2c/drivers/eeprom/") Then
|
||||
MDecode_dimms.List_EEPROM()
|
||||
Finfosys.TabStrip2[1].Visible = True
|
||||
Logs("I found the eeprom module in the system", Logger.Info)
|
||||
Else
|
||||
Finfosys.TabStrip2[1].Visible = False
|
||||
Logs("I did not find the eeprom module in the system", Logger.Error)
|
||||
Endif
|
||||
'' End Check eeprom for SPD
|
||||
|
||||
Finfosys.MenuButton1.Delete
|
||||
Select Case Application.Args[1]
|
||||
Case "--help"
|
||||
|
|
Loading…
Reference in New Issue