I installed Manjaro 18.0.4 (Gnome) on my Lenovo P50. After setting the NVidia graphics card as the primary card and removing all drivers for the onboard intel GPU, the laptop does not suspend when I close the lid any more. The screen turns off, tough.

All properties in /etc/systemd/logind.conf are commented (so, defaults are in place). I tried to set HandleLidSwitch=suspend, but that does not work either.

In Gnome Tweak Tool, "Suspend when lid is closed" is set to true, with no effect.

What can I do to achieve the same behavior as with the integrated Intel graphics card?

  • Do you have an external monitor attached in? – mattia.b89 Apr 23 '19 at 20:09
  • I tried this with the laptop display only as well with an external monitor via HDMI or two external monitors via docking station / DisplayPort. Doesn't make a difference. – Franz Wimmer Apr 23 '19 at 20:12
  • I have had the same issue when ext. monitor connected: in that case, was not an issue but a voluntary behaviour of GNOME. Tweaking logind has not had any effect as well (probably GNOME ignore low-level stuff...)! – mattia.b89 Apr 24 '19 at 7:33

The acpid daemon can trigger user defined actions (like enter suspend state by exec'ing "echo mem > /sys/power/state") when it receives [$group $action $device $id] tagged device's events (in this case it would be group=button action=lid id=close). You first identify by watching /var/log/messages and construct a config file based on it.

A very low-level solution, maybe not suited in your case. But can be helpful in case you have no other mean.

  • 1
    How would this tool help the OP solve the problem? – G-Man Says 'Reinstate Monica' Apr 24 '19 at 5:41
  • 1
    G-man you are right, my comment needs to be more explicative, I updated my answer! – Vincent Achard Apr 24 '19 at 6:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.