Bug 100688

Summary: Lock Screen does not work
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Timo Hoenig <thoenig>
Component: GNOMEAssignee: Rodrigo Moya <rodrigo>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: strace of gnome-panel
strace of gnome-screensaver until it hits the endless loop

Description Timo Hoenig 2005-08-04 07:43:23 UTC
Choosing "Desktop" -> "Lock Screen" does not work. Nothing happens.
Comment 1 Rodrigo Moya 2005-08-04 11:26:05 UTC
Are either xscreensaver or gnome-screensaver installed and/or running?
Comment 2 Timo Hoenig 2005-08-04 11:47:41 UTC
Created attachment 44794 [details]
strace of gnome-panel
Comment 3 Timo Hoenig 2005-08-04 11:48:50 UTC
thoenig@d222:~> rpm -qa |grep screensave
kdeartwork3-kscreensaver-3.4.2-3
xscreensaver-4.22-4
kdeartwork3-xscreensaver-3.4.2-3
gnome-screensaver-0.0.7-8

thoenig@d222:~> ps axu |grep screens
test1    14405  0.4  0.3   4440  1896 ?        S    13:41   0:00 xscreensaver -nosplash
thoenig  14460  0.0  0.0   1584   480 pts/1    S+   13:41   0:00 grep screens

strace -p `pidof gnome-panel` 2&> /tmp/strace of the moment of clicking "Log Out" previously 
attached.
Comment 4 Timo Hoenig 2005-08-04 11:51:25 UTC
starting xscreensaver from a console works.

starting gnome-screensaver from a console does not work (polling in an endless loop), strace as 
follow up.
Comment 5 Timo Hoenig 2005-08-04 11:54:35 UTC
Created attachment 44796 [details]
strace of gnome-screensaver until it hits the endless loop
Comment 6 Rodrigo Moya 2005-08-04 11:59:00 UTC
The problem is that it is running xscreensaver on startup of the session, and
then trying to send it commands with gnome-screensaver-command.

Maybe you installed gnome-screensaver while running this session? If so, please
log out and log in again, and see if it correctly starts gnome-screensaver
instead of xscreensaver.
Comment 7 Timo Hoenig 2005-08-04 12:06:19 UTC
No, I did a plain install of preview4 with GNOME and KDE package selection (plus development tools 
etc.).

I did not start xscreensaver by hand in the session used for above's ps axu. It was a just started 
gnome session. I'll dig to see where xscreensaver gets started.
Comment 8 Timo Hoenig 2005-08-04 12:12:37 UTC
Once xscreensaver is killed and gnome-screensaver runs, Lock Screen works.  Also, gnome-
screensaver runs after inactivity as expected.

Though, I haven't found why xscreensaver gets started, yet.
Comment 9 Rodrigo Moya 2005-08-04 12:32:09 UTC
Seems preview4 includes control-center 2.11.6, which does not include the fix to
start up gnome-screensaver if installed, but does contain the new gnome-panel,
which uses gnome-screensaver if available.

So, needs an update to control-center 2.11.90
Comment 10 Timo Hoenig 2005-08-04 12:50:00 UTC
Verified. Using version 2.11.90 of control-center2 fixes the issue. Should be fine for beta1.
Comment 11 Timo Hoenig 2005-08-09 10:59:17 UTC
"Lock Screen" in Beta 1 blanks the screen.

One user intaction the blank screen goes without asking for the user's password.

The timeout defined by gnome-screensaver-preferences does not lead to a screen lock.
Comment 12 Timo Hoenig 2005-08-09 11:07:00 UTC
Sorry for mess:


On user interaction the blank screen goes away without asking for the user's password.
Comment 13 Timo Hoenig 2005-08-09 11:16:40 UTC
Problem seems to depend on the user logged in:

- a normal user is required to type the password after gnome-screensaver got activated
- root is _not_ required to type the password after gnome-screensaver got activated
Comment 14 Timo Hoenig 2005-08-17 11:01:54 UTC
Still in Beta 2.
Comment 15 Rodrigo Moya 2005-08-17 11:14:07 UTC
What is still in beta2? The lock screen not working or the root not being
required to type the password?

For the lock screen not working, if that's the case, do you have control-center
2.11.90 installed?

For the root not being asked for password, I am working upstream to fix it.
Comment 16 Timo Hoenig 2005-08-17 11:17:00 UTC
(In reply to comment #15)
> What is still in beta2? The lock screen not working or the root not being
> required to type the password?

Second one. Lock screen for root does not ask for a password.

[...]

> For the root not being asked for password, I am working upstream to fix it.

OK, did not know that since I saw no reply to my last entry for Beta 1.
Comment 17 Rodrigo Moya 2005-08-24 14:24:30 UTC
Ok, so, gnome-screensaver shares the authentication mechanism with xscreensaver,
which suffered also from this -> http://www.jwz.org/xscreensaver/faq.html#root-lock

So, the point is "don't log in to X as root", this won't be fixed for "good and
insurmountable security reasons"