Skip to content

2024 MSI Prestige 13 AI Evo A2VM

Leonard edited this page Oct 5, 2024 · 4 revisions

2024 MSI Prestige 13 AI+ Evo A2VM

(NOTE: Github Wiki does not like the "+" symbol in the title)

Ordered from: https://www.newegg.com/global/jp-en/p/N82E16834156671?Item=N82E16834156671 (Ships to Japan w/ free shipping, charged standard 10% JCT)

Hardware

For a full output of from hw-probe see: https://linux-hardware.org/?probe=9be89b2454

But, some abbreviated info on the A2VMG-014US SKU:

  • Intel Core Ultra 7 258V (4P,4E)
  • 32GB LPDDR5X-8533
  • 1TB SSD (Micron 2400 2280 NVMe, PCIe Gen 4, QLC)
  • 13.3" 2.8K (2880x1800), OLED (60Hz, 500 nits)
  • 75Wh Battery (4-cell)
  • 299 x 210 x 16.9 mm (WxDxH)
  • 0.99kg
  • I/O
    • 2x Thunderbolt™ 4 (DisplayPort™/ Power Delivery 3.0)
    • 1x Type-A USB3.2 Gen1
    • 1x Micro SD Card Reader
    • 1x HDMI™ 2.1 (8K @ 60Hz / 4K @ 120Hz)
    • 1x Mic-in/Headphone-out Combo Jack
  • Goodix Fingerprint Reader in Power Button
  • 5MP IR webcam (30fps@1944p)
    • Proximity Sensor
    • Ambient Light Sensor
  • Backlit Keyboard (White) with Copilot Key
  • Intel® Killer™ BE Wi-Fi 7 + Bluetooth 5.4
  • 2x 2W Speaker

SSD Replacement

1TB will be a bit cramped (one of the main tasks for this laptop is for offloading drone video), so I wanted to replace the SSD almost immediately. I ended up going with a Predator SSD GM7 M.2 4TB as the 1TB version was incredibly power efficient. The Lexar NM790 4TB was similarly efficient with almost identical controller and memory, but the GM7 was a bit cheaper and could arrive a day earlier, so that sealed the deal. Here are its power modes reported by smartctl:

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.50W       -        -    0  0  0  0        0       0
 1 +     5.80W       -        -    1  1  1  1        0       0
 2 +     3.60W       -        -    2  2  2  2        0       0
 3 -   0.0500W       -        -    3  3  3  3     5000   10000
 4 -   0.0025W       -        -    4  4  4  4     8000   41000

CachyOS

This laptop of course came with Windows 11, and I ran a couple benchmark tests before getting rid of it.

CachyOS has both x86-64-v3 and x86-64-v4 repos available (zenver4 as well). AVX-512 is required for v4, so this Lunar Lake laptop probably doesn't support it:

❯ /lib/ld-linux-x86-64.so.2 --help | grep supported
  x86-64-v3 (supported, searched)
  x86-64-v2 (supported, searched)

Nope. Anyway, you will need to modify your pacman.conf to enable the x86-64-v3 repo.

Linux Compatibility

When I received my laptop (2024-09-30), a week after release, Lunar Lake is quite new and requires a bleeding edge kernel for support.

Drivers and FW

The default Arch Linux kernel when the laptop arrived was 6.11.1-arch1-1 and a fair number of things are broken under it, like the graphics and wifi drivers. These are fixed with the current linux-mainline (6.12rc1)

You will also need sof-firmware to get the sound working.

I'm using linux-firmware-git as well to troubleshoot.

I'm also using CachyOS's mesa-git

brltty

CachyOS uses loads br1tty that causes shutdown to hang. Here's how to fix that:

pacman -R brltty orca
dracut --hostonly --no-hostonly-cmdline /boot/initramfs-linux.img --force

Suspend

Resume Lockups

I'm having some lockups that include RCU issues that I've been trying to debug. It seems to cause resume to not hard lock, but to immediately send the laptop back into suspend mode.

