Opened 3 years ago

Last modified 3 years ago

#11333 new defect

Changing runlevel 3 -> 5 fails to complete prefdm / Sugar startup

Reported by: martin.langhoff Owned by: pbrobinson
Priority: normal Milestone: 11.3.0
Component: distro Version: Development build as of this date
Keywords: Cc:
Blocked By: Blocking:
Deployments affected: Action Needed: diagnose
Verified: no

Description

On XO-1 (build 880), 1.5 (b 880) and 1.75 (b 8),

  • Boot to Sugar
  • Switch to VT
  • run: init 3 ; then wait until the runlevel change is complete
  • run: init 5 ; X / prefdm never complete booting. /var/log/olpc-dm-X.error.log has messages that seem to hint X is started twice.

Also tested

  • does not repro stop prefdm; sleep 60 ; start prefdm
  • does repro with GNOME instead of sugar
  • does repro if you edit inittab to boot straight into runlevel 3, reboot, then init 5

Not a blocker per se, but the root cause of this may well be causing other headaches.

Change History (1)

comment:1 Changed 3 years ago by martin.langhoff

After more debugging, with some hints from dsd, the problem narrows down to "/etc/init/start-ttys.conf" which starts a tty on vt1 /only on runlevel 3/, then forgets to tear it down switching to runlevel 5.

If you would like to start the system without X, without hitting this bug, your options are:

  • Edit /etc/init/prefdm.conf, comment out or remove "start on stopped rc RUNLEVEL=5". This is the recommended method. You can the "start prefdm".
  • In /etc/init/start-ttys.conf edit "env ACTIVE_CONSOLES=/dev/tty[1-6]" to "env ACTIVE_CONSOLES=/dev/tty[2-6]"; then init 3 is usable. It just won't have a tty on VT1.
Note: See TracTickets for help on using tickets.