Bug 256512

Summary: suspend with no disk space does not inform of the problem
Product: [Frameworks and Libraries] solid Reporter: Kevin Brubeck Unhammer <unhammer+dill>
Component: powermanagement-daemonAssignee: Dario Freddi <drf>
Status: RESOLVED UPSTREAM    
Severity: normal CC: zorael
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kevin Brubeck Unhammer 2010-11-10 13:03:20 UTC
Version:           unspecified (using KDE 4.5.3) 
OS:                Linux

I'm using http://pm-utils.freedesktop.org/wiki/ to suspend to RAM, either by calling "sudo /usr/sbin/pm-suspend" or clicking the suspend button in KDE. 

When suspending to RAM with the /var partition full, the above command gives me 


$ sudo pm-suspend
/usr/sbin/pm-suspend: line 64: echo: write error: No space left on device
/usr/lib/pm-utils/functions: line 214: echo: write error: No space left on device

However, when clicking suspend to RAM (sleep) in KDE, nothing happens.


(I think it was simply trying to write to a log file on /var, not sure.)

Reproducible: Didn't try

Steps to Reproduce:
Fill up /var, click the suspend to RAM button

Actual Results:  
Nothing.

Expected Results:  
An error message with the error output from pm-suspend.

I don't know if pm-utils are the regular way to do suspend, so this may be a bit Arch Linux specific; however, it should be possible to catch an exit code from KDE.

(I haven't tried hibernate to disk.)
Comment 1 Dario Freddi 2010-11-10 17:09:18 UTC
KDE uses some userspace systems (HAL, upower) to perform suspension. Those systems usually rely on pm-utils for suspension, but atm they don't give details upon suspend errors. So this feature should be firstly applied to upower before it can get into KDE.
Comment 2 Dario Freddi 2010-11-10 17:11:28 UTC
*** Bug 217307 has been marked as a duplicate of this bug. ***