[Wayland-bugs] [Bug 86889] fbdev backended Weston called with logind (without weston-launch) does not handle tty switches

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 5 05:22:32 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=86889

--- Comment #7 from nerdopolis1 at verizon.net ---
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;
     }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20141205/5de21133/attachment.html>


More information about the wayland-bugs mailing list