diff options
author | Michael Biebl <mbiebl@gmail.com> | 2009-11-08 17:05:18 +0100 |
---|---|---|
committer | Michael Biebl <mbiebl@gmail.com> | 2009-11-08 17:05:18 +0100 |
commit | 3dfbf269209ee4e1252d5de6cd2fe4ea78d91d68 (patch) | |
tree | d10d80b3da71a9b1e30b79b4b600db8d7250aec3 | |
parent | 6014e54b7f007109616965ff601ff05ea6fc397a (diff) |
Don't err out in maybe_deallocvt if there is no console state
kpowersave pops up a window telling that an error "1" has occurred when
suspending to ram. The error "1" message is annoying and lacks meaning
to the user.
It's caused by maybe_deallocvt returning the ret_val of state_exists
when the tested (here: console) file isn't found. This absence of this file
seems not to do any harm therefore the escalation of the ret_val 1 is
deprecated.
Solution: just tell maybe_deallocvt to return 0 in the above case.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554959
-rwxr-xr-x | pm/sleep.d/99video | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video index 957cbc2..29f2f2c 100755 --- a/pm/sleep.d/99video +++ b/pm/sleep.d/99video @@ -92,7 +92,7 @@ maybe_chvt() maybe_deallocvt() { - state_exists console || return + state_exists console || return 0 chvt $(restorestate console) deallocvt 63 } |