6 ms·
This "cool hacker settings for your Mac" script turns off your laptop's power saving features (sleep, display dimming, hibernation even though sleep was off(?))
by astrange 12y ago
This "cool hacker settings for your Mac" script turns off your laptop's power saving features (sleep, display dimming, hibernation even though sleep was off(?)), removes at least three kinds of backups for data loss (MobileTimeMachine, Resume, hibernation file), and changes AppKit settings in a way your customers will never be using (by turning off Automatic Termination, which is pretty harmless).
Please don't run scripts like this, unless you promise not to post about how your untested configuration is so unstable and has such bad battery life after an OS X update.
- saidajigumi 12y agoThat's a common problem with all of these OS X setup helpers. I recall one floating around with a big batch of defaults settings, many of which I would never use. That said, these projects are useful for showing off strategies for others to adopt. I treat them much like someone's heavily customized emacs or vim setups: a good reference for ideas, but only ever to be cherry picked into my own setup, and only after I understand the piece I'm picking.
- matthewmueller 12y agoCompletely agree, you should definitely closely inspect any script you run, before running it. These settings have been working well for me, but I may tweak them in the future.
- jobu 12y agoThat's a little hyperbolic. Sure, that script stops your Mac from automatically going to sleep, but it's not like it changes the CPU usage or power usage (and it will still sleep when you close the lid). Most of the settings in that script appear to be disabling automatic or "smart" things that average users don't want to think about and power users want done a specific way (e.g. backups, screenshots). Basically if you read that script and don't understand what it's doing then you shouldn't be running it.
- astrange 12y agoActually, I was going to check if those commands changed the lid-closed behavior and edit the post, but guess they don't. Still, it does turn off display dimming and automatic termination - those can both affect the leaving laptop on a table unplugged case, one much more than the other.
- tdicola 12y agoI agree, I seriously don't understand why anyone would ever want to run this script. Getting 8+ hours of battery life is the entire reason I use a Macbook.
- drzaiusapelord 12y agoJust like PC's, Macs have entered the world of, what I call, "car guys." Car guys are always fiddling with things for a tiny performance or perceived security boosts without really thinking things through. In the Windows world you'll hear them tell you how you must disable the UAC, must install registry 'cleaners', must use $av_vendor_x because $av_vendor_y sucks, fiddle with some obscure registry change, use drivers or utilities from sites laden with malware, etc, etc. As a sysadmin, these guys drive me crazy. Often, they're the dominant voice in PC or gaming forums and their advice is not only terrible, but actually makes things worse for the end user looking to solve an issue. At least in the Windows world we have ugly GUIs and other roadblocks to making these changes easy. With OSX's scripting, you could have one single script make all these changes. Its interesting to think how terrible some random person's advice on the internet can be to your machine if you decide to type in what they say. Worse, I'm seeing a lot of FOSS/Linux stuff that more or less asks you to wget a random file on a random server into your shell and run it as root. Umm, no thanks. The above wouldn't be so bad if they all came with well written undo scripts, but I think the "car guys" aren't even considering scenarios where their half-cooked advice would be wrong. If they did, they probably wouldn't be putting this stuff out there like this.
- ChrisClark 12y agoYeah, people still recommend automatic task killers for Android and it has never been useful, just harmful on speed and battery life.
- MichaelGG 12y agoHuawei even builds this nonsense into the OS! The Mate 2 (which is neat because I get 30+hours battery) has this stupid easy-to-hit button on the app switch page that terminates everything. Despite my usage never going below a GB free, it gleefully proclaims "XXX MB freed!" Well shit, I can go buy a 1GB SODIMM and leave it on my desk and always have 1GB free.
- kristopolous 12y ago"Automatic"? Or do you mean an application that makes killing tasks fewer taps? Because the latter isn't that bad ... I have apps misbehave about twice a week; chrome, skype, yelp, google voice - they all need an occasional fresh start - a convenient way to do that I don't understand the objections against.
- walshemj 12y agoand why bother 99.9% of the time your not going to be using OS10 in production Just use esxi and run a hypervisor running boot mac os and what ever your production environed if you must have the mc os shiny
- arjie 12y agoYeah, well done on OP for introducing it with a warning: > This script should not be run without prior examination. It's quite opinionated and intended to be modified.
- aftbit 12y agoIt turns off hybrid sleep (where memory is written to disk when sleeping so it could eventually resume even if the battery died), as well as automatic sleep (when the lid is open). These are things I turn off 100% of the time on all of my machines. I'm a bit dubious about the display dimming thing - I'll probably leave that on in my fork of this script. As for Automatic Termination, I need to read more about that before I turn it _on_, not before I turn it off. :)
- pothibo 12y agoI agree with you 100%. I bought a new mac book pro 2 weeks ago and it took me about 2 hours to get up and running. Because OS X is linux based (BSD but the difference is not relevant here), a lot already exists to make these kind of things work out of the box. Personally, I need two things to have my setup working: - Homebrew (OS X only but it's a given to anyone used to ruby) - dotfiles My dotfiles are on github and git can be installed via homebrew. I am using vim so my setup depend on both homebrew (git) & dotfiles (settings/plugins). I have no idea why I would need anything more than that to get started. But this is personal, your company needs may be different. But don't think you need some kind of automation, linux has powerful tools. Use them.
- currysausage 12y ago> Because OS X is linux based Wait... what? > (BSD but the difference is not relevant here) Still, "Linux-based" is a funny way of saying "Unix-like". Is HP-UX also "Linux-based (System V but the difference is not relevant here)"? ;)
- deleted 12y ago[deleted]
- jrochkind1 12y agoThe word you are looking for is "unix".
- 72deluxe 12y agoI always got the feeling that installing Homebrew and running the associated apps that run under X but not natively under Quartz was a broken way to get apps on Mac OSX (unless it runs under Quartz now...?) It feels like the "dirtying" of the native system in the same way that installing cygwin and a mingw and GNUWin32 on Windows does, just in order to get it more like Windows. Rather, I'd use the native utilities on the system and native compilers. Is it just me who feels this way? Does any Linux user feel compelled to install Linux and then run software ONLY under Wine?
- deleted 12y ago
- fit2rule 12y agoYou're missing the rather well placed claim that people should not run the script blindly but indeed read the comments of the script, and only use the parts that they want to. This is an Administrators' script - most admins worth their salt read the scripts they're about to run, especially if bold claims are being made about their efficacy. There are lots of great things to learn in the settings being tweaked in this script ..