[regression] libvgl and r197330 (kbd)

From: Anonymous <swell.k_at_gmail.com>
Date: Fri, 25 Sep 2009 10:08:32 +0400
Ed Schouten <ed_at_FreeBSD.org> writes:

> Author: ed
> Date: Sat Sep 19 17:56:26 2009
> New Revision: 197330
> URL: http://svn.freebsd.org/changeset/base/197330
>
> Log:
>   Make the keyboard layer Unicode aware.
>   
>   Just take keyent_t to use an u_int to store the Unicode codepoints.
>   Unfortunately the keymap is now too big to be loaded using an ioctl
>   argument, so change the ioctl to pick a pointer.
>   
>   This change breaks kbdcontrol ABI. It doesn't break X11, because X11
>   doesn't do anything with syscons keymaps. It just switches the device
>   out of K_XLATE.
>   
>   Obtained from:	//depot/user/ed/newcons/...
>
> Modified:
>   head/sys/dev/kbd/kbd.c
>   head/sys/sys/kbio.h
>   head/usr.sbin/kbdcontrol/kbdcontrol.c
>   head/usr.sbin/kbdcontrol/kbdmap.5

I'm no longer able to play video files on console with this commit.

It usually shows following

    $ sudo SDL_VIDEODRIVER=vgl mplayer -vo sdl -nofs -v ...
      CPLAYER: MPlayer SVN-r29714-4.5.0 (C) 2000-2009 MPlayer Team
      CPLAYER: Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV
    [...]
     VIDEOOUT: [VO_SDL] Using driver: vgl.
     VIDEOOUT: X11 opening display:
     VIDEOOUT: vo: couldn't open the X11 display ()!
    [...]
      CPLAYER: VO: [sdl] 720x480 => 854x480 Planar YV12
     VIDEOOUT: SDL: Using 0x32315659 (Planar YV12) image format
     VIDEOOUT: SDL: using hardware-surface
     VIDEOOUT: SDL: setting zoomed fullscreen with modeswitching
     VIDEOOUT: SDL Mode: 0:  1600 x 1200
     VIDEOOUT: SDL Mode: 1:  1280 x 1024
     VIDEOOUT: SDL Mode: 2:  1024 x 768
     VIDEOOUT: SDL Mode: 3:  800 x 600
     VIDEOOUT: SDL Mode: 4:  640 x 400
     VIDEOOUT: SDL Mode: 5:  640 x 480
     VIDEOOUT: SDL Mode: 6:  320 x 240
     VIDEOOUT: SDL Mode: 7:  320 x 400
     VIDEOOUT: SDL Mode: 8:  320 x 200
     VIDEOOUT: SET SDL Mode: 2:  1024 x 768

But after r197330 I get
    [...]
     VIDEOOUT: [VO_SDL] SDL initialization failed: Unable to initialize keymap.
      CPLAYER: Error opening/initializing the selected video_out (-vo) device.
    [...]
      CPLAYER: Video: no video

This is /head_at_197478M amd64. Inital mode is 0x102 (800x600x4 4).
I'm using custom keymap (based on dvorak). However, keyboard never
worked correctly for me in vgl way before x86emu and up to this commit.
So, it was really tricky to quit sdl apps with messed up keymap.
Received on Fri Sep 25 2009 - 04:10:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC