LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices



Reply
 
Search this Thread
Old 09-18-2005, 06:00 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 45
KDE hibernate?


ok, so I got hibernate working, but I was wondering. Is it possible to make KDE hibernate? How do I have it return to KDE? thoughts?
 
Old 09-19-2005, 01:27 PM   #2
Earthwings
LQ Newbie
 
Registered: Aug 2005
Location: Karlsruhe, Germany
Distribution: Gentoo, Kubuntu
Posts: 20

Rep: Reputation: 0
Assuming hibernate works fine from within X, just write a wrapper script for the hibernate call that locks the KDE session. This can be done easily with dcop. Better yet use the hibernate-script provided by http://www.suspend2.net. It has configuration options to lock KDE and various other things. It works with the other hibernate methods as well, not only suspend2.
 
Old 09-19-2005, 04:07 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
it works if I initiate hibernate from the command line(ctrl-alt-F1). Can you explain in more detail what you're saying, I don't understand a 'wrapper script'
 
Old 09-20-2005, 04:16 AM   #4
Earthwings
LQ Newbie
 
Registered: Aug 2005
Location: Karlsruhe, Germany
Distribution: Gentoo, Kubuntu
Posts: 20

Rep: Reputation: 0
A minimal wrapper script could look like this:
Code:
#!/bin/sh

echo > /proc/swsusp/activate
dcop --all-users --all-sessions kdesktop KScreensaverIface lock
This activates hibernate and locks alls KDE sessions on resume. You can place it somewhere in /usr/local/bin for example and assign a keyboard shortcut for it. Many laptops have sleep keys, acpid usually is able to process them. Just map the sleep event to your script.

However, I'd strongly recommend to use the hibernate script from suspend2.net instead of a homebrewed script like above. Furthermore make sure to backup your data before calling hibernate from within KDE, it's still rather experimental.
 
Old 09-20-2005, 09:41 AM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
ok, I'm using hibernate from debian repositories. I did however patch my kernel w/ the suspend2 patch. I'm assuming debian's hibernate script is from suspend2.net...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hibernate prabhakar_kushwaha Linux - Software 1 10-21-2005 09:28 AM
Cant hibernate 9.3 alaios Suse/Novell 20 08-18-2005 01:08 PM
Can I Hibernate? ernesto_cgf Linux - Software 3 12-23-2004 03:22 AM
Hibernate How To... ???? trey85stang Linux - Laptop and Netbook 3 05-12-2004 08:07 PM
hibernate demmylls Linux - General 3 09-12-2003 04:47 PM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration