Open glpnk opened 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.
I think someone tested this version, but I need to recheck something. Basically, many laptops have similar configs, but some features are unavailable
@glpnk - anything i can do to help this PR along?
I just need some time to look for it
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
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.
@sempervictus Have you tested ability to change keyboard brightness from linux?
105