msi-ec icon indicating copy to clipboard operation
msi-ec copied to clipboard

summit_e14_evo (a12m-066)

Open giga-bytes-dev opened this issue 1 year ago • 12 comments

summit_e14_evo (a12m-066)

this ec fw very equals to msi_ec_conf CONF4 (same bios)??? } But we need create new CONF8

BIOS = E14F1IMS.112 EC version (fw)? 14F1EMS1.115

charge_control:  [0xD7] values: 0xBC - optimal for battery (from 50%$ to 60), balance - 0xD0, 0xE4 - full?
webcam [0x2e]  (0x02 - green position, 0x00 - black position)
physical buttons on keyboard description:
ctrt -> fn -> winkey -> alt -> space
fn_win_swap [0xe8] values: 00 - fw, win, 10 - win, fn

cooler boost: [0x98] - same how in all confs?
shift_mode: [0xD2]
                        { SM_ECO_NAME,     0xc2 },
			{ SM_COMFORT_NAME, 0xc1 },
			{ SM_SPORT_NAME,   0xc0 },
			MSI_EC_MODE_NULL

.super_battery = {
		.address = 0xeb,
		.mask    = 0x0f,
},

.fan_mode = {
		.address = 0xd4,
		.modes = {
			{ FM_AUTO_NAME,     0x0d },
			{ FM_SILENT_NAME,   0x1d },
			{ FM_ADVANCED_NAME, 0x4d },
			MSI_EC_MODE_NULL
		},
	},

.cpu = {
		.rt_temp_address       = 0x68,
		.rt_fan_speed_address  = 0x71,
		.rt_fan_speed_base_min = 0x19,
		.rt_fan_speed_base_max = 0x37,
		.bs_fan_speed_address  = MSI_EC_ADDR_UNKNOWN,
		.bs_fan_speed_base_min = 0x00,
		.bs_fan_speed_base_max = 0x0f,
},

.gpu = {
},

.leds = {
		.micmute_led_address = MSI_EC_ADDR_UNKNOWN,
		.mute_led_address    = MSI_EC_ADDR_UNKNOWN,
		.bit                 = 1,
},
keyboard led ??
[D3] values: 80 - led disabled, 81 - low, 82, midle 83 - max len oracle, 

mute button led? [2D] values: 0E - enabled led mute, 0C - disabled led mute

fn keyboard locker led or/and function? [D9] values - 01 unlocked, 03 - locked @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

user scenaries menu:
super battery: 
[D2] set to C2, [D3] set to 80, [D4] set to 0D, [EB] set to 0F
The quietest system under the ambient noice:
[D2] set to C1, [D3] set to 83, [D4] set to 1D, [EB] set to 00
msi recomended balansed:
[D2] set to C1, [D3] set to 83, [D4] set to 0D, [EB] set to 00
The best system performance for multi-tasking and heavy duty
    speed of coolers:
         auto:  [D2] set to C0, [D3] set to 83, [D4] set to 0D, [EB] set to 00,  [98] to 02
         turbo boost: [D2] set to C0, [D3] set to 83, [D4] set to 0D, [EB] set to 00, [98] to 82
         

giga-bytes-dev avatar Mar 01 '23 11:03 giga-bytes-dev

ec_dump.txt

giga-bytes-dev avatar Mar 02 '23 20:03 giga-bytes-dev

i discovered values with msi pro and rweveryting util

giga-bytes-dev avatar Mar 05 '23 08:03 giga-bytes-dev

https://github.com/BeardOverflow/msi-ec/pull/30

giga-bytes-dev avatar Mar 05 '23 13:03 giga-bytes-dev

72, 73 ,74,75,76, 77, 78 .. Advanced fan mode from msi?

giga-bytes-dev avatar Mar 10 '23 22:03 giga-bytes-dev

This has been merged in #30, no?

Do you happen to know how different "14F1EMS1.114" is? It's a MSI Convertible Summit E14 Flip Evo A12MT-049, so quite similar perhaps? I'm not too hurried since https://github.com/dmitry-s93/MControlCenter supports it, but it would be nice to be able to use this module

cpiber avatar Jan 16 '24 13:01 cpiber

@cpiber looks like #30 is merged. Possibly any differences, but we need to check this, please submit EC dump here.

Merged version is 14F1EMS1.115 yours is 14F1EMS1.114

You can just update your BIOS (if any new release is published) to get supported FW. BIOS contain EC firmware. Please share dumps before and after if you suggest to install new BIOS.

glpnk avatar Jan 16 '24 18:01 glpnk

@glpnk Yes, I saw the difference in firmware, hence the question :) Thank you for the suggestion, I did not realize that the FW version was referring to the bios. There has been an update last December, however that brings me to "E14F1IMS.11C", which also isn't supported (curios that the line would change from EMS1 to IMS, but I'm sure I selected the right mode, though the changelogs also refer to E16 instead... ).

