 |
 |
How can I figure out which process is stopping my Mac from sleeping?
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Hi
How can I find out which processes are running in the background and stopping my machine from sleeping?
I've outlined all the problems I'm having with my new Canon LiDE 30 scanner on the Peripherals forum (and there are dozens of other people with the same problems on this and other forums) but basically, the needless button drivers are known to stop the machine sleeping. The thing is, I've removed these files and my mac still has insomnia. They aren't in CFMSupport or listed as start-up items. I've experimented with removing other files in CFMSupport and I get to the point where the scanner no longer works.
Surely SOMETHING is causing the sleep problems - is there some way of discovering what? Would the Process Viewer be the place to look and can anyone offer advice on how to interpret what I find there.
Many thanks - this is my fourth day trying to sort out the problem.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Here's the latest, in case anyone is still following this one:
Unplugging the scanner's USB lead allows my machine to sleep. This isn't the most elegant solution and I'd rather get to the bottom of the problem.
Other than the known button files, what else could be going on between machine + scanner to cause the sleep problems?
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status:
Offline
|
|
Have you looked at ProcessViewer? Try posting the output from that (or ps auxww in the Terminal) and someone can help you.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
It may be caused by a bad kernel extension/driver...
Open Terminal, and try :
kextstat | grep -v "com.apple" | grep -v Index
It should list all installed kernel extensions which are not apple's. Let's say :
11 10 0x124ec000 0x9000 0x8000 com.company.faultly.driver (1.2) <4 3>
unload the kernel extension with :
sudo kextunload -b com.company.faultly.driver
then, go in /System/Library/Extensions and find the corresponding kernel extension.
move the bad kernel extension to your homedir to disable it permanently :
sudo mv /System/Library/Extensions/Faultly.kext ~myusername/
(Last edited by pat++; Jul 15, 2003 at 05:31 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Hi
I can't copy and paste from Process Viewer. I tried the 'ps auxww' command in Terminal and received an enormous list of gabble that I honestly can't believe anyone would want to pick through.
Sorry Pat, but you're speaking Greek to me. I tried the same - copying the commands into Terminal - but it wasn't having it.
Can anyone give any hints as to what I might be looking for in the Process Viewer. This is truly driving me batty and I'm planning on chewing my own legs off.
Bear in mind that I'm a relative novice and certainly don't delve into the arse-end of my machine with much confidence.
Thanks.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
Originally posted by drissa:
Sorry Pat, but you're speaking Greek to me. I tried the same - copying the commands into Terminal - but it wasn't having it.
Let's do it step by step. Copy/Paste this line in Terminal and post the output here... I'll see if there is something suspicious...
kextstat | grep -v "com.apple" | grep -v Index
(make sure your scanner is connected to the Mac)
Notice that if you don't get any output, this is because there is no third party kernel extension installed (ps auxww will be helpful in this case, post the output here)... (but I guess you'll find something related to Canon...)
(Last edited by pat++; Jul 15, 2003 at 06:05 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Hi Pat
The first line you suggested responds with 'command not found'. The second produces the following. It's very good of you to help out - much appreciated. Take a deep breath...
USER PID %CPU %MEM VSZ RSS TT STAT TIME COMMAND
benjohns 334 4.3 1.1 91944 8436 ?? S 0:22.48 /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_1441793
root 422 3.0 0.0 1320 284 std R+ 0:00.01 ps auxww
benjohns 417 3.0 0.1 5860 904 std Ss 0:00.09 -tcsh (tcsh)
benjohns 71 0.4 2.0 88788 15344 ?? Ss 7:32.98 /System/Library/CoreServices/WindowServer
benjohns 294 0.1 4.1 120676 31984 ?? S 5:20.14 /Applications/Internet Explorer.app/Contents/MacOS/Internet Explorer /Applications/Internet Explorer.app/Contents/MacOS/Internet Explorer -psn_0_1179649
root 76 0.0 0.0 1296 104 ?? Ss 0:00.00 dynamic_pager -H 40000000 -L 160000000 -S 80000000 -F /private/var/vm/swapfile
root 99 0.0 0.0 2332 368 ?? Ss 0:00.06 /sbin/autodiskmount -va
root 121 0.0 0.2 4012 1464 ?? Ss 0:04.61 configd
root 164 0.0 0.0 1288 156 ?? Ss 0:00.21 syslogd
root 170 0.0 0.0 1604 120 ?? Ss 0:00.00 /usr/libexec/CrashReporter
root 192 0.0 0.1 1836 524 ?? Ss 0:00.18 netinfod -s local
root 199 0.0 0.1 2448 472 ?? Ss 0:08.12 lookupd
root 207 0.0 0.1 2820 1092 ?? Ss 0:00.45 /System/Library/CoreServices/coreservicesd
root 214 0.0 0.0 1288 116 ?? Ss 0:00.00 inetd
root 224 0.0 0.0 1276 84 ?? S 0:00.00 nfsiod -n 4
root 225 0.0 0.0 1276 84 ?? S 0:00.00 nfsiod -n 4
root 226 0.0 0.0 1276 84 ?? S 0:00.00 nfsiod -n 4
root 227 0.0 0.0 1276 84 ?? S 0:00.00 nfsiod -n 4
root 232 0.0 0.0 2192 316 ?? Ss 0:00.00 automount -m /Network/Servers -fstab -m /automount -static
root 243 0.0 0.1 2136 636 ?? Ss 0:00.17 /System/Library/CoreServices/SecurityServer
root 251 0.0 0.0 1560 156 ?? Ss 0:00.06 cron
benjohns 255 0.0 0.5 71172 4276 ?? Ss 0:02.36 /System/Library/CoreServices/loginwindow.app/loginwindow console
benjohns 258 0.0 0.5 21184 4168 ?? Ss 0:03.52 /System/Library/CoreServices/pbs
benjohns 261 0.0 2.8 111764 22160 ?? S 0:33.83 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder -psn_0_262145
benjohns 267 0.0 0.6 83340 4980 ?? S 0:05.40 /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock -psn_0_393217
benjohns 268 0.0 0.4 85248 3500 ?? S 0:03.63 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer -psn_0_524289
root 2 0.0 0.0 1300 140 ?? SL 0:01.52 /sbin/mach_init
benjohns 377 0.0 0.7 96832 5212 ?? S 0:01.08 /Applications/OmniOutliner.app/Contents/MacOS/OmniOutliner -psn_0_1835009
root 407 0.0 0.0 1784 304 ?? Ss 0:00.00 pppd serviceid 0 logfile /tmp/ppp.log /dev/cu.modem 115200 connect /usr/libexec/CCLEngine -l 0 -f '/Library/Modem Scripts/Alcatel Modem' -E -S 150 -s 1 -e 1 -c 1 -p 0 -d 0 -C 'Cancel' -I 'Internet Connect' -i 'file://localhost/System/Library/SystemConfiguration/PPPController.bundle/Contents/Resources/NetworkConnect.icns' disconnect /usr/libexec/CCLEngine -m 1 -l 0 -f '/Library/Modem Scripts/Alcatel Modem' -E -S 150 -C 'Cancel' -I 'Internet Connect' -i 'file://localhost/System/Library/SystemConfiguration/PPPController.bundle/Contents/Resources/NetworkConnect.icns' cancelcode 136 demand holdoff 0 lcp-echo-interval 10 lcp-echo-failure 3 mru 1500 mtu 1500 receive-all ipparam 10.0.0.138 0:0 noipdefault ipcp-accept-local ipcp-accept-remote usepeerdns noauth forcedetach noccp plugin /System/Library/SystemConfiguration/PPPController.bundle/Contents/PlugIns/PPPDialogs.ppp noaskpassword
root 1 0.0 0.0 1292 252 ?? SLs 0:00.00 /sbin/init
benjohns 69 0.0 0.3 19412 2156 ?? Ss 0:02.66 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Support/ATSServer
root 41 0.0 0.2 3764 1732 ?? Ss 0:00.03 kextd
root 73 0.0 0.0 1276 100 ?? Ss 0:01.53 update
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
It seems that your are using an alcatel modem... Is this a USB one? If this is the case, does your computer go to sleep if you are not connected (and the modem is not plugged on the Mac, but the scanner is).
Concerning the first line, try this, it should work :
/usr/sbin/kextstat | /usr/bin/grep -v "com.apple" | /usr/bin/grep -v Index
(make sure your scanner is connected to the Mac)
and post the output here.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Hi Pat
No, the Alcatel USB modem was evil (kernal panics, etc) - I have an ethernet router.
I pasted the line into Terminal -
Welcome to Darwin!
[localhost:~] benjohns% /usr/sbin/kextstat | /usr/bin/grep -v "com.apple" | /usr/bin/grep -v Index
/usr/sbin/kextstat: Command not found.
[localhost:~] benjohns%
The scanner is hooked-up.
Maybe I'm doing something wrong?
Thanks
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Something I've just noticed that might be helpful.
Having had the scanner unplugged, I plugged it back in to try the previous Terminal command and when I tried to put the machine to sleep afterwards, it worked.
I woke it up and the scanner was being recognised in Elements 2. However, an attempt to then make the machine sleep again failed.
Maybe this is telling of the nature of the problem?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
Originally posted by drissa:
Maybe I'm doing something wrong?
It's weird... Which version of OS X do you use ? is this 10.1 ? or 10.2 ?
(Last edited by pat++; Jul 16, 2003 at 01:12 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
I just found that if you are running 10.1, you should replace kextstat with kmodstat...
try :
/usr/sbin/kmodstat
and post the result here... hopefully it will work this time (if you are running 10.1) 
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2001
Location: Florida
Status:
Offline
|
|
I used to have the Canon lide 30 and my QS wouldn't sleep either. However, I have sin ce disconnected it and repalced it with an HP all-in-one and my QS still won't sleep by timed energy saver. It will sleep if I put it to sleep and no probs waking. However, if i set the machine to go to sleep in 20 minutes, the monitor will but not my QS.
|
|
All Your Signature Are Belong To Us!
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Sorry - I neglected to say that I'm still crawling behind on 10.1.3
Welcome to Darwin!
[localhost:~] benjohns% /usr/sbin/kmodstat
kmodstat: unable to get kernel task port: (os/kern) failure
kmodstat: Are you running as root?
[localhost:~] benjohns%
Hmmmmm...
As I mentioned before, I've been unplugging the scanner to put the machine in sleep. When I wake the machine up and reconnect the scanner, the machine will sleep. It's only once I've opened the scanner interface in P/shop Elements that the sleep function is disabled.
This tells me - and it's guess work - that the problem is not a process running in the background, or at least one that is only triggered when the scanner is called up. But, like I said, I'm a novice. And an increasingly frustrated one too...
(Last edited by drissa; Jul 16, 2003 at 05:01 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Apr 2003
Location: The City Of Diamonds
Status:
Offline
|
|
Try this:
Code:
sudo /usr/sbin/kmodstat | /usr/bin/grep -v "com.apple" | /usr/bin/grep -v Index
and give your admin password if it asks for it.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
oops. I forgot 'sudo' at the begining of the command to execute kmodstat as root :
sudo /usr/sbin/kmodstat | /usr/bin/grep -v "com.apple" | /usr/bin/grep -v Index
<enter your password when prompted>
and post the result.
I believe as you said that this is not a process, but rather the kernel extension/driver of the scanner which causes the sleep problem... we'll try to disable it and see if it fix the issue.
(Last edited by pat++; Jul 16, 2003 at 05:23 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Thanks Pat -
Welcome to Darwin!
[localhost:~] benjohns% sudo /usr/sbin/kmodstat | /usr/bin/grep -v "com.apple" | /usr/bin/grep -v Index
Id Refs Address Size Wired Name (Version) <Linked Against>
67 0 0x215e6000 0xd000 0xc000 msdosfs (1.0)
[localhost:~] benjohns%
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
hmmm... just to make sure we don't miss anything, try this simplier command (sorry for doing things step by step like this, but I don't have 10.1 to see what the output should look like) :
sudo /usr/sbin/kmodstat
(enter your password if required)
(make sure the scanner is plugged-in, and try to use it once so that the problem is supposed to occure before entering the command above)
and post the whole output once again...
(Last edited by pat++; Jul 16, 2003 at 07:47 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Hi Pat
This looks more like it -
Id Refs Address Size Wired Name (Version) <Linked Against>
1 1 0x0 0x0 0x0 com.apple.kernel (5.3)
2 4 0x0 0x0 0x0 com.apple.kernel.bsd (5.3)
3 25 0x0 0x0 0x0 com.apple.kernel.iokit (5.3)
4 24 0x0 0x0 0x0 com.apple.kernel.libkern (5.3)
5 15 0x0 0x0 0x0 com.apple.kernel.mach (5.3)
6 1 0x0 0x0 0x0 com.apple.iokit.IOADBFamily (1.1)
7 1 0x0 0x0 0x0 com.apple.iokit.IOSystemManagementFamily (1.1)
8 9 0x1927d000 0x8000 0x7000 com.apple.iokit.IOPCIFamily (1.1) <3 4>
9 0 0x192bc000 0xa000 0x9000 com.apple.driver.AppleMacRISC2PE (1.1d4) <8 5 3 4>
11 3 0x19331000 0x17000 0x16000 com.apple.iokit.IOHIDSystem (1.1.1) <3>
12 2 0x193cc000 0x16000 0x15000 com.apple.iokit.IOGraphicsFamily (1.1.1) <8 3 4>
14 0 0x19428000 0x3000 0x2000 com.apple.driver.AppleCore99NVRAM (1.1) <3 4 5>
15 0 0x19453000 0x5000 0x4000 com.apple.driver.AppleMacRiscPCI (1.1) <8 2 5 3 4>
16 1 0x194f3000 0x13000 0x12000 com.apple.iokit.IONDRVSupport (1.1.1) <12 8 3 4>
17 0 0x21553000 0x8000 0x7000 com.apple.driver.AppleKeyLargo (1.1.5d1) <3 4 5>
18 8 0x21636000 0x16000 0x15000 com.apple.iokit.IOUSBFamily (1.8.7) <3 4 5>
19 0 0x21686000 0x9000 0x8000 com.apple.driver.AppleUSBOHCI (1.8.7) <8 18 3 4 5>
20 0 0x216a9000 0x3000 0x2000 com.apple.driver.AppleMPIC (1.1) <3 4 5>
21 0 0x216c1000 0x4000 0x3000 com.apple.driver.AppleVIA (1.1) <3 4 5>
22 3 0x21706000 0xe000 0xd000 com.apple.iokit.IOATAFamily (1.4.9f1) <3 4>
23 0 0x21731000 0x3000 0x2000 com.apple.driver.KeyLargoATA (1.0.8f3) <22 3 4>
25 3 0x21826000 0x2d000 0x2c000 com.apple.iokit.IOFireWireFamily (1.1.2d43) <3 4>
26 0 0x218bf000 0xf000 0xe000 com.apple.driver.AppleFWOHCI (1.1.2d24) <25 8 3 4>
27 0 0x218fd000 0x8000 0x7000 com.apple.driver.AppleUSBHub (1.8.7) <18 3 4 5>
28 0 0x21983000 0x16000 0x15000 com.apple.driver.ApplePMU (1.2.4d1) <3 4 5>
29 5 0x219dd000 0x10000 0xf000 com.apple.iokit.IOSCSIArchitectureModelFamily (1.1.3) <3 4 5>
30 0 0x21a1e000 0x5000 0x4000 com.apple.iokit.IOATAPIProtocolTransport (1.1.1) <22 29 3 4 5>
31 8 0x21a86000 0x16000 0x15000 com.apple.iokit.IOStorageFamily (1.1.2) <2 3 4>
32 0 0x21add000 0x7000 0x6000 com.apple.iokit.IOATABlockStorage (1.1.1) <22 31 2 3 4>
33 0 0x21b02000 0x3000 0x2000 com.apple.driver.AppleUSBComposite (1.8.7) <18 3 4 5>
34 0 0x21b40000 0x5000 0x4000 com.apple.driver.AppleUSBKeyboard (1.8.7) <11 18 3 4 5>
35 0 0x191e3000 0x9000 0x8000 com.apple.iokit.IOUSBUserClient (1.8.8) <18>
36 1 0x191fd000 0xa000 0x9000 com.apple.iokit.IOSerialFamily (5.3.0d14)
37 0 0x19207000 0xb000 0xa000 com.apple.driver.AppleSCCSerial (1.2.1) <36>
38 0 0x191f2000 0x4000 0x3000 com.apple.driver.AppleI2C (1.0.1d3)
39 1 0x1921b000 0x1a000 0x19000 com.apple.iokit.IONetworkingFamily (1.1) <8>
40 0 0x19235000 0x8000 0x7000 com.apple.iokit.AppleGMACEthernet (1.1.8) <8 39>
42 0 0x1923d000 0x29000 0x28000 com.apple.ATIRadeon (1.1) <8 12 16>
43 3 0x1928c000 0x1a000 0x19000 com.apple.iokit.IOAudioFamily (1.1fc9)
44 2 0x1926e000 0x5000 0x4000 com.apple.driver.AppleDBDMAAudio (1.7.3) <43>
45 1 0x192d8000 0xe000 0xd000 com.apple.driver.AppleOnboardAudio (1.7.3) <43 44>
46 0 0x192a6000 0x8000 0x7000 com.apple.driver.AppleTexasAudio (1.7.3) <43 44 45>
47 0 0x192ae000 0x4000 0x3000 com.apple.driver.AppleDallasDriver (1.0.0)
51 3 0x192f5000 0xb000 0xa000 com.apple.iokit.IOCDStorageFamily (1.1.3) <31>
52 2 0x19300000 0x6000 0x5000 com.apple.iokit.IODVDStorageFamily (1.1) <31 51>
53 1 0x19306000 0xd000 0xc000 com.apple.iokit.IOSCSIBlockCommandsDevice (1.1.3) <31 51 52 29>
54 0 0x1934f000 0x16000 0x15000 com.apple.iokit.IOSCSIMultimediaCommandsDevice (1.1.3) <31 51 52 29 53>
56 0 0x19365000 0x4000 0x3000 com.apple.driver.AppleUSBMouse (1.8.8) <11 18>
57 0 0x19369000 0x4000 0x3000 com.apple.driver.AppleUSBProKeyboard (1.0.3) <11 18>
58 0 0x1936d000 0x7000 0x6000 com.apple.iokit.SCSITaskUserClient (1.1.3) <31 29>
61 0 0x1949d000 0x6000 0x5000 com.apple.nke.SharedIP (1.1)
62 0 0x194a3000 0x4000 0x3000 com.apple.nke.IPFirewall (1.1)
63 0 0x194bf000 0x9000 0x8000 com.apple.nke.ppp (1.1.1)
64 1 0x21536000 0x7000 0x6000 com.apple.iokit.IOFireWireAVC (1.1.2) <25>
65 0 0x2153d000 0x8000 0x7000 com.apple.driver.IOFireWireDV (1.1.1d24) <25 64>
66 0 0x215db000 0xb000 0xa000 com.apple.iokit.IOUSBMassStorageClass (1.1.2) <31 29 18>
67 0 0x215e6000 0xd000 0xc000 msdosfs (1.0)
68 0 0x2160e000 0xc000 0xb000 com.apple.AppleDiskImageController (31.4) <31>
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
Okey, it seems that everything is fine... no third-party drivers installed. I'm afraid it's a bug in Apple's own driver... As you are running a very old version of OS X, I would suggest to update to 10.1.5 at least (it's free, get the update from Software Update in System Preferences, or from apple.com), or better, switch to Jaguar (or Panther when it's available). 10.1.3 about 1.5 years old, they problably have fixed this issue in the meantime...
(Last edited by pat++; Jul 17, 2003 at 04:22 AM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2001
Location: Florida
Status:
Offline
|
|
10.1.3? Wow that is old. Not sure the version, but having a USB hub connected caused a few issues.
|
|
All Your Signature Are Belong To Us!
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: UK
Status:
Offline
|
|
Many thanks Pat. I know I'm well behind with OS X - really, I've been waiting until I can buy a new drive, get the partition thing sorted and get Jaguar all in one swoop.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: May 2003
Status:
Offline
|
|
You can download the 10.1.5 update for free in software update. It fixed a lot of USB related issues.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2001
Status:
Offline
|
|
Take a look at your login items, is there one for your scanner (which detects when you press a button)? My iMac wouldn't sleep after I installed my Canon scanner software but removing the login item solved the problem.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|