1pmconfig(1M) System Administration Commands pmconfig(1M)
2
3
4
6 pmconfig - Configure the Power Management system
7
9 /usr/sbin/pmconfig [-r]
10
11
13 The pmconfig utility sets the Power Management and suspend-resume
14 configuration. User has permission to change Power Management configu‐
15 ration using pmconfig only if he is allowed to do so according to
16 PMCHANGEPERM keyword of /etc/default/power. User has permission to
17 change the suspend-resume configuration using pmconfig only if he is
18 allowed to do so according to the CPRCHANGEPERM keyword of
19 /etc/default/power. See FILES section below for a description of the
20 PMCHANGEPERM and CPRCHANGEPERM keywords of /etc/default/power.
21
22
23 Based on user permissions, pmconfig first resets the Power Management
24 and/or suspend-resume state back to its default and then reads the
25 new Power Management and/or suspend-resume configuration from
26 /etc/power.conf and issues the commands to activiate the new configura‐
27 tion. The pmconfig utility is run at system boot. This utility can also
28 be run from the command line after manual changes have been made to the
29 /etc/power.conf file. For editing changes made to the /etc/power.conf
30 file to take effect, users must run pmconfig.
31
32
33 The preferred interface for changing Power Management and suspend-
34 resume configuration is dtpower(1M).
35
37 The following options are supported:
38
39 -r Reset Power Management and suspend-resume state to default and
40 exit. User must have both Power Management and suspend-resume
41 configuration permission for this option.
42
43
45 The following exit values are returned:
46
47 0 Upon successful completion
48
49
50 >0 An error occurred
51
52
54 /etc/power.conf System Power Management configuration file
55
56
57 /etc/default/power File that controls permissions for system's
58 Power Management and suspend-resume features.
59 The PMCHANGEPERM keyboard controls the Power Man‐
60 agement configuration permissions, while the CPR‐
61 CHANGEPERM keyword controls the suspend-resume
62 configuration permissions.
63
64
65
66 Allowed values are:
67
68 all Any user can change the configuration.
69
70
71 - No one except super-user can change the configu‐
72 ration.
73
74
75 <user1, user2,...> A user in this user list or a super-user can
76 change the configuration. The user list is a
77 space and/or comma (,) separated list. You must
78 enclose the list in < and > characters.
79
80
81 console-owner A user who owns the system console device node
82 or a super-user can change the configuration.
83
84
85
86 The default values are PMCHANGEPERM=console-owner and CPR‐
87 CHANGEPERM=console-owner.
88
90 See attributes(5) for descriptions of the following attributes:
91
92
93
94
95 ┌─────────────────────────────┬─────────────────────────────┐
96 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
97 ├─────────────────────────────┼─────────────────────────────┤
98 │Availability │SUNWpmu │
99 ├─────────────────────────────┼─────────────────────────────┤
100 │Interface stability │Unstable │
101 └─────────────────────────────┴─────────────────────────────┘
102
104 svcs(1), powerd(1M), power.conf(4), svcadm(1M), attributes(5), smf(5),
105 cpr(7), pm(7D)
106
107
108 Using Power Management
109
111 The pmconfig service is managed by the service management facility,
112 smf(5), under the service identifier:
113
114 svc:/system/power:default
115
116
117
118
119 Administrative actions on this service, such as enabling, disabling, or
120 requesting restart, can be performed using svcadm(1M). The service's
121 status can be queried using the svcs(1) command.
122
124 If the program cannot open the configuration file, it prints an error
125 message to standard error. If the program encounters a syntax error in
126 the configuration file, it prints an error message and the line number
127 of the error in the configuration file. It then skips the rest of the
128 information on that line and processes the next line. Any configuration
129 information already processed on the line containing the error is used.
130 If user does not have permission to change Power Management and/or
131 suspend-resume configuration, and configuration file has entries for
132 which user doesn't have permission, it process the entries for which
133 user has permissions and prints error on rest.
134
135
136
137SunOS 5.11 12 Aug 2004 pmconfig(1M)