Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

DSDT Patching for Dummies - SnowLeo with 100% vanilla /S/L/E

OS-X on ThinkPads
Message
Author
SimplyRyan
Posts: 8
Joined: Sun Mar 03, 2013 10:38 am
Location: Glendale, AZ

Re: DSDT Patching for Dummies - SnowLeo with 100% vanilla /S/L/E

#301 Post by SimplyRyan » Wed May 08, 2013 12:51 pm

I don't know if anyone is still following this thread, but I have one last problem I can't solve. I own a T60 2007-66U running 10.6.8 (32 bit boot with -force64), ATI X1400 working flawlessly (QE/CI, resolution with RadeonHD/custom EDID), flashed non-whitelist BIOS and I'm using AR5B95 (Atheros AR9285 A/B/G/N) with a patched IO80211Family.kext, works flawlessly. Using VoodooHDA 2.7.2 for audio and it works flawlessly as well.
I patched my DSDT.aml following this guide and it works great. the only fix that didn't work is the brightness slider in the Display.prefPane. My laptop even sleeps now, but the problem is, when I wake from sleep, I lose my wifi. If I could just get wifi to work after wake from sleep, my T60 would be perfect.

Here is the output of 'lspci -nn'.

Code: Select all

00:00.0 Host bridge [0600]: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub [8086:27a0] (rev 03)
00:01.0 PCI bridge [0604]: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port [8086:27a1] (rev 03)
00:1b.0 Audio device [0403]: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller [8086:27d8] (rev 02)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 [8086:27d0] (rev 02)
00:1c.1 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 [8086:27d2] (rev 02)
00:1c.2 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 [8086:27d4] (rev 02)
00:1c.3 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 [8086:27d6] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 [8086:27c8] (rev 02)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 [8086:27c9] (rev 02)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 [8086:27ca] (rev 02)
00:1d.3 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 [8086:27cb] (rev 02)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller [8086:27cc] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e2)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge [8086:27b9] (rev 02)
00:1f.2 IDE interface [0101]: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller [8086:27c4] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation 82801G (ICH7 Family) SMBus Controller [8086:27da] (rev 02)
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon Mobility X1400 [1002:7145]
02:00.0 Ethernet controller [0200]: Intel Corporation 82573L Gigabit Ethernet Controller [8086:109a]
03:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
15:00.0 CardBus bridge [0607]: Texas Instruments PCI1510 PC card Cardbus Controller [104c:ac56]
IBM ThinkPad T60P 2007-CQ8 14.1" non-widescreen
Intel Core2Duo T7600 2.33GHz
3GB Crucial DDR2 667MHz
ATI FireGL V5250 256mb
SanDisk 64GB SSD + Ultrabay 500GB Seagate HD (Ghetto "Faux"sion drive)
OSX 10.8.4 | Windows 7 Ultimate

Silencer
Junior Member
Junior Member
Posts: 345
Joined: Sat Dec 25, 2004 8:17 pm
Location: Riga, Latvia

Re: DSDT Patching for Dummies - SnowLeo with 100% vanilla /S/L/E

#302 Post by Silencer » Wed May 08, 2013 1:07 pm

