All of the ACPI actions trigger "events" which are initially handled by the kernel, then passed to a user-side daemon. (A "daemon" is what Windows would call a "service").
When the lid is closed, as when the lid is opened, certain things can occur. For example, when the lid is closed, video should be turned off and maybe a suspend-to-disk should be started. When the lid is reopened, video must be turned back on.
Unfortunately, "not all laptops are created equal." They don't all use the same video hardware. While they
do contain a machine-readable description of what hardware they
do contain (so that Linux can be, and does try to be, "smart about it..."), there can still be ... "issues." The standard reaction to lid-open or lid-close might not be appropriate for your hardware, and might in fact cause grief.
If you're using a stock distro, you're probably not the first person running hardware "just like yours" who has encountered whatever you are seeing. There probably is a package available to fix it.
If you're running Gentoo

... look in
/etc/acpi ...
This is just one of those things that you learn to expect in the Linux world: manufacturers set-up their computers to run
Windows, and they tweak the software just-so. When you install Linux (or for that matter, when you install a non-OEM copy of Windows!), you can encounter hardware-specific issues of various kinds. Most are merely-annoying.