DSDT fix for LID sleep - no need for ClamshellDisplay.kext

All versions of Mac OS X

Moderator: SilverZero

Forum rules
The S netbook is NOT an Apple product and was never intended to run Mac OSX. Fortunately, enthusiasts have found ways to make OSX run on our netbook. However, the process may not be smooth for some. Make sure you have patience and time to get it to run. Most importantly, motivation to read and learn. This forum contains enough information to get OSX running. Most problems you may encounter can be solved just by reading through the forums or searching. So please take the time and read through the forums!

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.kext

Postby Bailie » Fri Mar 12, 2010 9:58 pm

Okay, so how do I make lid sleep not work. After my first install, some how I disabled it. Then I messed everything up by turning splashtop on. So I reformatted and reinstalled and now lid sleep works, unfortunately. I have seen the programs like insomnia and caffeine, but why run a program to stop a program?
Bailie
Beginner
 
Posts: 17
Joined: Fri Feb 26, 2010 10:25 pm

Advertisement

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.kext

Postby humph » Sat Mar 13, 2010 1:34 am

Bailie wrote:Okay, so how do I make lid sleep not work...

As in, you want to make it so that you can close the lid, backlight does go off, but PC does not enter sleep (like for using external monitor/keypads?).

Do you have (_)ClamshellDisplay.kext in /S/L/E? If yes, you could remove that and rebuild caches I guess.

Or I guess if you are lucky to have it working w/o needing ClamshellDisplay, then you could edit your DSDT to somehow remove the commands that are making sleep. But no idea where/how to do that.
humph
Experienced
 
Posts: 96
Joined: Thu Aug 13, 2009 12:44 pm

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.kext

Postby Bailie » Sat Mar 13, 2010 6:48 am

sorry to stray off topic even more, but this is my first mac. I know next to nothing. What are the commands and how do I edit or rebuild these files? where are the files located? I know a little about unix, so I'm okay with using terminal.

I see a lot of people talk about clam shell mode, but all I want to do is listen to music on the train. There is no point in draining the battery with the backlight when I'm just listening to music. Plus I can put it in my bag as I walk to class, vs walking with the lid open and homeless junkies staring at my laptop.

Thanks for the reply
Bailie
Beginner
 
Posts: 17
Joined: Fri Feb 26, 2010 10:25 pm

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.kext

Postby humph » Sat Mar 13, 2010 2:39 pm

Bailie wrote:sorry to stray off topic even more, but this is my first mac. I know next to nothing. What are the commands and how do I edit or rebuild these files? where are the files located? I know a little about unix, so I'm okay with using terminal.

I see a lot of people talk about clam shell mode, but all I want to do is listen to music on the train. There is no point in draining the battery with the backlight when I'm just listening to music. Plus I can put it in my bag as I walk to class, vs walking with the lid open and homeless junkies staring at my laptop.

Thanks for the reply


That's a pretty cool use case. Would be great to be able to decide on-the-fly whether to have LID sleep today, Yes or No.

I've not really used Insomnia and Caffeine, but quick test on Caffeine on a MBP seemed to have problems achieving the use case (like it went to sleep when opened lid, annoying!). Quick test of Insomnia on my hack (with the DSDT lid fix) showed that it's prevents sleep when lid closed, but backlight is still on - unless you first turn it off via buttons or the OS X hot-screen-corner (expose option). So, neither seem really good, and anyway, you mentioned that you'd prefer to not use this sort of app. So:

AFAIK, S10Enabler etc install _ClamshellDisplay.kext in /System/Library/Extensions. To remove:
Code: Select all
cd /System/Library/Extensions
sudo rm -r _ClamshellDisplay.kext
sudo touch /System/Library/Extensions.

That will remove, and "touch" will cause OS to rebuild the system cache associated with the /S/L/E kexts.

Should be that w/o ClamshellDisplay, your machine won't sleep, but the display backlight will turn off (unless you've fixed lid sleep some other way, like via DSDT mods).

To reinstall _ClamshellDisplay, well it's probably "safer" to re-run the installer/enabler USB package. But if you do want to do it manually, then (assuming you have saved/copied it), well there are GUI approaches & tools, or do in terminal:
Code: Select all
cd ~/Desktop       (or wherever you stored the kext)
sudo cp -r _ClamshellDisplay.kext /System/Library/Extensions/_ClamshellDisplay.kext
sudo chmod -R 755 /System/Library/Extensions/_Clam*
sudo chown -R root:wheel /System/Library/Extensions/_Clam*
touch /System/Library/Extensions

* use "*" as modifier if too lazy to type full name, or the usual linux/unix "hit tab" to auto complete the name
humph
Experienced
 
Posts: 96
Joined: Thu Aug 13, 2009 12:44 pm

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.kext

Postby Bailie » Sun Mar 14, 2010 11:45 pm

Thanks for the help. It works just the way I want now! I'm surprised I never saw anything like this searching around google. There are a lot of macbook and macbook pro owners looking to do the same thing.
Bailie
Beginner
 
