Bug 304399

Summary: login not possible when a tablet is used
Product: [openSUSE] openSUSE 10.3 Reporter: Marco Michna <mmichna>
Component: GNOMEAssignee: Rodrigo Moya <rodrigo>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: coolo, dg001, federico, hpj, kde-maintainers, rhorstkoetter, sndirsch, werner
Version: Beta 2Flags: coolo: SHIP_STOPPER-
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 10.3   
Whiteboard: gnome-function-does-not-work, gnome-wrong-out-of-the-box
Found By: Component Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 331577, 334446, 337428    
Bug Blocks:    
Attachments: gnome-screensaver-xvkbd-on-lock.patch
Newest version of the patch
create-notify.diff
Packages with the fix
Lang package with the fix
New patch, with xvkbd showing correctly and being killed when unlocked
New version of the patch with Federico's suggestions
GDM patch to be approved by Hans Petter
the log files from gnome-screensaver
the log files from gnome-screensaver

Description Marco Michna 2007-08-24 15:35:38 UTC
When I use the tablet function of the Gateway then there is no possibility to login via gdm and also it is not possible to unlock the screensaver.

It also does not work if I start virtual keyboard by hand.

This feature was done according to fate (#300346) but it does not work.
Comment 1 Rodrigo Moya 2007-08-29 14:04:21 UTC
I fixed a bug recently on gnome-screensaver that should fix this, but given the reporter mentions GDM also, not sure if it's something else. Holger, any idea?
Comment 2 Holger Macht 2007-08-30 09:54:23 UTC
What was the bug you fixed related to? Anyway, I have no idea ;-) Danny?
Comment 3 Rodrigo Moya 2007-08-30 11:30:04 UTC
The fix was related to uninitialized XWindowAtrributes structures on the new code for the xvkbd integration. Not sure if GDM uses a similar code (I copied it from kscreensaver IIRC).
Comment 4 Rodrigo Moya 2007-09-07 09:06:43 UTC
Marco, could you please try these packages:

http://w3.suse.de/~rodrigo/gnome-screensaver-2.19.7-4.i586.rpm
http://w3.suse.de/~rodrigo/gnome-screensaver-lang-2.19.7-4.i586.rpm

of course, this only fixes the screensaver part, so please test that. If it fixes, we might need a similar fix for GDM.
Comment 5 Marco Michna 2007-09-07 14:58:02 UTC
No it does not work - now it even does not display the virtual keyboard (xvkbd).
Comment 7 Marco Michna 2007-09-20 16:08:26 UTC
It still does not display the virtual keyboard. 
Comment 8 Rodrigo Moya 2007-09-27 09:55:03 UTC
hmm, this worked for me the other day, but now I see it just works intermitently.
Comment 9 Federico Mena Quintero 2007-10-02 19:14:38 UTC
Created attachment 175991 [details]
gnome-screensaver-xvkbd-on-lock.patch