SimplyRyan wrote:I patched my DSDT.aml following this guide and it works great. the only fix that didn't work is the brightness slider in the Display.prefPane. My laptop even sleeps now, but the problem is, when I wake from sleep, I lose my wifi. If I could just get wifi to work after wake from sleep, my T60 would be perfect.
For brightness fix you need to look at this post (http://forum.thinkpads.com/viewtopic.php?f=32&t=96330). It's about T60p and V5200, but the approach might point you to the right direction.

As for wi-fi, I suggest simply using SleepWatcher (http://hints.macworld.com/article.php?s ... 8113605812) to run your script on waking up.
ThinkPad T60p with Snow Leopard 10.6.8
Intel Core 2 Duo T7600
4GB RAM, ATI FireGL V5200 256MB (1400x1050)

SimplyRyan
Posts: 8
Joined: Sun Mar 03, 2013 10:38 am
Location: Glendale, AZ

Re: DSDT Patching for Dummies - SnowLeo with 100% vanilla /S/L/E

#303 Post by SimplyRyan » Wed May 08, 2013 1:12 pm

Thanks for the heads up. I just installed sleepwatcher via MacPorts (the manual installation didn't work, couldn't locate the man page and the binary wasn't working either, I'm guessing it has something to do with my $PATH, didn't feel like messing with it...)

I made a little discovery just now. If I manually shut off my wifi either using the hard switch or my turning it off in System Preferences > Network and THEN sleep my computer, I can re-enable wifi after wake and it works. So it seems like sleepwatcher should do the trick, but I need to figure out how to configure my rc.sleep and rc.wakeup should be configured to shut off and turn on the wifi switch to automate things. Any help would be greatly appreciated.

EDIT:

Looks like the commands I'm looking to use are
networksetup -setairportpower airport off
networksetup -setairportpower airport on
just need to figure out how to set them in rc.sleep/wakeup and how to add sleepwatcher as a service at startup. shouldn't be too hard, but any pointers would be appreciated.
IBM ThinkPad T60P 2007-CQ8 14.1" non-widescreen
Intel Core2Duo T7600 2.33GHz
3GB Crucial DDR2 667MHz
ATI FireGL V5250 256mb
SanDisk 64GB SSD + Ultrabay 500GB Seagate HD (Ghetto "Faux"sion drive)
OSX 10.8.4 | Windows 7 Ultimate

Silencer
Junior Member
Junior Member
Posts: 345
Joined: Sat Dec 25, 2004 8:17 pm
Location: Riga, Latvia

Re: DSDT Patching for Dummies - SnowLeo with 100% vanilla /S/L/E

#304 Post by Silencer » Wed May 08, 2013 1:28 pm

SimplyRyan wrote: just need to figure out how to set them in rc.sleep/wakeup and how to add sleepwatcher as a service at startup. shouldn't be too hard, but any pointers would be appreciated.
Great that you are moving forward. Can't really help there as I haven't messed around with OSx86 for while, but I suppose it should be fairly standard for UNIXes. Post the solution here, when you find it, it would be interesting to see and will help someone else in the future.
ThinkPad T60p with Snow Leopard 10.6.8
Intel Core 2 Duo T7600
4GB RAM, ATI FireGL V5200 256MB (1400x1050)

SimplyRyan
Posts: 8
Joined: Sun Mar 03, 2013 10:38 am
Location: Glendale, AZ

Re: DSDT Patching for Dummies - SnowLeo with 100% vanilla /S/L/E

#305 Post by SimplyRyan » Thu May 09, 2013 9:15 pm

hmmm... I have installed and configured sleepwatcher. It does in fact run at boot up, if I execute

Code: Select all

sudo launchctl list | grep sleep
the output I get back is

Code: Select all

-	1	org.macports.sleepwatcher
so it is indeed running. Here is my /Library/LaunchDaemons/org.macports.sleepwatcher.plist

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.macports.sleepwatcher</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/sbin/sleepwatcher</string>
               <string>-V</string>
               <string>-S /opt/local/sbin/sleepwatcher -d -t9000 -i
"/opt/local/sbin/sleepwatcher -n" -p /tmp/sleepwatcherid</string>
               <string>-W kill `cat /tmp/sleepwatcherid`</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
Here is my /opt/local/etc/rc.sleep

Code: Select all

#!/bin/sh
networksetup -setairportpower airport off
and /opt/local/etc/rc.wakeup

Code: Select all

#!/bin/sh
networksetup -setairportpower airport on
if I execute either of the rc.sleep/wakeup manually, the script works properly. But no matter what, when I put my laptop to sleep, when I wake it back up, I still lose wifi.
IBM ThinkPad T60P 2007-CQ8 14.1" non-widescreen
Intel Core2Duo T7600 2.33GHz
3GB Crucial DDR2 667MHz
ATI FireGL V5250 256mb
SanDisk 64GB SSD + Ultrabay 500GB Seagate HD (Ghetto "Faux"sion drive)
OSX 10.8.4 | Windows 7 Ultimate

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “OS-X Questions”

Who is online

Users browsing this forum: No registered users and 54 guests