From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D9E7B13829C for ; Wed, 1 Jun 2016 00:17:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0307A1427A; Wed, 1 Jun 2016 00:17:14 +0000 (UTC) Received: from mail-pf0-f174.google.com (mail-pf0-f174.google.com [209.85.192.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C166514268 for ; Wed, 1 Jun 2016 00:17:12 +0000 (UTC) Received: by mail-pf0-f174.google.com with SMTP id b124so2605129pfb.0 for ; Tue, 31 May 2016 17:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=lmiP5ZlrUJsCbmx3VaaRRanIeErx/UeIOZThGNWRDEo=; b=LXxIm898m8HNj3D5lMrNH2w2F/v2K6I3ilrmLwvqdYf5Lz/7GyXvQuuD/9L1VlTUzd DKkXLkvPa7AQChoS5XeH00QneOkbL69Z4sUCOn2kRgEDGSGyrHQSPNFCDdQcsM1O1j3h hj9J7Rko4ASxKfH/dNjxaO+V4wG8dyllgNcUQVm+B9mzUxnqs/Qf7cjK8tmP0Nyemcny OiQ9BH2uvXtZTJciQmQXQPV1sTx9+z5Of1vNwPCHlv0CmA4dreGEwbVuxzP/Tjl9Pom/ kKIPOTYic/Jy1Z7KpzUub/zYjWaf1ifqASH7HyDxKYWXKl2TFORTIR6VqJ/RkT75nyBZ mmfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=lmiP5ZlrUJsCbmx3VaaRRanIeErx/UeIOZThGNWRDEo=; b=M07aVExXmumL2t/3ls/8e1y59rh+4wpgmTzWTfTIZ5Io99L4VSvQI0tlN2MBh2imZM dBGMRPMOwSMYogVISn2R/lHFguLTpb2IdigNpuhABC+pBgQXYLfb+zZPxtsE/bQxPbaU rdxXBdxiHcVqtjOIOIu49H7UmMxj6FCVD0QBh9BHtR+d3SMV8nQmhlwwAQFyL7q5GAL3 hNMvJi5mx8JF8x5n5nJF8tkQ9bjd1PJzvygX/nQEbAn9q2+myZcr2qhBEP1YgifuCj5X F51uqPmbkCHPp9Mb3lSLzkTo+UJ4YAzUzvPZQN2mbL2ZAR9pILnWEQl03hzH2SRmfuVu lxAg== X-Gm-Message-State: ALyK8tKldok90iaW3YvrrieaIVMr4XQPWLzR0kSUN9qRoXIkFdZ4LWwzIiXd2jtZLAn0pA== X-Received: by 10.98.66.86 with SMTP id p83mr1869059pfa.25.1464740231601; Tue, 31 May 2016 17:17:11 -0700 (PDT) Received: from [192.168.247.60] (76-10-184-216.dsl.teksavvy.com. [76.10.184.216]) by smtp.googlemail.com with ESMTPSA id a62sm42924777pfj.29.2016.05.31.17.17.09 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 May 2016 17:17:09 -0700 (PDT) Subject: [gentoo-user] Re: xbmc-13 upgrade to kodi-14 - no physical keyboard input References: <574C97A6.9010405@gmail.com> To: gentoo-user@lists.gentoo.org From: Daniel Frey Message-ID: <574E2985.8030109@gmail.com> Date: Tue, 31 May 2016 17:17:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <574C97A6.9010405@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 90250f62-7881-4cab-81ef-e2fdd68ec2ab X-Archives-Hash: 1128be8961fd7eac7b2abe67e8870c4e On 05/30/2016 12:42 PM, Daniel Frey wrote: > I finally got around to upgrading all my frontends to kodi-14, and none > of them have any usb keyboard input. I have a physical keyboard plugged > in and it doesn't respond to keypresses. I managed to figure this out. All of my frontends start mythfrontend and I'd created a menu entry for xbmc/kodi in mythfrontend itself, so I could start it when needed. Kodi dropped sdl support[1] and so now when it is started in this manner X doesn't focus the newly-created kodi window. If you boot directly into kodi apparently this issue doesn't happen. To get around this, I modified my kodi startup script that mythfrontend uses: #!/bin/bash /usr/bin/kodi & sleep 3 DISPLAY=:0 xdotool windowfocus `xwininfo -display :0 -name "Kodi" | grep "Window id:" | cut -d\ -f4` So the script starts kodi, detaches it, waits a couple seconds for it to start up, then queries X for it's window ID and forces focus to it. Works now. Dan