Operating System - HP-UX
1846827 Members
9694 Online
110256 Solutions
New Discussion

screen saver lock on a CDE

 
donne007
Regular Advisor

screen saver lock on a CDE

Hi ,
I have CDE running on a HP ux 11.00 box .. I want to lock the Screen ,, UNfortunately ther's No option to lock screen in the style manager .
I tried copying a file
# /usr/dt/config/C/sys.resources
from other box and restarting the dtlogin.rc services .. but no luck ..
Any help on this will be greatly appretiated ..
Thanks In ADvance
Asif
16 REPLIES 16
Steve Steel
Honored Contributor

Re: screen saver lock on a CDE

Hi

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x49471aca6930d611abd50090277a778c,00.html


explains how to turn it off

Check this data backwards


steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Yogeeraj_1
Honored Contributor

Re: screen saver lock on a CDE

Hi,

You should be able to setup this! There is a settings section that allows you to do this.

You can also check this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x49471aca6930d611abd50090277a778c,00.html


Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Alex Glennie
Honored Contributor

Re: screen saver lock on a CDE

use /usr/dt/bin/dtaction LockDisplay on the command line until you can use the earlier link to resolve who's disabled the lockDisplay feature in CDE's stylemanager.

If this is not the case ie it's not been disabled I'd check to see if all users especially root are also effected by this and get back to us.
Pete Randall
Outstanding Contributor

Re: screen saver lock on a CDE

Asif,

What do you see when you bring up Style Manager and click on Screen? It should pop up a window with various screen savers to select from and down on the bottom is a section about Screen Lock. Do you not see this?

Pete

Pete
Leif Halvarsson_2
Honored Contributor

Re: screen saver lock on a CDE

Hi
Are you running Reflection or eXceed. This feature seems disabled when runnin from this X-emulators.
Alex Glennie
Honored Contributor

Re: screen saver lock on a CDE

Other suggestions :

ensure the user has a password in /etc/password

However if this is Exceed or similar the problem is most likely the PC Xserver does not support the appropriate HP Xserver extensions for screenlock & screen saver ..... what version and type of Xemulation s/w are you using ........

What options do you see under the Screen icon (in style manager)
Leif Halvarsson_2
Honored Contributor

Re: screen saver lock on a CDE

Hi
I have tested this with a C360 and HP-UX 11.11.
When running CDE at the local display I can use the Screen lock feature but when running CDE from Reflection there is no Screenlock option in the Style manager/Screen
donne007
Regular Advisor

Re: screen saver lock on a CDE

Thank You All for The INput ,
But nothing seems to work , My Lock Icon disappeared afer i followed the steps as mentioned by the links by Steeve & yogeeraj,,
need more help and Input on this ..

Cheers
Asif
Alex Glennie
Honored Contributor

Re: screen saver lock on a CDE

I'm a bit confused : can we rewind ?

What are you viewing CDE on ie a
PC or workstation.

What is the problem : you are unable to lock the screen and do not have access to CDE's screenlock via the stylemanager and dtaction LockScreen doesn't work either ?

Was this the initial problem or are you trying to actually achieve something else ?

What changes have you made on the system ?
donne007
Regular Advisor

Re: screen saver lock on a CDE

Alex

Here's the summary of the problem , Initially
I was not able to Lock Screen on the CDE console & PC AS well(Using Exceed), using the Stle manger , since the option of locking the scree was not appearing ..
Later I copied the /usr/dt/config/C/sys.resources file to /etc/dt/config/C. - No IMpact ..
secondly i did was

) Create the file: /etc/dt/appconfig/types/C/nolock.fp with the following contents to remove the lock icon from the CDE front panel:

CONTROL Lock
{
TYPE icon
CONTAINER_NAME Switch
CONTAINER_TYPE SWITCH
DELETE True
}

2) Create the file /etc/dt/appconfig/types/C/nolock.dt with the following contents to override the predefined CDE "action" for locking the display.

