For me this didn't work. However, I'm using xubuntu so maybe here is the problem.
When I boot xbuntu with the laptop display closed suspend is not activated so this behaivor is as expected.
When I open the display, do something and close it again the laptop is going into suspend mode what is not what I want.
I tried the solution with polkit and login1 without success. Renaming the /usr/lib/pm-utils/bin/pm-action to .bak (so pm should be disabled completly) didn't work too.
Of course I first tried the default method to disable suspend with the ubuntu preferences...
For me this didn't work. However, I'm using xubuntu so maybe here is the problem.
When I boot xbuntu with the laptop display closed suspend is not activated so this behaivor is as expected.
When I open the display, do something and close it again the laptop is going into suspend mode what is not what I want.
I tried the solution with polkit and login1 without success. Renaming the /usr/lib/ pm-utils/ bin/pm- action to .bak (so pm should be disabled completly) didn't work too.
Of course I first tried the default method to disable suspend with the ubuntu preferences...
Anyone has an idea?