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

GF76 11-UC

Open Waujito opened this issue 7 months ago • 34 comments

Laptop model

MSI Katana GF76 11UC

EC firmware version

17L2EMS1.108

EC memory 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 00 04 0b 0b
0x3_ | 03 00 00 0d 00 00 50 81 00 00 00 00 00 00 00 00
0x4_ | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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 37 40 49 4c 52 58
0x7_ | 64 26 26 2b 30 36 3c 46 55 64 08 03 03 03 03 03
0x8_ | 00 00 37 3d 43 49 4f 54 63 00 00 2b 30 36 3c 46
0x9_ | 55 64 08 03 03 03 03 02 02 0f 7d 02 0a 78 39 00
0xa_ | 31 37 4c 32 45 4d 53 31 2e 31 30 38 30 34 31 30
0xb_ | 32 30 32 33 31 33 3a 34 34 3a 34 32 00 00 00 28
0xc_ | 00 00 07 22 00 00 00 00 00 d1 00 00 00 00 00 00
0xd_ | 00 00 c1 83 0d 00 05 80 00 01 00 00 00 00 00 00
0xe_ | e2 00 00 00 00 00 00 40 00 00 00 00 00 c0 00 00
0xf_ | 40 00 70 00 00 64 00 00 64 00 00 00 00 00 00 00

GPU

Nvidia

Is your keyboard RGB?

No (single color)

Additional context

I will try to provide support for it with myself but I will probably need in your help. So far I have found: ✔️ Cooler boost ✔️ Webcam toggle ✔️ Webcam block ✔️ Fn <-> Win ✔️ Mic mute LED ✔️ Sound mute LED ✔️ Keyboard backlight intensity

❓ Shift mode ❓ Fan mode

What about shift mode and fan mode is I can't see real difference between it. But when I turn on eco mode my fans were silenced and that seems good. Also I can approve that fan mode somehow affects my fans. When I have written advanced fans settings to EC like it is done in MControlCenter:

const int fan1SpeedSettingStartAddress = 0x72;
const int fan2SpeedSettingStartAddress = 0x8A;
const int fanSpeedSettingsCount = 7;
const int fan1TempSettingStartAddress = 0x6A;
const int fan2TempSettingStartAddress = 0x82;
const int fanTempSettingsCount = fanSpeedSettingsCount - 1;

fan1Temp = {48, 53, 60, 65, 70, 74};
fan1Settings = {0, 43, 60, 75, 85, 100, 100};
fan2Temp = {50, 55, 60, 65, 70, 72};
fan2Settings = {0, 43, 60, 75, 85, 100, 100};

My fans seemed like completly broken: No fans in auto mode and something in advanced mode. But when I had run stress on my cpu fans started to increase rpm.

✔️ CPU Temperature ⭕ GPU Temperature When I run nvidia-smi gpu temperature starts to show for not a long time. Seems like not msi-ec problem, just limitation from MSI.

❓CPU Fan speed cat: /sys/devices/platform/msi-ec/cpu/realtime_fan_speed: Invalid argument Turns out to be 50 in boost mode. ⭕ GPU Fan speed It works but what about format? It is not percent nor rpm. 0 when off, 190 when silent, 78 in boost. It is just a raw data from (0xCD). For cpu it seems like the problem is in rt_fan_speed_base_min_max fractions.

The formula from MControlCenter seems like a workaround:

static ssize_t cpu_realtime_fan_speed_show(struct device *device,
					   struct device_attribute *attr,
					   char *buf)
{
	u8 rdata;
	int result;

	result = ec_read(conf.cpu.rt_fan_speed_address, &rdata);
	if (result < 0)
		return result;

	int val = 0;
	if (rdata > 0) 
		val = 470000/rdata;
	
	return sysfs_emit(buf, "%i\n", val);
}

It provides fan speed right in rpm, seems ok (2400 in normal mode, 6000 in boost) but I have no idea about correctness.

I will test battery later. Working with EC config and battery on (=> no EC clears) is a dead way :)

Waujito avatar Jul 02 '24 06:07 Waujito