Rodrigo, this is the patch which you asked me to review but I dropped the ball on that --- sorry :(

Is this the latest version of the patch, or do you want me to review a newer one?
Comment 10 Federico Mena Quintero 2007-10-02 19:15:10 UTC
Adding myself to the CC list.
Comment 11 Rodrigo Moya 2007-10-03 13:27:58 UTC
No, that's not the last one I sent you. Attaching the new one. It's still not showing the xvkbd window, so could you please have a look to see what's missing?
Comment 12 Rodrigo Moya 2007-10-03 13:33:31 UTC
Created attachment 176123 [details]
Newest version of the patch
Comment 13 Federico Mena Quintero 2007-10-03 19:49:04 UTC
Created attachment 176214 [details]
create-notify.diff

Incremental patch on top of Rodrigo's.  With this, the xvkbd window appears properly.  However, it doesn't exit when the screen gets unlocked.  Rodrigo, are you familiar with that part of the code?
Comment 14 Rodrigo Moya 2007-10-04 11:00:26 UTC
Created attachment 176294 [details]
Packages with the fix
Comment 15 Rodrigo Moya 2007-10-04 11:01:09 UTC
Created attachment 176295 [details]
Lang package with the fix
Comment 16 Rodrigo Moya 2007-10-04 11:02:28 UTC
Created attachment 176296 [details]
New patch, with xvkbd showing correctly and being killed when unlocked
Comment 17 Rodrigo Moya 2007-10-04 11:04:15 UTC
Marco, please test attached packages, they work perfectly for me now.

Federico, please review the last attached patch
Comment 18 Marco Michna 2007-10-04 12:39:08 UTC
package gnome-screensaver-2.20.0-4 (which is newer than gnome-screensaver-2.20.0-1) is already installed

I will try with force now. But it isnt good to be not in sync with the build.
Comment 19 Marco Michna 2007-10-04 12:54:49 UTC
This only works if you have kdm as loginmanager. When you use gdm then there is no virtual keyboard.
Comment 20 Rodrigo Moya 2007-10-04 14:19:11 UTC
These packages only fix the gnome-screensaver part. Does that work for you when you install them?
Comment 21 Marco Michna 2007-10-04 14:26:57 UTC
Getting back when screensaver is running works.
Comment 22 Federico Mena Quintero 2007-10-05 00:37:52 UTC
(In reply to comment #17 from Rodrigo Moya)

> Federico, please review the last attached patch

I'd compress the various instances of 

+        if (xvkbd_running)
+                kill (xvkbd_pid, 9);

into a helper function.

Also, the part where you invoke hal-find-by-property is commented out... should that be uncommented?

I don't like using system() there.  Can it simply use g_spawn_sync() for safety?

Comment 23 Rodrigo Moya 2007-10-06 14:49:08 UTC
yes, the part commented should be uncommented, and is on the autobuild dir I'm going to submit, just created the packages with that commented out to make it easier to test.

Will change it to use g_spawn_sync (as soon as I get access to the internal network)
Comment 24 Rodrigo Moya 2007-10-06 15:24:49 UTC
Created attachment 176628 [details]
New version of the patch with Federico's suggestions
Comment 25 JP Rosevear 2007-10-15 21:26:46 UTC
bug 149957 seems to be the original for gdm.  CC'ing Stefan Dirsch since he seems to have done the original work.
Comment 26 Stefan Dirsch 2007-10-16 01:47:15 UTC
I'm not sure how I can help here.
Comment 27 Rodrigo Moya 2007-10-29 12:13:38 UTC
Stefan, the GDM part of the bug is what is still "broken", Marco can't see the xvkbd window at all when login in. Marco, this is still the case right?

The xvkbd part is in /etc/X11/xdm/Xsetup, which is part of xorg-x11, and which you added, according to bug #149957. The code is:

#
# Check if the machine is a TabletPC and start
# xvkbd in xdm do be able to input username and password 
# 
$halporp --key system.formfactor.subtype --string tabletpc
if test $? -eq 0 -a -x $xvkbd ; then
  # Bug 238604
  if grep -q DISPLAYMANAGER_AUTOLOGIN="" /etc/sysconfig/displaymanager; then
    # Bug 149957
    ( declare -i t=100
      while test $((t--)) -gt 0 ; do
          case "$(xwininfo -root -children)" in
            *greet*|xlogin) break ;;
          esac
          sleep 0.1
      done
      HOME=/root exec $xvkbd -compact -geometry -0-0 -xdm
    ) & echo $! > /var/run/xvkbd.pid
  fi
fi

Marco, you don't have autologin enabled, right?
Comment 28 Marco Michna 2007-10-29 12:23:45 UTC
Yes this is still the case and yes, I don't have autologin enabled because I have several users on this laptop (main user and a test user).
Comment 29 JP Rosevear 2007-10-29 15:36:00 UTC
We should probably get the output of hal-find-by-property --key system.formfactor.subtype --string tabletpc from you Marco.  Also, with gdm are you using the standard "greeter" or the old style login window?
Comment 30 Federico Mena Quintero 2007-10-29 15:38:59 UTC
(In reply to comment #24 from Rodrigo Moya)
> Created an attachment (id=176628) [details]
> New version of the patch with Federico's suggestions

Looks good!
Comment 31 Marco Michna 2007-10-29 16:47:07 UTC
/org/freedesktop/Hal/devices/computer

I'm using the default greeter and didn't change anything there.
Comment 32 Rodrigo Moya 2007-11-05 16:21:56 UTC
Marco, is xvkbd running at all? (that is, 'ps aux | grep xvkdb' shows anything?) or is it just not showing?
Comment 33 Marco Michna 2007-11-06 12:10:47 UTC
Yes - sure it is running.

--8<--
tux       3736  0.0  0.2   4232  2180 ?        S    12:40   0:00 xvkbd
-->8--

Comment 34 Rodrigo Moya 2007-11-06 17:18:06 UTC
Ok, so what did you do to set the tablet up? I am experimenting with some setups, and in some cases, the process is not even run.
Comment 35 Marco Michna 2007-11-06 17:49:43 UTC
I don't see what the setup of the tablet has to do with the xvkbd not coming up with gdm - the same setup works perfectly with KDE and kdm.

But anyway ... 

     - start YaST2
     - Hardware
     - Graphics Card and Monitor
     - Tablet
     - Activate this Tablet
     - FINEPOINT
     - GATEWAY (FPI2004)

and thats all.
Comment 36 Rodrigo Moya 2007-11-06 21:03:26 UTC
Stefan, we are not seeing Xsetup being ran with GDM, any idea what might be going on?
Comment 37 JP Rosevear 2007-11-06 21:42:50 UTC
It appears to be a gdm issue.
Comment 38 Rodrigo Moya 2007-11-06 22:08:54 UTC
Seems the cause for not having Xsetup run is gdm's fault, because of a patch that got rediffed and lost part of the fixes we had. The patch is:

https://api.opensuse.org/source/GNOME:STABLE/gdm/gdm-xdm-sessions.patch

and here's the new version of the patch:

https://api.opensuse.org/source/home:rodrigomoya/gdm/gdm-xdm-sessions.patch

Hans Petter, can you have a look and see if something else might be affected by the missing part of the patch?

Marco, test packages including the new version of the patch are (or will be soon, as soon as the build service builds them) at:

http://download.opensuse.org/repositories/home:/rodrigomoya/openSUSE_10.3/
Comment 39 JP Rosevear 2007-11-07 01:52:49 UTC
The new packages help start xvkbd consistently for me at least however xvkbd is not brought to the front of the greeter screen.   I can see it come up and then be overwritten by a the gdm artwork.  Using just the original line in Xsetup:

( sleep 1; HOME=/root exec $xvkbd -compact -geometry -0-0 ) & echo $! > /var/run/xvkbd.pid

Worked and so does adding a:
 ( sleep 1; declare -i t=100

Its not clear to me why this changed from the original script in bug 149957 or why exactly this works - my guess is that gdm sets the root window twice for some reason once when starting up and once for the greeter pixmap or overlays the greeter pixmap on the root window.

The /etc/X11/xdm/Xsetup script needs updating as well though as it uses a gnome2root of /opt/gnome/sbin instead of /usr/sbin on 10.3.
Comment 40 Stefan Dirsch 2007-11-07 05:49:08 UTC
> Its not clear to me why this changed from the original script in bug 149957
It makes sure that xvkbd is *started* after the greeter of the display manager is available. See Bug #149957, comment #27 and the following.

> The /etc/X11/xdm/Xsetup script needs updating as well though as it uses a
> gnome2root of /opt/gnome/sbin instead of /usr/sbin on 10.3.
Indeed. So our gdm on 10.3 looked rather ugly and nobody noticed it so far.
I will fix this for STABLE.
Comment 41 Stefan Dirsch 2007-11-07 06:01:13 UTC
xorg-x11 package submitted for STABLE.

-------------------------------------------------------------------
Wed Nov  7 06:56:24 CET 2007 - sndirsch@suse.de

- /etc/X11/xdm/Xsetup:
  * /opt/gnome/sbin/gdm --> /usr/sbin/gdm
  * gnome-window-decorator --> gtk-window-decorator 
Comment 42 Hans Petter Jansson 2007-11-07 08:58:44 UTC
Rodrigo: Yes, it looks like missing those hunks could cause a wide range of ill effects, for instance on user device permissions and DPMS screensaving in gdm.
Comment 43 Rodrigo Moya 2007-11-07 10:32:09 UTC
Yes, so it's the -xdm argument that makes it not work. Without that, it works great for me.
Comment 44 Stefan Dirsch 2007-11-07 10:56:55 UTC
Rodrigo, what's different with "-xdm"?
Comment 45 Rodrigo Moya 2007-11-07 13:48:52 UTC
Don't know, it started working when I removed that argument, but now it didn't work again, so added -always-on-top and now it seems to work every time. So

HOME=/root exec $xvkbd -compact -geometry -0-0 -xdm -always-on-top
Comment 46 Rodrigo Moya 2007-11-07 13:52:16 UTC
Hans Petter, we found also the /etc/gdm/PreSession/Default runs a xsetroot command. Is this ok? Could this be the cause of the problem?
Comment 47 Stefan Dirsch 2007-11-07 13:57:52 UTC
Ok. I thought "-xdm" would be a gdm option. Please let me know in case I should add the -always-on-top option to xvkbd in Xsetup script.
Comment 48 Rodrigo Moya 2007-11-07 14:03:24 UTC
Stefan, it works all the time for me, except for the fact that you have to press the 'Focus' button on xvkbd to get the focus to the GDM entry for username/password. I guess the focus should be there by default, right?

Let's wait for Hans Petter to comment on the PreSession/Default file, and we'll see if we need to add that -always-on-top. Because, that shouldn't affect KDM/XDM, right?
Comment 49 Stefan Dirsch 2007-11-07 14:43:50 UTC
Well at least for the greeter it shouldn't hurt. Not sure if it should stay on top afterwards.
Comment 50 Rodrigo Moya 2007-11-07 14:54:44 UTC
It gets killed in /etc/X11/xdm/Xstartup, so it shouldn't be kept around, right?
Comment 51 Stefan Dirsch 2007-11-07 15:30:25 UTC
Right, so this option should be safe.
Comment 52 Rodrigo Moya 2007-11-07 16:01:57 UTC
with KDM, it works, without having to press the 'Focus' button on xvkbd. It doesnt get killed though, so it seems KDM is not running the Xstartup file?
Comment 53 Stefan Dirsch 2007-11-07 16:05:16 UTC
Honestly I have no idea which files in /etc/X11/xdm are still used by kdm. :-(
Comment 54 JP Rosevear 2007-11-07 16:11:17 UTC
CC'ing KDE team on #52 and #53.
Comment 55 JP Rosevear 2007-11-07 16:18:52 UTC
(In reply to comment #52 from Rodrigo Moya)
> with KDM, it works, without having to press the 'Focus' button on xvkbd. It

I wonder if this is because in the gdm case xvkbd comes up before the user name entry is available and focussed.  Maybe it works better with the sleep 1 (or 2 or 3) hack again?
Comment 56 Stefan Dirsch 2007-11-07 16:31:39 UTC
Maybe, but maybe gdm can also be fixed to provide "gdmgreeter", when asked via "xwininfo -root -children", *only* when the greeter has already been
started. Obviously this is what xdm/kdm can properly do ...
Comment 57 JP Rosevear 2007-11-07 16:40:36 UTC
The real question might be why is background color getting set against the root window just before the greeter appears.  I don't know if thats in one of these scripts or in the GDM code itself.
Comment 58 Stefan Dirsch 2007-11-07 17:02:13 UTC
This is in Xsetup as well. It's done because gnome2root is still set to /opt/gnome/sbin on 10.3.


[...]
gnome2root=/opt/gnome/sbin
    gdmpid=/var/run/gdm.pid
       gdm=no

test -x ${gnome2root}/gdm && \
  /sbin/checkproc -p $gdmpid ${gnome2root}/gdm &> /dev/null && gdm=yes

#
# Handle background:
#   First kdm/gdm choise, then xdm/user choise and
#   if no choise is given use the system defaults.
#
if test "$kdm" = "yes" -o "$gdm" = "yes"     ; then
    : # $xsetroot -solid '#738dc6'
elif test -s ${background}.gz -a -x $xpmroot ; then
    $xpmroot ${background}.gz
elif test -s ${background}    -a -x $xpmroot ; then
    $xpmroot $background
elif test -x $backprg ; then
    $backprg
else
    $xsetroot -gray
fi
[...]
Comment 59 JP Rosevear 2007-11-07 17:16:55 UTC
I have that test fixed here and it still seems to be happening.  

It looks like gdm, it appears to be doing this to hide the stipple.  That seems like an antiquated reason these days.  Its probably patchable, but of course adds a little risk (comment also implies its used for Xinemera - not sure why
exactly).  The current upstream code (will be gdm 2.22) seems to have dumped
this ugliness so it should be sorted for 11.0 soonish.
Comment 60 Rodrigo Moya 2007-11-07 22:45:34 UTC
I've tried several things on the script, but can't get the entry to get the focus properly, and yes, the background seems to be set before you actually see the GDM greeter window, with the /opt/gnome->/usr fix in.

Hans Petter, what do you think about what Stefan says in comment #56?
Comment 61 Rodrigo Moya 2007-11-07 22:49:38 UTC
Also, the focus problem doesn't seem to be because the xvkbd window is open before the greeter is actually started, or doesn't seem so, since I added a sleep (up to 10) to actually start xvkbd after the greeter is up and running, and the problem persists
Comment 62 Hans Petter Jansson 2007-11-09 07:16:16 UTC
I think it's doable.

Stefan: How exactly should I set the information on the windows so the information is exposed to the script the right way?

Rodrigo: When this is ready, it should probably be submitted together with the GDM changes for bug 332498.
Comment 63 Stefan Dirsch 2007-11-09 07:50:01 UTC
hpj: It's my understanding that gdm already sets "gdmgreeter", but apparently not at the right time.
Comment 64 Hans Petter Jansson 2007-11-09 08:03:28 UTC
Ok, but how is it set?

(Would that even fix the bug, though? From what Rodrigo says, it sounds like it
wouldn't).
Comment 65 Stefan Dirsch 2007-11-09 08:22:27 UTC
I don't know anything about gdm. xdm uses "xlogin" instead of "gdmgreeter". It's the application_name.

./greeter/greet.c:    dpy = XtOpenDisplay (context,
                            d->name, "xlogin", "Xlogin", NULL, 0,

See manual page of XtOpenDisplay for more details.
Comment 66 Rodrigo Moya 2007-11-09 13:10:12 UTC
I can't find neither where this is set, the greeter does not use XtOpenDisplay nor XOpenDisplay (just gdk/gtk_init), and it doesn't seem to have any instance of "gdmgreeter" at all. So not sure where to fix it, Hans Petter?
Comment 67 Rodrigo Moya 2007-11-09 14:57:49 UTC
The focus bug is present also in SLED10, so JP agrees on shipping these fixes and leave the focus problem for OS 11. So, to sum up, we need a SWAMP ID for these fixes to get into 10.3:

* gnome-screensaver fix (https://bugzilla.novell.com/attachment.cgi?id=176628): approved by Federico and confirmed to work by Marco
* GDM patch: needs approval by Hans Petter, attaching after this comment
* xorg-x11 fix, with the /opt/gnome -> /usr/bin, gnome-window-decorator->gtk-window-decorator and the addition of the -always-on-top argument to xvkbd. Stefan, would you take care of this part, or should I?

We also need to submit all of these to STABLE, which I'll start doing (gnome-screensaver part). Hans Petter, let me know how to co-ordinate the other GDM fixes you have.
Comment 68 Rodrigo Moya 2007-11-09 14:58:28 UTC
Created attachment 182807 [details]
GDM patch to be approved by Hans Petter
Comment 69 Rodrigo Moya 2007-11-09 15:40:36 UTC
gnome-screensaver part submitted to STABLE
Comment 70 Stefan Dirsch 2007-11-09 15:52:41 UTC
Rodrigo, the information that gdm uses "gdmgreeter" I got by Werner. Maybe this information is no longer up-to-date. I didn't verify it.

Why is it that important to fix these issue for 10.3? Do we have so many tablet pc users, who use gdm? Obviously nobody noticed it during the alphas/bets. I hate writing patchinfo files. Sure I'll add the -always-on-top option for STABLE.
Comment 71 Stefan Dirsch 2007-11-09 15:56:18 UTC
>Sure I'll add the -always-on-top option for STABLE.
done.
Comment 72 Rodrigo Moya 2007-11-09 16:01:07 UTC
Stefan, what about 10.3 submission? Since we need to co-ordinate the 3 submissions, I can attach the patch and once you approve it I can submit it myself.
Comment 73 JP Rosevear 2007-11-09 16:04:12 UTC
(In reply to comment #70 from Stefan Dirsch)
> Rodrigo, the information that gdm uses "gdmgreeter" I got by Werner. Maybe this
> information is no longer up-to-date. I didn't verify it.
> 
> Why is it that important to fix these issue for 10.3? Do we have so many tablet
> pc users, who use gdm? Obviously nobody noticed it during the alphas/bets. I
> hate writing patchinfo files. Sure I'll add the -always-on-top option for
> STABLE.

Well, Marco noticed it, this was a mandatory feature, it improves things for non-tablets as well and historically we have lots of 10.3 upgrades after more than just the first month of release.  We can write the patchinfo for you Stefan as we can bundle it with the gnome-screensaver fix in one swamp id.

Comment 74 Stefan Dirsch 2007-11-09 16:18:24 UTC
Rodrigo, feel free to do so. The script is in xorg-x11 package, in xdm.tar.bz2.
Only xorg-x11 package needs to be updated. Please keep me up-to-date.
Comment 77 Stefan Dirsch 2007-11-10 04:23:08 UTC
xorg-x11 package submitted for 10.3:

-------------------------------------------------------------------
Sat Nov 10 05:20:16 CET 2007 - sndirsch@suse.de

- /etc/X11/xdm/Xsetup:
  * /opt/gnome/sbin/gdm --> /usr/sbin/gdm (Bug #304399)
  * gnome-window-decorator --> gtk-window-decorator (Bug #304399)
  * added -always-on-top option to xvkbd call (Bug #304399) 
Comment 78 Stefan Dirsch 2007-11-10 04:29:27 UTC
It might be possible to just add xorg-x11 to the package list of your patchinfo file, you wanted to submit anyway.
Comment 79 Rodrigo Moya 2007-11-10 12:01:44 UTC
Thanks Stefan for submitting it. And yes, I'll include your xorg-x11 submission in the patchinfo I submit. Although, you haven't included the SWAMP-ID in your submission, don't you need to?

Anyway, still waiting for Hans Petter to review the patch. As soon as he does, I'll do the full submission along with the other GDM fixes Hans Petter has ready.
Comment 80 Stefan Dirsch 2007-11-10 12:25:12 UTC
Bugzilla entry should be enough to get the package checked in once it is clear that a maintenance update will be done. SWAMPID is for patchinfo file.
Comment 81 Rodrigo Moya 2007-11-10 16:30:35 UTC
Ok, I thought the SWAMP-ID had to be included in the package's changelog
Comment 82 Lubos Lunak 2007-11-12 14:40:51 UTC
Stefan: (comments #52,#53) KDM should run Xsetup and Xstartup just like XDM does (and it works that way on my machine).
Comment 83 Stephan Kulow 2007-11-12 14:48:03 UTC
grep etc/X11 /mounts/dist/unpacked/i386.full/opt/kde3/share/config/kdm/kdmrc
# Default is "/etc/X11/xdm/Xaccess"
#Xaccess=/etc/X11/xdm/Xaccess
# Default is "/etc/X11/xdm/Xwilling"
# Default is "/etc/X11/xdm/Xsetup"
# Default is "/etc/X11/xdm/Xstartup"
# Default is "/etc/X11/xdm/Xreset"
# Default is "/etc/X11/xdm/Xsession"
# Default is "/etc/X11/sessions,/opt/kde3/share/apps/kdm/sessions,/usr/share/xsessions"
Comment 84 Rodrigo Moya 2007-11-12 15:44:33 UTC
gnome-screensaver submitted also then. Hans Petter, let us know when you are ready for the GDM submissions and we'll ask for the SWAMP-ID and (me) create the patchinfo
Comment 85 Hans Petter Jansson 2007-11-12 18:56:26 UTC
The updated patch looks good.
Comment 86 Rodrigo Moya 2007-11-12 19:00:05 UTC
Ok, so all packages are now submitted (included the fix for bug #337428), so Anja, we need a SWAMP-ID
Comment 87 JP Rosevear 2007-11-12 20:47:59 UTC
Bug 341113 seems to only appear on factory but we should solve it before shipping the update in this bug of gnome-screensaver so we have some confidence in the fix.
Comment 88 Rodrigo Moya 2007-11-12 23:07:10 UTC
Marco, I guess you have been running with my packages all this time. Did you see anything similar to bug #341113? It seems to happen now for me on both 10.3 and FACTORY
Comment 89 JP Rosevear 2007-11-13 01:38:48 UTC
I don't understand the point of the question in #88 if you can dupe the problem and bug 341113 has logs and the packages attached for testing in this bug do not seem to have the latest version of the patch from #24.  It seems like the CreateNotify addition could be problematic.

No swamp id required from Anja until this is solved.
Comment 90 Rodrigo Moya 2007-11-13 10:56:15 UTC
JP, I was trying to see in what version of the patch the problem showed up, since I didn't see it myself (I've been running with the last patch since I posted it here). And I found it is in the g_spawn_command_line_sync call, getting it back to use system makes it work as before, so there might be something bad in that glib call, which was not when I tested the last change, but can't see any changes related to this in the glib package, so not sure what's up.

Re-submitted with the g_spawn_command_line_sync->system change. Attaching new packages in a little bit to make sure everything works as expected. Marco, please test them
Comment 91 Rodrigo Moya 2007-11-13 11:08:00 UTC
New packages are at: http://www.gnome.org/~rodrigo/rpms/304399/

Marco, please test them
Comment 92 Rodrigo Moya 2007-11-13 11:54:16 UTC
Fix confirmed to work on FACTORY also by a couple of people now
Comment 93 Marco Michna 2007-11-13 12:01:47 UTC
Just tried the new packages and now it shows a very strange behavior.
Most of the time the virtual keyboard is there but the position of the login window changes. Sometimes its a little bit to the left and sometimes it is on the right border of the screen. When it is on the right border then it also is not shown completely - the left part is cut off (begins at the U from the Switch User button).

And BTW - when the virtual keyboard is shown then it is possible to login via the tablet.
Comment 94 Rodrigo Moya 2007-11-13 13:51:52 UTC
This is really weird, the last packages I posted are identical to the ones Marco has been running since he confirmed the fix.
Comment 95 Rodrigo Moya 2007-11-14 11:25:33 UTC
Marco, could you please get debugging info as stated in http://en.opensuse.org/GNOME/Submitting_Bugs#GNOME_Screensaver ?
Comment 96 Marco Michna 2007-11-15 16:26:22 UTC
When I do that then I can't lock the screen and it also does not lock the screen after 10 min.
Comment 97 Rodrigo Moya 2007-11-16 10:21:56 UTC
So, this only happens with the new packages I built, right? If you install these:

https://bugzilla.novell.com/attachment.cgi?id=176294
https://bugzilla.novell.com/attachment.cgi?id=176295

everything works as expected, right?

Also, when following the instructions in http://en.opensuse.org/GNOME/Submitting_Bugs#GNOME_Screensaver, does starting gnome-screensaver on the command line raises any error message or warning? It sounds like it didn't start correctly, so could  you please paste here the output of those commands to see why you don't get the screen lock?
Comment 98 Marco Michna 2007-11-19 11:20:01 UTC
used packages:
gnome-screensaver-2.20.0-6.1
gnome-screensaver-lang-2.20.0-6.1

--8<--
geeko@g85:~> killall -9 gnome-screensaver
geeko@g85:~> gnome-screensaver --no-daemon --debug > /tmp/gs.log 2>&1
-->8--

Nothing else. If you want to have the logfile then say so and I attach it.
Comment 99 Rodrigo Moya 2007-11-19 11:41:41 UTC
yes please
Comment 100 Marco Michna 2007-11-19 11:53:21 UTC
Created attachment 183888 [details]
the log files from gnome-screensaver
Comment 101 Rodrigo Moya 2007-11-19 12:15:10 UTC
ok, it seems to be a dbus problem:

[query_session_id] gs-listener-dbus.c:2033 (13:20:05):	 org.freedesktop.DBus.GLib.UnmappedError.CkManagerError.Code0 raised:
 Unable to lookup session information for process '32759'

and then the rest of the log file is about gs-listener-dbus.c waiting for something until this:

gnome-screensaver: Fatal IO error 4 (Unterbrechung während des Betriebssystemaufrufs) on X server localhost:10.0.

what does that German sentence mean?

In any case, have you done any update recently without a reboot or something similar? Just to be sure, is any dbus process running (ps aux | grep dbus), also, does any other dbus app fail like this (like dbus-monitor, what does this show when you start the screensaver).

If you see any other dbus-related problems, could you please reboot to make sure the new dbus is the one being used by all apps?
Comment 102 Marco Michna 2007-11-19 12:36:17 UTC
No - the problem was that it does not like the command via a ssh (-X) session.
When I run it directly on the laptop then it works.

I only was able to capture logs when the login was to the left and not centered.

Comment 103 Marco Michna 2007-11-19 12:37:02 UTC
Created attachment 183897 [details]
the log files from gnome-screensaver
Comment 104 Rodrigo Moya 2007-11-19 15:23:53 UTC
I see nothing wrong on the log. Are you able to test these packages in a different machine?
Comment 105 Marco Michna 2007-11-21 12:14:37 UTC
I was able to get my hands on a Acer Travelmate C300 and the effect with the   login window isn't there. But that thing has another problem. The window decoration is disabled so when you login you can't move the xvkbd.

But that should be handled in another bug - and I can't do that because I have to give back the Travelmate.

Comment 107 Rodrigo Moya 2007-11-21 13:05:00 UTC
That is probably because you don't have the GDM part applied in that machine, which should kill xvkbd when you log in.

So, it seems this is something to do only with your main machine, right? And it looks to me not related at all to the gnome-screensaver change, so, JP, should we go ahead and apply the fix for 10.3?
Comment 108 Rodrigo Moya 2007-11-26 18:47:58 UTC
Since only part of the planned big submission was done (GDM was submitted, but not xorg-x11 and gnome-screensaver), there is a new bug in 10.3 (bug #343858), so we need to submit this ASAP.

Anja, could we please get a SWAMP-ID? 
Comment 109 Stefan Dirsch 2007-11-26 20:08:31 UTC
> Since only part of the planned big submission was done (GDM was submitted,
> but not xorg-x11 and gnome-screensaver), 
This is not correct. I've submitted xorg-x11 for 10.3

xorg-x11.changes:
-------------------------------------------------------------------
Sat Nov 10 05:20:16 CET 2007 - sndirsch@suse.de

- /etc/X11/xdm/Xsetup:
  * /opt/gnome/sbin/gdm --> /usr/sbin/gdm (Bug #304399)
  * gnome-window-decorator --> gtk-window-decorator (Bug #304399)
  * added -always-on-top option to xvkbd call (Bug #304399) 
Comment 110 Stefan Dirsch 2007-11-26 20:30:05 UTC
*** Bug 343906 has been marked as a duplicate of this bug. ***
Comment 111 Rodrigo Moya 2007-11-27 12:02:20 UTC
Stefan, your fix is still in /work/src/done/10.3 because it wasn't included in the SWAMP-ID for the other fixes (due to the gnome-screensaver problem Marco was seeing). So, yes, we need a new SWAMP-ID and I'll submit it for both your xorg-x11 fix and the gnome-screensaver one.
Comment 113 Rodrigo Moya 2007-11-27 14:15:11 UTC
Patchinfo submitted for 10.3
Comment 114 Anja Stock 2007-12-04 10:33:19 UTC
released
Comment 115 JP Rosevear 2007-12-12 20:39:12 UTC
*** Bug 345879 has been marked as a duplicate of this bug. ***