BeardOverflow / msi-ec

GNU General Public License v2.0
134 stars 41 forks source link

Titan 18 HX A14V [1822EMS1] #120

Open glpnk opened 1 month ago

glpnk commented 1 month ago

105

sempervictus commented 1 month ago

Probably a good idea to introduce a "MAYBRICK" danger tag or something like that to help bots which build PRs avoid by tag.

glpnk commented 1 month ago

I think someone tested this version, but I need to recheck something. Basically, many laptops have similar configs, but some features are unavailable

sempervictus commented 1 month ago

@glpnk - anything i can do to help this PR along?

glpnk commented 1 month ago

I just need some time to look for it

glpnk commented 1 month ago

Looks like ready, but require checking ability to set keyboard backlight, because some SteelSeries keyboard don't use EC, but MSI program writing dummy values

Thanks for waiting, @makintos @nalim @sempervictus Thanks to @makintos for research

To test: Download with

git clone -b 1822EMS1 https://github.com/glpnk/msi-ec.git

Make and load

make
sudo make load
sempervictus commented 1 week ago

Seems to work for battery threshold anyway:

# /etc/systemd/system/battery-charge-save-threshold.service
[Unit]
Description=Set the battery charge threshold to max lifetime
After=multi-user.target
StartLimitBurst=0
#Conflicts=battery-charge-full-threshold,battery-charge-balanced-threshold

[Service]
Type=oneshot
Restart=on-failure
ExecStart=/bin/bash -c 'echo min > /sys/devices/platform/msi-ec/battery_mode && echo "Battery charge threshold $(cat /sys/devices/platform/msi-ec/battery_mode)"'

[Install]
WantedBy=multi-user.target

Hasn't blown up my laptop or thrown any errors in compilation using GCC14.1 with pretty much every Grsec/PaX plugin enabled.

glpnk commented 1 week ago

@sempervictus Have you tested ability to change keyboard brightness from linux?