LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-01-2009, 09:27 PM   #1
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Rep: Reputation: 15
Keyboard Doesn't Work After Resuming from Suspend to Ram


I hope someone has an answer as I've Googled this and can't seem to find anything specific to Slackware.
Last weekend, the video in my Compaq Presario 3240 died. I had ran Slack 12.1 & 12.2 successfully and both suspend to ram and suspend to disk worked just fine. I've since upgraded to a new HP Pavilion DV7-1130us laptop, running Slack 12.2 and the ATI 8.12 drivers. My remaining problem: the laptop suspends to ram just fine. However, on wakeup, the keyboard does not work. If I have my USB mouse plugged in; that works, but, the keyboard or the touchpad does not respond to any touch or keystrokes.
Any suggestions ?

Thanks
 
Old 03-02-2009, 02:04 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,285

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
http://www.linux-laptop.net
There isn't a page yet for your model. There are dv6, dv8. etc. They do have (Remarkably familiar looking) discussion pages, and they used to have a mailing list (run from vger.kernel.org) but I'm probably just giving my age away here.

You could do worse than examine the power saving options in your kernel config. A rebuild there might sort it.
 
Old 03-02-2009, 05:21 PM   #3
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks, Business Kid, that link could help.

However, I hope I may be onto something here. I tried a suspend to ram and resumed again. Same problem. But - in /var/log/kdm.log at the end I get this:

"The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning Duplicate shape name ""
Using last definition
- I get a series of these, followed by a series of -

> Error Section defined without a name
Definition ignored

- followed by a series of -

> Warning Multiple doodads named ""
Using first definition

- and finally, it ends with -

Errors from xkbcomp are not fatal to the X server.
(EE) Error compiling keymap (server-0)
(EE) XKB: couldn't compile keymap"

On to a Google search of resume + suspend + "couldn't compile keymap"
 
Old 03-02-2009, 06:30 PM   #4
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
The XKB goose chase was no help....
....s2disk (and resume) works fine, however.

Still no clues on the the keyboard and resume from s2ram.

Last edited by beartooth91; 03-03-2009 at 11:15 AM. Reason: A Few More Data Points
 
Old 03-03-2009, 01:20 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,285

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by beartooth91 View Post
The XKB goose chase was no help....
....s2disk (and resume) works fine, however.

Still no clues on the the keyboard and resume from s2ram.
http://www.google.ie/search?q=%22War...ient=firefox-a

A search on the exact error message is more rewarding . . .
 
Old 03-03-2009, 03:57 PM   #6
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by business_kid View Post
http://www.google.ie/search?q=%22War...ient=firefox-a

A search on the exact error message is more rewarding . . .
That particular error has to do with the Num Lock modifier in /etc/kde/kdm/kdmrc. I uncommented the appropriate line and changed it to "Keep". I no longer get the error in the log, but, it had (has) nothing to do with my keyboard problem on resume from the s2ram script ("echo -n mem > /sys/power/state"). I had hoped it was the problem and/or would lead me to the fix, but, it did not.
I do appreciate your looking, though. Other googles seems to reveal this is some sort of a bug in the various 2.6.27 flavors (and others), but, I've really found no solutions. I suppose what's left is to download, configure, and install a new kernel.....in the absence of other suggestions.

Last edited by beartooth91; 03-03-2009 at 03:57 PM. Reason: punctuation
 
Old 03-04-2009, 11:50 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,285

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
suggestions:

1. Post in the forums in linuxquestions and/or linux-laptop.net.

2. Rebuild your existing kernel with a careful look at the acpi options. This is much less pain as slackware provide the config as config-<version> in /boot
 
Old 03-04-2009, 12:54 PM   #8
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Rebuilding the stock kernel should be necessary, but no promises. Either way, I don't think that should be your first option.

Look at /var/log/pm-suspend.log and see if anything jumps out at you (feel free to post it here if you'd like). Have a look in /usr/doc/pm-utils-1.2.3/README.SLACKWARE for the debugging instructions, particularly the website links. If all else fails, ask on the pm-utils mailing list - the maintainer and several distribution packagers (including me) are active there.
 
Old 03-05-2009, 10:22 AM   #9
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for the advice, Robby. I visit your site frequently. I'm not all that familiar with pm-utils, but, I did look through the supplied documentation and the pm-suspend script before running it. I then ran pm-suspend and had the same results. I looked through the log (attached) afterwards, nothing is really jumping out at me.
If there's a module responsible for driving the keyboard; it would seem if there's an option to reload it coming out of suspend - that could take care of the problem (?).
Attached Files
File Type: txt pm-powersave.log.txt (87 Bytes, 15 views)
 
Old 03-05-2009, 12:18 PM   #10
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
There should be a /var/log/pm-suspend.log (not pm-powersave.log) - there will be a list of the modules in use written to that log file.

If you do see a particular module that might be causing a problem, then you can tell pm-utils to unload that module when suspending and then reload it on wakeup. To do so, you create an /etc/pm/config.d/default file with this content:
Code:
SUSPEND_MODULES="whatever_module whatever_othermodule ..."
If you're interested in more about the format and such, and what else you can do with that file, see /usr/lib/pm-utils/default
 
Old 03-05-2009, 12:56 PM   #11
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
I can't believe I posted the pm-powersave log ! I must be getting old. Here's the pm-suspend log.
Attached Files
File Type: txt pm-suspend.log.txt (5.6 KB, 15 views)
 
Old 03-05-2009, 01:18 PM   #12
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Hrm, nothing stands out as important to me either :/
Something you might try: after resuming, log in to the box via ssh, and then try unloading/reloading various modules (start with usbhid & hid) to see if anything changes wrt the keyboard.
I looked through the -stable ChangeLogs at kernel.org, and I didn't see any patches addressing anything similar to this.
You'll probably want to go ahead and post a mail to the pm-utils list.
 
  


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
Getting Suspend-to-RAM to work on Toshiba laptop. Vetruvet Linux - Laptop and Netbook 1 12-12-2008 05:47 AM
how to execute a command automatically after resuming from suspend to RAM? bjharker Linux - General 5 11-24-2008 08:00 AM
vt's don't work after suspend to ram notapplicable Linux - Laptop and Netbook 0 11-23-2006 03:08 PM
monitor does not turn on after resuming from suspend nappaji Puppy 2 08-24-2006 08:19 PM
Software Suspend - freezes while resuming TazG Linux - Software 2 08-11-2004 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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