Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SL5] - Lid switch not working, but it was working with a "normal" kernel... #1179

Open
TimoVerbrugghe opened this issue Oct 13, 2024 · 1 comment

Comments

@TimoVerbrugghe
Copy link

TimoVerbrugghe commented Oct 13, 2024

Hi everyone,

First off: very deep appreciation for everything already done here :).

I have a Surface Laptop 5 running on nixos with the nixos microsoft-surface-common module. Everything working (this includes suspending and waking up with the power button) except when I close the lid, nothing happens.

The screen stays on (I can see the light bleed through the small gap) and while evtest does mention that there is a lid switch input, when running it and closing, it doesn't detect anything.

Funny thing though is that when running the standard 6.6 kernel from nixos 24.05 release, the lid closing actually does make the computer suspend (but then it doesn't wake up because well... not running the linux-surface kernel I guess).

I saw that this is handled by the surface_gpe kernel module, but I see with lsmod that it's not loaded and when I try to load it, I get the following error message in dmesg:

modprobe: ERROR: could not insert 'surface_gpe': No such device

and in dmesg:

surface_gpe: no compatible Microsoft Surface device found, exiting

I think it's because surface_gpe still has a separate sl5 branch which might include the fixes needed but isn't part of master: https://github.com/linux-surface/surface-gpe/tree/devices/sl5

  • Anything more I need to provide in terms of logs?
  • Anybody that can help me build this surface_gpe kernel module from the sl5 branch on nixos and test it? I know a bit of nix configuration but building out of tree kernel modules is a bit above my current knowledge...
@TimoVerbrugghe
Copy link
Author

TimoVerbrugghe commented Oct 13, 2024

I also opened an issue on the surface_gpe repo (linux-surface/surface-gpe#4) but just in case they don't reply, if anybody could help me build and test this kernel module, would be great since it's literally the last hardware fix needed for the SL5 (at least from my side) :)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant