09-15-2018
If you have it, take a look at
pmset; this is capable of temporarily overriding the normal scheduled settings and you could code for your requirements accordingly...
pmset - Wikipedia
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to run a script that I made when my computer is idle. How do I go about doing this.
Thanks :) (4 Replies)
Discussion started by: rehansaeed
4 Replies
2. UNIX for Dummies Questions & Answers
I have the root password for my box, but I'm ignorant.
So, every time I start my computer, I have to run this command
/sbin/modprobe fuse
as su, so that I can do other stuff (like mount remote directories locally using sshfs)
I guess there's some file, like .bashrc, only it's applicable... (4 Replies)
Discussion started by: tphyahoo
4 Replies
3. What is on Your Mind?
Hi everybody,
I am wondering if there is any tool or website out there which can track who is viewing my resume. It is very frustrating when you send your CV or Cover Letter and you receive no feedback from the company, you don't even know if they have checked it out.
Thanks for your help (1 Reply)
Discussion started by: gearyipswich
1 Replies
4. Shell Programming and Scripting
Hi,
i am looking for a perl script that can resume broken download images from a remote server. Can anyone help me on this.
thanks,
Vince (1 Reply)
Discussion started by: vin_eme
1 Replies
5. Shell Programming and Scripting
Hi there,
I wrote a script that scans a folder for new files.
I don't want to run it at specific times but only when the computer is NOT busy.
I tried to use nice but it doesn't really work. I mean, even if my process has less priority, it still slows down the other processes. I did a test... (3 Replies)
Discussion started by: chebarbudo
3 Replies
6. Hardware
I would like to get pm-suspend (or any other suspend method) working for a small new desktop computer. It is based on a Zotac GF-8200 ITX motherboard and an AMD Athlon II X@ 240 CPU using ArchLinux x86_64.
The pm-suspend script works, apparently putting the machine into suspend correctly... (0 Replies)
Discussion started by: lagagnon
0 Replies
7. BSD
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies
8. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies
9. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies
10. Windows & DOS: Issues & Discussions
I am looking to run a Windows utility BitRecover PST Viewer.
To help me read a pst file. Can anybody guide me how can I run this Windows utility on Linux. (3 Replies)
Discussion started by: marktux
3 Replies
LEARN ABOUT OPENDARWIN
pmset
PMSET(1) BSD General Commands Manual PMSET(1)
NAME
pmset -- modify power management settings
SYNOPSIS
pmset [-a | -b | -c] [dim minutes] [spindown minutes] [sleep minutes] [womp 1/0] [ring 1/0] [autorestart 1/0] [dps 1/0] [reduce 1/0]
[powerbutton 1/0] [lidwake 1/0] [acwake 1/0] [boot]
pmset -g [disk | live | cap | sched]
DESCRIPTION
pmset changes and reads power management settings such as idle sleep timing, wake on administrative access, automatic restart on power loss,
etc.
SETTING
The -a, -b, -c flags determine whether the settings apply to battery (-b), charger (wall power) (-c), or all (-a).
Use a minutes argument of 0 to set the idle time to never.
pmset must be run as root.
The boot argument tells power management that system bootup is complete. Loginwindow handles this on a normal Mac OS X system.
GETTING
The -g flag outputs the settings currently in use (same as -g live ). -g disk will tell you the settings on disk. -g cap will tell you
which power management features the machine supports. -g sched will show scheduled startup/wake and shutdown/sleep events.
ARGUMENTS
dim - display dim timer (value in minutes)
spindown - disk spindown timer (value in minutes)
sleep - system sleep timer (value in minutes)
womp - wake on ethernet magic packet (value = 0/1)
ring - wake on modem ring (value = 0/1)
autorestart - automatic restart on power loss (value = 0/1)
dps - dynamically change processor speed based on load (value = 0/1)
reduce - reduce processor speed (value = 0/1)
powerbutton - sleep the machine when power button is pressed (value = 0/1)
lidwake - wake the machine when the laptop lid(or clamshell) is opened (value = 0/1)
acwake - wake the machine when power source (AC/battery) is changed (value = 0/1)
OTHER ARGUMENTS
These arguments don't directly affect power management settings:
boot - tell the kernel that system boot is complete
EXAMPLES
pmset -b dim 5
pmset -a dim 10 spindown 10 sleep 30 womp 1
pmset -g live
FILES
All changes made through pmset are saved in a persistent preferences file (per-system, not per-user) at
/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
pmset modifies the same file that System Preferences Energy Saver modifies.
Darwin August 19, 2002 Darwin