Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE exits on suspend (swsusp2 on 2.6.7; thinkpad t40) SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
srejbi
n00b
n00b


Joined: 03 Jan 2004
Posts: 14
Location: Budapest, Hungary

PostPosted: Sat Jun 26, 2004 1:35 pm    Post subject: KDE exits on suspend (swsusp2 on 2.6.7; thinkpad t40) SOLVED Reply with quote

i have recently installed swsusp2 on my thinkpad t40 running gentoo. the sources i have patched is development-sources-2.6.7. in general, i have followed the steps outlined at https://forums.gentoo.org/viewtopic.php?t=170548 (great howto; thanks!). my system hibernates and resumes fine, except one thing: my kde logs out from the session upon hibernate and i get the login sceen upon resume.
my /etc/suspend.conf looks like this.
Quote:
#-*-mode: sh-*-
# Configuration of software suspension
#

# If your graphic device is not able to return properly from suspend
# you can switch to textconsole before suspend and return to your
# X-console after resume.
# If you use an nvidia card, you can set this to nvidia. This
# will try to restore your 3D upon resume. This trick may be useful
# for other cards.
# Default: "no"
SWSUSP_LEAVE_X_BEFORE_SUSPEND="no"
#
# i thought this option should prevents restarting my X session

# Some services (e.g. network) may cause some hangs if they are not
# stopped before a suspend/resume cycle. You can set
# SWSUSP_RESTART_SERVICES to a list of services to stop before suspend
# and automatically restart after resume.
# If suspending results in killing some application because of lack
# of memory, you may also add here some of your launched services,
# so as to save memory. Good candidates are httpd, nfsserver, sendmail, etc.
# Default: ""
SWSUSP_RESTART_SERVICES="shorewall hotplug"

# Some services may need to be stopped before a suspend/resume cycle.
# You can set STOP_SERVICES_BEFORE_SUSPEND to a list of services to stop
# before suspend. These services will NOT automatically be restarted after
# the resume, use SWSUSP_RESTART_SERVICES instead if you want this
# behaviour.
# Default: ""
SWSUSP_STOP_SERVICES_BEFORE_SUSPEND=""

# Conversely, you can set START_SERVICES_AFTER_RESUME to a list
# of services to start after resuming.
# Default: ""
SWSUSP_START_SERVICES_AFTER_RESUME=""

# Those are programs that prevent from suspending. If they are
# running and --force or --kill option aren't used, suspension
# is aborted.
# Default: ""
SWSUSP_NON_COMPATIBLE_PROGS=""

# You can ask to killall these applications before suspend.
# Default: none
SWSUSP_STOP_PROGS_BEFORE_SUSPEND=""

# You can ask to run some applications before suspend using this variable.
# For instance, it may stop your VPN.
# Default: none
SWSUSP_START_PROGS_BEFORE_SUSPEND=""

# You can ask to run some applications after resume using this variable.
# For instance, it may restart your ADSL connection.
# Default: none
SWSUSP_START_PROGS_AFTER_RESUME=""

# If the following mount points cannot be unmounted,
# then suspension is aborted unless --force or --kill
# option is used on command line
# Default: "/mnt /floppy /cdrom"
SWSUSP_UMOUNTS="/mnt /floppy /cdrom"

# These mount points should be mounted after suspend
# They should appear in /etc/fstab
# Default: none
SWSUSP_REMOUNTS=""

# If the following interfaces cannot be stopped,
# then suspension is aborted unless --force or --kill
# option is used on command line
# Default: "eth0"
SWSUSP_DOWNIFS="wlan0 eth0"

# These interfaces should be started after suspend
# With "auto" the interfaces stopped before suspension
# will be started in reverse order.
# Default: "auto"
SWSUSP_UPIFS="auto"

# Some modules should be unloaded before a suspend/resume cycle. You
# can set UNLOAD_MODULES_BEFORE_SUSPEND to "yes" if you want
# unused modules to be removed from kernel space before suspend.
# This will be done after stopping services.
# With "no", nothing will be done before suspension.
# With "auto", it only does "rmmod -a" to clean modules
# which are marked "(autoclean)" in lsmod.
#
# Default: "yes"
SWSUSP_UNLOAD_MODULES_BEFORE_SUSPEND="yes"

# These modules should be unloaded after stopping services but
# before suspending.
# Default: modules.autoload
SWSUSP_REMOVEMODS="modules.autoload"

