From owner-freebsd-current@FreeBSD.ORG Fri Sep 25 06:10:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8507B1065670; Fri, 25 Sep 2009 06:10:08 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id DD7418FC14; Fri, 25 Sep 2009 06:10:07 +0000 (UTC) Received: by ewy5 with SMTP id 5so634251ewy.36 for ; Thu, 24 Sep 2009 23:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=ZZ7Wn4emx9HQSsNpg837W2uvsunsPEYUrn8lc3g6Yu8=; b=UpZ+H5FMd+akPvt1s0SFNS/oT5sGsh4nhPL+pzyWXbFGTeo4p5wD4XDKuVIlvQOT1I 8LbLQJqL3V5V1HLmVgwccp+6+rUU6H9v1V/VOD5NTadFehj/9N+2oTZ6oE4j7eAdl0ap yZrhXYzeFmBiUWvhMbRvCwQ8Hg+jSfZSyQjjw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=c9KnUKOdY/YvH03zbp3gsHNK5cf0KnfyTVnfOunC+OxKodFTuedAhlmSP/vm0jg7Vc ynUSgQBL708Nf7OzPnOxj3XVsHtUz1QC0edDGBRl8Dgs+XkPcFx3ZS0bT2P2zVeoVirC 4KoYKoQROcYEWpdk5EJZ+F4oShcsu+GaS4tZU= Received: by 10.211.142.17 with SMTP id u17mr5123444ebn.0.1253859006808; Thu, 24 Sep 2009 23:10:06 -0700 (PDT) Received: from localhost (95-24-211-3.broadband.corbina.ru [95.24.211.3]) by mx.google.com with ESMTPS id 10sm1324949eyz.34.2009.09.24.23.10.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Sep 2009 23:10:05 -0700 (PDT) From: Anonymous To: Ed Schouten References: <200909191756.n8JHuQCq031719@svn.freebsd.org> Date: Fri, 25 Sep 2009 10:08:32 +0400 In-Reply-To: <200909191756.n8JHuQCq031719@svn.freebsd.org> (Ed Schouten's message of "Sat, 19 Sep 2009 17:56:26 +0000 (UTC)") Message-ID: <86zl8jften.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org Subject: [regression] libvgl and r197330 (kbd) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2009 06:10:08 -0000 Ed Schouten 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@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.