Bug 256512 - suspend with no disk space does not inform of the problem
Summary: suspend with no disk space does not inform of the problem
Status: RESOLVED UPSTREAM
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement-daemon (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
: 217307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-10 13:03 UTC by Kevin Brubeck Unhammer
Modified: 2010-11-10 17:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***