Could not open /etc/.cpr_config

hello everybody.
recently I have decided to change settings of power manager, and appeared the following message:(:

could not open /etc/.cpr_config

I work with Sun Blade 1500, SunOs 5.10, CDE.

Thanks in advance.

Ensure /usr/sbin/pmconfig is suid-root

ls -l /usr/sbin/pmconfig
-r-sr-xr-x   1 root     bin        30816 Aug 16  2007 /usr/sbin/pmconfig

According to

man pmconfig

ensure /etc/default/power has

PMCHANGEPERM=console-owner

And login on the box console, not via remote-access!

1 Like

It is strange, but there is not pmconfig in /usr/sbin. :confused: and /etc/default does not have power.:confused:

Replacing /etc/power.conf and pmconfig With poweradm

   The /etc/power.conf configuration file and the pmconfig(1M) utility might be replaced with  the poweradm(1M) command in a future Oracle Solaris release. 
The number of  properties that can be configured with the poweradm(1M) command will be minimal.

And what I should do then...

P.S. Solaris 10 1/13

Run

pkgchk SUNWpmr

Missing? ("no pathnames were associated with ...")
Then install SUNWpmr from a Solaris 10 distribution media!
I have the following on my system (yes, I changed /etc/power.conf):

pkgchk SUNWpmr
ERROR: /etc/power.conf
    modtime <01/11/13 09:35:23 PM> expected <01/10/14 01:24:08 PM> actual
    file size <514> expected <532> actual
    file cksum <43842> expected <45200> actual
cat /etc/release
                   Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013


Hi again.

Unfortunately I (nobody knows) don't know (this guy is not available anymore) exactly which disk was used for this installation.

Therefore:

  • I tried to install SUNWPMR package from Sol_10_u11_ga. This package was not recognized or founded :confused:. Of course, I have put this pkg in /var/spool/pkg directory.
  • Then I tried to install SUNWpmr pkg from another disk (probably it was sol_10_u2). It was recognized and successffuly installed.
  • I checked, the /usr/sbin. It still does not contain pmconfig.
  • It appeared /etc/default/power. It contains all the necessary strings as you pointed above.
    text PMCHANGEPERM=console-owner CPRCHANGEPERM=console-owner
  • It appeared /etc/power.conf
# Copyright (c) 1996 - 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#pragma ident    "@(#)power.conf    1.16    01/03/19 SMI"
#
# Power Management Configuration File
#
# This entry keeps removable media from being powered down unless the
# console framebuffer and monitor are powered down
# (See removable-media(9P))

device-dependency-property removable-media /dev/fb

# Auto-Shutdown        Idle(min)    Start/Finish(hh:mm)    Behavior
autoshutdown        30        9:00 9:00        unconfigured

autopm            default
  • After installing SUNWpmu package. It appeared /usr/sbin/pmrconfig
  • After exiting of command reboot -r the /etc/.cpr_config (blank) appeared.

But, when I try open CDE window --->Workspace menu ---> Tools --->Power manager.

After 2-3 sec it appears the message.

Could not get power management status from system

The screen still goes on blank in 15 minutes.:frowning: If there are not any mouse movements there, certainly.

P.S. Probably I installed SUNWpmr, SUNWpmu packages from wrong Solaris version? Could you upload yours?