Posts: 17
Joined: Fri Feb 26, 2010 10:25 pm

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.ke

Postby qubit » Wed Mar 24, 2010 5:55 pm

humph, as you probably know, using NetBookInstaller 0.8.4pre by Meklort stops our S10's from sleeping. If you look at this post - http://www.meklort.com/?p=213 you can see that he has hacked a kext that allows it to sleep and advises we remove the Clamshell kext when using it. He also says that he will be putting it into the next version of NetBookInstaller. Where does this fit in with your DSDT mod? Should I forget the 2 kexts if I mod the DSDT?
~~ Classic Black Ol'School S10 w/Triple Boot ~~
~~ OS X 10.6.4 modified NetBookInstaller 0.8.4RC1, modified DSDT ~~
~~ Ubuntu 10.04 ~~
~~ Windows7 ~~
~~NetBook Installer~~
~~XDA Developers - HTC Desire Android Development~~
User avatar
qubit
Experienced
 
Posts: 118
Joined: Sun Feb 22, 2009 11:19 pm
Color and Model: Classic Black S10
OS(s) installed: OS X Linux Win7

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.ke

Postby phattbam » Tue Mar 30, 2010 11:10 am

so this allows for the brightness adjustments with F1 and F2.. any fixes for volume control with F10, F11 and F12?
phattbam
Master
 
Posts: 450
Joined: Wed Sep 23, 2009 10:48 am
Color and Model: Black S10
OS(s) installed: Win7 Ultimate AND OSX SL 10.6.4

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.ke

Postby humph » Tue Mar 30, 2010 1:56 pm

qubit wrote:humph, as you probably know, using NetBookInstaller 0.8.4pre by Meklort stops our S10's from sleeping. If you look at this post - http://www.meklort.com/?p=213 you can see that he has hacked a kext that allows it to sleep and advises we remove the Clamshell kext when using it. He also says that he will be putting it into the next version of NetBookInstaller. Where does this fit in with your DSDT mod? Should I forget the 2 kexts if I mod the DSDT?


Indeed..and the NBI 0.8.4 RC1 does indeed have the LidSleep.kext inside it. Not sure what method Meklort's using but probably related to direct access to the ACPI stuff (since the API that was in OSX is gone...or something like that). Ive not tried it personally, as one of the main reasons I like the DSDT PLNF approach is to get brightness control on F1/F2 rather than CTRL-Up/Down. (Not sure what or if the new NBI does in relation to this).

However, Meklort is a Genius at this stuff, and I am sure that what he's got is a nice solution. Especially if you just want a no hassle solution. For me, most of the fun is figuring stuff out, so actively avoid the easy solution!

Also, there's some very nice additional stuff he has got working (native speed-step, so no more VoodooPowerMini!!).
Even if I dont just start to use NBI, I'll probably want to re-use some of that excellent stuff in my "DIY" approach.

Also, I'd better say here now that I've not yet updated my S9e to see that it does all work still (I see no reason why it would not), as been focussed on the i5 machine today. But, my guess (hope!) is that yes, delete/don't use LidSleep kext and rely on PNLF in DSDT.

EDIT: Well, I can think of one reason why it will not work in 10.6.3, but I hope I am wrong. Feeling less confident now...may try the update w/o waiting an hour for backup to be done..now I really want to know!!

UDATE: YES ALL WORKING with 10.6.3
Meaning: F1/F2 backlight control...screen off when close lid, then seep.
Last edited by humph on Tue Mar 30, 2010 2:58 pm, edited 3 times in total.
humph
Experienced
 
Posts: 96
Joined: Thu Aug 13, 2009 12:44 pm

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.ke

Postby humph » Tue Mar 30, 2010 2:02 pm

phattbam wrote:so this allows for the brightness adjustments with F1 and F2.. any fixes for volume control with F10, F11 and F12?


Well the thing that's giving the control over what buttons are doing is the application Function Flip. It has a limited set of options, I use the one that works like my old MBP (so volume control on F3/4/5). I've not got the hack here right now, so cant check, but I believe I saw an option in function flip to use F10/11/12. I did not use that as S9 does not have a dedicated F12 key. Anyway, there are a few combinations available - limited, but "same as" various versions of MacBook/MBP keypads over the past few years.
humph
Experienced
 
Posts: 96
Joined: Thu Aug 13, 2009 12:44 pm

Re: DSDT fix for LID sleep - no need for ClamshellDisplay.ke

Postby phattbam » Tue Mar 30, 2010 2:07 pm

so the app/program is called function flip?? Cool I'll be sure to check it out tonight
phattbam
Master
 
Posts: 450
Joined: Wed Sep 23, 2009 10:48 am
Color and Model: Black S10
OS(s) installed: Win7 Ultimate AND OSX SL 10.6.4

PreviousNext

Return to Mac OS X

Who is online

Users browsing this forum: No registered users and 1 guest