LinuxQuestions.org
Help answer threads with 0 replies.
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 08-29-2014, 01:05 PM   #1
2e0byo
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
Debian testing/Linux 3.14 suspend/resume on toshiba c50


I have a tohsiba c50 (something) (can find out if required) running debian testing (3.14-2-amd64). Support is amazingly good, much better than I've seen before on olderlaptops, it even supports multitouch and the like, but I am having a weird problem with suspend/resume.

This works fine, providing I don't leave tha laptop too long, else on resume mouse/keyboard do not work. Shutting the lid (to suspend again) and the re-opening cures it, so it is not unuseable, but obviously it would be nice to not have to do so. I cannot see any difference in /var/log/pm-suspend.log between hard poweroff/reboot (which ought to preserve the log) and shut lid/opem (which ought (?) to replace it), and wireless reconnects fine either time.

The same thing happens with hibernate (no mouse/keyboard), as far as I can see it is fine apart from that.

Any suggestions? I'm happy to tinker with config files, but thought I'd see what people think first.

Many thanks,

John

P.S. I would add that I have not done a significant number of tests; this might just be an intermittent issue.

Last edited by 2e0byo; 08-29-2014 at 01:41 PM. Reason: clarification
 
Old 08-31-2014, 07:34 AM   #2
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Have you checked the system log files?
I think I'd start with comparing the output of dmesg after a short hibernate to the one after a long hibernate. (In other words, compare a hibernate that "broke" the mouse/keyboard to one that didn't)

One good way to compare the output of two logfiles is sdiff in combination with cut:
Code:
sdiff <(dmesg | cut -d']' -f 2) <(cut -d']' -f 2  /var/log/dmesg.0) | less
The cut command elliminates the time column at the beginning so you can actually look for differences in the log output.
The above example compares the current dmesg to the old dmesg.0 in /var/log/messages which may not be exactly what you want. You probably want to go into hibernate, put the laptop back on and do a
Code:
dmesg | tail -n 100 > ~/dmesg.ok.txt
Then go into a long hibernate that breaks mouse / keyboard. If possible at all, connect to the machine via ssh from another machine so you can directly grep the syslog with
Code:
dmesg | tail -n 100 > ~/dmesg.bad.txt
If you can't do that you will produce more logging while closing the lid and opening it again to get the keyboard working again, so you'll probably want to tail a bit more of the dmesg output. Maybe you can strip the unwanted part at the end manually.
Anyhow, once you have your good and bad output you can do (untested)
Code:
sdiff <(cut -d']' -f 2 ~/dmesg.bad.txt) <(cut -d']' -f 2  ~/dmesg.ok.txt) | less
 
Old 08-31-2014, 04:14 PM   #3
2e0byo
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Original Poster
Rep: Reputation: 0
thanks very much; I had forgotten about sdiff & have never used cut.

After a few more days the issue is intermittent; but I'll wait till it does happen and then ssh in (I /think/ ssh is still operational, as the clock updates so it looks like the machine is running). If I do find something or get it working I'll post here.
 
  


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
LXer: Automatically Resume from Suspend to Ram and Suspend to Disk to Save Battery in Linux LXer Syndicated Linux News 0 05-10-2013 02:40 AM
[SOLVED] Why do nVida drivers hose suspend/resume or hibernate/resume? taylorkh Linux - Hardware 3 06-23-2011 01:09 PM
LXer: Suspend/resume in Debian Squeeze with the 2.6.37 Liquorix kernel on the Lenovo G555 LXer Syndicated Linux News 0 02-08-2011 11:20 PM
Request for Testing: Suspend/Resume (pm-utils backend) rworkman Slackware 16 11-10-2008 11:04 AM
Toshiba M30 ACPI-suspend and Resume cyberjun Linux - Laptop and Netbook 4 03-10-2006 01:27 AM

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

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