Talk:MSI Modern 15 A5M

From ArchWiki
Latest comment: 13 March by Staviq

There are couple of things that are required to get Arch running properly on MSI Modern 15 A5M-268PL, and likely on similar models from this series with AMD Processors.

Sleep will not work "out of the box", and attempting to put the laptop in sleep mode, will result in hard system freeze and data loss, recoverable only by cold reset. In order to use sleep, "Modern Suspend" must be disabled in the EFI configuration, and it requires entering the hidden debug menu ( I will not include information on how to enter debug menu, since it very clearly contains things that might result in hardware damage, like settings for Intel Processors, even though the laptop has AMD processor. )

When using Plasma/KDE, in order for the powerdevil ( tested on powerdevil 5.27.3-1 ) to function properly, acpid service must be enabled. Otherwise, certain things, like lid close detection, will not function, or function intermittently.

This hardware suffers from phantom backlight changes without any user input. In order to solve it, following configuration must be added to xorg configuration, typically appended to "/usr/share/X11/xorg.conf.d/10-quirks.conf" but since that file tends to be overwritten by updates, separate file can be created in the same directory, for example, one named "11-quirks.conf"


Section "InputClass"
        Identifier "Spooky Ghosts"
        MatchProduct "Video Bus"
        Option "Ignore" "on"
EndSection

Solution for the phantom backlight changes was taken from: https://ubuntuforums.org/showthread.php?t=2314161&page=2&p=13465220#post13465220

After those modifications, volume change, brightness change, mute, keyboard backlight keys work properly, sleep works properly, and powerdevil will correctly detect and respond to charging/discharging, lid close, external display being connected or disconnected.


Unsolved issues:

Power button does not work in in-system. Pressing power button is not being detected by any part of the system. However, power button does work properly when handled by firmware, meaning, it still allows to turn the laptop on, on wake it up from sleep, but it cannot be used to shut the system down, or put it to sleep.

Staviq (talk) 08:58, 3 April 2023 (UTC)Reply[reply]

As of KDE Plasma 6 and plasma-wayland becoming the default session, "/usr/share/X11/xorg.conf.d/10-quirks.conf" trick no longer works, but can be substituted with an udev rule.

For the udev rule to work, Bus, Vendor and Product values have to be determined for the offending input device. This information can be found in

/proc/bus/input/devices

and will look similar to this:

(...)
I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:10/LNXVIDEO:00/input/input3
U: Uniq=
H: Handlers=kbd event3 
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0
(...)

Using values from your system, create "/etc/udev/rules.d/10-wayland-quirks.rules" file, and put the following line, replacing values with the appropriate ones:

SUBSYSTEM=="input", ATTRS{id/bustype}=="0019", ATTRS{id/vendor}=="0000", ATTRS{id/product}=="0006", ATTRS{name}=="Video Bus", ATTR{authorized}="0", ENV{LIBINPUT_IGNORE_DEVICE}="1"

This appears to be sufficient, to prevent misbehaving input events from propagating under Wayland.

Staviq (talk) 13:49, 13 March 2024 (UTC)Reply[reply]