LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-02-2011, 03:03 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
trouble with power-manage restart after suspend-to-disk [aka, "hibernate"]


First let me get some terminology on the table based on what I understand.
  • Ubuntu says "suspend" to mean "suspend-to-ram". (Some folks call this "sleep".)
  • Ubuntu says "hibernate" to mean "suspend-to-disk.
  • Ubuntu says "resume" to mean restart after suspend-to-ram
  • Ubuntu says "thaw" to mean restart after suspend-to-disk

I base this list on the parameters passed to scripts found in /etc/pm/sleep.d/NN_* (where "NN" is 00 to 99, and * is some name).

Now for my REAL question...

I have two laptops that are essentially identical (Thinkpad 7764CTO).
Both will suspend+resume without troubles once we fixed some issues with USB and SD-card devices.

One laptop will hibernate+thaw without trouble.

One laptop will hibernate but it fails to "thaw". More precisely, the scripts that run fine during restart on one laptop, do not appear to run at all during restart on the other laptop. I use a diagnostic (details below) to shed some light on what is happening.

Can anyone help me discover what is causing power-manager to avoid this restart from suspend-to-disk processing on one laptop and not the other?

Thanks,
~~~ 0;-Dan

====================
A helpful diagnostic
====================
I modified the scripts surrounding power-manager to include statements like the following. See man logger and man syslogd for details.
Code:
...
myTag="SOMENAME"
myLogging="local7.notice"
...

#
#=== what is Power Management wanting to accomplish?
case "$1" in
    hibernate|suspend)
        #=== ACTION BEFORE SUSPEND/HIBERNATE
        #
        #=== announce to the logs
        logger -t "$myTag" -p "$myLogging" "... $myOption requested"
...
        ;;
    thaw|resume)
        #=== ACTION AFTER RESUME
        #
        #=== announce to the logs
        logger -t "$myTag" -p "$myLogging" "... $myOption requested"
...
        ;;
    *)
        #=== none of the above
        #
        #=== announce to the logs
        logger -t "$myTag" -p "$myLogging" "... UNKNOWN $myOption requested"

        ;;
esac

...
I can now use grep -i somename /var/log/messages to see the events of interest caused by my own logger statements. (This is similar to adding printf-calls into a program to display runtime details.) For example:
Code:
Jan  1 20:30:24 mumbles SOMENAME: START -- manage mounted usb ...
Jan  1 20:30:24 mumbles SOMENAME: ... suspend requested
Jan  1 20:30:24 mumbles SOMENAME: ... :SOMEDRIVE: mounted
Jan  1 20:30:24 mumbles SOMENAME: ... unmount SOMEDRIVE
Jan  1 20:30:24 mumbles SOMENAME: ... unmount /media/SOMEDRIVE status=0
Jan  1 20:30:24 mumbles SOMENAME: COMPLETED -- manage mounted usb
Jan  1 23:01:59 mumbles SOMENAME: START -- manage mounted usb ...
Jan  1 23:01:59 mumbles SOMENAME: ... resume requested
Jan  1 23:01:59 mumbles SOMENAME: ... nothing to do -- YET
Jan  1 23:01:59 mumbles SOMENAME: COMPLETED -- manage mounted usb

Jan  2 01:11:44 mumbles SOMENAME: START -- manage mounted usb ...
Jan  2 01:11:44 mumbles SOMENAME: ... hibernate requested
Jan  2 01:11:44 mumbles SOMENAME: ... :SOMEDRIVE: mounted
Jan  2 01:11:44 mumbles SOMENAME: ... unmount SOMEDRIVE
Jan  2 01:11:44 mumbles SOMENAME: ... unmount /media/SOMEDRIVE status=0
Jan  2 01:11:44 mumbles SOMENAME: COMPLETED -- manage mounted usb
Jan  2 01:12:35 mumbles SOMENAME: START -- manage mounted usb ...
Jan  2 01:12:35 mumbles SOMENAME: ... thaw requested
Jan  2 01:12:35 mumbles SOMENAME: ... nothing to do -- YET
Jan  2 01:12:35 mumbles SOMENAME: COMPLETED -- manage mounted usb

Last edited by SaintDanBert; 01-02-2011 at 03:09 PM.
 
Old 01-04-2011, 11:51 AM   #2
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
bump
 
  


Reply



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
Removing the Enlightenment Sound Daemon (aka "esd" aka "esound") jgombos Debian 4 03-30-2010 02:33 PM
linux "suspend to disc" then restart into windows partition, not working? bussardvago SUSE / openSUSE 4 01-07-2008 07:12 PM
linux "suspend to disc" then restart into windows partition, not working? bussardvago Linux - Newbie 2 11-25-2007 02:06 PM
linux "suspend to disc" then restart into windows partition, not working? bussardvago Linux - General 1 11-25-2007 06:53 AM
How to set "restart after power loss" ? ifm Linux - Hardware 7 01-31-2004 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:29 PM.

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
Open Source Consulting | Domain Registration