Jump to content

VirtualSMC — SMC Emulator


vit9696
760 posts in this topic

Recommended Posts

46 minutes ago, Andrey1970 said:

But it doesn't work in v2.5.1beta from

The value isn't Data type? Ok, let me take a look. Please dump the nvram:

nvram -xp > ~/Desktop/nvram.plist

remove sensible data and post it please. May be the encoding is not utf8 but else..

Edited by vector sigma
Link to comment
Share on other sites

32 minutes ago, vector sigma said:

The value isn't Data type? Ok, let me take a look. Please dump the nvram:


nvram -xp > ~/Desktop/nvram.plist

remove sensible data and post it please. May be the encoding is not utf8 but else..

 

ctich@iMac-Sergey ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product

4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product System Product Name

ctich@iMac-Sergey ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-vendor

4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-vendor ASUSTeK COMPUTER INC.

ctich@iMac-Sergey ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-board

4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-board PRIME Z270-P

ctich@iMac-Sergey ~ %

 

704353216_2020-01-2517_06_23.png.f348e4e250f285e01953f672cebeaf35.png

nvram.plist.zip

PRIME Z270-P.plist.zip

  • Like 2
Link to comment
Share on other sites

51 minutes ago, vector sigma said:

The value isn't Data type? Ok, let me take a look. Please dump the nvram:


nvram -xp > ~/Desktop/nvram.plist

remove sensible data and post it please. May be the encoding is not utf8 but else..

 

It not APPLE_BOOT_VARIABLE_GUID

It OC_VENDOR_VARIABLE_GUID

 

479848607_2020-01-2518_25_58.png.eb760549a67501f3c08108d67e0f14c2.png

Link to comment
Share on other sites

1 hour ago, ctich said:

 

ctich@iMac-Sergey ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product

4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product System Product Name

ctich@iMac-Sergey ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-vendor

4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-vendor ASUSTeK COMPUTER INC.

ctich@iMac-Sergey ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-board

4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-board PRIME Z270-P

ctich@iMac-Sergey ~ %

 

704353216_2020-01-2517_06_23.png.f348e4e250f285e01953f672cebeaf35.png

nvram.plist.zip

PRIME Z270-P.plist.zip

Please test this one: PRIME Z270-P.plist.zip

 

multi is 1 as default, so there is no need to set it as 1. name, when is already the same there is no need to be set. Additionally, are you sure you want to live some VINx as is? ... you can hide them using skip=true.

Link to comment
Share on other sites

1 minute ago, Andrey1970 said:

Doesn't work, but the name of the motherboard is written truly.

1189017960_2020-01-2519_37_24.png.d3c00c6a21ffbf84409d3d9d7c8ab018.png

Then it is working, but in the middle of "ASUSTeK COMPUTER INC." there is some special character and for this doesn't match this:

func getOEMVendorShort() -> String? {
  if let vendor = getOEMVendor() {
    switch vendor {
    case "ASRock": fallthrough
    case "Alienware": fallthrough
    case "ECS": fallthrough
    case "EVGA": fallthrough
    case "FUJITSU": fallthrough
    case "IBM": fallthrough
    case "Intel": fallthrough
    case "Shuttle": fallthrough
    case "TOSHIBA": fallthrough
    case "XFX":
      return vendor
    case "Apple Inc.":
      return "Apple"
    case "ASUSTeK Computer INC.": fallthrough
    case "ASUSTeK COMPUTER INC.":
      return "ASUS"
    case "Dell Inc.":
      return "Dell"
    case "DFI": fallthrough
    case "DFI Inc.":
      return "DFI"
    case "EPoX COMPUTER CO., LTD":
      return "EPoX"
    case "First International Computer, Inc.":
      return "FIC"
    case "FUJITSU SIEMENS":
      return "FUJITSU"
    case "Gigabyte Technology Co., Ltd.":
      return "Gigabyte"
    case "Hewlett-Packard":
      return "HP"
    case "Intel Corp.": fallthrough
    case "Intel Corporation": fallthrough
    case "INTEL Corporation":
      return "Intel"
    case "Lenovo": fallthrough
    case "LENOVO":
      return "Lenovo"
    case "Micro-Star International": fallthrough
    case "MICRO-STAR INTERNATIONAL CO., LTD": fallthrough
    case "MICRO-STAR INTERNATIONAL CO.,LTD": fallthrough
    case "MSI":
      return "MSI"
      case "To be filled by O.E.M.": break
    default:
      return vendor
    }
  }
  return nil
}

so "ASUS" is not returned as it should. (So i guess the same will happen for the board). ...I need to think..

  • Like 1
Link to comment
Share on other sites

2 minutes ago, vector sigma said:

Then it is working, but in the middle of "ASUSTeK COMPUTER INC." there is some special character and for this doesn't match this:


