<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - fbdev backended Weston called with logind (without weston-launch) does not handle tty switches"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=86889#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - fbdev backended Weston called with logind (without weston-launch) does not handle tty switches"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=86889">bug 86889</a>
              from <span class="vcard"><a class="email" href="mailto:nerdopolis1@verizon.net" title="nerdopolis1@verizon.net">nerdopolis1@verizon.net</a>
</span></b>
        <pre>I tried to add print lines (in this diff) to try to see if I get any diagnostic
output when I try to switch VTs under fbdev-backend.so

However I do not see any of these lines get output.


diff --git a/src/launcher-util.c b/src/launcher-util.c
index ac764dc..2d6051a 100644
--- a/src/launcher-util.c
+++ b/src/launcher-util.c
@@ -244,11 +244,13 @@ weston_launcher_data(int fd, uint32_t mask, void *data)
         launcher->compositor->session_active = 1;
         wl_signal_emit(&launcher->compositor->session_signal,
                    launcher->compositor);
+        printf("Deactivate...");
         break;
     case WESTON_LAUNCHER_DEACTIVATE:
         launcher->compositor->session_active = 0;
         wl_signal_emit(&launcher->compositor->session_signal,
                    launcher->compositor);
+        printf("Reactivate...");
         break;
     default:
         weston_log("unexpected event from weston-launch\n");
diff --git a/src/logind-util.c b/src/logind-util.c
index 6a1b498..ca6b8e4 100644
--- a/src/logind-util.c
+++ b/src/logind-util.c
@@ -269,7 +269,7 @@ weston_logind_activate_vt(struct weston_logind *wl, int vt)
     r = ioctl(wl->vt, VT_ACTIVATE, vt);
     if (r < 0)
         return -1;
-
+    printf("Activate...");
     return 0;
 }

@@ -695,9 +695,11 @@ signal_event(int fd, uint32_t mask, void *data)
     switch (sig.ssi_signo) {
     case SIGUSR1:
         ioctl(wl->vt, VT_RELDISP, 1);
+        printf("SIG1...");
         break;
     case SIGUSR2:
         ioctl(wl->vt, VT_RELDISP, VT_ACKACQ);
+        printf("SIG2...");
         break;
     }</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>