ACTION LockDisplay
{
LABEL LockDisplay
TYPE COMMAND
WINDOW_TYPE NO_STDIO
EXEC_STRING /usr/dt/bin/dterror.ds "LockDisplay disabled on this workstation." "Lock Disabled" "OK"
DESCRIPTION LockDisplay action disabled on this workstation.
}

3) Copy the file /usr/dt/app-defaults/C/Dtstyle to /etc/dt/app defaults/C/Dtstyle

4) Remove the "Screen" entry from the Dtstyle*componentList definition in /etc/dt/app-defaults/C/Dtstyle

Dtstyle*componentList: Color Font Backdrop Keyboard Mouse Beep Dtwm Startup

5) Add these lines to the /etc/dt/config/C/sys.resources file.


Currently,, I ,m able to see the screen Lock Option (ON/OFF) But the Lock Icon is Disappearing from the CDE Front Panel ..

Hope U cud have Got my Problems kindly revert back in case of any confimations/queries ..

Thanks in advance
Sachin Patel
Honored Contributor

Re: screen saver lock on a CDE

Hi Asif,


1. cp /usr/dt/app-defaults/C/Dtstyle /etc/dt/app-defaults/C

2. Edit /etc/dt/app-defaults/C/Dtstyle and add the word
"screen" as shown below:

Change this line:

Dtstyle*componentList: Color Font Backdrop Keyboard Mouse Beep
Screen Dtwm Startup


Note: This change will add the Screensaver option from the
Style manager.

3. Edit /etc/dt/config/C/sys.resources and put the following two lines in comment.

#dtsession*extension.saverTimeout: 0
#dtsession*extension.lockTimeout: 0

Note: These two settings was disabling the screen saver and screen lock, respectively.

4. To make these changes take effect for all users, remove their
$HOME/.dt directories

Thanks
Sachin
Is photography a hobby or another way to spend $
Alex Glennie
Honored Contributor

Re: screen saver lock on a CDE

similar to sachins suggestion :

I would remove any files you have recently changed in the /etc/dt/ keep copies elsewhere if you wish.

fyi CDE will look here first then go to the /usr/dt/ route/copies. Hopefully this will put things back to the initial problem.

I'd also suggest at this point your usere log out and you also restart the CDE daemon using /sbin/init.d/dtlogin.rc [stop/start] .

If this still fails it would be interesting to see the sys.resources and other associated files contents or compare them with a working system and also what effect removing the users $HOME/.dt/ dir has whilst the user is logged out of CDE (again move it out of the way if you prefer) & then log in ....

got to go shortly will be back tomorrow am though

good luck !

donne007
Regular Advisor

Re: screen saver lock on a CDE

Thank You Folks ,,
I tried what each and every one has been suggesting .. but Now i cud see the Lock screen Icon in the Style manager and the
front panel as well..
now i'm ack to the initial stages of my problem.. but the only change i cud see the lock (ON/OFF) but it never functions..

Cheers
Asif
Wodisch_1
Honored Contributor

Re: screen saver lock on a CDE

Hi Asif,

the screen lock will only work on a Reflection/X session, if you run in "Single Session Mode", i.e. "X Terminal" instead of "Use MS Windows as Window Manager"...

HTH,
Wodisch
Alex Glennie
Honored Contributor

Re: screen saver lock on a CDE

so your initial problem was/is ... as I understand it you can see the screenlock icon on the front panel but it does not lock the screen .... setting it's option via style manager has no effect ?

OK Does this occur for all users ? Is NIS or trusted systems involved and do the users share $HOME dirs or not have valid encrypted passwds ..... or anything similar ?

Has this always been occuring ?

dtaction LockDisplay ... does it work ?

try xset s 5 s on result or errors ?

run xset -q look for the
Screen Saver section ?

xrdb -q output would also be of use .....
donne007
Regular Advisor

Re: screen saver lock on a CDE

Thanx Alex
The system is Not trusted, I cud lock using a User , But not with root,
The rest of the things dtlogin , Xset wroks fine ..
I't cud be great if i Cud lock the scree in the root login..

Cheers
Asif