Client VTs/screen-sessions are mixed up

Bug #533964 reported by Alkis Georgopoulos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ltsp (Ubuntu)
Fix Released
Undecided
Marc Gariépy

Bug Description

Using Lucid alpha3, manually updated to trunk revision 1703.
I hadn't noticed this issue before Lucid.

I have SCREEN_02=shell and SCREEN_07=ldm in lts.conf.

Sometimes everything goes as expected,
but sometimes ldm starts on top of the shell on VT2,
and sometimes ldm starts on VT1.

Here's a `ps` from when ldm is erroneously started on VT2. The openvt calls seem ok:
root 989 955 0 21:13 ? 00:00:00 /bin/openvt -s -f -w -c 2 -- /usr/share/ltsp/screen.d/shell
root 990 965 0 21:13 ? 00:00:00 /bin/openvt -s -f -w -c 7 -- /usr/share/ltsp/screen.d/ldm

Maybe X uses the active VT, so we should change the chvt call to ensure that we always switch to the ldm (or rdesktop...) screen?

I also have this problem with an empty lts.conf, i.e. ldm sometimes gets on top of VT1.

Related branches

Revision history for this message
Marc Gariépy (mgariepy) wrote :

I'm also affected by this, but i couldn't reproduce this at will.

when i do `chvt 1` then pkill X, X start on vt1.

I will do some more testing.

Marc Gariépy (mgariepy)
Changed in ltsp (Ubuntu):
assignee: nobody → Marc Gariépy (mgariepy)
status: New → Confirmed
Revision history for this message
Marc Gariépy (mgariepy) wrote :

#ltsp on freenode.

<Gadi> mgariepy: can you try calling this in screen_session: ${openvt} -s -f -w -c ${TTY_NUM} -- TTY_NUM=${TTY_NUM} ${SCRIPT_DIR}/${SCREEN_SCRIPT} ${SCREEN_ARGS}&
<Gadi> mgariepy: and then have screen-x-session use TTY_NUM
<Gadi> mgariepy: instead of fgconsole

Revision history for this message
Marc Gariépy (mgariepy) wrote :

i tried to define an environment variable with openvt but it doesn't work so now screen_session have fewer tests.

screen-x-common uses tty instead of fgconsole

Can someone tests the new release of those scripts and report any issue please.

Changed in ltsp (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Marc Gariépy (mgariepy) wrote :
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Seems to work fine here, thanks Marc! :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ltsp - 5.2.1-0ubuntu1

---------------
ltsp (5.2.1-0ubuntu1) lucid; urgency=low

  * New upstream bugfix release (5.2.1)
   * Fix plymouth and VT switch in Ubuntu
   * Reduce and improve VT switching
   * Disable LOCALDEV for fat clients
   * Fix ConsoleKit/PolicyKit support for Fat clients
   * Don't quote the clientid in udhcp (fix Windows DHCP)
   * Fix VT switching (LP: #533964)
   * Set HOME and SHELL env variables for shell sessions
   * Allow clientid for udhcpc to be passed as parameter (LP: #505916)
   * Fix call to unavailable functions in init scripts
   * Quiet down the scripts output and improve readability
   * Fix /etc/mtab so mountall doesn't complain
   * Hide reboot and shutdown menus for Fat clients
   * Fix screensaver for Fat clients
   * Cleanup ltsp-update-sshkeys usage
   * Properly separate tftppath in ltsp_nbd (LP: #238010)
 -- Stephane Graber <email address hidden> Sun, 14 Mar 2010 10:38:40 -0400

Changed in ltsp (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.