Installing libpam-systemd worked on another laptop of mine, but it doesn't work in a laptop which has the same debian version. I've tried all the workarounds suggested here, but none works.
Please note that the same problem occurs if I use lightdm. I can login, then the screen remains empty (only background image).