I assume you mean this (I haven't performed the bios update yet)?

❯ cat /sys/devices/platform/msi-ec/debug/ec_dump
     | _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _a _b _c _d _e _f
-----+------------------------------------------------
0x0_ | 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1_ | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x2_ | 00 00 00 00 00 00 00 00 0a 05 00 80 80 0c 08 08
0x3_ | 07 01 00 0d 00 00 50 81 c2 11 28 3c c8 01 c0 00
0x4_ | bc 11 4d 00 48 12 00 00 f8 0d d2 3f be 0b c0 44
0x5_ | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x6_ | 00 00 00 00 00 00 00 00 2f 00 3c 46 50 55 5a 5f
0x7_ | 64 31 31 49 5a 66 83 96 96 00 0a 08 08 03 03 03
0x8_ | 00 00 3c 46 50 55 5a 5f 59 44 44 47 50 56 64 6e
0x9_ | 78 41 0a 08 08 03 03 03 02 00 7d 06 0b 7d 2f 00
0xa_ | 31 34 46 31 45 4d 53 31 2e 31 31 34 30 37 30 34
0xb_ | 32 30 32 32 31 33 3a 34 38 3a 30 32 00 00 00 28
0xc_ | 00 00 01 25 00 00 00 00 00 a3 00 00 00 00 00 00
0xd_ | 00 00 c0 80 8d 00 05 d0 00 83 00 00 00 08 00 00
0xe_ | e2 00 00 48 12 01 00 80 00 04 00 00 00 c3 01 d0
0xf_ | 20 00 70 80 31 7f 05 00 64 00 00 00 00 00 00 00

Thank you for your support

cpiber avatar Jan 16 '24 19:01 cpiber

@cpiber E14F1IMS.11C this is BIOS name, EC FW is embedded inside

MSI use EC micro-controllers at least from 2 vendors: ENE and ITE

BIOS codename Exxxx?MS.zzz ENE codename xxxxEMSn.yyy ITE codename xxxxIMSn.yyy Where X's is board code, Z's and Y's is software version (BIOS/EC), n means board revision for some models (I think older), ? is I/A for Intel/Amd

So maybe they made revisions with different EC brands, but in any case support page sometimes have comment about revision compatibility.

Also will you update BIOS? Also I found EC dump from other contributor.

glpnk avatar Jan 16 '24 19:01 glpnk

Sorry for not realizing that.

I just updated my BIOS, though that messed up some settings, I'm now on 118, so still too high

New dump:

❯ cat /sys/devices/platform/msi-ec/debug/ec_dump
     | _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _a _b _c _d _e _f
-----+------------------------------------------------
0x0_ | 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1_ | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x2_ | 00 00 00 00 00 00 00 00 0a 05 00 00 08 2c 09 08
0x3_ | 07 03 00 0d 00 00 50 81 c2 11 28 3c c8 01 80 00
0x4_ | bc 11 4c 00 48 12 ae 05 d7 0d 64 41 c4 0b c0 44
0x5_ | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x6_ | 00 00 00 00 00 00 00 00 2e 00 3c 46 50 55 5a 5f
0x7_ | 64 31 31 49 5a 66 83 96 96 57 05 08 08 12 03 03
0x8_ | 00 00 3c 46 50 55 5a 5f 64 44 44 47 50 56 64 6e
0x9_ | 78 00 05 03 08 03 03 03 06 25 7d 02 00 7d 2f 00
0xa_ | 31 34 46 31 45 4d 53 31 2e 31 31 38 30 34 31 34
0xb_ | 32 30 32 33 31 30 3a 35 35 3a 34 39 00 00 00 28
0xc_ | 00 00 06 22 00 00 00 00 00 a4 00 00 00 00 00 00
0xd_ | 00 00 c0 80 8d 00 03 80 00 01 00 00 00 07 00 00
0xe_ | e2 00 00 48 12 01 00 81 00 04 00 00 00 c0 01 00
0xf_ | 00 00 70 00 31 64 00 00 64 00 00 00 00 00 00 00

Does this information help?

cpiber avatar Jan 16 '24 19:01 cpiber

Thanks for your contribution. This info is helpful. Please attach changelog, maybe there was earlier EC updates between 118 and 114. DON'T try to flash earlier builds, it may be bad

I'll reply later with results

glpnk avatar Jan 16 '24 19:01 glpnk

Changelog: E14F1IMS_1xx.txt

Do you need any other information? If it's not too much trouble, do you also have some links how one would get started with such drivers and what I'd need to look out for? I have written small kernel modules before, but I'm not familiar with hardware drivers.

cpiber avatar Jan 16 '24 19:01 cpiber

Log mention 115, 116, 117 versions, if interface is similar I just add all this to supported.

Do you need any other information?

If I would need it I will mention you.

Info about drivers

I've collected some info in #98. But info about kernel drivers is little. I interested in log about msi-wmi, but it outdated. I think msi-ec is rather middleware then driver

You can check similar drivers for other vendors like ASUS, Lenovo, etc.

glpnk avatar Jan 16 '24 19:01 glpnk