+ Reply to Thread
Results 1 to 10 of 10

Thread: OSX SSD Terminal Tweaks + Other Tweaks Applied

  1. #1
    OCZ User Flag of Canada
    Join Date
    Aug 2009
    Location
    Montreal
    Posts
    47
    Mobo: MacBookPro5,2
    BIOS: MBP52.008E.B00
    CPU: Intel Core 2 Duo 2.66GHz
    RAM: 4GB DDR3 1067MHz
    Vid: NVIDIA GeForce 9600M GT
    HDD: OCZ-VERTEX 250GB
    OS: Mac OS X 10.6 (10A432)

    Lightbulb OSX SSD Terminal Tweaks + Other Tweaks Applied

    Dear All,

    Just to post up a few terminal tweaks that I have applied to my system after I installed my SSD. These tweaks work with both 10.5 and 10.6.

    Disable waking up when LID opens
    sudo pmset lidwake 0

    No hibernate
    sudo pmset -a hibernatemode 0

    Disabling Sudden Motion Sensor
    sudo pmset -a sms 0

    Verify applied tweaks
    pmset -g

    Other tweaks:

    Screen capture save format
    defaults write com.apple.screencapture type jpg

    Screen capture save location
    defaults write com.apple.screencapture location [path]

    Mac login window display System Time
    sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo Time

    Safari single window mode
    defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

    Add a “Recent files” stack to Dock
    defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'

    Make Dock app icons spring-loaded
    defaults write com.apple.dock enable-spring-load-actions-on-all-items -boolean YES

    Snow Leopard Stack Highlight
    defaults write com.apple.dock mouse-over-hilite-stack -boolean YES

    Reload Dock
    killall Dock

    Just to share the tweaks that I have applied so far. Free to share yours if you discover any good ones. Thank you : )

  2. #2

    Default

    There's a sticky thread above for this - and you should look into the mount option to kill last accessed stamp.

    Peet

  3. #3
    OCZ User Flag of Canada
    Join Date
    Aug 2009
    Location
    Montreal
    Posts
    47
    Mobo: MacBookPro5,2
    BIOS: MBP52.008E.B00
    CPU: Intel Core 2 Duo 2.66GHz
    RAM: 4GB DDR3 1067MHz
    Vid: NVIDIA GeForce 9600M GT
    HDD: OCZ-VERTEX 250GB
    OS: Mac OS X 10.6 (10A432)

    Default

    You mean noatime? But those tweaks are mainly for Linux.

  4. #4
    OCZ Tweaker Flag of United States
    Join Date
    Mar 2009
    Posts
    270
    Mobo: MacBook Pro 13" (MacBookPro5,5)
    BIOS: MBP55.00AC.B03
    CPU: 2.26 GHz Core 2 Duo
    RAM: 2x2GB (Apple ram)
    Vid: nvidia 9400m
    HDD: SSD Vertex 250 GB (FW 1.30)
    OS: MacOS X 10.6.1

    Default

    How do you enable noatime for OS X?

  5. #5
    OCZ User sascha h-k's Avatar Flag of Austria
    Join Date
    Mar 2009
    Location
    near vienna
    Posts
    43
    Mobo: apple umbp 17"
    CPU: 3.06ghz
    RAM: 4gb
    Vid: 9500m & gt
    HDD: ocz vertex 250, intel x25-m 160, st ultradrive me 256
    OS: 10.5.8 osX

    Default

    please see "osX tweaks" .. about page 4 or 5.
    sascha

    mbp 17" 3.06ghz ssd & other

  6. #6

    Default

    Yes - noatime - and my apologies, the thread I was referring to isn't sticky, but floating free. At the moment it's toward the top.

  7. #7
    OCZ User Flag of United States
    Join Date
    Sep 2009
    Posts
    13
    Mobo: MacBookPro5,5 13 inch MacBook Pro
    RAM: 4GB RAM DDR3 667

    Default

    Quote Originally Posted by peet View Post
    Yes - noatime - and my apologies, the thread I was referring to isn't sticky, but floating free. At the moment it's toward the top.
    Does notime work in 10.6 ?

  8. #8
    OCZ User Flag of Canada
    Join Date
    Aug 2009
    Location
    Montreal
    Posts
    47
    Mobo: MacBookPro5,2
    BIOS: MBP52.008E.B00
    CPU: Intel Core 2 Duo 2.66GHz
    RAM: 4GB DDR3 1067MHz
    Vid: NVIDIA GeForce 9600M GT
    HDD: OCZ-VERTEX 250GB
    OS: Mac OS X 10.6 (10A432)

    Lightbulb

    To everyone here is a step by step on how to do it. Even though it is not hard but the instruction was not clear. For anyone who do not understand, maybe what I am rewriting here might help you.

    To enable noatime:

    1. Open up Applications>Utilities>Terminal.app
    2. At command prompt type sudo bash then press Enter.
    3. It will ask you to input your user password make sure you have the admin rights.
    4. At the bash prompt type vi /etc/rc.local then press Enter.
    5. Then you will be in the rc.local editor screen.
    6. Press I (in order to start editing)
    7. Input the following code or you can basically cut and paste to it from here

    #!/bin/sh
    mount -vuw -o noatime /

    8. Press ESC to stop editing and type : w q then press Enter to exit the editor.
    9. Back to the prompt type chmod 775 /etc/rc.local then press Enter
    10. Type Exit and press Enter to exit.


    PS: This do not work on 10.6, and the method below works on both 10.5 and 10.6.
    Last edited by DNAZero; 09-20-2009 at 08:38 PM.

  9. #9
    OCZ User Flag of Canada
    Join Date
    Aug 2009
    Location
    Montreal
    Posts
    47
    Mobo: MacBookPro5,2
    BIOS: MBP52.008E.B00
    CPU: Intel Core 2 Duo 2.66GHz
    RAM: 4GB DDR3 1067MHz
    Vid: NVIDIA GeForce 9600M GT
    HDD: OCZ-VERTEX 250GB
    OS: Mac OS X 10.6 (10A432)

    Lightbulb

    noatime settings for both 10.5 and 10.6.

    1. Open up Application>TextEdit.app
    2. Type in or Paste the following code into the editor.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>com.my.noatime</string>
    <key>ProgramArguments</key>
    <array>
    <string>mount</string>
    <string>-vuwo</string>
    <string>noatime</string>
    <string>/</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>

    3. Save it as com.noatime.plist or any name you would like to call it.
    4. Then copy the file to /Library/LaunchDaemons/
    5. Set proper ownership in order for LaunchDaemons to run properly.
    6. Open up Applications>Utilities>Terminal.app
    7. At prompt type sudo chown root:wheel /Library/LaunchDaemons/com.noatime.plist
    8. Make sure you Delete the /etc/rc.local file if one. Skip step 9 and restart if you do not have one.
    9. At prompt type sudo rm /etc/rc.local
    10. Restart your system.

    To verify open up Terminal.app
    At prompt type mount

    You should see noatime in there. And here is mine.

    Last login: Mon Sep 21 12:06:55 on console
    APPLE:~ APPLE$ mount
    /dev/disk0s2 on / (hfs, local, journaled, noatime)
    devfs on /dev (devfs, local, nobrowse)
    map -hosts on /net (autofs, nosuid, automounted, nobrowse)
    map auto_home on /home (autofs, automounted, nobrowse)
    Last edited by DNAZero; 09-20-2009 at 08:40 PM.

  10. #10
    OCZ User Flag of Canada
    Join Date
    Aug 2009
    Location
    Montreal
    Posts
    47
    Mobo: MacBookPro5,2
    BIOS: MBP52.008E.B00
    CPU: Intel Core 2 Duo 2.66GHz
    RAM: 4GB DDR3 1067MHz
    Vid: NVIDIA GeForce 9600M GT
    HDD: OCZ-VERTEX 250GB
    OS: Mac OS X 10.6 (10A432)

    Thumbs up

    Original discussion and the code:
    http://www.ocztechnologyforum.com/fo...t=52845&page=6

    Thanks to Kmess

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts