LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-05-2013, 12:47 AM   #31
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Original Poster
Rep: Reputation: Disabled

Yes, I use wifi.

Turning off the wifi using the inbuilt switch doesnt help. Turning off the wifi, and cellular using the BIOS doesnt really help either.

This was after adding additional modules into the file.

Maybe it would simply be easier to modify my behavior at this point and shut down the laptop every time I closed the lid ? :P


Are there any other tools I could download and install to possibly help me troubleshoot exactly whats causing the issue with suspend ?
 
Old 08-06-2013, 01:52 PM   #32
äxl
Member
 
Registered: Feb 2013
Location: Germany, EU
Distribution: Debian (stable release)
Posts: 67

Rep: Reputation: 10
What's your SUSPEND_MODULES line now? I don't know if it's possible to unload all modules ...

Turn on pm-utils verbosity (https://wiki.debian.org/Suspend) and also look into other files in /var/log/

You should try Ubuntu or Debian, ask their wikis/help pages/forums and if nothing works file a bug against pm-utils.
 
Old 08-07-2013, 12:10 AM   #33
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Original Poster
Rep: Reputation: Disabled
Might let this drop

Quote:
Originally Posted by äxl View Post
What's your SUSPEND_MODULES line now? I don't know if it's possible to unload all modules ...

Turn on pm-utils verbosity (https://wiki.debian.org/Suspend) and also look into other files in /var/log/

You should try Ubuntu or Debian, ask their wikis/help pages/forums and if nothing works file a bug against pm-utils.

My original plan was to put it in ubuntu forums, but as you may have heard, they have been hacked recently and went offline.
My modules file is as follows:
Code:
SUSPEND_MODULES="uas b43 bluetooth sdhci"

I might just live with this bug/glitch/limitation. It doesnt happen with a normal rotating HDD, but I like the shock protection and battery saving of my current system. Ive heard there are no issues with a conventional SSD, but SSDs are still relatively expensive.....

If it might help, I enabled verbosity as you suggested, and the pm-suspend command now shows some info (but still doesnt work):

Code:
$ sudo pm-suspend
[sudo] password for sufy: 
+ set -a
+ PM_UTILS_LIBDIR=/usr/lib/pm-utils
+ PM_UTILS_ETCDIR=/etc/pm
+ PM_UTILS_RUNDIR=/var/run/pm-utils
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib/pm-utils/bin
+ PM_LOGFILE=/var/log/pm-suspend.log
+ TEMPORARY_CPUFREQ_GOVERNOR=performance
+ LOCKDIR=/var/run/pm-utils/locks
+ STORAGEDIR=/var/run/pm-utils/pm-suspend/storage
+ NA=254
+ NX=253
+ DX=252
+ PM_FUNCTIONS=/usr/lib/pm-utils/functions
+ PM_QUIRKDB=/usr/lib/pm-utils/video-quirks
+ PM_LKW_QUIRKS=/var/cache/pm-utils/last_known_working.quirkdb
+ LC_COLLATE=C
+ HIBERNATE_MODE=
+ HIBERNATE_RESUME_POST_VIDEO=no
+ SLEEP_MODULE=auto
+ SUSPEND_MODULES=
+ HOOK_BLACKLIST=
+ ADD_PARAMETERS=
+ DROP_PARAMETERS=
+ PARAMETERS=/var/run/pm-utils/pm-suspend/storage/parameters
+ INHIBIT=/var/run/pm-utils/pm-suspend/storage/inhibit
+ PM_CMDLINE=
+ BEFORE_HOOKS=
+ MODULE_HELP=
+ SUSPEND_MODULE=
+ HIBERNATE_MODULE=
+ SUSPEND_HYBRID_MODULE=
+ PM_HIBERNATE_DELAY=900
+ PM_RTC=/sys/class/rtc/rtc0
+ [ -f /usr/lib/pm-utils/defaults ]
+ . /usr/lib/pm-utils/defaults
+ [ -f /usr/lib/pm-utils/pm-suspend.defaults ]
+ set +a
+ [ -f /etc/pm/config.d/modules ]
+ [  ]
+ [  ]
+ [  ]
+ [  ]
+ set -a
+ . /etc/pm/config.d/modules
+ SUSPEND_MODULES=uas b43 bluetooth sdhci
+ SUSPEND_MODULES= uas b43 bluetooth sdhci
+ HOOK_BLACKLIST= 
+ ADD_PARAMETERS= 
+ DROP_PARAMETERS= 
+ set +a
+ [ -f /etc/pm/pm-suspend.config.d/*[!~] ]
+ continue
+ . /usr/lib/pm-utils/functions
+ is_set true
+ return 0
+ set -x
+ profiling
+ [  = true ]
+ profiling
+ [  = true ]
+ profiling
+ [  = true ]
+ [ auto = auto ]
+ SLEEP_MODULE=tuxonice uswsusp
+ mod=/usr/lib/pm-utils/module.d/tuxonice
+ [ -f /usr/lib/pm-utils/module.d/tuxonice ]
+ . /usr/lib/pm-utils/module.d/tuxonice
+ export TUXONICE_LOC
+ [ -d /sys/power/tuxonice ]
+ TUXONICE_LOC=/sys/power/tuxonice
+ break
+ [ -n /sys/power/tuxonice ]
+ [ -z  -a -n /sys/power/tuxonice ]
+ [ -f /sys/power/tuxonice/do_hibernate ]
+ HIBERNATE_MODULE=tuxonice
+ [ -z  -a -n /sys/power/tuxonice ]
+ grep -q mem /sys/power/state
+ [ -f /sys/power/tuxonice/do_hibernate ]
+ SUSPEND_HYBRID_MODULE=tuxonice
+ mod=/usr/lib/pm-utils/module.d/uswsusp
+ [ -f /usr/lib/pm-utils/module.d/uswsusp ]
+ . /usr/lib/pm-utils/module.d/uswsusp
+ [ -z  ]
+ command_exists s2ram
+ type s2ram
+ return 0
+ grep -q mem /sys/power/state
+ SUSPEND_MODULE=uswsusp
+ [ suspend = suspend ]
+ add_before_hooks uswsusp_hooks
+ [ -z  ]
+ BEFORE_HOOKS=uswsusp_hooks
+ add_module_help uswsusp_help
+ [ -z  ]
+ MODULE_HELP=uswsusp_help
+ [ -z tuxonice ]
+ [ -z tuxonice ]
+ [ -z uswsusp ]
+ [ -z tuxonice ]
+ [ -z tuxonice -a -w /sys/class/rtc/rtc0/wakealarm ]
+ r=0
+ id -u
+ [ 0 != 0 ]
+ try_lock pm-suspend.lock
+ local lock=/var/run/pm-utils/locks/pm-suspend.lock
+ mkdir -p /var/run/pm-utils/locks
+ touch /var/run/pm-utils/locks/pm-suspend.lock
+ exec
+ flock -x -n 3
+ return 0
+ trap remove_suspend_lock 0
+ rm -rf /var/run/pm-utils/pm-suspend/storage
+ mkdir -p /var/run/pm-utils/pm-suspend/storage
+ [ -f /var/run/pm-utils/pm-suspend/storage/parameters ]
+ echo 
+ add_parameters
+ remove_parameters
+ local p
+ [  = all ]
+ echo 
+ grep -vxFf /var/run/pm-utils/pm-suspend/storage/parameters.rm /var/run/pm-utils/pm-suspend/storage/parameters
+ cp -f /var/run/pm-utils/pm-suspend/storage/parameters.new /var/run/pm-utils/pm-suspend/storage/parameters
+ update_parameters
+ [ -f /var/run/pm-utils/pm-suspend/storage/parameters.new ]
+ get_parameters
+ cat /var/run/pm-utils/pm-suspend/storage/parameters
+ export PM_CMDLINE=
+ rm -f /var/run/pm-utils/pm-suspend/storage/parameters.new
+ [ 0 -gt 0 ]
+ command_exists check_suspend
+ type check_suspend
+ return 0
+ command_exists do_suspend
+ type do_suspend
+ return 0
+ check_suspend
+ [ -n uswsusp ]
+ ACTION=suspend
+ REVERSE=resume
+ init_logfile /var/log/pm-suspend.log
+ [ -z /var/log/pm-suspend.log ]
+ [ -h /var/log/pm-suspend.log ]
+ [ -f /var/log/pm-suspend.log -a ! -O /var/log/pm-suspend.log ]
+ export LOGGING=true
+ exec

__________

I might get a few more SD cards in the future and try other distros and linux types and see if any have the same issue with suspend, and if some overcome them, ill be sure to post the details here.
 
Old 08-10-2013, 01:28 PM   #34
äxl
Member
 
Registered: Feb 2013
Location: Germany, EU
Distribution: Debian (stable release)
Posts: 67

Rep: Reputation: 10
Quote:
Originally Posted by steak1987 View Post
My original plan was to put it in ubuntu forums, but as you may have heard, they have been hacked recently and went offline.
They're back again. But you have to have an account at ubuntu.com
Quote:
My modules file is as follows:
Code:
SUSPEND_MODULES="uas b43 bluetooth sdhci"
If you really wanted this you could be more aggressive ...
This would put all your modules as suspend modules (evil grin):
Code:
lsmod | grep -v "Module" | cut -f 1 -d ' ' | sed ':a;N;$!ba;s/\n/ /g' | while read line; do sudo echo SUSPEND_MODULES=\"$line\" > /etc/pm/config.d/modules; done
Quote:
If it might help, I enabled verbosity as you suggested, and the pm-suspend command now shows some info (but still doesnt work):
Seems it's the almost same output as with the "sh -x" ...

Quote:
I might get a few more SD cards in the future and try other distros and linux types and see if any have the same issue with suspend, and if some overcome them, ill be sure to post the details here.
That would be very welcome.
 
1 members found this post helpful.
  


Reply

Tags
suspend hibernate thread


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
LXer: Improved ways to suspend and hibernate a laptop under Linux LXer Syndicated Linux News 0 02-16-2007 05:01 PM
LXer: How to suspend and hibernate a laptop under Linux LXer Syndicated Linux News 0 06-06-2006 08:33 PM

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

All times are GMT -5. The time now is 10:22 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