Closed trusktr closed 10 years ago
Looks like a kernel bug. Do you use "nouveau"? Please run kmscon with --debug to get debug output (try running it via ssh from a remote machine). If you start kmscon from a console, try using "--no-switchvt" to avoid the automatic VT switch during startup. You might also want to add "--debug" to /lib/systemd/system/kmsconvt@.service if you use systemd to start kmscon and want debug output in the journal. (it's very verbose!)
I think I have the same (or a similar) issue. I'm running kmscon with --no-switchvt
, and the first time I switch to it everything appears to work just fine. However, the next time I switch from Xorg on tty7, the screen isn't repainted and the Xorg display remains (without updating), except for the mouse cursor which disappears.
This is an excerpt from the debug output; the first "activate session" line is the first switch to the kmscon tty, the next "activate session" and the ERROR line following is the second attempt at switching:
[0012.227166] DEBUG: seat: activate session 0x1eda930 (session_call_activate() in src/kmscon_seat.c:120)
[0012.228652] DEBUG: pty: forking child 15373 (pty_spawn() in src/pty.c:403)
[0013.270826] DEBUG: seat: deactivate session 0x1eda930 (session_call_deactivate() in src/kmscon_seat.c:126)
[0020.532854] DEBUG: seat: activate session 0x1eda930 (session_call_activate() in src/kmscon_seat.c:120)
[0020.538973] ERROR: drm_shared: cannot page-flip on DRM-CRTC (22): Invalid argument
[0020.549322] WARNING: terminal: cannot swap display 0x1ee20c0
[0022.477561] DEBUG: seat: deactivate session 0x1eda930 (session_call_deactivate() in src/kmscon_seat.c:126)
The full debug output is here:
[0000.000000] NOTICE: kmscon Revision kmscon-7-52-g2d191bd Oct 8 2013 10:58:25
[0000.000062] INFO: conf: reading config file /etc/kmscon/kmscon.conf
[0000.000112] DEBUG: module: loading global modules from /usr/lib/kmscon (kmscon_load_modules() in src/kmscon_module.c:188)
[0000.000166] DEBUG: module: opening module /usr/lib/kmscon/mod-pango.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.004107] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-pango.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.004245] DEBUG: module: Date: Oct 8 2013 10:58:37 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.004265] DEBUG: module: GIT: kmscon-7-52-g2d191bd (kmscon_module_open() in src/kmscon_module.c:96)
[0000.004287] DEBUG: module: Hooks: (nil) 0x7f5c677a6940 0x7f5c677a6930 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.004308] DEBUG: module: loading module /usr/lib/kmscon/mod-pango.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.004332] DEBUG: font: register font backend pango (kmscon_font_register() in src/font.c:168)
[0000.004365] DEBUG: module: opening module /usr/lib/kmscon/mod-gltex.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.004476] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-gltex.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.004501] DEBUG: module: Date: Oct 8 2013 10:58:38 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.004522] DEBUG: module: GIT: kmscon-7-52-g2d191bd (kmscon_module_open() in src/kmscon_module.c:96)
[0000.004542] DEBUG: module: Hooks: (nil) 0x7f5c63ad4ec0 0x7f5c63ad4eb0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.004562] DEBUG: module: loading module /usr/lib/kmscon/mod-gltex.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.004584] DEBUG: text: register text backend gltex (kmscon_text_register() in src/text.c:78)
[0000.004604] DEBUG: module: opening module /usr/lib/kmscon/mod-unifont.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.004697] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-unifont.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.004725] DEBUG: module: Date: Oct 8 2013 10:58:35 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.004745] DEBUG: module: GIT: kmscon-7-52-g2d191bd (kmscon_module_open() in src/kmscon_module.c:96)
[0000.004765] DEBUG: module: Hooks: (nil) 0x7f5c636be690 0x7f5c636be680 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.004784] DEBUG: module: loading module /usr/lib/kmscon/mod-unifont.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.004809] DEBUG: font: register font backend unifont (kmscon_font_register() in src/font.c:168)
[0000.004831] DEBUG: module: opening module /usr/lib/kmscon/mod-bbulk.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.004902] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-bbulk.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.004927] DEBUG: module: Date: Oct 8 2013 10:58:37 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.004947] DEBUG: module: GIT: kmscon-7-52-g2d191bd (kmscon_module_open() in src/kmscon_module.c:96)
[0000.004967] DEBUG: module: Hooks: (nil) 0x7f5c634ba3e0 0x7f5c634ba3d0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.004988] DEBUG: module: loading module /usr/lib/kmscon/mod-bbulk.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.005008] DEBUG: text: register text backend bbulk (kmscon_text_register() in src/text.c:78)
[0000.005034] DEBUG: font: register font backend 8x16 (kmscon_font_register() in src/font.c:168)
[0000.005054] DEBUG: text: register text backend bblit (kmscon_text_register() in src/text.c:78)
[0000.005090] DEBUG: eloop: new eloop object 0x1e3adf0 (ev_eloop_new() in src/eloop.c:673)
[0000.005201] DEBUG: scanning for devices... (setup_app() in src/kmscon_main.c:576)
[0000.005227] DEBUG: new seat seat0 (app_seat_new() in src/kmscon_main.c:191)
[0000.005254] DEBUG: parsing seat configuration for seat seat0 (kmscon_conf_load_seat() in src/kmscon_conf.c:681)
[0000.000000] NOTICE: vt: using tty /dev/tty1
[0000.010173] DEBUG: seat: register session 0x1e3eba0 (kmscon_seat_register_session() in src/kmscon_seat.c:946)
[0000.010193] DEBUG: dummy: new dummy object 0x1e72a50 (kmscon_dummy_register() in src/kmscon_dummy.c:143)
[0000.010210] DEBUG: seat: enable session 0x1e3eba0 (kmscon_session_enable() in src/kmscon_seat.c:1104)
[0000.010275] DEBUG: tsm_screen: new screen (tsm_screen_new() in src/tsm_screen.c:471)
[0000.010308] DEBUG: tsm_vte: new vte object (tsm_vte_new() in src/tsm_vte.c:399)
[0000.010336] DEBUG: font: searching for: be: pango nm: Deja Vu Sans Mono for Powerline ppi: 96 pt: 10 b: 0 i: 0 he: 0 wt: 0 (kmscon_font_find() in src/font.c:320)
[0000.010359] DEBUG: font_pango: loading pango font Deja Vu Sans Mono for Powerline (kmscon_font_pango_init() in src/font_pango.c:380)
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: reading configurations from ~/.fonts.conf.d is deprecated.
[0000.042714] DEBUG: font: using: be: pango nm: Deja Vu Sans Mono for Powerline ppi: 96 pt: 12 b: 0 i: 0 he: 17 wt: 8 (kmscon_font_find() in src/font.c:339)
[0000.042895] DEBUG: font: searching for: be: pango nm: Deja Vu Sans Mono for Powerline ppi: 96 pt: 10 b: 1 i: 0 he: 0 wt: 0 (kmscon_font_find() in src/font.c:320)
[0000.043046] DEBUG: font_pango: loading pango font Deja Vu Sans Mono for Powerline (kmscon_font_pango_init() in src/font_pango.c:380)
[0000.047370] DEBUG: font: using: be: pango nm: Deja Vu Sans Mono for Powerline ppi: 96 pt: 12 b: 1 i: 0 he: 17 wt: 8 (kmscon_font_find() in src/font.c:339)
[0000.047582] DEBUG: eloop: new eloop object 0x1ed3680 (ev_eloop_new() in src/eloop.c:673)
[0000.047733] DEBUG: pty: new pty object (kmscon_pty_new() in src/pty.c:97)
[0000.047890] DEBUG: seat: register session 0x1eda930 (kmscon_seat_register_session() in src/kmscon_seat.c:946)
[0000.048040] DEBUG: terminal: new terminal object 0x1e59420 (kmscon_terminal_register() in src/kmscon_terminal.c:675)
[0000.048191] DEBUG: seat: enable session 0x1eda930 (kmscon_session_enable() in src/kmscon_seat.c:1104)
[0000.049340] DEBUG: new input device /dev/input/event8 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.057756] DEBUG: new input device /dev/input/event9 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.065887] DEBUG: new input device /dev/input/event3 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.070783] DEBUG: new input device /dev/input/event4 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.085759] DEBUG: new input device /dev/input/event0 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.095170] DEBUG: new input device /dev/input/event1 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.109751] DEBUG: new video device /dev/dri/card0 on seat seat0 (app_seat_add_video() in src/kmscon_main.c:336)
[0000.109934] INFO: ignoring video device /dev/fb0 on seat seat0 as it is a DRM-fbdev device
[0000.110087] DEBUG: new input device /dev/input/event5 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.117721] DEBUG: new input device /dev/input/event10 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.133700] DEBUG: new input device /dev/input/event11 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.187181] DEBUG: new input device /dev/input/event2 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.201757] DEBUG: new input device /dev/input/event6 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.221785] DEBUG: new input device /dev/input/event7 on seat seat0 (app_monitor_event() in src/kmscon_main.c:458)
[0000.232183] DEBUG: 1 running seats after startup (main() in src/kmscon_main.c:626)
[0000.232199] DEBUG: eloop: run for -1 msecs (ev_eloop_run() in src/eloop.c:924)
[0012.121792] DEBUG: seat: add display 0x1ee20c0 to seat seat0 (seat_add_display() in src/kmscon_seat.c:480)
[0012.225662] DEBUG: text: using: be: bbulk (kmscon_text_new() in src/text.c:171)
[0012.227137] DEBUG: terminal: added display 0x1ee20c0 to terminal 0x1e59420 (add_display() in src/kmscon_terminal.c:331)
[0012.227166] DEBUG: seat: activate session 0x1eda930 (session_call_activate() in src/kmscon_seat.c:120)
[0012.228652] DEBUG: pty: forking child 15373 (pty_spawn() in src/pty.c:403)
[0013.270826] DEBUG: seat: deactivate session 0x1eda930 (session_call_deactivate() in src/kmscon_seat.c:126)
[0020.532854] DEBUG: seat: activate session 0x1eda930 (session_call_activate() in src/kmscon_seat.c:120)
[0020.538973] ERROR: drm_shared: cannot page-flip on DRM-CRTC (22): Invalid argument
[0020.549322] WARNING: terminal: cannot swap display 0x1ee20c0
[0022.477561] DEBUG: seat: deactivate session 0x1eda930 (session_call_deactivate() in src/kmscon_seat.c:126)
[0072.232385] DEBUG: pty: HUP on pty of child 15373 (pty_input() in src/pty.c:501)
[0072.232418] DEBUG: pty: cannot read from pty of child 15373 (5): Input/output error (read_buf() in src/pty.c:459)
[0072.232448] DEBUG: eloop: child 15373 exited successfully (sig_child() in src/eloop.c:353)
[0072.232458] INFO: pty: child exited: pid: 15373 status: 0
[0072.233155] DEBUG: pty: forking child 17963 (pty_spawn() in src/pty.c:403)
[0132.235459] DEBUG: pty: HUP on pty of child 17963 (pty_input() in src/pty.c:501)
[0132.235495] DEBUG: pty: cannot read from pty of child 17963 (5): Input/output error (read_buf() in src/pty.c:459)
[0132.235533] DEBUG: eloop: child 17963 exited successfully (sig_child() in src/eloop.c:353)
[0132.235542] INFO: pty: child exited: pid: 17963 status: 0
[0132.236320] DEBUG: pty: forking child 20422 (pty_spawn() in src/pty.c:403)
[0169.278912] DEBUG: seat: activate session 0x1eda930 (session_call_activate() in src/kmscon_seat.c:120)
[0174.491447] DEBUG: seat: deactivate session 0x1eda930 (session_call_deactivate() in src/kmscon_seat.c:126)
[0175.453339] DEBUG: seat: activate session 0x1eda930 (session_call_activate() in src/kmscon_seat.c:120)
[0175.459012] ERROR: drm_shared: cannot page-flip on DRM-CRTC (22): Invalid argument
[0175.469169] WARNING: terminal: cannot swap display 0x1ee20c0
[0177.851949] DEBUG: seat: deactivate session 0x1eda930 (session_call_deactivate() in src/kmscon_seat.c:126)
[0178.556149] DEBUG: seat: activate session 0x1eda930 (session_call_activate() in src/kmscon_seat.c:120)
[0180.115436] DEBUG: seat: deactivate session 0x1eda930 (session_call_deactivate() in src/kmscon_seat.c:126)
[0218.374120] DEBUG: seat: activate session 0x1eda930 (session_call_activate() in src/kmscon_seat.c:120)
[0218.379763] ERROR: drm_shared: cannot page-flip on DRM-CRTC (22): Invalid argument
[0218.389914] WARNING: terminal: cannot swap display 0x1ee20c0
[0219.411805] DEBUG: seat: deactivate session 0x1eda930 (session_call_deactivate() in src/kmscon_seat.c:126)
I had a look at some Xorg DDXs and they do weird DRM-Master ref-counting which I think is responsible. They keep DRM-Master until all references to it are dropped. The VT layer is just one reference of these. This is actually wrong and weird and breaks a lot of stuff. The initial VT-switch works because kmscon takes quite some time to start up (talking of milliseconds but still..).
So my guess is that some page-flip callbacks or framebuffer refs are still pending during VT switch and only few ms later the ref-count is dropped. Hence, kmscon cannot get DRM-Master fast enough.
I am currently redesigning kmscon (the first revision is always a throw-away, isn't it?) and I will add a retry-timer which should fix that. I will try to backport it to the current kmscon master-branch.
I pushed some fixes to kmscon. Can someone try whether it still happens with kmscon-git?
I just now install latest git version on ArchLinux and I cannot switch from KDE (in my case) to tty on which kmscon was installed. After switching I'm still see KDE desktop in which mouse cursor was hide =( Workaround:
Hummm. That's weird. @vkravets if you're sure you're using kmscon-git, do you mind providing your --debug log?
The same error which is mentioned at the above log.
sudo /usr/bin/kmscon "--vt=tty9" --seats=seat0 --no-switchvt --debug > kmscon_debug.log
Password:
[0000.000000] NOTICE: kmscon Revision kmscon-7-59-gcdd8798 Oct 23 2013 16:55:17
[0000.000045] INFO: conf: reading config file /etc/kmscon/kmscon.conf
[0000.000089] DEBUG: module: loading global modules from /usr/lib/kmscon (kmscon_load_modules() in src/kmscon_module.c:188)
[0000.000131] DEBUG: module: opening module /usr/lib/kmscon/mod-gltex.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.000244] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-gltex.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.000263] DEBUG: module: Date: Oct 23 2013 16:55:23 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.000277] DEBUG: module: GIT: kmscon-7-59-gcdd8798 (kmscon_module_open() in src/kmscon_module.c:96)
[0000.000289] DEBUG: module: Hooks: (nil) 0x7fb5ed738ee0 0x7fb5ed738ed0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.000310] DEBUG: module: loading module /usr/lib/kmscon/mod-gltex.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.000324] DEBUG: text: register text backend gltex (kmscon_text_register() in src/text.c:78)
[0000.000341] DEBUG: module: opening module /usr/lib/kmscon/mod-bbulk.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.000399] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-bbulk.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.000415] DEBUG: module: Date: Oct 23 2013 16:55:23 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.000432] DEBUG: module: GIT: kmscon-7-59-gcdd8798 (kmscon_module_open() in src/kmscon_module.c:96)
[0000.000448] DEBUG: module: Hooks: (nil) 0x7fb5ed5323d0 0x7fb5ed5323c0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.000460] DEBUG: module: loading module /usr/lib/kmscon/mod-bbulk.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.000477] DEBUG: text: register text backend bbulk (kmscon_text_register() in src/text.c:78)
[0000.000490] DEBUG: module: opening module /usr/lib/kmscon/mod-pango.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.002496] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-pango.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.002521] DEBUG: module: Date: Oct 23 2013 16:55:22 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.002534] DEBUG: module: GIT: kmscon-7-59-gcdd8798 (kmscon_module_open() in src/kmscon_module.c:96)
[0000.002556] DEBUG: module: Hooks: (nil) 0x7fb5ed32da00 0x7fb5ed32d9f0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.002570] DEBUG: module: loading module /usr/lib/kmscon/mod-pango.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.002585] DEBUG: font: register font backend pango (kmscon_font_register() in src/font.c:168)
[0000.002603] DEBUG: module: opening module /usr/lib/kmscon/mod-unifont.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.002690] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-unifont.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.002709] DEBUG: module: Date: Oct 23 2013 16:55:22 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.002721] DEBUG: module: GIT: kmscon-7-59-gcdd8798 (kmscon_module_open() in src/kmscon_module.c:96)
[0000.002734] DEBUG: module: Hooks: (nil) 0x7fb5eaf5f6f0 0x7fb5eaf5f6e0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.002746] DEBUG: module: loading module /usr/lib/kmscon/mod-unifont.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.002760] DEBUG: font: register font backend unifont (kmscon_font_register() in src/font.c:168)
[0000.002778] DEBUG: font: register font backend 8x16 (kmscon_font_register() in src/font.c:168)
[0000.002799] DEBUG: text: register text backend bblit (kmscon_text_register() in src/text.c:78)
[0000.002825] DEBUG: eloop: new eloop object 0xb068a0 (ev_eloop_new() in src/eloop.c:673)
[0000.002920] DEBUG: scanning for devices... (setup_app() in src/kmscon_main.c:581)
[0000.002957] DEBUG: new seat seat0 (app_seat_new() in src/kmscon_main.c:191)
[0000.002976] DEBUG: parsing seat configuration for seat seat0 (kmscon_conf_load_seat() in src/kmscon_conf.c:681)
[0000.000000] NOTICE: vt: using tty /dev/tty9
[0000.008335] DEBUG: seat: register session 0xb09fa0 (kmscon_seat_register_session() in src/kmscon_seat.c:987)
[0000.008360] DEBUG: dummy: new dummy object 0xb3e7b0 (kmscon_dummy_register() in src/kmscon_dummy.c:154)
[0000.008373] DEBUG: seat: enable session 0xb09fa0 (kmscon_session_enable() in src/kmscon_seat.c:1145)
[0000.008417] DEBUG: tsm_screen: new screen (tsm_screen_new() in src/tsm_screen.c:471)
[0000.008441] DEBUG: tsm_vte: new vte object (tsm_vte_new() in src/tsm_vte.c:399)
[0000.008459] DEBUG: font: searching for: be: pango nm: monospace ppi: 96 pt: 10 b: 0 i: 0 he: 0 wt: 0 (kmscon_font_find() in src/font.c:320)
[0000.008474] DEBUG: font_pango: loading pango font monospace (kmscon_font_pango_init() in src/font_pango.c:380)
[0000.067742] DEBUG: font: using: be: pango nm: monospace ppi: 96 pt: 12 b: 0 i: 0 he: 17 wt: 8 (kmscon_font_find() in src/font.c:339)
[0000.067778] DEBUG: font: searching for: be: pango nm: monospace ppi: 96 pt: 10 b: 1 i: 0 he: 0 wt: 0 (kmscon_font_find() in src/font.c:320)
[0000.067794] DEBUG: font_pango: loading pango font monospace (kmscon_font_pango_init() in src/font_pango.c:380)
[0000.069338] DEBUG: font: using: be: pango nm: monospace ppi: 96 pt: 12 b: 1 i: 0 he: 17 wt: 8 (kmscon_font_find() in src/font.c:339)
[0000.069377] DEBUG: eloop: new eloop object 0xbb8d50 (ev_eloop_new() in src/eloop.c:673)
[0000.069392] DEBUG: pty: new pty object (kmscon_pty_new() in src/pty.c:97)
[0000.069411] DEBUG: seat: register session 0xbafaa0 (kmscon_seat_register_session() in src/kmscon_seat.c:987)
[0000.069424] DEBUG: terminal: new terminal object 0xb225c0 (kmscon_terminal_register() in src/kmscon_terminal.c:678)
[0000.069451] DEBUG: seat: enable session 0xbafaa0 (kmscon_session_enable() in src/kmscon_seat.c:1145)
[0000.070083] DEBUG: new input device /dev/input/event4 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.101953] DEBUG: new input device /dev/input/event1 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.115649] DEBUG: new input device /dev/input/event2 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.138476] DEBUG: new input device /dev/input/event3 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.168512] DEBUG: new video device /dev/dri/card0 on seat seat0 (app_seat_add_video() in src/kmscon_main.c:341)
[0000.168782] INFO: ignoring video device /dev/fb0 on seat seat0 as it is a DRM-fbdev device
[0000.168922] DEBUG: new input device /dev/input/event7 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.188620] DEBUG: new input device /dev/input/event8 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.220881] DEBUG: new input device /dev/input/event6 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.225265] DEBUG: new input device /dev/input/event9 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.261929] DEBUG: new input device /dev/input/event10 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.301863] DEBUG: new input device /dev/input/event11 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.322140] DEBUG: new input device /dev/input/event12 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.335322] DEBUG: new input device /dev/input/event0 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.355372] DEBUG: new input device /dev/input/event13 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.387016] DEBUG: new input device /dev/input/event5 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.391920] DEBUG: new input device /dev/input/event14 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.415167] DEBUG: 1 running seats after startup (main() in src/kmscon_main.c:631)
[0000.415189] DEBUG: eloop: run for -1 msecs (ev_eloop_run() in src/eloop.c:924)
[0005.342375] DEBUG: seat: add display 0xbc1830 to seat seat0 (seat_add_display() in src/kmscon_seat.c:486)
[0005.361651] DEBUG: text: using: be: bbulk (kmscon_text_new() in src/text.c:171)
[0005.362089] DEBUG: terminal: added display 0xbc1830 to terminal 0xb225c0 (add_display() in src/kmscon_terminal.c:331)
[0005.362117] DEBUG: seat: activate session 0xbafaa0 (session_call_activate() in src/kmscon_seat.c:120)
[0005.362706] DEBUG: pty: forking child 3046 (pty_spawn() in src/pty.c:403)
[0008.145543] DEBUG: seat: deactivate session 0xbafaa0 (session_call_deactivate() in src/kmscon_seat.c:126)
[0013.489438] DEBUG: seat: activate session 0xbafaa0 (session_call_activate() in src/kmscon_seat.c:120)
[0013.491322] ERROR: drm_shared: cannot page-flip on DRM-CRTC (22): Invalid argument
[0013.499472] WARNING: terminal: cannot swap display 0xbc1830
[0016.095490] DEBUG: seat: deactivate session 0xbafaa0 (session_call_deactivate() in src/kmscon_seat.c:126)
[0036.728695] DEBUG: seat: activate session 0xbafaa0 (session_call_activate() in src/kmscon_seat.c:120)
[0036.730036] ERROR: drm_shared: cannot page-flip on DRM-CRTC (22): Invalid argument
[0036.738171] WARNING: terminal: cannot swap display 0xbc1830
[0038.988782] DEBUG: seat: deactivate session 0xbafaa0 (session_call_deactivate() in src/kmscon_seat.c:126)
[0065.395201] DEBUG: pty: HUP on pty of child 3046 (pty_input() in src/pty.c:501)
[0065.395233] DEBUG: pty: cannot read from pty of child 3046 (5): Input/output error (read_buf() in src/pty.c:459)
[0065.395260] DEBUG: eloop: child 3046 exited successfully (sig_child() in src/eloop.c:353)
[0065.395266] INFO: pty: child exited: pid: 3046 status: 0
[0065.395655] DEBUG: pty: forking child 3070 (pty_spawn() in src/pty.c:403)
[0125.397476] DEBUG: pty: HUP on pty of child 3070 (pty_input() in src/pty.c:501)
[0125.397522] DEBUG: pty: cannot read from pty of child 3070 (5): Input/output error (read_buf() in src/pty.c:459)
[0125.397566] DEBUG: eloop: child 3070 exited successfully (sig_child() in src/eloop.c:353)
[0125.397575] INFO: pty: child exited: pid: 3070 status: 0
[0125.398059] DEBUG: pty: forking child 3076 (pty_spawn() in src/pty.c:403)
[0185.400186] DEBUG: pty: HUP on pty of child 3076 (pty_input() in src/pty.c:501)
[0185.400224] DEBUG: pty: cannot read from pty of child 3076 (5): Input/output error (read_buf() in src/pty.c:459)
[0185.400264] DEBUG: eloop: child 3076 exited successfully (sig_child() in src/eloop.c:353)
[0185.400274] INFO: pty: child exited: pid: 3076 status: 0
[0185.400765] DEBUG: pty: forking child 3082 (pty_spawn() in src/pty.c:403)
^C[0189.867631] INFO: terminating due to caught signal 2
[0189.867662] DEBUG: eloop: exiting 0xb068a0 (ev_eloop_exit() in src/eloop.c:964)
[0189.867682] DEBUG: free input device /dev/input/event14 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867696] DEBUG: free input device /dev/input/event5 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867703] DEBUG: free input device /dev/input/event13 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867709] DEBUG: free input device /dev/input/event0 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867737] DEBUG: free input device /dev/input/event12 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867744] DEBUG: free input device /dev/input/event11 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867750] DEBUG: free input device /dev/input/event10 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867756] DEBUG: free input device /dev/input/event9 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867762] DEBUG: free input device /dev/input/event6 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867768] DEBUG: free input device /dev/input/event8 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867778] DEBUG: free input device /dev/input/event7 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.867788] DEBUG: free video device /dev/dri/card0 on seat seat0 (app_seat_remove_video() in src/kmscon_main.c:411)
[0189.867795] DEBUG: seat: remove display 0xbc1830 from seat seat0 (seat_remove_display() in src/kmscon_seat.c:507)
[0189.867803] DEBUG: terminal: removed display 0xbc1830 from terminal 0xb225c0 (rm_display() in src/kmscon_terminal.c:388)
[0189.867810] DEBUG: terminal: destroying terminal screen 0xbd1f80 (free_screen() in src/kmscon_terminal.c:351)
[0189.867817] DEBUG: text: freeing text renderer (kmscon_text_unref() in src/text.c:206)
[0189.871955] DEBUG: free input device /dev/input/event3 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.871966] DEBUG: free input device /dev/input/event2 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.871972] DEBUG: free input device /dev/input/event1 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.871978] DEBUG: free input device /dev/input/event4 on seat seat0 (app_monitor_event() in src/kmscon_main.c:481)
[0189.871984] DEBUG: free seat seat0 (app_seat_free() in src/kmscon_main.c:245)
[0189.871990] DEBUG: seat: unregister session 0xb09fa0 (kmscon_session_unregister() in src/kmscon_seat.c:1039)
[0189.871998] DEBUG: seat: unregister session 0xbafaa0 (kmscon_session_unregister() in src/kmscon_seat.c:1039)
[0189.872005] DEBUG: terminal: free terminal object 0xb225c0 (terminal_destroy() in src/kmscon_terminal.c:508)
[0189.872071] DEBUG: pty: free pty object (kmscon_pty_unref() in src/pty.c:121)
[0189.872103] DEBUG: eloop: free eloop object 0xbb8d50 (ev_eloop_unref() in src/eloop.c:735)
[0189.872137] DEBUG: font: freeing font (kmscon_font_unref() in src/font.c:374)
[0189.872163] DEBUG: font_pango: unloading pango font (kmscon_font_pango_destroy() in src/font_pango.c:396)
[0189.872211] DEBUG: font: freeing font (kmscon_font_unref() in src/font.c:374)
[0189.872237] DEBUG: font_pango: unloading pango font (kmscon_font_pango_destroy() in src/font_pango.c:396)
[0189.872676] DEBUG: tsm_vte: destroying vte object (tsm_vte_unref() in src/tsm_vte.c:427)
[0189.872708] DEBUG: tsm_screen: destroying screen (tsm_screen_unref() in src/tsm_screen.c:507)
[0189.873064] DEBUG: eloop: free eloop object 0xb068a0 (ev_eloop_unref() in src/eloop.c:735)
[0189.873111] DEBUG: text: unregister backend bblit (kmscon_text_unregister() in src/text.c:102)
[0189.873141] DEBUG: font: unregister font backend 8x16 (kmscon_font_unregister() in src/font.c:192)
[0189.873171] DEBUG: module: unloading modules (kmscon_unload_modules() in src/kmscon_module.c:266)
[0189.873200] DEBUG: module: unloading module /usr/lib/kmscon/mod-gltex.so (kmscon_module_unload() in src/kmscon_module.c:173)
[0189.873232] DEBUG: text: unregister backend gltex (kmscon_text_unregister() in src/text.c:102)
[0189.873262] DEBUG: module: closing module /usr/lib/kmscon/mod-gltex.so (kmscon_module_unref() in src/kmscon_module.c:135)
[0189.873347] DEBUG: module: unloading module /usr/lib/kmscon/mod-bbulk.so (kmscon_module_unload() in src/kmscon_module.c:173)
[0189.873377] DEBUG: text: unregister backend bbulk (kmscon_text_unregister() in src/text.c:102)
[0189.873403] DEBUG: module: closing module /usr/lib/kmscon/mod-bbulk.so (kmscon_module_unref() in src/kmscon_module.c:135)
[0189.873455] DEBUG: module: unloading module /usr/lib/kmscon/mod-pango.so (kmscon_module_unload() in src/kmscon_module.c:173)
[0189.873484] DEBUG: font: unregister font backend pango (kmscon_font_unregister() in src/font.c:192)
[0189.873510] DEBUG: module: closing module /usr/lib/kmscon/mod-pango.so (kmscon_module_unref() in src/kmscon_module.c:135)
[0189.873769] DEBUG: module: unloading module /usr/lib/kmscon/mod-unifont.so (kmscon_module_unload() in src/kmscon_module.c:173)
[0189.873805] DEBUG: font: unregister font backend unifont (kmscon_font_unregister() in src/font.c:192)
[0189.873831] DEBUG: module: closing module /usr/lib/kmscon/mod-unifont.so (kmscon_module_unref() in src/kmscon_module.c:135)
[0189.873884] INFO: exiting
Are you by any chance running a non-recent kernel? Something like 3.8 or older?
@dvdhrm nope =(
Could you give kmscon-8 a try? It fixes some logging issues. "--debug" should now correctly give me information whether drmSetMaster() and friends succeed or not. Note that you need libtsm for kmscon-8, please see the release-announcement for more information: http://lists.freedesktop.org/archives/kmscon-devel/2013-October/000045.html
sudo /usr/bin/kmscon "--vt=tty9" --seats=seat0 --no-switchvt --debug > kmscon_debug.log 1 ↵
Password:
[0000.000000] NOTICE: kmscon Revision kmscon-8 Oct 29 2013 12:48:47
[0000.000073] INFO: conf: reading config file /etc/kmscon/kmscon.conf
[0000.000143] DEBUG: module: loading global modules from /usr/lib/kmscon (kmscon_load_modules() in src/kmscon_module.c:188)
[0000.000212] DEBUG: module: opening module /usr/lib/kmscon/mod-gltex.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.000351] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-gltex.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.000383] DEBUG: module: Date: Oct 29 2013 12:48:48 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.000408] DEBUG: module: GIT: kmscon-8 (kmscon_module_open() in src/kmscon_module.c:96)
[0000.000434] DEBUG: module: Hooks: (nil) 0x7f9b65c87ee0 0x7f9b65c87ed0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.000458] DEBUG: module: loading module /usr/lib/kmscon/mod-gltex.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.000482] DEBUG: text: register text backend gltex (kmscon_text_register() in src/text.c:78)
[0000.000513] DEBUG: module: opening module /usr/lib/kmscon/mod-bbulk.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.000613] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-bbulk.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.000641] DEBUG: module: Date: Oct 29 2013 12:48:47 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.000663] DEBUG: module: GIT: kmscon-8 (kmscon_module_open() in src/kmscon_module.c:96)
[0000.000686] DEBUG: module: Hooks: (nil) 0x7f9b65a813d0 0x7f9b65a813c0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.000710] DEBUG: module: loading module /usr/lib/kmscon/mod-bbulk.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.000731] DEBUG: text: register text backend bbulk (kmscon_text_register() in src/text.c:78)
[0000.000758] DEBUG: module: opening module /usr/lib/kmscon/mod-pango.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.003002] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-pango.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.003046] DEBUG: module: Date: Oct 29 2013 12:48:47 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.003073] DEBUG: module: GIT: kmscon-8 (kmscon_module_open() in src/kmscon_module.c:96)
[0000.003094] DEBUG: module: Hooks: (nil) 0x7f9b6587ca10 0x7f9b6587ca00 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.003117] DEBUG: module: loading module /usr/lib/kmscon/mod-pango.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.003143] DEBUG: font: register font backend pango (kmscon_font_register() in src/font.c:168)
[0000.003178] DEBUG: module: opening module /usr/lib/kmscon/mod-unifont.so (kmscon_module_open() in src/kmscon_module.c:53)
[0000.003309] DEBUG: module: Initializing module: /usr/lib/kmscon/mod-unifont.so (kmscon_module_open() in src/kmscon_module.c:83)
[0000.003340] DEBUG: module: Date: Oct 29 2013 12:48:46 (kmscon_module_open() in src/kmscon_module.c:95)
[0000.003362] DEBUG: module: GIT: kmscon-8 (kmscon_module_open() in src/kmscon_module.c:96)
[0000.003388] DEBUG: module: Hooks: (nil) 0x7f9b634ae6f0 0x7f9b634ae6e0 (nil) (kmscon_module_open() in src/kmscon_module.c:101)
[0000.003413] DEBUG: module: loading module /usr/lib/kmscon/mod-unifont.so (kmscon_module_load() in src/kmscon_module.c:154)
[0000.003437] DEBUG: font: register font backend unifont (kmscon_font_register() in src/font.c:168)
[0000.003472] DEBUG: font: register font backend 8x16 (kmscon_font_register() in src/font.c:168)
[0000.003496] DEBUG: text: register text backend bblit (kmscon_text_register() in src/text.c:78)
[0000.003531] DEBUG: eloop: new eloop object 0xd62d50 (ev_eloop_new() in src/eloop.c:673)
[0000.003579] INFO: systemd: system booted with systemd, enabling multi-seat support
[0000.003681] DEBUG: scanning for devices... (setup_app() in src/kmscon_main.c:581)
[0000.003738] DEBUG: new seat seat0 (app_seat_new() in src/kmscon_main.c:191)
[0000.003772] DEBUG: parsing seat configuration for seat seat0 (kmscon_conf_load_seat() in src/kmscon_conf.c:672)
[0000.009477] DEBUG: input_uxkb: new keyboard description (acer_laptop, us,ru, , grp:ctrl_shift_toggle,numpad:microsoft,ctrl:nocaps) (uxkb_desc_init() in src/uterm_input_uxkb.c:98)
[0000.009523] DEBUG: input: new object 0xd65850 (uterm_input_new() in src/uterm_input.c:263)
[0000.009560] DEBUG: vt: open vt 0xd9b810 (real_open() in src/uterm_vt.c:312)
[0000.009582] NOTICE: vt: using tty /dev/tty9
[0000.009801] DEBUG: vt: new tty ID is 9 (open_tty() in src/uterm_vt.c:299)
[0000.009841] DEBUG: vt: previous VT KBMODE was 3 (real_open() in src/uterm_vt.c:358)
[0000.009872] DEBUG: seat: register session 0xd66d90 (kmscon_seat_register_session() in src/kmscon_seat.c:978)
[0000.009897] DEBUG: dummy: new dummy object 0xd9afb0 (kmscon_dummy_register() in src/kmscon_dummy.c:154)
[0000.009919] DEBUG: seat: enable session 0xd66d90 (kmscon_session_enable() in src/kmscon_seat.c:1136)
[0000.010043] DEBUG: tsm_screen: new screen (tsm_screen_new() in src/tsm_screen.c:573)
[0000.010092] DEBUG: tsm_vte: new vte object (tsm_vte_new() in src/tsm_vte.c:399)
[0000.010133] DEBUG: font: searching for: be: pango nm: monospace ppi: 96 pt: 10 b: 0 i: 0 he: 0 wt: 0 (kmscon_font_find() in src/font.c:320)
[0000.010161] DEBUG: font_pango: loading pango font monospace (kmscon_font_pango_init() in src/font_pango.c:380)
[0000.020450] DEBUG: font: using: be: pango nm: monospace ppi: 96 pt: 12 b: 0 i: 0 he: 17 wt: 8 (kmscon_font_find() in src/font.c:339)
[0000.020497] DEBUG: font: searching for: be: pango nm: monospace ppi: 96 pt: 10 b: 1 i: 0 he: 0 wt: 0 (kmscon_font_find() in src/font.c:320)
[0000.020522] DEBUG: font_pango: loading pango font monospace (kmscon_font_pango_init() in src/font_pango.c:380)
[0000.023076] DEBUG: font: using: be: pango nm: monospace ppi: 96 pt: 12 b: 1 i: 0 he: 17 wt: 8 (kmscon_font_find() in src/font.c:339)
[0000.023133] DEBUG: eloop: new eloop object 0xe1df40 (ev_eloop_new() in src/eloop.c:673)
[0000.023156] DEBUG: pty: new pty object (kmscon_pty_new() in src/pty.c:97)
[0000.023196] DEBUG: seat: register session 0xe17f40 (kmscon_seat_register_session() in src/kmscon_seat.c:978)
[0000.023218] DEBUG: terminal: new terminal object 0xd99110 (kmscon_terminal_register() in src/kmscon_terminal.c:677)
[0000.023239] DEBUG: seat: enable session 0xe17f40 (kmscon_session_enable() in src/kmscon_seat.c:1136)
[0000.023260] DEBUG: monitor: new seat seat0 (monitor_new_seat() in src/uterm_monitor.c:313)
[0000.024096] DEBUG: new input device /dev/input/event4 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.042374] DEBUG: input: ignoring non-useful device /dev/input/event4 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.042400] DEBUG: monitor: new device /dev/input/event4 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.042609] DEBUG: new input device /dev/input/event1 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.069072] DEBUG: input: ignoring non-useful device /dev/input/event1 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.069098] DEBUG: monitor: new device /dev/input/event1 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.069297] DEBUG: new input device /dev/input/event2 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.075776] DEBUG: input: ignoring non-useful device /dev/input/event2 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.075803] DEBUG: monitor: new device /dev/input/event2 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.076056] DEBUG: new input device /dev/input/event3 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.089344] DEBUG: input: ignoring non-useful device /dev/input/event3 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.089367] DEBUG: monitor: new device /dev/input/event3 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.089522] DEBUG: monitor: DRM device /dev/dri/card0 is primary PCI GPU (is_drm_primary() in src/uterm_monitor.c:461)
[0000.089532] DEBUG: monitor: DRM device /dev/dri/card0 uses driver i915 (is_drm_usb() in src/uterm_monitor.c:535)
[0000.089541] DEBUG: new video device /dev/dri/card0 on seat seat0 (app_seat_add_video() in src/kmscon_main.c:341)
[0000.089554] INFO: drm_shared: new drm device via /dev/dri/card0
[0000.089573] DEBUG: video_drm2d: initialize 2D layer on 0xe279b0 (video_init() in src/uterm_drm2d_video.c:331)
[0000.089582] INFO: video: new device 0xe279b0
[0000.089586] DEBUG: monitor: new device /dev/dri/card0 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.089693] DEBUG: monitor: adding non-seat'ed device /sys/devices/pci0000:00/0000:00:02.0/drm/controlD64 (monitor_udev_add() in src/uterm_monitor.c:595)
[0000.089746] INFO: ignoring video device /dev/fb0 on seat seat0 as it is a DRM-fbdev device
[0000.089752] DEBUG: monitor: new device /dev/fb0 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.089884] DEBUG: new input device /dev/input/event6 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.104740] DEBUG: input: ignoring non-useful device /dev/input/event6 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.104761] DEBUG: monitor: new device /dev/input/event6 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.104998] DEBUG: new input device /dev/input/event7 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.145018] DEBUG: input: ignoring non-useful device /dev/input/event7 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.145084] DEBUG: monitor: new device /dev/input/event7 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.145362] DEBUG: new input device /dev/input/event10 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.152409] DEBUG: input: ignoring non-useful device /dev/input/event10 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.152447] DEBUG: monitor: new device /dev/input/event10 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.152681] DEBUG: new input device /dev/input/event8 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.172472] DEBUG: input: ignoring non-useful device /dev/input/event8 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.172498] DEBUG: monitor: new device /dev/input/event8 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.172697] DEBUG: new input device /dev/input/event9 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.200272] DEBUG: input: ignoring non-useful device /dev/input/event9 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.200309] DEBUG: monitor: new device /dev/input/event9 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.200738] DEBUG: new input device /dev/input/event0 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.222098] DEBUG: input: new device /dev/input/event0 (input_new_dev() in src/uterm_input.c:185)
[0000.222121] DEBUG: monitor: new device /dev/input/event0 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.222383] DEBUG: new input device /dev/input/event11 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.249137] DEBUG: input: ignoring non-useful device /dev/input/event11 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.249164] DEBUG: monitor: new device /dev/input/event11 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.249282] DEBUG: monitor: adding unsupported input dev /sys/devices/platform/i8042/serio1/input/input13/mouse0 (monitor_udev_add() in src/uterm_monitor.c:622)
[0000.249665] DEBUG: new input device /dev/input/event5 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.278809] DEBUG: input: ignoring non-useful device /dev/input/event5 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.278836] DEBUG: monitor: new device /dev/input/event5 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.279091] DEBUG: new input device /dev/input/event12 on seat seat0 (app_monitor_event() in src/kmscon_main.c:463)
[0000.322359] DEBUG: input: ignoring non-useful device /dev/input/event12 (uterm_input_add_dev() in src/uterm_input.c:370)
[0000.322380] DEBUG: monitor: new device /dev/input/event12 on seat0 (seat_new_dev() in src/uterm_monitor.c:230)
[0000.322455] DEBUG: monitor: adding unsupported input dev /sys/devices/virtual/input/input14/js0 (monitor_udev_add() in src/uterm_monitor.c:622)
[0000.322486] DEBUG: monitor: adding unsupported input dev /sys/devices/virtual/input/mice (monitor_udev_add() in src/uterm_monitor.c:622)
[0000.322497] DEBUG: 1 running seats after startup (main() in src/kmscon_main.c:631)
[0000.322502] DEBUG: eloop: run for -1 msecs (ev_eloop_run() in src/eloop.c:924)
[0009.109348] DEBUG: input: wakeing up (uterm_input_wake_up() in src/uterm_input.c:456)
[0009.109466] DEBUG: vt: enter VT 9 0xd9b810 due to VT signal (real_sig_enter() in src/uterm_vt.c:209)
[0009.109499] DEBUG: video: wake up (uterm_video_wake_up() in src/uterm_video.c:680)
[0009.109584] INFO: video: new display 0xe18dc0
[0009.109643] INFO: drm_shared: display 0xe18dc0 DPMS is ON
[0009.109659] DEBUG: seat: add display 0xe18dc0 to seat seat0 (seat_add_display() in src/kmscon_seat.c:485)
[0009.111135] INFO: video_drm2d: activating display 0xe18dc0 to 1366x768
[0009.142344] INFO: drm_shared: setting DPMS of display 0xe18dc0 to ON
[0009.142408] DEBUG: text: using: be: bbulk (kmscon_text_new() in src/text.c:171)
[0009.142837] DEBUG: terminal: added display 0xe18dc0 to terminal 0xd99110 (add_display() in src/kmscon_terminal.c:333)
[0009.142879] DEBUG: seat: activate session 0xe17f40 (session_call_activate() in src/kmscon_seat.c:119)
[0009.143496] DEBUG: pty: forking child 26489 (pty_spawn() in src/pty.c:403)
[0011.770847] DEBUG: vt: deactivating VT 9 to 8 due to user input (real_input() in src/uterm_vt.c:577)
[0011.770980] DEBUG: vt: leaving VT 9 0xd9b810 due to VT signal (real_sig_leave() in src/uterm_vt.c:230)
[0011.771005] DEBUG: seat: deactivate session 0xe17f40 (session_call_deactivate() in src/kmscon_seat.c:125)
[0011.771015] DEBUG: video: go asleep (uterm_video_sleep() in src/uterm_video.c:663)
[0011.771032] DEBUG: input: going to sleep (uterm_input_sleep() in src/uterm_input.c:432)
[0014.713892] DEBUG: input: wakeing up (uterm_input_wake_up() in src/uterm_input.c:456)
[0014.713945] DEBUG: vt: enter VT 9 0xd9b810 due to VT signal (real_sig_enter() in src/uterm_vt.c:209)
[0014.713960] DEBUG: video: wake up (uterm_video_wake_up() in src/uterm_video.c:680)
[0014.714649] DEBUG: seat: activate session 0xe17f40 (session_call_activate() in src/kmscon_seat.c:119)
[0014.725817] ERROR: drm_shared: cannot page-flip on DRM-CRTC (22): Invalid argument
[0014.725851] WARNING: terminal: cannot swap display 0xe18dc0
[0017.362921] DEBUG: vt: deactivating VT 9 to 7 due to user input (real_input() in src/uterm_vt.c:577)
[0017.363005] DEBUG: vt: leaving VT 9 0xd9b810 due to VT signal (real_sig_leave() in src/uterm_vt.c:230)
[0017.363034] DEBUG: seat: deactivate session 0xe17f40 (session_call_deactivate() in src/kmscon_seat.c:125)
[0017.363044] DEBUG: video: go asleep (uterm_video_sleep() in src/uterm_video.c:663)
[0017.363060] DEBUG: input: going to sleep (uterm_input_sleep() in src/uterm_input.c:432)
I pushed two fixes to kmscon-git, fingers crossed
Check it just now - it's seems everything is working well... =)
Oh man, that took some doing. Thanks for your patience! Will close this bug if nothing comes up in the next few days.
When I switch from Gnome to a tty containing kmscon the kmscon looks glitched like this: http://oi41.tinypic.com/2drv40k.jpg
If I switch to a linux console, then to kmscon, the glitch goes away.
I tried passing the --hwaccel (with and without --drm) argument, but kmscon crashes. I'll try to get some debug output, but when I run kmscon directly from a linux console (not from systemd) then it freezes the whole system (possibly just the display, but I can't see what I'm doing, so I have to restart). Let me try to get some output from journalctl.
Any idea why this happens?