Dell Mini 10v Forum for all discussions and support on the Dell Mini 1011, also known as the Mini 10v. If your question is regarding Mac OS X, please use the Mini 10v Mac OS X forum.

Reply
 
LinkBack Thread Tools Display Modes
  (#1) Old
Member
 
Posts: 44
Join Date: Apr 2009
Location: St. Petersburg, FL
Default Using rc.wakeup script to enable Shutdown and Restart in OSX - 07-23-2009, 01:01 PM

All,

I just did the rc.wakeup script to fix the static on Voodoo audio kext by reloading it after sleep (lid put down).

Awesome btw.

Since the 10v will shutdown and restart normally if it was never put to sleep (never put the lid down), is there a way to enable shutdown and restart to work after sleep also via the rc.wakeup script?

Thanks,
Tom
Reply With Quote
  (#2) Old
Member
 
Posts: 62
Join Date: Jun 2009
Default 07-23-2009, 03:08 PM

Woah, you fixed the static on the audio after sleep? Please elaborate for how you did this... up until know, I've kinda gotten used to the constant static.

As far as your problem goes, I have no idea. I've never used this rc.wakeup command you say so I don't really know.


Dell Mini 10v | Intel Atom 1.6GHz | 2GB RAM | 120GB HDD | Bluetooth + Webcam | Mac OS X 10.6.1 | NetbookInstaller 0.8.2a
Get yourself a real MacBook with Lockerz! I got invites! PM me.
Reply With Quote
  (#3) Old
Member
 
Posts: 44
Join Date: Apr 2009
Location: St. Petersburg, FL
Default 07-23-2009, 03:20 PM

Quote:
Originally Posted by ItWasLuck3 View Post
Woah, you fixed the static on the audio after sleep? Please elaborate for how you did this... up until know, I've kinda gotten used to the constant static.

As far as your problem goes, I have no idea. I've never used this rc.wakeup command you say so I don't really know.
I used the instructions here: Noise After Stanby

But, in a nutshell, after installing the VoodooHTA via KextHelper

1) Download and install SleepWatcher: Download SleepWatcher for Mac - Execute commands when sleeping or awakening. MacUpdate Mac System Software Downloads (install both packages)
2) Open up the Terminal app (in utilities)
3)
Code:
cd /etc
4)
Code:
sudo vi rc.wakeup
and enter your OSX password
5) Hold the Shift Button and press GG (this will bring u to the bottom of the file)
6) Quickly, press the Esc and i button (it should show --insert--)
7) Copy and paste the following to the end of the file:

/sbin/kextunload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextunload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextunload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextunload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
sleep 3
/sbin/kextload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log

8) Press Esc twice and the --insert-- should be removed
9) Now press Shift :
10) Type wq
11) Press enter

