Skip to content

Instantly share code, notes, and snippets.

@justinmklam
Last active October 17, 2019 16:39
Show Gist options
  • Select an option

  • Save justinmklam/8cc76ee3db3445e24dd36a9c057c2db6 to your computer and use it in GitHub Desktop.

Select an option

Save justinmklam/8cc76ee3db3445e24dd36a9c057c2db6 to your computer and use it in GitHub Desktop.
Fixes brightness randomly changing on MSI laptops. Source: https://askubuntu.com/a/808785

This seems to be a common problem on most MSI laptops, including my own GP62 6QF Leopard Pro. Supposedly, one way to fix it would be to update your BIOS, however, this didn't work for me.

I managed to fix this by adding this to /usr/share/X11/xorg.conf.d/10-quirks.conf:

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

This basically ignores messages from the Video Bus (check with sudo evtest), which seems to be sending psuedo fn+up fn+down messages randomly.

Then log out and log back in for the changes to take into effect.

Source: https://ubuntuforums.org/showthread.php?t=2314161&page=2

EDIT: Place this in /etc/X11/xorg.conf.d/10-quirks.conf, as opposed to under /usr/share, to prevent it ever being overwritten

FYI, the 10-quirks.conf file is used for exactly this cause -- to fix bugs caused by hardware incompatibilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment