#Lafité AMD Ryzen AI 300 + Linux tweaks

22 messages · Page 1 of 1 (latest)

torpid marsh
#

My Lafité AMD Ryzen AI 365 has been working great for the past 6 months. I've been running explicitly linux on it and experimented with various distros. In the end I stuck with Endeavour OS (Arch based) distro with Gnome window manager (Wayland config) and am simply loving the whole experience with few hickups:

  • My screen showed some pink/green artifacts sometimes.
  • Keyboard not working when waking up laptop from long sleep (had to reboot, or sleep-wake up again).

To fix this, I did some research (with help from AI chatbot) and experimented with custom kernel flags to fix the issues. Below I am sharing the tweaks that should work in most linux distros linux (Manjaro, Endeavour OS, Alpine, Ubuntu, and other Arch/Debian distros).

PS: My setup doesn't use Grub for setting the kernel flags, so before using it please do your own investigation first and remember that this is based on my own experiments, targeted to my specific Lafitte laptop configuration (It should also work for other combos with AMD Ryzen AI 300 CPU family).

  1. Open the kernel flags cmdline: sudo nano /etc/kernel/cmdline
  2. Add the specific flags:
    amdgpu.dcdebugmask=0x610 //fixes display artifacts
    amdgpu.sg_display=0
    amdgpu.abmlevel=0 //use if you have problems with contrast/colors glitching
    Next flags are needed to fix a problem with keyboard not always waking up when you wake the laptop from sleep:
    i8042.nopnp=1
    i8042.reset=1
    i8042.nomux=1
  3. Make sure that you add the flags at the end of the cmd flags line:
    ... nowatchdog rw rootflags=subvol=/@ ... amdgpu.dcdebugmask=0x610 amdgpu.sg_display=0 amdgpu.abmlevel=0 i8042.nopnp=1 i8042.reset=1 i8042.nomux=1
  4. After adding the flags, save and close nano editor (ctrl+O, ctrl+q).
  5. Apply the changes to the kernel with sudo reinstall-kernels
  6. Once previous command finishes, reboot you laptop and verify if the issues no longer happen.

I hope this will help some of you linux users.

#

Lafité AMD Ryzen AI 300 + Linux tweaks

proud bloom
#

I don't think spec discussion is the right place to put this. There's very little laptop users here and even less that use Linux afaik

torpid marsh
#

@proud bloom I searched this thread for topics and was able to find few with "linux" keyword, so i assumed it could fit here... Is there a better place to put it? I did add Laptop advice tag if that counts?

proud bloom
#

No idea tbh. I've just seen the mods say spec discussion should only be used for new build discussions previously

true vine
#

Yeah, your topic is not a spec discussion

woven phoenix
proud bloom
#

Cool

woven phoenix
#

my solution to the contrast problems was this btw:
powerprofilesctl configure-action amdgpu_panel_power --disable

#

not sure which is better

#

I guess the kernel parameter is more universal

woven phoenix
#

Aby idea how to see which operating mode is selected from Linux?

woven phoenix
torpid marsh
#

@woven phoenix this would definitely depend on each OS. Definitely you would need either some 3rd party tool that knows what Operating Mode current value is, or you write one yourself. definitely not as trivial as it sounds

woven phoenix
#

Yeah I don't really know where to look.

woven phoenix
#

If it was just about reading a file that would be easy.

#

But I haven't found anything.

torpid marsh
#

You will need to delve deeper into how your specific linux distro parses that fn+x keybinding. I can't recommend anything, since i didn't try such a thing yet.

woven phoenix
#

Well wev gives me nothing. I'm not sure the OS sees it at all.

unreal wagon
unreal wagon