public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Wacom Graphire Bluetooth HID driver - help needed
@ 2009-05-28 20:43 Przemysław Firszt
  2009-05-28 22:29 ` Bastien Nocera
  0 siblings, 1 reply; 7+ messages in thread
From: Przemysław Firszt @ 2009-05-28 20:43 UTC (permalink / raw)
  To: linux-bluetooth

Hi,
I'm working on Wacom Graphire bluetooth tablet driver. It's a HID driver
and it's almost ready to be released, but I still have some problems.
The main one is that the tablet works in mouse mode and I need to send a
control message to switch to tablet mode. Currently I'm using an ugly
hack in /net/bluetooth/hidp/core.c - hidp_add_connection:


        rep_data [0] = 0x03; rep_data [1] = 0x00;
        hidp_send_ctrl_message(session,
                       HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE,
rep_data, 2);
        /* 0x06 - high reporting speed, 0x05 - low speed */
        rep_data [0] = 0x05; rep_data [1] = 0x00;
       hidp_send_ctrl_message(session,
                       HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE,
rep_data, 2);

That hack is based on wacom graphire bluetooth driver created by Andrew
Zabolotny, that driver has never neen mainstreamed, beacause of some
philosophy issues (as far as I understand it)

Any ideas how I can send the control message from HID driver level? Is
it possible?
--
Przemo Firszt


 
 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-24 20:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 20:43 Wacom Graphire Bluetooth HID driver - help needed Przemysław Firszt
2009-05-28 22:29 ` Bastien Nocera
2009-05-29  9:13   ` Przemysław Firszt
2009-06-07 12:25     ` Bastien Nocera
2009-06-07 15:53       ` Marcel Holtmann
2009-06-24 20:49         ` Wacom Graphire Bluetooth HID driver - big lag Przemysław Firszt
2009-06-24 20:55           ` Bastien Nocera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox