
1) when I turn off and on again it seems that the /tmp directory is not deleted.
I use an ext partition and the filesystem resides in "/mnt/sdb2/porteus/changes/" , so maybe that is the reason.
Or is it because I added write and read permissions to all users to "/mnt/sdb2/porteus/" , I am not sure .
2) From the xfce "logout" menu I pressed suspend and it worked, but I tried hibernate and instead it looks like the computer actually shut down.
I honestly don't know the difference between suspend, hibernate and hybrid sleep, however II set sufficient swap space.
edit:
according with this description is right that the pc poweroff in hibernated state, but I do not understand how it should have restored the state.
Suspend to RAM (aka suspend, aka sleep)
The S3 sleeping state as defined by ACPI. Works by cutting off power to most parts of the machine aside from the RAM, which is required to restore the machine's state. Because of the large power savings, it is advisable for laptops to automatically enter this mode when the computer is running on batteries and the lid is closed (or the user is inactive for some time).
Suspend to disk (aka hibernate)
The S4 sleeping state as defined by ACPI. Saves the machine's state into swap space and completely powers off the machine. When the machine is powered on, the state is restored. Until then, there is zero power consumption.
Hybrid suspend (aka hybrid sleep)
A hybrid of suspending and hibernating, sometimes called suspend to both. Saves the machine's state into swap space, but does not power off the machine. Instead, it invokes the default suspend. Therefore, if the battery is not depleted, the system can resume instantly. If the battery is depleted, the system can be resumed from disk, which is much slower than resuming from RAM, but the machine's state has not been lost.