]> git.pld-linux.org Git - packages/bluez.git/blob - bluez-wacom-mode-2.patch
- up to 5.0 (note: rather big changes, packaging needs finishing; bluez 4.x left...
[packages/bluez.git] / bluez-wacom-mode-2.patch
1 --- a/profiles/input/device.c
2 +++ b/profiles/input/device.c
3 @@ -658,6 +658,19 @@ static int hidp_add_connection(const struct input_device *idev,
4                 err = write(sk, buf, sizeof(buf));
5         }
6  
7 +       if (req->vendor == 0x056a && req->product == 0x81) {
8 +               unsigned char buf[3];
9 +               int sk = g_io_channel_unix_get_fd(idev->ctrl_io);
10 +
11 +               buf[0] = 0x53; /* HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE */
12 +               buf[1] = 0x03; buf[2] = 0x00;
13 +               write(sk, buf, sizeof(buf));
14 +
15 +               buf[0] = 0x53; /* HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE */
16 +               /* 0x06 - high reporting speed, 0x05 - low speed */
17 +               buf[1] = 0x05; buf[2] = 0x00;
18 +               write(sk, buf, sizeof(buf));
19 +       }
20         err = ioctl_connadd(req);
21  
22  cleanup:
23
This page took 0.052723 seconds and 3 git commands to generate.