Jump to content

kernel 2.6.2 and apm suspend


paleo
 Share

Recommended Posts

Hi,

 

I'm running mdk9.1 (with a lot of customization) on a Toshiba Satelite 1805 and I just installed kernel2.6.2 from kernel.org. After a bit of messing around, I got it running pertty well (some modules names changed from 2.4. series so I had to take care of that mostly and some modules I have to load manually somehow - I do it in rc.local).

 

But I have a few problems with apm suspend (swsups doesn't work for me - never did; it always hangs when bringing up USB).

 

1. when I choose to restart network during suspend (in /etc/sysconfig/suspend), the process hangs. It cannot unload the eepro100 driver for my ethernet card (when this happens, I can't unload it manually either and I have to do a forced shutdown with alt-sysrq-S,U,B ). This is kind of random; sometimes the unloading works, at other times it will hang. I can get around this one by choosing not to restart the network but why can't I unload the module in the first place? Never had this with 2.4.22.

 

2. my ps/2 mouse goes nuts after resuming - the mouse pointer behaves as if it were getting fed by a random number generator. I can prevent this from happening by unloading the module psmouse before suspending. But then I have to load it again. This never happened with 2.4.22 either.

 

With regard to 2, I figured out how to unload the module automatically. I just inserted the line

rmmod psmouse

in one of the suspend scripts. But I can't get it to load automatically. I thought it should do it when I insert modprobe psmouse somewhere but it doesn't. Here is a modified script:

 

#!/bin/bash
. /etc/sysconfig/suspend
ARG=$1

function suspend {
   if [[ $RESTART_NETWORK == "yes" ]];then
 rmmod psmouse
   fi
}

function resume {
   if [[ $RESTART_NETWORK == "yes" ]];then
/sbin/modprobe psmouse
   fi
}

case $ARG in
   suspend)
suspend
;;
   resume)
resume
;;
esac

 

As you can tell, I cannibalized the /etc/sysconfig/suspend-scripts/suspend.d/network script since I don't use the network options anyway (restarting network is a bad idea on this laptop). The suspend part works, the resume part does not. Why? Any ideas? I kinda wonder if I'm misunderstanding the function of the resume part...

Edited by paleo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...