func getOEMVendorShort() -> String? {
  if let vendor = getOEMVendor() {
    switch vendor {
    case "ASRock": fallthrough
    case "Alienware": fallthrough
    case "ECS": fallthrough
    case "EVGA": fallthrough
    case "FUJITSU": fallthrough
    case "IBM": fallthrough
    case "Intel": fallthrough
    case "Shuttle": fallthrough
    case "TOSHIBA": fallthrough
    case "XFX":
      return vendor
    case "Apple Inc.":
      return "Apple"
    case "ASUSTeK Computer INC.": fallthrough
    case "ASUSTeK COMPUTER INC.":
      return "ASUS"
    case "Dell Inc.":
      return "Dell"
    case "DFI": fallthrough
    case "DFI Inc.":
      return "DFI"
    case "EPoX COMPUTER CO., LTD":
      return "EPoX"
    case "First International Computer, Inc.":
      return "FIC"
    case "FUJITSU SIEMENS":
      return "FUJITSU"
    case "Gigabyte Technology Co., Ltd.":
      return "Gigabyte"
    case "Hewlett-Packard":
      return "HP"
    case "Intel Corp.": fallthrough
    case "Intel Corporation": fallthrough
    case "INTEL Corporation":
      return "Intel"
    case "Lenovo": fallthrough
    case "LENOVO":
      return "Lenovo"
    case "Micro-Star International": fallthrough
    case "MICRO-STAR INTERNATIONAL CO., LTD": fallthrough
    case "MICRO-STAR INTERNATIONAL CO.,LTD": fallthrough
    case "MSI":
      return "MSI"
      case "To be filled by O.E.M.": break
    default:
      return vendor
    }
  }
  return nil
}

so "ASUS" is not returned as it should. (So i guess the same will happen for the board). ...I need to think..

 

At me Gigabyte.

Link to comment
Share on other sites

On 1/25/2020 at 5:50 PM, Andrey1970 said:

 

At me Gigabyte.

Same problem. What's the output of this command line?

 

[REMOVED]

EDIT

 

I need to know what characters I need to remove. In Clover I hade to clean all the null char in the middle (\0).... 

Edited by vector sigma
[REMOVED]
Link to comment
Share on other sites

16 minutes ago, vector sigma said:

Please test this one: PRIME Z270-P.plist.zip

Does not work.

1407742883_2020-01-2518_51_52.thumb.png.1523728ae093f2e07d97fd244ac265c9.png

Later I will hide how everything will work, now it does not matter.

 

update:

ctich@iMac-Sergey ~ % /Users/ctich/Downloads/OEMInfoOC 
ASUSTeK COMPUTER INC.
PRIME Z270-P
System Product Name
ctich@iMac-Sergey ~ % 

Edited by ctich
Link to comment
Share on other sites

1 minute ago, Andrey1970 said:

Last login: Sat Jan 25 19:52:45 on ttys000
andrey@iMac-Andrej ~ % /Users/andrey/Downloads/OEMInfoOC ; exit;
Gigabyte Technology Co., Ltd.
Z87X-UD4H-CF
Z87X-UD4H

 

in order: 

print(getNVRAM(variable: "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-vendor") ?? "oem-vendor not found")
print(getNVRAM(variable: "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-board") ?? "oem-board not found")
print(getNVRAM(variable: "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product") ?? "oem-product not found")

The strings doesn't match even if looks the same..

Link to comment
Share on other sites

9 minutes ago, vector sigma said:

in order: 


print(getNVRAM(variable: "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-vendor") ?? "oem-vendor not found")
print(getNVRAM(variable: "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-board") ?? "oem-board not found")
print(getNVRAM(variable: "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product") ?? "oem-product not found")

The strings doesn't match even if looks the same..

 

Last login: Sat Jan 25 20:10:17 on ttys000
andrey@iMac-Andrej ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-vendor
4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-vendor	Gigabyte Technology Co., Ltd.
andrey@iMac-Andrej ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-board
4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-board	Z87X-UD4H-CF
andrey@iMac-Andrej ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product
4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product	Z87X-UD4H
andrey@iMac-Andrej ~ % 

 

Link to comment
Share on other sites

ascii code Gigabyte Technology Co., Ltd. from copy-paste terminal

1789672025_2020-01-2520_43_32.png.d3fcb3d0003913655eec216d565885c6.png

09476967616279746520546563686e6f6c6f677920436f2e2c204c74642e

835803400_2020-01-2520_41_30.png.638b45968c680a0dd1572521f7ecea9a.png

 

4 minutes ago, vector sigma said:

Manually removed from bytes all the occurences of 0x00, tried ascii, utf8...... there is a trailing or leading space??

OEMInfoOC.zip

Last login: Sat Jan 25 20:45:02 on ttys001
andrey@iMac-Andrej ~ % /Users/andrey/Downloads/OEMInfoOC ; exit;
'Gigabyte Technology Co., Ltd.'
'Z87X-UD4H-CF'
'Z87X-UD4H'

 

Link to comment
Share on other sites

3 minutes ago, vector sigma said:

Manually removed from bytes all the occurences of 0x00, tried ascii, utf8...... there is a trailing or leading space??

OEMInfoOC.zip

ctich@iMac-Sergey ~ % /Users/ctich/Downloads/OEMInfoOC-2

'ASUSTeK COMPUTER INC.'

'PRIME Z270-P'

'System Product Name'

ctich@iMac-Sergey ~ %

Link to comment
Share on other sites

4 minutes ago, vector sigma said:

System Product Name???

yes

ctich@iMac-Sergey ~ % nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product

4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product System Product Name

ctich@iMac-Sergey ~ %

Link to comment
Share on other sites

×
×
  • Create New...