Return-Path: MIME-Version: 1.0 In-Reply-To: <1244589738.5973.1954.camel@cookie.hadess.net> References: <1244384236.30768.5690.camel@cookie.hadess.net> <1244589738.5973.1954.camel@cookie.hadess.net> From: Dmitriy Geels Date: Wed, 10 Jun 2009 11:14:57 +0400 Message-ID: <78f5d6bf0906100014r5b7f5c14p4544ef13442c8f0b@mail.gmail.com> Subject: Re: Apple Bluetooth devices: Battery level? To: Bastien Nocera Cc: Jiri Kosina , linux-bluetooth@vger.kernel.org, linux-input Content-Type: text/plain; charset=UTF-8 Sender: linux-input-owner@vger.kernel.org List-ID: Hi! Kernel rebuilding is pretty easy, for ubuntu/debian it would be: - sudo apt-get install linux-source build-essential - tar xf /usr/src/linux-source* - cd linux-source-`uname -r` - cp /boot/config-`uname -r` .config - make menuconfig (find and enable HID_DEBUG) - make bzImage modules deb-pkg Then after some time you will get deb package, which you need to install and then run: - sudo update-initramfs -c -k 'new kernel version' - sudo update-grub Then you can reboot into new kernel and use "echo 2 > /sys/modules/hid/parameters/debug" instead of debug module parameter. 2009/6/10 Bastien Nocera : > I found that for pretty much all the input problems, I'd need to do > something like that. Problem is: > - enabling CONFIG_HID_DEBUG requires rebuilding the kernel > - most distributions build hid into the kernel > > Wouldn't there be a way to enable the debug at run-time without > impacting too much on performance or binary size?