# These modules should be loaded after suspend
# Gentoo users can use "modules.autoload" here to read modules out of
# /etc/modules.autoload (this requires other Gentoo-specific scripts)
# Default: modules.autoload
SWSUSP_INSERTMODS="modules.autoload"

# Use SWSUSP_FORCE_SUSPEND_MODE to reset the behaviour of
# suspension. If empty, this let the suspension
# behaviour unchanged. Otherwise, these values will cause:
# echo "0 $SWSUSP_FORCE_SUSPEND_MODE" > /proc/swsusp/all_settings"
#
# This is simply a quick way of setting your favourite swsusp
# parameters. To determine the value of SWSUSP_FORCE_SUSPEND_MODE,
# tweak the files in /proc/swsusp to your heart's content, and then
# use 0 0 0 0 0 32. The value of
# SWSUSP_FORCE_SUSPEND_MODE will be all but the first number. eg,
# # cat /proc/swsusp/all_settings
# 0 2048 0 100
# means you should have SWSUSP_FORCE_SUSPEND_MODE="2048 0 100"
#
# Alternatively, you can use the keyword "acpi" to use the
# /proc/acpi/sleep interface in place of /proc/swsusp/all_settings
#
# Default: "0", i.e. halt, escape disabled. extra settings are untouched
SWSUSP_FORCE_SUSPEND_MODE="0"

# If you have problems with hardware clock drift amplified by
# suspension, try to set SAVE_CLOCK_ON_SUSPEND to "yes". The
# kerneltime will being saved before suspending. If you have
# network access, best is to set this variable to yes and add
# xntpd in services to start/stop below. If you haven't such
# a service permanently available, it is better to leave it
# to no, so that hardware clock remains as a reference for
# the system.
# Default: "no"
SWSUSP_SAVE_CLOCK_ON_SUSPEND="no"

# On some hardware, the power is cut off before the disk has
# flushed his own hardware cache. Insert the device of your
# swap partition here (e.g. /dev/hda) if you want to issue
# hdparm -W 0 <device>
# before suspension.
# Default: none
SWSUSP_DISABLE_HW_DISK_CACHE=""

# This specifies the VT on which logging will occur if --silent
# is not enabled. This is also the VT which will be switched to
# if SWSUSP_LEAVE_X_BEFORE_SUSPEND is enabled.
# Default: 9
SWSUSP_VT="9"


does anyone have an idea why is that? i'm really happy with how far i got with swsusp2 (i've never managed this far with swsusp before) but still; what does suspend worth if i loose everything open in my X session... 8O

update: i have tried to suspend from a blackbox session, the window manager doesn't exit, i get my session restored properly. so it's really some KDE-related issue. help, i don't want to change desktop manager just to get suspend working! :(


Last edited by srejbi on Sun Jun 27, 2004 11:01 pm; edited 2 times in total
Back to top
View user's profile Send private message
Cthulu23
n00b
n00b


Joined: 27 Aug 2002
Posts: 8

PostPosted: Sat Jun 26, 2004 1:58 pm    Post subject: Reply with quote

I'm able to hibernate fine using Andrew Tridgell's tphdisk prog, although it requires a fat16 partition to write your memory to. You can find it here: http://samba.org/junkcode/

For instuctions on using tphdisk, compile the code and run without arguments.
Back to top
View user's profile Send private message
srejbi
n00b
n00b


Joined: 03 Jan 2004
Posts: 14
Location: Budapest, Hungary

PostPosted: Sat Jun 26, 2004 2:23 pm    Post subject: Gnome resumes fine too... Reply with quote

just did another test suspending form a Gnome session. Suspends-resumes just fine. :)

what can be wrong with KDE? :?

Cthulu23: thanks for the hint, but the thing i'm trying to get working is swsusp2. and i'm almost there... :wink:
Back to top
View user's profile Send private message
srejbi
n00b
n00b


Joined: 03 Jan 2004
Posts: 14
Location: Budapest, Hungary

PostPosted: Sun Jun 27, 2004 11:03 pm    Post subject: Reply with quote

upgrading to KDE 3.2.3 has solved the problem. my system hibernates and resumes fine. :D yeeeehaaa!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18257

PostPosted: Sun Jun 27, 2004 11:37 pm    Post subject: Reply with quote

Moved from Documentation, Tips & Tricks.
_________________
Eat recycled food. It's good for the environment and okay for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum