SUMMARY: CDE lost color

From: Fred Simpson;000000 (
Date: Sat May 22 1999 - 14:30:19 CDT

The question was how to restore color to CDE when reboot is not an option. No
responses solved my problem, but I appreciate the time of all who answered. One
idea was to apply patch 105362(current rev is 20). Another was to verify
installation of all dt files. The explanantion is below.

The question and responses follow.

Short version: after removing CDE packages(SUNWdt*),
doing some work for a while, and then re-adding them, I started CDE with
"dtlogin -daemon; exit" and it only comes up in black and white.
Longer version: this is on a machine that cannot be rebooted, so I am looing for
a solution to get the colors back without rebooting. I noticed that the process
"fbconsole -d :0" that is running on every other machine is not running on this
one, and trying to run it by hand gets a message about not being able to open
display connection. This console is used for production and the application
requires color(it was 1280x1024 but I am not sure of the color depth) ASAP. A
message periodically comes up on the console that says:
May 13 21:27:08 xxxxx unix: WARNING: pm: Can't resume SUNW,m64B
May 13 21:27:08 xxxxx unix: WARNING: pm: Can't awaken dependee
May 13 21:27:08 xxxxx unix: WARNING: Device consms:0 failed to power up.
May 13 21:27:08 xxxxx unix: WARNING: Please see your system administrator or
Restarting power management does nothing. Sun Service insists that the only
solution is rebooting, , but since the message says "see your system
administrator or reboot" it seems there is an option to restore the colors. When
I login, CDE starts normally, but since it is in black and white, I cannot see
my mouse pointer to do anything.
SunOS xxxxx 5.6 Generic_105181-12 sun4u sparc SUNW,Ultra-4
Latest recommended patches
Sun E450, 21 inch Sun monitor
# prtconf -F
Is there any other information that would be useful? Thank you for any help you
might give, and as I mentioned, this is only important because the we need the
console back in business quickly.

  When no window manager is running (ow/cde), power managing of the m64
  frame-buffer results in the following warning messages:

    Dec 12 16:58:24 <host> unix: WARNING: pm: Can't resume SUNW,m64B
    Dec 12 16:58:24 <host> unix: WARNING: pm: Can't awaken dependee
    Dec 12 16:58:24 <host> unix: WARNING: Device consms:0 failed to power up.
    Dec 12 16:56:47 <host> unix: WARNING: Device conskbd:0 failed to power up.

  Either device consms:0 (if mouse is moved) or conskbd:0 (if key is pressed)
  report a failure to power up.

  Sun recommends applying patch 105362-19.

 Indeed, I installed this patch, haven't seen the messages since.

I don't know if this patch will solve the color problem you are having.
I noticed the same behavior, and it seemed related to these messages. The
only solution I found was to reboot. There may be a way to disable
power-managing of the m64 frame-buffer.
I am not sure that my situation applies to yours, but here are a few things you
might want to check.
In my case I had to remove CDE because I filled up the partition, and I
reinstalled the packages
in a different place. Going over it I noticed that
there were a few steps for checking.
1. check if all the packages you removed were installed.
   Do pkgchk -l -p /usr/dt (and on subdirectories) to see if you are missing
   I will include the output from my commands as an attachment. Th pachakges
   should be the same (I have Ultra-30 Solaris 2.6 ).
2. I had to do reinstallation of the packages one by one, starting with
   SUNWdtcor, following with SUNWdtbas, and after that all the rest. Verify that
   each following package doesn't have any prerequisites, if does, install
   those first.
3. After all the CDE packages are isntalled look for the following
   chages/additions to the files in /etc and /etc/rc?.d/ :
   - /etc/inetd.conf should have lines added:
   dtspc stream tcp nowait root /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd
   xaudio stream tcp wait root /usr/openwin/bin/Xaserver Xaserver -noauth
   100068/2-5 dgram rpc/udp wait root /usr/dt/bin/rpc.cmsd rpc.cmsd
   100083/1 tli rpc/tcp wait root /usr/dt/bin/rpc.ttdbserverd

   - added file dtlogin in /etc/init.d
   - added file K10dtlogin in /etc/rc0.d and /etc/rc1.d
   - addedd file S99dtlogin in /etc/rc2.d
   - /etc/services have additional lines:
   dtspc 6112/tcp # subprocess control
   xaudio 1103/tcp Xaserver # X Audio Server
After that I could start dtlogin from /etc/init.d, and CDE came up fine.
To start CDE once logged on console you may want to try
1- xinit /usr/dt/bin/Xsession
2- setenv XINITRC /usr/dt/bin/Xsession
   Hope this helps.

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:20 CDT