I have installed openSUSE Tumbleweed with Gnome 3.26.2 (Xorg) on a Samsung series 5 laptop with a “AMD® A6-4455m apu with radeon™ hd graphics” chip".
I would think that the intended behavior for closing the lid would be suspending, but it doesn’t. I have it set in the Gnome settings, but it still doesn’t work. The screen powers off, but it instantly turns on when it is reopened, and I’m still logged in and everything.
It does work when I suspend manually (ie. search for it in the overview or hold the “alt” key while pressing the “power-off button” from the top right drop down menu).
I was previously running KDE neon where it worked out of the box, so I suppose it should be possible.
It’s on in both in the tweak-tool and the normal system settings.
I tried uncommenting that line, restarting and test it but it still didn’t work. Should I do something else than just reboot to get it to work? (And i “re-commented” that line again, since it didn’t work).
I’m not really sure what I’m looking for here, but I really appreciate your help!
I would expect it to suspend to RAM or the disk (ie. not only the screen should power off, the fans and the disk etc. should too, and it should log me out so that I’m greeted with the gdm login screen when I open it/power it back on. That’s what I would consider normal and also what I have seen from some other distros at least.)
I would expect it to suspend to RAM or the disk (ie. not only the screen should power off, the fans and the disk etc. should too, and it should log me out so that I’m greeted with the gdm login screen when I open it/power it back on.
Just to clarify ‘suspending to disk’ is hibernation, while ‘suspending to RAM’ is suspending in the Linux world. From your earlier description, it appears that only the display is shutting down (with backlight turned off), rather than suspending actually occurring.
Do you have an additional display device attached or just the laptop display?
Did you try configuring via GNOME Tweak Tool as Malcolm already mentioned?
Does ~/.config/autostart/ignore-lid-switch-tweak.desktop exist?
and it should log me out so that I’m greeted with the gdm login screen when I open it/power it back on
The whole point of suspend is that it does not log you out - it leaves system in exactly the same state it was. Your DE may notice suspend and display lock screen on wakeup, but it is configurable and may be disabled. But you also did not mention what DE you are using.
So logind is configured to suspend on lid close, this action is not inhibited (or intercepted) and logind believes your system is not docked. The obvious first step to troubleshoot is to check whether it suspends manually - “systemctl suspend”.
And it will likely be useful if you upload “journalctl -b” output after lid close/open; it should show whether any suspend was attempted at all.