Bug 32655

Summary: Bring ec_sys dkms and MControlCenter for MSI laptops
Product: Mageia Reporter: christian barranco <chb0>
Component: New RPM package requestAssignee: christian barranco <chb0>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal CC: davidwhodgins
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mcontrolcenter-msi CVE:
Status comment:

Description christian barranco 2023-12-27 15:19:06 CET
Description of problem:
In order to run MControlCenter, which is a neat Free and Open Source GNU/Linux application that allows to change the settings of MSI laptops, it is required to have ec_sys module with option write_support=1
It means the ec_sys kernel module needs to be included in the kernel; alternatively, it looks like the acpi_ec kernel module would be suitable as well.

Is it something which can be added to our kernel?


Link to MControlCenter: https://github.com/dmitry-s93/MControlCenter
I just packaged it and it went smoothly. It starts well but it is useless unless the mentioned modules are loaded.

Thanks!
christian barranco 2023-12-27 15:19:40 CET

Source RPM: ACPI Error: Could not disable RealTimeClock events (20230331/evxfevnt-243) => kernel-6.5.13-6.mga9.src.rpm

Comment 1 Dave Hodgins 2023-12-27 20:46:26 CET
Running m9 with the server flavor of the kernel here.
# zgrep EC /proc/config.gz|grep -i sys
CONFIG_FB_SYS_FILLRECT=y
CONFIG_CROS_EC_SYSFS=m
CONFIG_RPCSEC_GSS_KRB5_CRYPTOSYSTEM=y

# locate ec|grep -i sys|grep '\.ko\.'|sort -V|head -n 1
/usr/lib/modules/6.5.13-server-1.mga9/kernel/drivers/platform/chrome/cros_ec_sysfs.ko.xz

Try running "modprobe -v cros_ec_sysfs". If that fixes it add a file to
/etc/modules-load.d/ with a file name ending with .conf, and one line with
cros_ec_sysfs

If loading that module doesn't fix it, it will likely require getting a dkms
version of the needed module, from
https://github.com/junocomp/ec-sys-dkms/blob/main/README.md

If that fixes the issue, change this to a new package request for the dkms
module.

CC: (none) => davidwhodgins

Comment 2 christian barranco 2023-12-27 21:14:09 CET
(In reply to Dave Hodgins from comment #1)
> Running m9 with the server flavor of the kernel here.
> # zgrep EC /proc/config.gz|grep -i sys
> CONFIG_FB_SYS_FILLRECT=y
> CONFIG_CROS_EC_SYSFS=m
> CONFIG_RPCSEC_GSS_KRB5_CRYPTOSYSTEM=y
> 
> # locate ec|grep -i sys|grep '\.ko\.'|sort -V|head -n 1
> /usr/lib/modules/6.5.13-server-1.mga9/kernel/drivers/platform/chrome/
> cros_ec_sysfs.ko.xz
> 
> Try running "modprobe -v cros_ec_sysfs". If that fixes it add a file to
> /etc/modules-load.d/ with a file name ending with .conf, and one line with
> cros_ec_sysfs
> 
> If loading that module doesn't fix it, it will likely require getting a dkms
> version of the needed module, from
> https://github.com/junocomp/ec-sys-dkms/blob/main/README.md
> 
> If that fixes the issue, change this to a new package request for the dkms
> module.

Thank you so much Dave for these hints.
From a packaging perspective, should I go directly to the dkms additional package?
Comment 3 Dave Hodgins 2023-12-28 01:39:18 CET
I'd try loading cros_ec_sysfs first, otherwise yes go for adding the dkms
package as it's needed for hardware support.
Comment 4 christian barranco 2023-12-28 11:26:09 CET
Hi. Loading cros_ec_sysfs doesn't help. I will give a try to package the dkms.
Comment 5 christian barranco 2023-12-29 10:14:00 CET
Hi. The package of MControlCenter is ready, bringing a dkms package for ec_sys with it.

Just tested on a MSI Modern 15 B7M laptop.

Ok to push into Cauldron?

Assignee: kernel => chb0
Component: RPM Packages => New RPM package request
Version: 9 => Cauldron
Summary: Add ec_sys and/or acpi_ec kernel modules to run MControlCenter => Bring ec_sys dkms and MControlCenter for MSI laptops
Source RPM: kernel-6.5.13-6.mga9.src.rpm => mcontrolcenter-msi