The initial logs looked the boltd.service might have been involved so I shut off the service and unloaded the Thunderbolt module before suspend (and did the reverse on resume) after this seemed to help with some other cases however this turned out to not be the fix for my problem.

I'm still diagnosing this.

logs for race https://chatgpt.com/c/66fcd1f3-a7b8-8012-88a3-0d1d16f49c61

Power Drain

Suspend battery drain, as measured by my https://github.com/lhl/batterylog tool is quite high:

Slept for 8.01 hours
Used 7.17 Wh, an average rate of 0.89 W
At 0.89/Wh drain you battery would be empty in 45.24 hours
For your 75.99 Wh battery this is 1.18%/hr or 28.25%/day

How can we tune this? First go through power calibration to make sure powertop is working.

Then use the S0ixSelftestTool:


Power Usage

Power Usage

This is a minimum usage type of scenario

50%


0%

100%

OLED

100% Inverse

setterm --background white --foreground black --clear

PowerTop

First, go to the Settings:Power in GNOME and disable:

  • Screen Dimming
  • Screen Blank
  • Suspend after Inactivity

Then run:

powertop --calibrate
powertop

https://www.reddit.com/r/linuxhardware/comments/1dk6bbs/meteor_lake_laptop_getting_some_love_in_kernel/

https://lore.kernel.org/lkml/[email protected]/

https://www.phoronix.com/review/intel-meteorlake-epp-perf https://www.phoronix.com/news/Intel-MTL-EPP-Tuning-64

https://web.archive.org/web/20230614200816/https://01.org/blogs/qwang59/2018/how-achieve-s0ix-states-linux https://web.archive.org/web/20230614200306/https://01.org/blogs/qwang59/2020/linux-s0ix-troubleshooting

https://github.com/system76/firmware-open/issues/506 https://forums.linuxmint.com/viewtopic.php?t=386187 https://stackoverflow.com/questions/28078711/switch-pci-device-to-d3-cold-d3cold-state https://www.graniteriverlabs.com/en-us/technical-blog/thunderbolt-fv-modern-standby

Packages Installed

### PACSTRAP
base base-devel linux linux-firmware linux-headers intel-ucode 

### CHROOT
fish vim neovim
# cd /usr/bin; ln -s nvim vi
networkmanager
openssh
avahi nss-mdns
paru # in cachyos

### INSTALL
# shell
byobu kitty
starship atuin
less ripgrep tree
keyd
tldr

# system info
btop htop dool
powertop powerstat turbostat
cpupower
usbutils
smartmontools
lshw
bmon iftop nethogs
hw-probe
fastfetch

# basic
rsync wget

# hardware support
sof-firmware
linux-mainline linux-mainline-headers
bluez-tools
pipewire pipewire-alsa alsa-utils
fwupd
linux-firmware-git # why not
acpilight

# Energy tuning
auto-cpufreq thermald tuned tuned-ppd
gnome-power-manager

# GUI
gdm gnome
appimagelauncher
ulauncher

# Fonts
noto-fonts
noto-fonts-emoji
noto-fonts-cjk
nerd-fonts
ttf-ms-fonts
ttf-liberation

# intel GPU drivers
mesa intel-media-driver vulkan-intel
libva-utils clinfo mesa-utils vulkan-tools
intel-compute-runtime intel-opencl-runtime

# intel-oneapi-basekit is sort of integreated but has conflicts w/ runtime install
# intel-oneapi-hpckit is another megapackage
intel-oneapi-dpcpp-cpp intel-oneapi-compiler-shared-runtime intel-oneapi-mkl onednn onnx onnxruntime

# broken
# openvino

# Benchmarks
geekbench passmark-performancetest-bin
kdiskmark

# Media
ffmpeg mpv vlc
spotify
yt-dlp

# Browsers
firefox
firefox-developer
google-chrome

# Chat
discord vesktop slack-desktop-wayland