From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 18 13:51:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 744591065684 for ; Mon, 18 Aug 2008 13:51:32 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from mother.ludd.ltu.se (mother.ludd.ltu.se [130.240.16.3]) by mx1.freebsd.org (Postfix) with ESMTP id 183DE8FC56 for ; Mon, 18 Aug 2008 13:51:31 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from brother.ludd.ltu.se (root@brother.ludd.ltu.se [130.240.16.78]) by mother.ludd.ltu.se (8.13.6+Sun/8.12.10) with ESMTP id m7IDpSQh003275 for ; Mon, 18 Aug 2008 15:51:28 +0200 (MEST) Received: from brother.ludd.ltu.se (pb@localhost [127.0.0.1]) by brother.ludd.ltu.se (8.13.6+Sun/8.12.2) with ESMTP id m7IDpSE2020632 for ; Mon, 18 Aug 2008 15:51:28 +0200 (MEST) Received: (from pb@localhost) by brother.ludd.ltu.se (8.13.6+Sun/8.13.6/Submit) id m7IDpSZr020630 for freebsd-hackers@freebsd.org; Mon, 18 Aug 2008 15:51:28 +0200 (MEST) From: Peter B Message-Id: <200808181351.m7IDpSZr020630@brother.ludd.ltu.se> To: freebsd-hackers@freebsd.org Date: Mon, 18 Aug 2008 15:51:28 +0200 (MEST) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 18 Aug 2008 15:25:17 +0000 Subject: Keyboard map for asus-eee900-linux X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2008 13:51:34 -0000 Here's a new console + X11 keymap for FreeBSD on Asus Eee 900 linux netbook: It should work for all asus eee models with Swedish, Danish, Norwegian, Finnish or Icelandic keyboard. In particular this fixes the '|' character. (Asus Eee Nordic SE-DK-NW-FI-IS 80-keys) kbdcontrol -l asus_eee_nordic.kbd Console keyboard map diff: diff -ru /usr/share/syscons/keymaps/swedish.iso.kbd asus_eee_nordic.kbd --- /usr/share/syscons/keymaps/swedish.iso.kbd 2008-02-24 18:52:28.000000000 +0100 +++ asus_eee_nordic.kbd 2008-08-18 13:27:32.000000000 +0200 @@ -1,4 +1,4 @@ -# $FreeBSD: src/share/syscons/keymaps/swedish.iso.kbd,v 1.17 2001/03/11 23:41:19 ache Exp $ +# $FreeBSD: src/share/syscons/keymaps/nordic_eee900.kbd,v 1.0 2008/08/16 16:49:24 pb Exp $ # alt # scan cntrl alt alt cntrl lock # code base shift cntrl shift alt shift cntrl shift state @@ -11,24 +11,24 @@ 005 '4' 164 nop nop '$' nop nop nop O 006 '5' '%' nop nop nop nop nop nop O 007 '6' '&' nop nop nop nop nop nop O - 008 '7' '/' nop nop '{' nop nop nop O + 008 '7' '/' nop nop '{' '÷' nop nop O 009 '8' '(' nop nop '[' nop nop nop O 010 '9' ')' nop nop ']' nop gs nop O 011 '0' '=' nop nop '}' nop nop nop O 012 '+' '?' nop nop '\' nop fs nop O - 013 128 '`' nop nop nop nop nop nop O + 013 128 '`' nop nop 39 '|' nop nop O 014 bs bs del del bs bs del del O 015 ht btab nop nop ht btab nop nop O 016 'q' 'Q' dc1 dc1 'q' 'Q' dc1 dc1 C 017 'w' 'W' etb etb 'w' 'W' etb etb C 018 'e' 'E' enq enq 164 'E' enq enq C - 019 'r' 'R' dc2 dc2 'r' 'R' dc2 dc2 C + 019 'r' 'R' dc2 dc2 '®' 'R' dc2 dc2 C 020 't' 'T' dc4 dc4 't' 'T' dc4 dc4 C 021 'y' 'Y' em em 'y' 'Y' em em C - 022 'u' 'U' nak nak 'u' 'U' nak nak C + 022 'u' 'U' nak nak 'µ' 'ü' nak nak C 023 'i' 'I' ht ht 'i' 'I' ht ht C 024 'o' 'O' si si 'o' 'O' si si C - 025 'p' 'P' dle dle 'p' 'P' dle dle C + 025 'p' 'P' dle dle '¶' 'P' dle dle C 026 229 197 nop nop '}' ']' nop nop C 027 168 '^' nop nop '~' nop nop nop O 028 cr cr nl nl cr cr nl nl O @@ -47,15 +47,15 @@ 041 167 189 nop nop '\' '|' nop nop O 042 lshift lshift lshift lshift lshift lshift lshift lshift O 043 ''' '*' nop nop nop nop nop nop O - 044 'z' 'Z' sub sub 'z' 'Z' sub sub C + 044 'z' 'Z' sub sub '|' 'Z' sub sub C 045 'x' 'X' can can 'x' 'X' can can C 046 'c' 'C' etx etx 'c' 'C' etx etx C 047 'v' 'V' syn syn 'v' 'V' syn syn C - 048 'b' 'B' stx stx 'b' 'B' stx stx C + 048 'b' 'B' stx 'ß' 'b' 'B' stx stx C 049 'n' 'N' so so 'n' 'N' so so C - 050 'm' 'M' cr cr 'm' 'M' cr cr C - 051 ',' ';' nop nop nop '<' nop nop O - 052 '.' ':' nop nop nop '>' nop nop O + 050 'm' 'M' cr cr 181 'M' cr cr C + 051 ',' ';' nop nop '<' '<' nop nop O + 052 '.' ':' nop nop '>' '>' nop nop O 053 '-' '_' us nop '/' '?' nop nop O 054 rshift rshift rshift rshift rshift rshift rshift rshift O 055 '*' '*' '*' '*' '*' '*' '*' '*' O Console keyboard map as bzip -9z uuencode: begin 644 asus_eee_nordic.kbd.bz2 M0EIH.3%!62936="%76T`!_'_FO$P"`!_______________\``0,```"`A&`' M'W@GO,NK3PCO"&]D:T`!*BD:`'J:-``&0>FIZ$`!H````'IM3"GB8H--(&U( M35/0@:F(P$8"8F`1@`!&1II@$P`&D>4J>0FT(-```````````````DU2A/4W MHF%$-$9&"&FF`$8!!@!&30P1B9&"#@`&@T-!H`-,@T,@::```R`#(#(`"))! M&FE'@*:AH``&@&@````&@R-`&33$0!#M_!Z8!XZD8I&+`3IHQ9`#%[WZ^?20 M@2$_;:)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initrc (Should be done in another way. I just didn't get it to load the intended way) X11 keyboard xmodmap (~/.xmodmaprc): # Z | xmodmap -e "keycode 0x34 = z Z guillemotleft less 0x7C less" # `|` xmodmap -e "keycode 0x15 = dead_acute dead_grave plusminus notsign bar notsign" # § 1/2 xmodmap -e "keycode 0x31 = section onehalf paragraph threequarters paragraph threequarters" # B ß xmodmap -e "keycode 0x38 = b B rightdoublequotemark rightsinglequotemark 223 rightsinglequotemark" # I ¶ xmodmap -e "keycode 0x1F = i I rightarrow idotless 182 idotless" So far I got ethernet(ae), wlan(ath), graphics (Xorg), sound (hda), raw cardreader (da), keyboard, and acpi battery status to work. Todo: camera, 3G-internet.