Message: previous - next
Month: May 2014

Re: [trinity-devel] tdm doesn't start through

From: Werner Bast <werner.bast@...>
Date: Sat, 24 May 2014 16:55:08 +0200
Am 24.05.2014 10:39, schrieb Greg Madden:
> On Friday 23 May 2014 19:40:36 you wrote:
>> Am 24.05.2014 02:21, schrieb Greg Madden:
>>> On Friday 23 May 2014 15:05:11 you wrote:
>>>> hi all,
>>>> Like the subject said i've got problems with tdm. Its just the
>>>> other branch of the bug Nr 2057. I recently switched from
>>>> on precise to the nightly builds (R14.0.0 i guess).
>>>> And ended up with both kdm-trinity and tdm-trinity. On the way to
>>>> switch i was getting asked whitch DisplayManager and i choose
>>>> tdm-trinity. i reboot and ended in the non-X Prompt on tty1.
>>>> The confusing part is that the command (after login) initctl list
>>>> shows the service
>>>> 'tdm-trinity start/running, process 2838'.
>>>> So i have to 'initctl restart tdm-trinity' to get the
>>>> X-Login(graphically)
>>>> I just looked around a bit in /etc/init/tdm-trinity.conf and it
>>>> seems alright.
>>>> So I'm in a state of confusion. What am i doing wrong
>>>> Greetings Werner Bast
>>> How did you 'switch' to R14 ? There is a thread on the TDE users 
> list:
>>> :Most simple way to upgrade Trinity"  discussing how to upgrade
>>> : TDE.
>>> Since the upgrade path has not been , at least, documented yet,
>>> feedback is welcome on what you did, sources.list, commands or ?.
>>> To fix a possible broken install I would make sure I did not have
>>> any packages with 'KDE' in the name since R14 has renamed
>>> everthing? to TDE Purge leftover KDE-* packages
>> I just changed the lines in sources.list.
>> and updated. After that i had to manually start tdm. Then i kicked
>> kdm-trinity*. And nothing changed (the description says its only a
>> transitional package). I had to manually start tdm anyway.
>> What i also want is not only the solution, but to know where the
>> problem is.
>> Yours Werner
> Is there a 'tdm-trinity' script in '/etc/init.d' ? 
There is a link in /etc/init.d:
lrwxrwxrwx 1 root root   21 Mai 21 08:17 /etc/init.d/tdm-trinity ->
ubuntu uses upstart and the tdm-trinity.conf in /etc/init
looks ok.

cat /etc/init/tdm-trinity.conf:

 # tdm-trinity - TDE Display Manager
 # The display manager service manages the X servers running on the
 # system, providing login and auto-login services

 description     "TDE Display Manager"
 author          "Richard Johnson and Timothy Pearson"

 start on ((filesystem
            and runlevel [!06]
            and started dbus
            and stopped udevtrigger
            and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
                or stopped udev-fallback-graphics))
           or runlevel PREVLEVEL=S)

 stop on runlevel [016]

 emits login-session-start
 emits desktop-session-start
 emits desktop-shutdown

    if [ -n "$UPSTART_EVENTS" ]
        [ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11
/default-display-manager 2>/dev/null)" = "/opt/trinity/bin/tdm" ] || {
stop; exit 0; }

        # Since we have no plymouth integration to take over the VT we
        # quit plymouth all the time. Note that sleeping appears necessary
        # as the VT freeing is somewhat delayed and TDM would otherwise go
        # to configured KVT+1 (if plymouth was using it).
        $(plymouth --quit && plymouth --wait && sleep 1) || :
        if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
            # Single-user mode
            exit 0

    if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG LANGUAGE
    elif [ -r /etc/environment ]; then
        . /etc/environment
        export LANG LANGUAGE


    initctl emit starting-dm DM=tdm-trinity

    exec /opt/trinity/bin/tdm

 end script

 post-stop script
        if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then
                initctl emit desktop-shutdown
 end script

cat /etc/X11/default-display-manager: