I have a ubuntu AMD Quad Core desktop computer, that can go into a suspend state. If I click the setting for shutdown and logout, I can also choose supsend or hibernate. I can also use a sleep button on my logitech keyboard without using the mouse and clicking suspend through the menu's. which can also send the computer into a suspend state. I can then wake the computer using my keyboard which i think is enabled in my pc's bios settings which I have enabled. My Computer goes into a suspend state. when it wakes up it goes to the lock screen to be able to login. I do not want to be able to login! as sometimes I don't need to... it's easier. I have services which are run on a local network, not open to the internet, as a home media server, upnp service for ps3, or a smb server for local network file sharing or a local printer that is shared via CUPS. These services start and run automatically when the computer wakes up sometimes even from the lock screen because... there are also ways for these services not to start until they are run or started manually, but some of these services start from the suspend state because they have already been started before the computer went into a suspend state and resume once the computer wakes up. Once i use these services and I am finished with using them. I then have to login go to the setting where the shutdown button is click suspend it requires a two step process. and put my pc back into a suspend state. Is there a way where I can just press the sleep button on my keyboard to make the computer go back into a suspend state from the lock screen?
Is there a service a Command line which I can enable or if some know's how to make a similar service so that I can send my computer to a suspend state using my keyboard from the lock screen instead of having to login......