On Thu, Nov 14, 2019 at 8:36 PM Bruno Dantas <kernel@xxxxxxxxxxxxxxxxxx> wrote: > > > As I said, that may be the panel state rather than the lid switch status. > > > One last question: What keeps tabs on the "panel state"? > Is it the kernel, a kernel module, X, or something else? Would you be so kind as to point me in the right direction? > I'd like to find what keeps track of the panel state so that I can disable it (or configure it to lie and say that the panel is always open). > > Most internet searches for "panel state" lead me right back to the laptop lid switch, which I guess has been a red herring all along. Not necessarily. The i915 driver (for Intel GPUs) contains some code related to that too, see drivers/gpu/drm/i915/display/intel_opregion.c for example.