Bug 238604

Summary: xvkbd stays as root with tabletpc and auto-login enabled
Product: [openSUSE] openSUSE 10.2 Reporter: Hans Gunnarsson <hans.gunnarsson>
Component: OtherAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Hans Gunnarsson 2007-01-25 09:10:15 UTC
I have a tablet pc (toshiba portege m200), and have enabled auto-login in KDE.
At startup xvkbd is started by xdm, and is not killed. So I have to su to root and kill it manually.

The problem seems to be in /etc/X11/xdm/Xsetup on line 67 - 82 where xvkbd is started to be able to input username and password.

I'm not good enough at scripting to fix it though.

Regards,

Hans Gunnarsson
Comment 1 Stefan Dirsch 2007-01-25 15:08:08 UTC
Danny. Any proposal?
Comment 2 Danny Al-Gaaf 2007-01-28 23:57:39 UTC
hm ... get /etc/X11/xdm/Xstartup (where xkvbd get killed on login) not called/executed on autologin? Any other script where we can add the same code like in /etc/X11/xdm/Xstartup which get also called on autologin?
Comment 3 Stefan Dirsch 2007-01-29 05:57:23 UTC
Honestly I don't know, what's called during kdm/gdm autologin. xdm itself doesn't support any autologin.
Comment 4 Lubos Lunak 2007-01-29 16:39:07 UTC
Adding "echo XSETUP/XSTARTUP >>/tmp/xs.txt" to both of /etc/X11/xdm/{Xsetup|Xstartup} shows that both are executed.
It's probably the fact that they're executed one after another that triggers this bug. The code in Xsetup looks like it does the xvkbd launching in the background and doesn't wait.
Comment 5 Stefan Dirsch 2007-01-30 14:04:45 UTC
> At startup xvkbd is started by xdm, and is not killed. So I have to su to
> root and kill it manually.
kill/killall won't work. But can't you kill it with xkill or by using the buttons of the window decoration?
Comment 6 Hans Gunnarsson 2007-01-31 08:52:31 UTC
The buttons on the window decoration do not work. Haven't tried xkill, will do so this evening.
Comment 7 Hans Gunnarsson 2007-02-01 07:30:33 UTC
Tried xkill, and I can kill the window with it.
Comment 8 Danny Al-Gaaf 2007-02-01 07:39:03 UTC
@Stefan: We can add maybe a check to Xstartup to avoid the start of the keyboard if autologin is enabled.
Comment 9 Stefan Dirsch 2007-02-01 08:06:59 UTC
@Danny: How can I check if autologin is enabled?
Comment 10 Danny Al-Gaaf 2007-02-01 09:36:16 UTC
quick and _dirty_ on SLED (I assume also on 10.2):

  grep DISPLAYMANAGER_AUTOLOGIN="" /etc/sysconfig/displaymanager

If autologin is enabled the grep fail, because there is a username in this config variable

Comment 11 Stefan Dirsch 2007-02-01 09:51:47 UTC
fixed for STABLE/Factory.