You're done
Reply With Quote
  (#4) Old
Member
 
Posts: 91
Join Date: Jul 2009
Default 07-23-2009, 03:33 PM

thank you for the clear, detailed instructions. i've always sucked at vi.
Reply With Quote
  (#5) Old
Member
 
Posts: 62
Join Date: Jun 2009
Default 07-23-2009, 08:36 PM

I don't mean to sound bad, but this didn't work for me... I'll upload a screenshot of what my "rc.wakeup" file looks like later. Maybe someone wants to upload a photo of theres, that is working?

Edit: Well I edited the file, then I exited, and it throws all these "needs recovery" errors at me. Can I just uninstall this program and try again?


Dell Mini 10v | Intel Atom 1.6GHz | 2GB RAM | 120GB HDD | Bluetooth + Webcam | Mac OS X 10.6.1 | NetbookInstaller 0.8.2a
Get yourself a real MacBook with Lockerz! I got invites! PM me.
Reply With Quote
  (#6) Old
Member
 
Posts: 44
Join Date: Apr 2009
Location: St. Petersburg, FL
Default 07-23-2009, 09:07 PM

Quote:
Originally Posted by ItWasLuck3 View Post
I don't mean to sound bad, but this didn't work for me... I'll upload a screenshot of what my "rc.wakeup" file looks like later. Maybe someone wants to upload a photo of theres, that is working?

Edit: Well I edited the file, then I exited, and it throws all these "needs recovery" errors at me. Can I just uninstall this program and try again?
Hmm, not sure why...

If you do a search in /System/Library/Extensions for "hda" you should ONLY have VoodooHDA.kext if you have any others, move them out of that folder or into a backup folder of some kind.

Your rc.wakeup file, should look like:

Code:
#!/bin/sh
#
#       rc.wakeup
##       script to be executed on wakeup by the sleepwatcher daemon
#
#       17.11.2002 bb   created
#       22.11.2002 bb   added .wakeup script handling
#       22.12.2002 bb   quoted $home (might contain space)
#       22.06.2003 adb  use nidump to detect home directories
#       22.05.2005 bb   use nigrep (old method missed last account in
#                       the nidump output), check for interactive users
#                       (users with a /etc/shells shell), log .wakeup
#                       execution to the syslog
#       15.08.2005 bb   added >/dev/null to grep command because of
#                       file descriptor problems with Mac OS X 10.3.9
#       31.12.2005 bb   execute the wakeup script only for users currently
#                       logged in
#       07.01.2006 bb   replaced "who -q" with "users" (Mac OS X 10.3 who
#                       does not support the -q option)
#       20.04.2006 bb   ${name:0:8} instead of $name: users returns short
#                       user names (8 chars), but the NI database can have
#                       longer names
#       26.06.2006 bb   modified "eval $var=$val" to use awk to get only
#                       the first word of $val for compatibility with user
#                       accounts from Active Directory
#       20.08.2006 bb   rewritten using scutil (thanks to a hint of
#                       Nicholas Riley)
#       04.10.2007 bb   in su: $name -> $user
#

for user in `echo 'show State:/Users/ConsoleUser' | scutil | awk '/kCGSSessionUse
rNameKey/ { print $3 }'`; do
        home=`eval echo ~$user`
        if [ -x "$home/.wakeup" ]; then
                logger -t $0 "executing .wakeup of user $user"
                su - $user -c "$home/.wakeup"
        fi
done

#unset name shell home
#
#nigrep '^(name|home|shell)$' / /users | while read id node var val; do
#       eval $var=`echo $val | awk '{ print $1 }'`
#       [ "$name" -a "$shell" -a "$home" ] || continue
#       if grep -q $shell /etc/shells >/dev/null; then
#               if users | grep -q "\<${name:0:8}\>" >/dev/null; then
#                       if [ -x "$home/.wakeup" ]; then
#                               logger -t $0 "executing .wakeup of user $name"
#                               su - $name -c "$home/.wakeup"
#                       fi
#               fi
#       fi
#       unset name shell home
#done

/sbin/kextunload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextunload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextunload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextunload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
sleep 3
/sbin/kextload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log
/sbin/kextload /System/Library/Extensions/VoodooHDA.kext>>/var/log/system.log


Mini 10v - Atom 1.6 - 1 GB RAM - 160GB HD - 1.3 Camera - Obsidian Black - OSX 10.5.8 / XP
Mini 10v - Atom 1.6 - 1 GB RAM - 16GB SSD - 1.3 Camera - Obsidian Black - OSX 10.6.1
Mini 9 - Atom 1.6 - 1 GB RAM - 16GB SSD - 1.3 Camera - Obsidian Black - OSX 10.5.8
Vostro A90 - Atom 1.6 - 1 GB RAM - 16GB SSD - .30 Camera - BT - Obsidian Black - OSX 10.5.8
Reply With Quote
  (#7) Old
Member
 
Posts: 62
Join Date: Jun 2009
Default 07-23-2009, 11:48 PM

Solved it... Thanks for the help.

I had to type in something like "vim -r rc.wakeup" to recover the file, then delete the backup, then I edited the file, and pasted your in there and so far so good!

Thanks again mate.


Dell Mini 10v | Intel Atom 1.6GHz | 2GB RAM | 120GB HDD | Bluetooth + Webcam | Mac OS X 10.6.1 | NetbookInstaller 0.8.2a
Get yourself a real MacBook with Lockerz! I got invites! PM me.
Reply With Quote
  (#8) Old
Junior Member
 
Posts: 17
Join Date: Jul 2009
Default 07-25-2009, 11:39 AM

Hi all I tried rhis on my son's Mini 10V with the following result: As he's only 10 he has a standard account with parental controls.

I logged in as admin on my account and followed the instructions, all seemed to work OK but it does not work on his account. My admin account works great.

How can I make it work in his account? The idea I had was to change his account to admin, make the changes then change it back to standard, but as I'm not a wiz in the guts of the OS, I'm not sure if the changes I already made mean that I can't do the same operation in his account or not.

Any help greatly appreciated and many thanks for the crackle fix!
Reply With Quote
  (#9) Old
Member
 
Posts: 44
Join Date: Apr 2009
Location: St. Petersburg, FL
Default 07-25-2009, 02:33 PM

Quote:
Originally Posted by Steven_w View Post
Hi all I tried rhis on my son's Mini 10V with the following result: As he's only 10 he has a standard account with parental controls.

I logged in as admin on my account and followed the instructions, all seemed to work OK but it does not work on his account. My admin account works great.

How can I make it work in his account? The idea I had was to change his account to admin, make the changes then change it back to standard, but as I'm not a wiz in the guts of the OS, I'm not sure if the changes I already made mean that I can't do the same operation in his account or not.

Any help greatly appreciated and many thanks for the crackle fix!
I'm not completely sure...BUT you could try this via the terminal window:

Code:
sudo chmod 777 /etc/rc.wakeup


Mini 10v - Atom 1.6 - 1 GB RAM - 160GB HD - 1.3 Camera - Obsidian Black - OSX 10.5.8 / XP
Mini 10v - Atom 1.6 - 1 GB RAM - 16GB SSD - 1.3 Camera - Obsidian Black - OSX 10.6.1
Mini 9 - Atom 1.6 - 1 GB RAM - 16GB SSD - 1.3 Camera - Obsidian Black - OSX 10.5.8
Vostro A90 - Atom 1.6 - 1 GB RAM - 16GB SSD - .30 Camera - BT - Obsidian Black - OSX 10.5.8
Reply With Quote
  (#10) Old
Junior Member
 
Posts: 17
Join Date: Jul 2009
Default 07-25-2009, 06:31 PM

Hey madhttr many thanks for the reply.

Just to clarify, should I do that in my son's standard account or in my admin account?

Cheers!
Reply With Quote
Reply

Tags
10v, kext, rc.wakeup, script, voodoohda

« 10v OS X Success... thanks mydellmini! | Help me repeat what I did by accident, Display Settings »
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Copyright © 2008-2011 MyDellMini.com.