From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4ADA01A0018 for ; Tue, 2 Jun 2015 21:17:47 +1000 (AEST) Received: by wibdq8 with SMTP id dq8so55595771wib.1 for ; Tue, 02 Jun 2015 04:17:42 -0700 (PDT) MIME-Version: 1.0 Sender: dinarv@gmail.com In-Reply-To: <20150602131227.3054b8a3@thh440s> References: <1432906201-25009-1-git-send-email-k0da@opensuse.org> <87iob6jvau.fsf@linux.vnet.ibm.com> <87fv6ajtd1.fsf@linux.vnet.ibm.com> <20150602131227.3054b8a3@thh440s> From: Dinar Valeev Date: Tue, 2 Jun 2015 13:17:22 +0200 Message-ID: Subject: Re: [PATCH] Fix function keys sequence on USB To: Thomas Huth Cc: Nikunj A Dadhania , Dinar Valeev , linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset=UTF-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jun 2, 2015 at 1:12 PM, Thomas Huth wrote: > On Tue, 2 Jun 2015 12:43:16 +0200 > Dinar Valeev wrote: > >> On Tue, Jun 2, 2015 at 12:29 PM, Nikunj A Dadhania >> wrote: >> > Dinar Valeev writes: >> > >> >> On Tue, Jun 2, 2015 at 11:47 AM, Nikunj A Dadhania >> >> wrote: >> >>> Dinar valeev writes: > ... >> >>>> @@ -290,36 +286,34 @@ static void check_key_code(uint8_t *buf) >> >>>> case 0x49: >> >>>> write_key(0x1b); /* INS */ >> >>>> write_key(0x5b); >> >>>> - write_key(0x31); >> >>>> + write_key(0x32); >> >>>> write_key(0x7e); >> >>>> break; >> >>>> >> >>>> case 0x4a: >> >>>> write_key(0x1b); /* HOME */ >> >>>> write_key(0x5b); >> >>>> - write_key(0x32); >> >>>> - write_key(0x7e); >> >>>> + write_key(0x48); >> >>> >> >>> Looking at accept.fs - handle-ESC-5b ... >> >>> >> >>> : handle-ESC-5b >> >>> key >> >>> dup 31 = IF \ HOME >> >>> key drop ( drops closing 7e ) handle-^A >> >>> ELSE >> >>> dup 33 = IF \ DEL >> >>> key drop handle-^D >> >>> ELSE >> >>> dup 34 = IF \ END >> >>> key drop handle-^E >> >>> ELSE >> >>> dup 1f and handle-CSI >> >>> THEN >> >>> THEN >> >>> THEN drop >> >>> ; >> >>> >> >>> >> >>> ... following change is sufficient: >> >>> - write_key(0x32); >> >>> + write_key(0x31); >> >>> >> >> Home sequence for me is: ^[[H >> > >> > Can you check the above change in your setup ? >> That works as well. > > Not sure, but IIRC some of these key codes depend on the keyboard > layout that you are using. What keyboard layout (i.e. language) do > you use? en_us, but note that "End" issue was found by running qemu as part of openQA (plain qemu). This is how we test distribution. We're sending keyboard,mouse commands over ui/vnc. > > Thomas