Return-Path: Message-ID: <45DC5C3C.4070002@odi.ch> Date: Wed, 21 Feb 2007 15:50:36 +0100 From: =?ISO-8859-1?Q?Ortwin_Gl=FCck?= MIME-Version: 1.0 To: bluez-devel@lists.sourceforge.net Subject: [Bluez-devel] boot vs. report protocol Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi, In net/bluetooth/core.c there is: if (session->input) { hidp_send_ctrl_message(session, HIDP_TRANS_SET_PROTOCOL | HIDP_PROTO_BOOT, NULL, 0); session->flags |= (1 << HIDP_BOOT_PROTOCOL_MODE); session->leds = 0xff; hidp_input_event(session->input, EV_LED, 0, 0); } which effectively sets the boot protocol for all input devices. To support some scroll wheel mice they need to be put into report mode, though: if (session->input) { hidp_send_ctrl_message(session, HIDP_TRANS_SET_PROTOCOL | HIDP_PROTO_REPORT, NULL, 0); session->leds = 0xff; hidp_input_event(session->input, EV_LED, 0, 0); } I assume that's safe. Solaris for instance, initializes all devices in report mode by default. It never even tries boot protocol. Maybe it would make sense to have a userspace interface to switch the mode from within hidd. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel