* [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 @ 2003-11-30 14:12 Charles Bueche 2003-11-30 18:51 ` Charles Bueche 0 siblings, 1 reply; 31+ messages in thread From: Charles Bueche @ 2003-11-30 14:12 UTC (permalink / raw) To: bluez-devel Hi, I have this hardware combination : the new Logitech MX900, which is talking bluetooth to its hub. This hub goes to my laptop using USB. I'm using gentoo linux, with kernel 2.6.0test11. I have patched my XFree86 (xfree-4.3.99.16.ebuild) with http://www.yhbt.net/normalperson/files/linux/LogitechMX_kernel_and_X_patch/ to make it understand the PS2++ protocol, and the mouse somewhat works. The setup is working fine, even if I didn't finish the setup completely (all buttons aren't working yet). Now, having a internal bluetooth module within my Dell Inspiron 8600, I would like to connect the mouse directly, without going through the hub and USB. When I use the basic tools (hcitool scan, hcitool info), I get this info block from the mx900 : ============== Requesting information ... BD Address: 00:07:61:08:7E:2E Device Name: Logitech MX900 Mouse LMP Version: 1.1 (0x1) LMP Subversion: 0x350 Manufacturer: Cambridge Silicon Radio (10) Features: 0xfc 0xff 0x0f 0x00 <encryption> <slot offset> <timing accuracy> <role switch> <hold mode> <sniff mode> <park mode> <RSSI> <channel quality> <SCO link> <HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme> <power control> <transparent SCO> ============== I now understand that I need some piece of software to get the mouse events from the bluez stack and pass them to a device that X would understand. I tried to compile bthid from Peter Klauser. bthid itself compile, but fake.o choke on line 87 of fake.c : ==================== make -f make.fake fake.o make[1]: Entering directory `/data/util/bthid-0.8' gcc -pipe -Iinclude/asm-i386/mach-default -DMODULE -DMODVERSIONS -include /usr/src/linux-2.6.0-test11-gentoo/include/config/modversions.h -D__KERNEL__ -DMAJORNUM=250 -I/usr/src/linux-2.6.0-test11-gentoo/include -fno-strict-aliasing -fno-common -c -o fake.o fake.c fake.c:86: parse error before "devfs_handle" fake.c:86: warning: data definition has no type or storage class make[1]: *** [fake.o] Error 1 make[1]: Leaving directory `/data/util/bthid-0.8' make: *** [fake.o] Error 2 ==================== hints welcome. I can test whatewer piece of code you throw at me. I'm however not knowledeable enough to code it myself. Charles -- Charles Bueche <charles@bueche.ch> sand, snow, wave, wind and net -surfer ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-11-30 14:12 [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 Charles Bueche @ 2003-11-30 18:51 ` Charles Bueche 2003-12-01 15:38 ` Peter Klausler 0 siblings, 1 reply; 31+ messages in thread From: Charles Bueche @ 2003-11-30 18:51 UTC (permalink / raw) To: bluez-devel, peter Hi again, responding to my own email after studying fake.c : I got it to compile on 2.6, but this code isn't able to run as module on 2.6 kernels, which changed the module format. Peter : do you plan a 2.6 version anytime soon ? TIA, Charles On Sun, 2003-11-30 at 15:12, Charles Bueche wrote: > Hi, > > I have this hardware combination : the new Logitech MX900, which is > talking bluetooth to its hub. This hub goes to my laptop using USB. > > I'm using gentoo linux, with kernel 2.6.0test11. I have patched my > XFree86 (xfree-4.3.99.16.ebuild) with > http://www.yhbt.net/normalperson/files/linux/LogitechMX_kernel_and_X_patch/ > to make it understand the PS2++ protocol, and the mouse somewhat works. > > The setup is working fine, even if I didn't finish the setup completely > (all buttons aren't working yet). > > Now, having a internal bluetooth module within my Dell Inspiron 8600, I > would like to connect the mouse directly, without going through the hub > and USB. > > When I use the basic tools (hcitool scan, hcitool info), I get this info > block from the mx900 : > > ============== > Requesting information ... > BD Address: 00:07:61:08:7E:2E > Device Name: Logitech MX900 Mouse > LMP Version: 1.1 (0x1) LMP Subversion: 0x350 > Manufacturer: Cambridge Silicon Radio (10) > Features: 0xfc 0xff 0x0f 0x00 > <encryption> <slot offset> <timing accuracy> <role switch> <hold mode> > <sniff mode> <park mode> <RSSI> <channel quality> <SCO link> <HV2 > packets> <HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme> > <power control> <transparent SCO> > ============== > > I now understand that I need some piece of software to get the mouse > events from the bluez stack and pass them to a device that X would > understand. > > I tried to compile bthid from Peter Klauser. bthid itself compile, but > fake.o choke on line 87 of fake.c : > > ==================== > make -f make.fake fake.o > make[1]: Entering directory `/data/util/bthid-0.8' > gcc -pipe -Iinclude/asm-i386/mach-default -DMODULE -DMODVERSIONS > -include /usr/src/linux-2.6.0-test11-gentoo/include/config/modversions.h > -D__KERNEL__ -DMAJORNUM=250 -I/usr/src/linux-2.6.0-test11-gentoo/include > -fno-strict-aliasing -fno-common -c -o fake.o fake.c > fake.c:86: parse error before "devfs_handle" > fake.c:86: warning: data definition has no type or storage class > make[1]: *** [fake.o] Error 1 > make[1]: Leaving directory `/data/util/bthid-0.8' > make: *** [fake.o] Error 2 > ==================== > > hints welcome. I can test whatewer piece of code you throw at me. I'm > however not knowledeable enough to code it myself. > > Charles -- Charles Bueche <charles@bueche.ch> sand, snow, wave, wind and net -surfer ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-11-30 18:51 ` Charles Bueche @ 2003-12-01 15:38 ` Peter Klausler 2003-12-02 15:55 ` Edd Dumbill 0 siblings, 1 reply; 31+ messages in thread From: Peter Klausler @ 2003-12-01 15:38 UTC (permalink / raw) To: Charles Bueche; +Cc: bluez-devel On 2003.11.30 12:51 Charles Bueche wrote: > Hi again, > > responding to my own email after studying fake.c : I got it to compile > on 2.6, but this code isn't able to run as module on 2.6 kernels, > which > changed the module format. > > Peter : do you plan a 2.6 version anytime soon ? For 2.6 the fake.o driver shouldn't be needed; I'm told that there's a legitimate driver in 2.6 that can be used to inject input events from user-land. But I've been way too busy porting 2.6 to a new architecture to spend much time playing with it on i386, so I can't tell you how hard it would be to adjust bthid to use the new driver. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-01 15:38 ` Peter Klausler @ 2003-12-02 15:55 ` Edd Dumbill 2003-12-02 16:01 ` Edd Dumbill 2003-12-02 17:39 ` Marcel Holtmann 0 siblings, 2 replies; 31+ messages in thread From: Edd Dumbill @ 2003-12-02 15:55 UTC (permalink / raw) To: Peter Klausler; +Cc: Charles Bueche, BlueZ Developers List Hmm, I'd thought I'd sent this to the list, but obviously didn't. Here's a patch for Peter's bthid stuff to work with the uinput driver in Linux 2.6. Use at your own risk. I had it going OK with an Apple keyboard and MS mouse. -- Edd On Mon, 2003-12-01 at 15:38, Peter Klausler wrote: > On 2003.11.30 12:51 Charles Bueche wrote: > > Hi again, > > > > responding to my own email after studying fake.c : I got it to compile > > on 2.6, but this code isn't able to run as module on 2.6 kernels, > > which > > changed the module format. > > > > Peter : do you plan a 2.6 version anytime soon ? > > For 2.6 the fake.o driver shouldn't be needed; I'm told that > there's a legitimate driver in 2.6 that can be used to > inject input events from user-land. But I've been way > too busy porting 2.6 to a new architecture to spend much > time playing with it on i386, so I can't tell you how hard > it would be to adjust bthid to use the new driver. -- Edd Dumbill -- more from me at http://usefulinc.com/edd/blog/ Managing Editor, XML.com, XMLhack.com; Chair, XML Europe 2003 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-02 15:55 ` Edd Dumbill @ 2003-12-02 16:01 ` Edd Dumbill 2003-12-03 20:18 ` Charles Bueche 2003-12-02 17:39 ` Marcel Holtmann 1 sibling, 1 reply; 31+ messages in thread From: Edd Dumbill @ 2003-12-02 16:01 UTC (permalink / raw) To: Peter Klausler; +Cc: Charles Bueche, BlueZ Developers List [-- Attachment #1: Type: text/plain, Size: 388 bytes --] On Tue, 2003-12-02 at 15:55, Edd Dumbill wrote: > Hmm, I'd thought I'd sent this to the list, but obviously didn't. > Here's a patch for Peter's bthid stuff to work with the uinput driver in > Linux 2.6. Use at your own risk. I had it going OK with an Apple > keyboard and MS mouse. And if I'd attached the patch first time, it would have been truly impressive. Here we are. -- Edd [-- Attachment #2: bthid-uinput.diff --] [-- Type: text/x-patch, Size: 6689 bytes --] Only in bthid: bthid Only in bthid.orig: fake.c diff -ur bthid.orig/hid.c bthid/hid.c --- bthid.orig/hid.c 2003-09-08 16:01:35.000000000 +0100 +++ bthid/hid.c 2003-11-15 21:51:31.000000000 +0000 @@ -565,6 +565,7 @@ case 0xb5: butt = KEY_NEXTSONG; break; case 0xb6: butt = KEY_PREVIOUSSONG; break; case 0xb7: butt = KEY_STOPCD; break; + case 0xb8: butt = KEY_EJECTCD; break; /* Apple kbd */ case 0xcd: butt = KEY_PLAYPAUSE; break; case 0xe2: butt = KEY_MUTE; break; case 0xe9: butt = KEY_VOLUMEUP; break; diff -ur bthid.orig/main.c bthid/main.c --- bthid.orig/main.c 2003-11-06 01:20:03.000000000 +0000 +++ bthid/main.c 2003-11-15 21:14:37.000000000 +0000 @@ -781,9 +781,6 @@ int scan_mode = 0; int listen_mode = 0; - - out_path = "/dev/input/bluetooth-in"; - for (argi = 1; argi < argc; argi++) if (argv [argi][0] != '-') break; @@ -791,8 +788,6 @@ daemonize = 0; else if (!strcmp (argv [argi], "-v")) verbosity++; - else if (!strcmp (argv [argi], "-o") && argi < argc-1) - out_path = argv [++argi]; else if (!strcmp (argv [argi], "-l")) listen_mode = 1; else if (!strcmp (argv [argi], "-s")) @@ -822,7 +817,6 @@ " -n don't become daemon\n" " -l listen for incoming connections\n" " -s scan for devices\n" - " -o output device (%s)\n" " -b reverse mouse buttons 2 and 5\n" " -B ms keyboard debounce time (millisecs)\n" " -a authentication link mode\n" @@ -833,8 +827,7 @@ " -d Dvorak keyboard and system\n" " -D Dvorak keyboard on QWERTY system\n" " -r attempt automatic reconnection\n" - " -v verbose mode (-v -v is extra)\n", - out_path); + " -v verbose mode (-v -v is extra)\n"); return EXIT_FAILURE; } Only in bthid.orig: make.fake diff -ur bthid.orig/Makefile bthid/Makefile --- bthid.orig/Makefile 2003-06-17 17:32:07.000000000 +0100 +++ bthid/Makefile 2003-11-15 21:22:25.000000000 +0000 @@ -1,41 +1,34 @@ BTHID_C = global.c sock.c kb.c main.c out.c sdp.c hid.c BTHID_HDRS = global.h hid.h sock.h kb.h out.h sdp.h hid.h -EXTRA = README Makefile make.fake fake.c \ - bluetooth-hid bthid-modules msblue.def +EXTRA = README Makefile \ + bluetooth-hid msblue.def SHIP = $(BTHID_C) $(BTHID_HDRS) $(EXTRA) BTHID_RELS = $(BTHID_C:.c=.o) CFLAGS = -O -Wall -Wno-parentheses -MODINSTDIR = /lib/modules/`uname -r`/kernel/drivers/input -world: bthid fake.o +world: bthid bthid: $(BTHID_RELS) cc -o $@ $(BTHID_RELS) -lbluetooth $(BTHID_RELS): $(BTHID_HDRS) -fake.o: fake.c - make -f make.fake $@ - -install: bthid fake.o +install: bthid [ -c /dev/input/mice ] || \ mknod -m 644 /dev/input/mice c 13 63 - [ -c /dev/input/bluetooth-in ] || \ - mknod -m 644 /dev/input/bluetooth-in c 250 0 + [ -c /dev/input/uinput ] || \ + mknod -m 644 /dev/input/bluetooth-in c 10 223 install -m u=rwxs,go=rxs -o pmk -g os bthid /usr/local/bin - install -m u=rw,go=r -o root -g root fake.o $(MODINSTDIR) install -m u=rwx,go=rx -o root -g root bluetooth-hid /etc/init.d - install -m u=rw,go=r -o root -g root bthid-modules /etc/modutils install -m u=rw,go=r -o root -g root msblue.def /usr/share/hotkeys (cd /etc/rc2.d; \ rm -f S90bluetooth-hid; \ ln -s ../init.d/bluetooth-hid S90bluetooth-hid) - update-modules clean: rm -f $(BTHID_RELS) clobber: clean - rm -f fake.o bthid + rm -f bthid bthid.tar.gz: $(SHIP) rm -f bthid.tar bthid.tar.gz diff -ur bthid.orig/out.c bthid/out.c --- bthid.orig/out.c 2003-01-19 00:58:05.000000000 +0000 +++ bthid/out.c 2003-11-15 21:16:01.000000000 +0000 @@ -3,58 +3,84 @@ #include <unistd.h> #include <fcntl.h> #include <string.h> +#include <stdio.h> #include <errno.h> + +#include <asm/types.h> +#include <linux/input.h> +#include <linux/uinput.h> + /* * Output to the pseudo-input device */ -#define MAX_BUFF 1024 +char *out_path; -char *out_path; - -static int out_fd = -1; -static int out_ct; -static char out_buff [MAX_BUFF]; +static int out_fd=-1; void -out_open (void) { - if (out_fd < 0 && out_path) { - out_fd = open (out_path, O_WRONLY | O_NDELAY); - if (out_fd < 0) { - syslog (LOG_ERR, "can't open %s: %s", - out_path, strerror (errno)); - out_path = 0; - } - } +out_open(void) +{ + struct uinput_user_dev device; + int aux; + + if (out_fd >=0) + return; + + out_fd = open ("/dev/input/uinput", O_RDWR); + if (out_fd < 0) { + syslog (LOG_ERR, "can't open %s: %s", + out_path, strerror (errno)); + out_path = 0; + } + + strcpy(device.name, "Bluetooth device"); + device.id.bustype = BUS_USB; + device.id.vendor = 2; + device.id.product = 3; + device.id.version = 4; + ioctl(out_fd, UI_SET_EVBIT, EV_KEY); + ioctl(out_fd, UI_SET_EVBIT, EV_REL); + + /* set key events we can generate (in this case, all) */ + for (aux = 0; aux < KEY_MAX; aux++) + ioctl(out_fd, UI_SET_KEYBIT, aux); + + for (aux = REL_X; aux <= REL_MISC; aux++) + ioctl(out_fd, UI_SET_RELBIT, aux); + + /* write down information for creating a new device */ + if (write(out_fd, &device, sizeof(struct uinput_user_dev)) < 0) { + syslog (LOG_ERR, "can't write device description: %s", + strerror (errno)); + close(out_fd); + out_fd=0; + return; + } + + /* actually creates the device */ + ioctl(out_fd, UI_DEV_CREATE); } +static struct input_event event; + void out_event (int evt, int which, int amount) { - out_buff [out_ct++] = evt; - out_buff [out_ct++] = which; - out_buff [out_ct++] = which >> 8; - out_buff [out_ct++] = amount; - if (out_ct == MAX_BUFF) - out_ct = 0; -} + if (out_fd < 0) + return; + memset(&event, 0, sizeof(struct input_event)); -void -out_flush (void) { + event.code = which; + event.type = evt; + event.value = amount; - int n; + write(out_fd, &event, sizeof(struct input_event)); +} - if (!out_ct) - return; - if (out_fd >= 0) { - n = write (out_fd, out_buff, out_ct); - if (n != out_ct) { - syslog (LOG_ERR, "error writing to %s: %s", - out_path, strerror (errno)); - close (out_fd); - out_fd = -1; - } - } - out_ct = 0; +void out_flush (void) { + memset(&event, 0, sizeof(struct input_event)); + event.type = EV_SYN; + write(out_fd, &event, sizeof(struct input_event)); } diff -ur bthid.orig/out.h bthid/out.h --- bthid.orig/out.h 2003-01-19 00:56:33.000000000 +0000 +++ bthid/out.h 2003-11-15 21:14:44.000000000 +0000 @@ -5,8 +5,6 @@ * Output to the pseudo-input device */ -extern char *out_path; - void out_open (void); void out_event (int /*event*/, int /*which*/, int /*amount*/); void out_flush (void); ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-02 16:01 ` Edd Dumbill @ 2003-12-03 20:18 ` Charles Bueche 2003-12-03 20:35 ` Marcel Holtmann 0 siblings, 1 reply; 31+ messages in thread From: Charles Bueche @ 2003-12-03 20:18 UTC (permalink / raw) To: Edd Dumbill; +Cc: Peter Klausler, BlueZ Developers List Hi, [first, thanks a lot for helping me. I plan a mini-HOWTO ln a web page when I'm done so other can get the same setup working.] I tried your patch on my linux-2.6.0-test11-gentoo Dell I8600 with my Logitech MX900 mouse. It applies OK, but (don't know if it's gentoo specific), my uinput is at /dev/misc/uinput, not /dev/input/uinput. So I had to fix the path in out.c. After this, I get the mouse events in X. The movements are OK, but the button 1 is not doing its job. If I cat < /dev/input/mice, I see something happen when I click it, so it's obviously not the button hardware. I have compiled my X with a patch to enable the PS/2++ protocol. The patch is from Eric Wong, can be downloaded here : http://www.yhbt.net/normalperson/files/linux/LogitechMX_kernel_and_X_patch/4.3.0-XFree86_logitech_ps2.patch could this patch be the reason for my button 1 problem ? Hints welcome. Charles On Tue, 2003-12-02 at 17:01, Edd Dumbill wrote: > On Tue, 2003-12-02 at 15:55, Edd Dumbill wrote: > > Hmm, I'd thought I'd sent this to the list, but obviously didn't. > > Here's a patch for Peter's bthid stuff to work with the uinput driver in > > Linux 2.6. Use at your own risk. I had it going OK with an Apple > > keyboard and MS mouse. > > And if I'd attached the patch first time, it would have been truly > impressive. > > Here we are. > > -- Edd ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-03 20:18 ` Charles Bueche @ 2003-12-03 20:35 ` Marcel Holtmann 2003-12-04 8:53 ` Olivier Bornet 0 siblings, 1 reply; 31+ messages in thread From: Marcel Holtmann @ 2003-12-03 20:35 UTC (permalink / raw) To: Charles Bueche; +Cc: Edd Dumbill, Peter Klausler, BlueZ Developers List Hi Charles, > I tried your patch on my linux-2.6.0-test11-gentoo Dell I8600 with my > Logitech MX900 mouse. It applies OK, but (don't know if it's gentoo > specific), my uinput is at /dev/misc/uinput, not /dev/input/uinput. So I > had to fix the path in out.c. this is because of devfs. > After this, I get the mouse events in X. The movements are OK, but the > button 1 is not doing its job. If I cat < /dev/input/mice, I see > something happen when I click it, so it's obviously not the button > hardware. > > I have compiled my X with a patch to enable the PS/2++ protocol. The > patch is from Eric Wong, can be downloaded here : > http://www.yhbt.net/normalperson/files/linux/LogitechMX_kernel_and_X_patch/4.3.0-XFree86_logitech_ps2.patch > > could this patch be the reason for my button 1 problem ? no. I have the same problem with the Logitech MX900 mouse. It must be a bug in the HID parser or in the HID descriptor of the device. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-03 20:35 ` Marcel Holtmann @ 2003-12-04 8:53 ` Olivier Bornet 2003-12-04 13:52 ` Marcel Holtmann 2003-12-09 20:31 ` Charles Bueche 0 siblings, 2 replies; 31+ messages in thread From: Olivier Bornet @ 2003-12-04 8:53 UTC (permalink / raw) To: Marcel Holtmann Cc: Charles Bueche, Edd Dumbill, Peter Klausler, BlueZ Developers List [-- Attachment #1.1: Type: text/plain, Size: 1767 bytes --] Hello, > > After this, I get the mouse events in X. The movements are OK, but the > > button 1 is not doing its job. > no. I have the same problem with the Logitech MX900 mouse. It must be a > bug in the HID parser or in the HID descriptor of the device. Since about 2 month now, I'm using bthid from Peter with a diNovo desktop. This include the MX900 mouse. All is working OK. But... But it requiere some patching... October 13, I have send a patch to Peter for the mouse button problems. See the two first email attached. No answer at all from Peter... This is against version 0.6 of bthid, but this is a very simple patch, so it must be easy to put in on the last release of bthid. The major problem is that the MX900 send all the button status when there is a change. And because if a button is not recognized by bthid, it was assigning it by default to the button 1. Has the MX900 has more buttons than bthid think. So, button 1 is always not pressed... (see attached emails for more info). October 18, I have send a patch for non-US keyboard. This was used by another guy on bluez-users. Again, no answer from Peter... See 3rd email attached to this one. October 28, I have send the patches on the bluez-users list. No answer from Peter... (see mailing list archive to find my message) Here is another try (on bluez-devel this time). Thanks to let me known what is bad with my patches. I'm sure if you will be put them in bthid, people using Logitech deviceces will be happy. And also people using non-us keyboard. Good day. Olivier -- Olivier Bornet http://www.smartdata.ch/ Olivier.Bornet@smartdata.ch SMARTDATA SA GPG key ID: C53D9218 CH Martigny/Lausanne [-- Attachment #1.2: Type: message/rfc822, Size: 6276 bytes --] [-- Attachment #1.2.1.1: Type: text/plain, Size: 3548 bytes --] Hi Peter, first, thanks for your bthid software. I'm trying to use it with a Logitech bluetooth keyboard. (see http://www.logitech.com/bluetooth for more information on it). but don't search it on the market at this time, it is not available now. I have one sample because we work with Logitech on it. I have try to use bthid-0.6 today with my Debian 2.4.21-mh2 system. Connecting the keyboard/mouse is sometime ok, sometime not. But this is not a problem at this time, and I will search the reason why the connection is not always ok later. The first "major" problem I was having is with the button 1 of the mouse. It doesn't work. I see the bluetooth packets, but nothing in X. I have do some debuging, and all is ok now. :-) The problem was with the number of buttons of the Logitech mouse : 8 buttons: - 1: left - 2: right - 3: middle - 4: side 1 (SIDE) - 5: side 2 (EXTRA) - 6: top (don't know the function, maybe "new window") - 7: forward - 8: backward and the wheel. Your code was mapping unknown button (in this case top, forward and backward) to "primary" button left. And, as when I use the mouse all the "buttons events" are sent to bthid whith theyre state, the buttons 6, 7 and 8 cleared the 1, event if the 1 is setted. The attached patch correct this. Note I'm not sure this will be necessary with the public product, as mine are alpha release product with alpha firmeware. But if the mouse send all the buttons when one has is state changed, this patch is necessary. Another problem I have is the key < and > are not working. The layout of my keyboard is fr_CH (Swiss French), and the key with < and > is on the bottom line. Here is the bottom line: lowercase: SHIFT < y x c v b n m , . - SHIFT uppercase: SHIFT > Y X C V B N M ; : _ SHIFT The key with the < and > has also the \ with the Alt Gr mode. Here is the hcidump when I press and release the < key: > ACL data: handle 0x002e flags 0x02 dlen 14 L2CAP(d): cid 0x41 len 10 [psm 19] A1 01 00 00 64 00 00 00 00 00 > ACL data: handle 0x002e flags 0x02 dlen 14 L2CAP(d): cid 0x41 len 10 [psm 19] A1 01 00 00 00 00 00 00 00 00 I suspect I must put something in the array hid_to_linux[], position 0x64, but I don't have search what to put at this time. (maybe next patch ;-), but another day: I must go to sleep now. ) Other normal keys seems to work ok. Last point. I will be happy if I can try to use the "hotkeys". I have see this must be supported, but I don't known how. I have installed the hotkeys package, but as I have no experience with hotkeys, I don't know how to use it. I have try to start with: hotkeys --type=logitech-cfo --osd=on -b --loglevel=7 but I see only the splash screen, and nothing else. The keys are routed on the bluetooth layer, here is the hcidump -x of the "home" key: > ACL data: handle 0x002e flags 0x02 dlen 10 L2CAP(d): cid 0x41 len 6 [psm 19] A1 03 23 02 00 00 > ACL data: handle 0x002e flags 0x02 dlen 10 L2CAP(d): cid 0x41 len 6 [psm 19] A1 03 00 00 00 00 Can you help me with this feature ? Thanks in advance for your help. And thanks for bthid. Olivier -- Olivier Bornet | français : http://puck.ch/f Swiss Ice Hockey Results | english : http://puck.ch/e http://puck.ch/ | deutsch : http://puck.ch/g Olivier.Bornet@puck.ch | italiano : http://puck.ch/i Get my PGP-key at http://puck.ch/pgp or at http://wwwkeys.pgp.net [-- Attachment #1.2.1.2: Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #1.3: Type: message/rfc822, Size: 4558 bytes --] [-- Attachment #1.3.1.1.1: Type: text/plain, Size: 451 bytes --] Hello again, > The attached patch correct this. Forgot the patch. Here is it. Good day. Olivier -- Olivier Bornet | français : http://puck.ch/f Swiss Ice Hockey Results | english : http://puck.ch/e http://puck.ch/ | deutsch : http://puck.ch/g Olivier.Bornet@puck.ch | italiano : http://puck.ch/i Get my PGP-key at http://puck.ch/pgp or at http://wwwkeys.pgp.net [-- Attachment #1.3.1.1.2: patch-bthid-0.6-for-lt.txt --] [-- Type: text/plain, Size: 861 bytes --] --- bthid-0.6-orig/hid.c 2003-04-29 22:00:53.000000000 +0200 +++ bthid-0.6/hid.c 2003-10-13 00:03:03.000000000 +0200 @@ -527,9 +527,12 @@ return; case 0x0009: /* Buttons */ + + /* init */ + butt = BTN_LEFT; + switch (usage & 0xffff) { case 0: return; - default: case 1: butt = BTN_LEFT; break; case 2: butt = BTN_RIGHT; break; case 3: if (swap_buttons_2_5) return; @@ -537,6 +540,12 @@ case 4: butt = BTN_SIDE; break; case 5: butt = swap_buttons_2_5 ? BTN_MIDDLE : BTN_EXTRA; break; + case 6: return; /* no definition in input.h ... */ + case 7: butt = BTN_FORWARD; break; + case 8: butt = BTN_BACK; break; + default: + printf ("Pb. handling 0x%04lx", usage & 0xffff); + break; } buttmask = 1 << butt - BTN_MOUSE; if (val && !(mouse_butt & buttmask)) { [-- Attachment #1.3.1.2: Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #1.4: Type: message/rfc822, Size: 7924 bytes --] [-- Attachment #1.4.1.1.1: Type: text/plain, Size: 877 bytes --] Hello, On Mon, Oct 13, 2003 at 01:27:55AM +0200, Olivier Bornet wrote: > Another problem I have is the key < and > are not working. The layout of > my keyboard is fr_CH (Swiss French), and the key with < and > is on the > bottom line. I have find a solution for this problem: use the same array as the usb one (hid_keyboard from /usr/src/linux/drivers/usb/hid-input.c). This is working great for me will all the "normal" keys. (don't know how to enable hotkeys). The patch for this is attached. Good day. Olivier -- Olivier Bornet | français : http://puck.ch/f Swiss Ice Hockey Results | english : http://puck.ch/e http://puck.ch/ | deutsch : http://puck.ch/g Olivier.Bornet@puck.ch | italiano : http://puck.ch/i Get my PGP-key at http://puck.ch/pgp or at http://wwwkeys.pgp.net [-- Attachment #1.4.1.1.2: patch-bthid-0.6-for-lt-kbd-sf.txt --] [-- Type: text/plain, Size: 3600 bytes --] --- bthid-0.6-orig/hid.c 2003-04-29 22:00:53.000000000 +0200 +++ bthid-0.6/hid.c 2003-10-14 08:58:25.000000000 +0200 @@ -369,46 +369,26 @@ static int any_keyboard; -static int hid_to_linux [256] = { - -/* 0x00 */ 0 /* no event */, 0 /* rollover error */, 0 /* POST fail */, - 0 /* undefined error */, KEY_A, KEY_B, KEY_C, KEY_D, -/* 0x08 */ KEY_E, KEY_F, KEY_G, KEY_H, KEY_I, KEY_J, KEY_K, KEY_L, -/* 0x10 */ KEY_M, KEY_N, KEY_O, KEY_P, KEY_Q, KEY_R, KEY_S, KEY_T, -/* 0x18 */ KEY_U, KEY_V, KEY_W, KEY_X, KEY_Y, KEY_Z, KEY_1, KEY_2, -/* 0x20 */ KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_0, -/* 0x28 */ KEY_ENTER, KEY_ESC, KEY_BACKSPACE, KEY_TAB, - KEY_SPACE, KEY_MINUS, KEY_EQUAL, KEY_LEFTBRACE, -/* 0x30 */ KEY_RIGHTBRACE, KEY_BACKSLASH, 0, KEY_SEMICOLON, - KEY_APOSTROPHE, KEY_GRAVE, KEY_COMMA, KEY_DOT, -/* 0x38 */ KEY_SLASH, KEY_CAPSLOCK, KEY_F1, KEY_F2, - KEY_F3, KEY_F4, KEY_F5, KEY_F6, -/* 0x40 */ KEY_F7, KEY_F8, KEY_F9, KEY_F10, - KEY_F11, KEY_F12, KEY_SYSRQ, KEY_SCROLLLOCK, -/* 0x48 */ KEY_PAUSE, KEY_INSERT, KEY_HOME, KEY_PAGEUP, - KEY_DELETE, KEY_END, KEY_PAGEDOWN, KEY_RIGHT, -/* 0x50 */ KEY_LEFT, KEY_DOWN, KEY_UP, KEY_NUMLOCK, - KEY_KPSLASH, KEY_KPASTERISK, KEY_KPMINUS, KEY_KPPLUS, -/* 0x58 */ KEY_KPENTER, KEY_KP1, KEY_KP2, KEY_KP3, - KEY_KP4, KEY_KP5, KEY_KP6, KEY_KP7, -/* 0x60 */ KEY_KP8, KEY_KP9, KEY_KP0, KEY_KPDOT, 0, 0, 0, 0, -/* pmk!! fill these in, even though my keyboard doesn't use them... */ -/* 0x68 */ 0, 0, 0, 0, 0, 0, 0, 0, -/* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0xa0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0xb0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0xc0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0xd0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0xe0 */ KEY_LEFTCTRL, KEY_LEFTSHIFT, KEY_LEFTALT, - KEY_LEFTMETA, /* Would COMPOSE be better? */ - KEY_RIGHTCTRL, KEY_RIGHTSHIFT, KEY_RIGHTALT, 0, -/* 0xe8 */ 0, 0, 0, 0, 0, 0, 0, 0, -/* 0xf0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +#define unk KEY_UNKNOWN +static unsigned char hid_to_linux [256] = { + 0, 0, 0, 0, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, + 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 21, 44, 2, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 28, 1, 14, 15, 57, 12, 13, 26, + 27, 43, 84, 39, 40, 41, 51, 52, 53, 58, 59, 60, 61, 62, 63, 64, + 65, 66, 67, 68, 87, 88, 99, 70,119,110,102,104,111,107,109,106, + 105,108,103, 69, 98, 55, 74, 78, 96, 79, 80, 81, 75, 76, 77, 71, + 72, 73, 82, 83, 86,127,116,117, 85, 89, 90, 91, 92, 93, 94, 95, + 120,121,122,123,134,138,130,132,128,129,131,137,133,135,136,113, + 115,114,unk,unk,unk,124,unk,181,182,183,184,185,186,187,188,189, + 190,191,192,193,194,195,196,197,198,unk,unk,unk,unk,unk,unk,unk, + unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk, + unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk, + unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk, + unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk,unk, + 29, 42, 56,125, 97, 54,100,126,164,166,165,163,161,115,114,113, + 150,158,159,128,136,177,178,176,142,152,173,140,unk,unk,unk,unk }; - static int hid_dvorak_to_linux [256] = { /* 0x00 */ 0 /* no event */, 0 /* rollover error */, 0 /* POST fail */, [-- Attachment #1.4.1.2: Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-04 8:53 ` Olivier Bornet @ 2003-12-04 13:52 ` Marcel Holtmann 2003-12-04 13:57 ` Olivier Bornet 2003-12-09 20:31 ` Charles Bueche 1 sibling, 1 reply; 31+ messages in thread From: Marcel Holtmann @ 2003-12-04 13:52 UTC (permalink / raw) To: Olivier Bornet Cc: Charles Bueche, Edd Dumbill, Peter Klausler, BlueZ Developers List Hi Olivier, > October 13, I have send a patch to Peter for the mouse button problems. > See the two first email attached. No answer at all from Peter... > This is against version 0.6 of bthid, but this is a very simple patch, > so it must be easy to put in on the last release of bthid. The major > problem is that the MX900 send all the button status when there is a > change. And because if a button is not recognized by bthid, it was > assigning it by default to the button 1. Has the MX900 has more buttons > than bthid think. So, button 1 is always not pressed... (see attached > emails for more info). > > October 18, I have send a patch for non-US keyboard. This was used by > another guy on bluez-users. Again, no answer from Peter... See 3rd email > attached to this one. > > October 28, I have send the patches on the bluez-users list. No answer > from Peter... (see mailing list archive to find my message) I have now applied both patches to my implementation. > Here is another try (on bluez-devel this time). Thanks to let me known > what is bad with my patches. I'm sure if you will be put them in bthid, > people using Logitech deviceces will be happy. And also people using > non-us keyboard. You should always post them to the mailing list. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-04 13:52 ` Marcel Holtmann @ 2003-12-04 13:57 ` Olivier Bornet 2003-12-04 14:10 ` Marcel Holtmann 0 siblings, 1 reply; 31+ messages in thread From: Olivier Bornet @ 2003-12-04 13:57 UTC (permalink / raw) To: Marcel Holtmann Cc: Charles Bueche, Edd Dumbill, Peter Klausler, BlueZ Developers List [-- Attachment #1: Type: text/plain, Size: 729 bytes --] Hi Marcel, > I have now applied both patches to my implementation. Good. Hope this work with your implementation too. > > Here is another try (on bluez-devel this time). Thanks to let me known > > what is bad with my patches. I'm sure if you will be put them in bthid, > > people using Logitech deviceces will be happy. And also people using > > non-us keyboard. > > You should always post them to the mailing list. I was posting only to bluz-users. Now, I will port to bluez-devel if I have other patches. Good day. Olivier -- Olivier Bornet http://www.smartdata.ch/ Olivier.Bornet@smartdata.ch SMARTDATA SA GPG key ID: C53D9218 CH Martigny/Lausanne [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-04 13:57 ` Olivier Bornet @ 2003-12-04 14:10 ` Marcel Holtmann 2003-12-04 16:35 ` Olivier Bornet 0 siblings, 1 reply; 31+ messages in thread From: Marcel Holtmann @ 2003-12-04 14:10 UTC (permalink / raw) To: Olivier Bornet Cc: Charles Bueche, Edd Dumbill, Peter Klausler, BlueZ Developers List Hi Olivier, > Good. Hope this work with your implementation too. I have tested it with the Microsoft, the Logitech and the EPoX mouse. All of them are working fine now. I can't tell you much for the keyboard layout patch, because my Microsoft keyboard has an UK layout and the EPoX has an US layout. Only the diNovo keyboard uses a German layout and this is working fine for me. > I was posting only to bluz-users. Now, I will port to bluez-devel if I > have other patches. Do you know how to access the display of the diNovo mediapad? Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-04 14:10 ` Marcel Holtmann @ 2003-12-04 16:35 ` Olivier Bornet 2003-12-04 17:03 ` Marcel Holtmann 0 siblings, 1 reply; 31+ messages in thread From: Olivier Bornet @ 2003-12-04 16:35 UTC (permalink / raw) To: Marcel Holtmann Cc: Charles Bueche, Edd Dumbill, Peter Klausler, BlueZ Developers List [-- Attachment #1: Type: text/plain, Size: 646 bytes --] Hi Marcel, > Do you know how to access the display of the diNovo mediapad? Unfortunately, no. Has far as I known, this is not part of the HID profile. This is a "special" modified version by Logitech. I already have asked for this, without success at this time. Also, for switching from USB to BT the "Bluetooth HUB", I will look with Logitech if we can have the specification for doing this switch. Hope I will have more success. Good day. Olivier -- Olivier Bornet http://www.smartdata.ch/ Olivier.Bornet@smartdata.ch SMARTDATA SA GPG key ID: C53D9218 CH Martigny/Lausanne [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-04 16:35 ` Olivier Bornet @ 2003-12-04 17:03 ` Marcel Holtmann 0 siblings, 0 replies; 31+ messages in thread From: Marcel Holtmann @ 2003-12-04 17:03 UTC (permalink / raw) To: Olivier Bornet Cc: Charles Bueche, Edd Dumbill, Peter Klausler, BlueZ Developers List Hi Olivier, > > Do you know how to access the display of the diNovo mediapad? > > Unfortunately, no. Has far as I known, this is not part of the HID > profile. This is a "special" modified version by Logitech. I already > have asked for this, without success at this time. maybe someone with very good HID knowledge can decode the HID descriptor and find an answer. Or we must use a protocol analyser to sniff the HIDP packets. > Also, for switching from USB to BT the "Bluetooth HUB", I will look with > Logitech if we can have the specification for doing this switch. Hope I > will have more success. I have some response from CSR according the switch from HID to HCI mode. This fits perfect for the EPoX dongle, but the Logitech dongle is quite more complex. It presents a USB hub, two USB HID devices and four extra HID devices with Windows XP. However I actually don't how to implement the switch in Linux by now, but I will take a look at it. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-04 8:53 ` Olivier Bornet 2003-12-04 13:52 ` Marcel Holtmann @ 2003-12-09 20:31 ` Charles Bueche 2003-12-09 22:42 ` Olivier Bornet 2003-12-10 1:41 ` Marcel Holtmann 1 sibling, 2 replies; 31+ messages in thread From: Charles Bueche @ 2003-12-09 20:31 UTC (permalink / raw) To: Olivier Bornet Cc: Marcel Holtmann, Edd Dumbill, Peter Klausler, BlueZ Developers List Hi, I have still some small glitches with my MX900. I have done the following procedure : 1. XFree patch I patched my XFree (gentoo xfree-4.3.99.16) with this patch (http://www.yhbt.net/normalperson/files/linux/LogitechMX_kernel_and_X_patch/4.3.0-XFree86_logitech_ps2.patch), to make it understand PS/2+ protocol. Do I need this for the MX900 ? 2. bthid patches - started with the bthid 0.8 stock source - applied Edd Dumbill's uinput patch - applied Olivier Bornet's patch-bthid-0.6-for-lt.txt - modified out.c to use /dev/misc/uinput (Marcel says devfs produce this, I don't see exactly what I do wrong or what I should do to get /dev/input/uinput). 3. XF86Config-4 -------- Section "InputDevice" Identifier "LogitechUSBMouse" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "7 8" Option "Resolution" "800" Option "SmartScroll" "1" Option "Buttons" "8" Option "Emulate3Buttons" "false" EndSection ---------------- works : - mouse movements : clean, precise, perfect - buttons : 1,2,3 (2 = wheel-press) problems : - wheel doesn't work, even if I see button-7 and button-8 in xev output when I move the wheel. do I use the correct protocol ? Hints welcome... TIA, Charles ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-09 20:31 ` Charles Bueche @ 2003-12-09 22:42 ` Olivier Bornet 2003-12-10 8:12 ` Charles Bueche 2003-12-10 1:41 ` Marcel Holtmann 1 sibling, 1 reply; 31+ messages in thread From: Olivier Bornet @ 2003-12-09 22:42 UTC (permalink / raw) To: Charles Bueche; +Cc: BlueZ Developers List [-- Attachment #1: Type: text/plain, Size: 2124 bytes --] Hi Charles, > 1. XFree patch > > I patched my XFree (gentoo xfree-4.3.99.16) with this patch > (http://www.yhbt.net/normalperson/files/linux/LogitechMX_kernel_and_X_patch/4.3.0-XFree86_logitech_ps2.patch), > to make it understand PS/2+ protocol. Do I need this for the MX900 ? I don't have applied this patch, so I think this is not needed. (but I don't know anything about this patch. > 2. bthid patches > > - started with the bthid 0.8 stock source > - applied Edd Dumbill's uinput patch > - applied Olivier Bornet's patch-bthid-0.6-for-lt.txt > - modified out.c to use /dev/misc/uinput (Marcel says devfs produce > this, I don't see exactly what I do wrong or what I should do to get > /dev/input/uinput). OK. Almost the same for me, with a 2.6.0-test11 kernel. > 3. XF86Config-4 > > -------- > Section "InputDevice" > Identifier "LogitechUSBMouse" > Driver "mouse" > Option "Protocol" "ExplorerPS/2" > Option "Device" "/dev/input/mice" > Option "ZAxisMapping" "7 8" > Option "Resolution" "800" > Option "SmartScroll" "1" > Option "Buttons" "8" > Option "Emulate3Buttons" "false" > EndSection > ---------------- Usualy, the ZAxisMapping in on the buttons 4 and 5. Here is my XF86Config-4 related section: ---------- Section "InputDevice" Identifier "USB Mouse" Driver "mouse" Option "SendCoreEvents" "true" Option "Device" "/dev/input/mice" Option "Protocol" "ImPS/2" Option "Buttons" "5" Option "Emulate3Buttons" "true" Option "ZAxisMapping" "4 5" EndSection ---------- With this config, the mouse wheel is working ok. Hope this help. Olivier -- Olivier Bornet http://www.smartdata.ch/ Olivier.Bornet@smartdata.ch SMARTDATA SA GPG key ID: C53D9218 CH Martigny/Lausanne [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-09 22:42 ` Olivier Bornet @ 2003-12-10 8:12 ` Charles Bueche 2003-12-10 8:30 ` Olivier Bornet 0 siblings, 1 reply; 31+ messages in thread From: Charles Bueche @ 2003-12-10 8:12 UTC (permalink / raw) To: Olivier Bornet; +Cc: BlueZ Developers List Hi Olivier, I tried your config, the wheel now works OK. Thanks a lot. Another problem appeared after my initial email : the mouse movements are showing sudden accelerations. Makes it difficult to use. I tried several protocols in XF86Config-4, no difference. I re-emerged Xfree without the patch, the problem persist. I find this strange, as yesterday evening, the mouse suddenly worked fine... I'm getting confused. Could you provide your setup ? hciconfig command, loaded modules, bthid command line, etc ? Another question : do I need MOUSEDEV in my kernel ? I have CONFIG_INPUT_MOUSEDEV=y CONFIG_INPUT_MOUSEDEV_PSAUX=y CONFIG_INPUT_MOUSEDEV_SCREEN_X=1920 CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1200 should I remove this ? TIA, Charles On Tue, 2003-12-09 at 23:42, Olivier Bornet wrote: > Hi Charles, > > > 1. XFree patch > > > > I patched my XFree (gentoo xfree-4.3.99.16) with this patch > > (http://www.yhbt.net/normalperson/files/linux/LogitechMX_kernel_and_X_patch/4.3.0-XFree86_logitech_ps2.patch), > > to make it understand PS/2+ protocol. Do I need this for the MX900 ? > > I don't have applied this patch, so I think this is not needed. (but I > don't know anything about this patch. > > > 2. bthid patches > > > > - started with the bthid 0.8 stock source > > - applied Edd Dumbill's uinput patch > > - applied Olivier Bornet's patch-bthid-0.6-for-lt.txt > > - modified out.c to use /dev/misc/uinput (Marcel says devfs produce > > this, I don't see exactly what I do wrong or what I should do to get > > /dev/input/uinput). > > OK. Almost the same for me, with a 2.6.0-test11 kernel. > > > 3. XF86Config-4 > > > > -------- > > Section "InputDevice" > > Identifier "LogitechUSBMouse" > > Driver "mouse" > > Option "Protocol" "ExplorerPS/2" > > Option "Device" "/dev/input/mice" > > Option "ZAxisMapping" "7 8" > > Option "Resolution" "800" > > Option "SmartScroll" "1" > > Option "Buttons" "8" > > Option "Emulate3Buttons" "false" > > EndSection > > ---------------- > > Usualy, the ZAxisMapping in on the buttons 4 and 5. Here is my > XF86Config-4 related section: > > ---------- > Section "InputDevice" > Identifier "USB Mouse" > Driver "mouse" > Option "SendCoreEvents" "true" > Option "Device" "/dev/input/mice" > Option "Protocol" "ImPS/2" > Option "Buttons" "5" > Option "Emulate3Buttons" "true" > Option "ZAxisMapping" "4 5" > EndSection > ---------- > > With this config, the mouse wheel is working ok. > > Hope this help. > > Olivier -- Charles Bueche <charles@bueche.ch> sand, snow, wave, wind and net -surfer ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-10 8:12 ` Charles Bueche @ 2003-12-10 8:30 ` Olivier Bornet 2003-12-13 15:56 ` Charles Bueche 0 siblings, 1 reply; 31+ messages in thread From: Olivier Bornet @ 2003-12-10 8:30 UTC (permalink / raw) To: Charles Bueche; +Cc: BlueZ Developers List [-- Attachment #1: Type: text/plain, Size: 1845 bytes --] Hi Charles, > I tried your config, the wheel now works OK. Thanks a lot. Great. :-) > Another problem appeared after my initial email : the mouse movements > are showing sudden accelerations. Makes it difficult to use. I tried > several protocols in XF86Config-4, no difference. I have add this kind of problem with my USB mouse long time ago. This was because I have also gpm working (mouse usage in non grphical session). I you need to use gpm at the same time of XFree, you need to search on the web, as there is some special config to do. A quick search on google give lot of tips for this config. For example http://linuxfromscratch.org/pipermail/blfs-dev/2003-April/002637.html > I find this strange, as yesterday evening, the mouse suddenly worked > fine... I'm getting confused. Maybe you have installed gpm ? > Could you provide your setup ? hciconfig command, loaded modules, bthid > command line, etc ? I think as you have it working (maybe bad, but working), your bluetooth config is OK (hciconfig command, loaded modules). For the bthid command line, I have modified the /etc/init.d/bluetooth-hid file for having the command line: bthid -m -l -s > Another question : do I need MOUSEDEV in my kernel ? I have > > CONFIG_INPUT_MOUSEDEV=y > CONFIG_INPUT_MOUSEDEV_PSAUX=y > CONFIG_INPUT_MOUSEDEV_SCREEN_X=1920 > CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1200 I think you need CONFIG_INPUT_MOUSEDEV, but I'm not sure. I have it in module. (but as I also have a USB mouse, I really need it). > should I remove this ? Because XF86Config-4 use /dev/input/mice, I think you really need it. Good day. Olivier -- Olivier Bornet http://www.smartdata.ch/ Olivier.Bornet@smartdata.ch SMARTDATA SA GPG key ID: C53D9218 CH Martigny/Lausanne [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-10 8:30 ` Olivier Bornet @ 2003-12-13 15:56 ` Charles Bueche 2003-12-13 16:39 ` Marcel Holtmann 0 siblings, 1 reply; 31+ messages in thread From: Charles Bueche @ 2003-12-13 15:56 UTC (permalink / raw) To: Olivier Bornet; +Cc: BlueZ Developers List Hi Olivier, Thanks for your answer. I don't run GPM, so the problem isn't from there. But you gave me another idea : I loaded my modules, started the patched bthid, exited X, and tried gpm in console. I got the same problem !!! The mouse is jumpy as well. I think I can now exclude Xfree from the potential problem. I guess bthid is producing the jumpy mouse. I tried to checkout the CVS version, but I'm lost with autoconf and friends. I guess I will have to wait for Marcel's new snapshot. What frustrate me is that I got it working twice last week, after unloading/loading stopping/starting it several times, but I lost the order and options I had. Well, we it works, we all have to get a good beer :-) Charles On Wed, 2003-12-10 at 09:30, Olivier Bornet wrote: > Hi Charles, > > > I tried your config, the wheel now works OK. Thanks a lot. > > Great. :-) > > > Another problem appeared after my initial email : the mouse movements > > are showing sudden accelerations. Makes it difficult to use. I tried > > several protocols in XF86Config-4, no difference. > > I have add this kind of problem with my USB mouse long time ago. This > was because I have also gpm working (mouse usage in non grphical > session). I you need to use gpm at the same time of XFree, you need to > search on the web, as there is some special config to do. A quick search > on google give lot of tips for this config. For example > http://linuxfromscratch.org/pipermail/blfs-dev/2003-April/002637.html > > > I find this strange, as yesterday evening, the mouse suddenly worked > > fine... I'm getting confused. > > Maybe you have installed gpm ? > > > Could you provide your setup ? hciconfig command, loaded modules, bthid > > command line, etc ? > > I think as you have it working (maybe bad, but working), your bluetooth > config is OK (hciconfig command, loaded modules). For the bthid command > line, I have modified the /etc/init.d/bluetooth-hid file for having the > command line: > > bthid -m -l -s > > > Another question : do I need MOUSEDEV in my kernel ? I have > > > > CONFIG_INPUT_MOUSEDEV=y > > CONFIG_INPUT_MOUSEDEV_PSAUX=y > > CONFIG_INPUT_MOUSEDEV_SCREEN_X=1920 > > CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1200 > > I think you need CONFIG_INPUT_MOUSEDEV, but I'm not sure. I have it in > module. (but as I also have a USB mouse, I really need it). > > > should I remove this ? > > Because XF86Config-4 use /dev/input/mice, I think you really need it. > > Good day. > > Olivier -- Charles Bueche <charles@bueche.ch> sand, snow, wave, wind and net -surfer ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-13 15:56 ` Charles Bueche @ 2003-12-13 16:39 ` Marcel Holtmann 2003-12-13 18:51 ` Charles Bueche 0 siblings, 1 reply; 31+ messages in thread From: Marcel Holtmann @ 2003-12-13 16:39 UTC (permalink / raw) To: Charles Bueche; +Cc: Olivier Bornet, BlueZ Developers List Hi Charles, > Thanks for your answer. I don't run GPM, so the problem isn't from > there. But you gave me another idea : I loaded my modules, started the > patched bthid, exited X, and tried gpm in console. I got the same > problem !!! The mouse is jumpy as well. I think I can now exclude Xfree > from the potential problem. what kind of Bluetooth adapter do you use? I had some problem with CSR chips and old firmwares. > I guess bthid is producing the jumpy mouse. I tried to checkout the CVS > version, but I'm lost with autoconf and friends. I guess I will have to > wait for Marcel's new snapshot. Run the bootstrap script first ;) Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-13 16:39 ` Marcel Holtmann @ 2003-12-13 18:51 ` Charles Bueche 2003-12-13 19:04 ` Marcel Holtmann 0 siblings, 1 reply; 31+ messages in thread From: Charles Bueche @ 2003-12-13 18:51 UTC (permalink / raw) To: Marcel Holtmann; +Cc: Olivier Bornet, BlueZ Developers List Hi Marcel, it's a CSR, it's included in my Dell Inspiron 8600. The I8600 is recent, but of course it tells nothing about the included bluetooth module. Here are the details : --- # hciconfig -a hci0: Type: USB BD Address: 00:10:C6:22:54:AF ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN RX bytes:88278 acl:5562 sco:0 events:305 errors:0 TX bytes:3779 acl:170 sco:0 commands:54 errors:0 Features: 0xff 0xff 0x0f 0x00 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: Link mode: SLAVE ACCEPT Name: 'laptopcb (0)' Class: 0x000000 Service Classes: Unspecified Device Class: Miscellaneous, HCI Ver: 1.1 (0x1) HCI Rev: 0x235 LMP Ver: 1.1 (0x1) LMP Subver: 0x235 Manufacturer: Cambridge Silicon Radio (10) --- # hciconfig hci0 features hci0: Type: USB BD Address: 00:10:C6:22:54:AF ACL MTU: 192:8 SCO MTU: 64:8 Features: 0xff 0xff 0x0f 0x00 <3-slot packets> <5-slot packets> <encryption> <slot offset> <timing accuracy> <role switch> <hold mode> <sniff mode> <park mode> <RSSI> <channel quality> <SCO link> <HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme> <power control> <transparent SCO> --- # hciconfig hci0 version hci0: Type: USB BD Address: 00:10:C6:22:54:AF ACL MTU: 192:8 SCO MTU: 64:8 HCI Ver: 1.1 (0x1) HCI Rev: 0x235 LMP Ver: 1.1 (0x1) LMP Subver: 0x235 Manufacturer: Cambridge Silicon Radio (10) --- # hciconfig hci0 revision hci0: Type: USB BD Address: 00:10:C6:22:54:AF ACL MTU: 192:8 SCO MTU: 64:8 Unknown firmware I don't know how to find the firmware version. I have a dual boot with XP, so I could look there if there is now way in Linux. Charles On Sat, 2003-12-13 at 17:39, Marcel Holtmann wrote: > Hi Charles, > > > Thanks for your answer. I don't run GPM, so the problem isn't from > > there. But you gave me another idea : I loaded my modules, started the > > patched bthid, exited X, and tried gpm in console. I got the same > > problem !!! The mouse is jumpy as well. I think I can now exclude Xfree > > from the potential problem. > > what kind of Bluetooth adapter do you use? I had some problem with CSR > chips and old firmwares. > > > I guess bthid is producing the jumpy mouse. I tried to checkout the CVS > > version, but I'm lost with autoconf and friends. I guess I will have to > > wait for Marcel's new snapshot. > > Run the bootstrap script first ;) > > Regards > > Marcel -- Charles Bueche <charles@bueche.ch> sand, snow, wave, wind and net -surfer ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-13 18:51 ` Charles Bueche @ 2003-12-13 19:04 ` Marcel Holtmann 2003-12-14 13:55 ` Charles Bueche 0 siblings, 1 reply; 31+ messages in thread From: Marcel Holtmann @ 2003-12-13 19:04 UTC (permalink / raw) To: Charles Bueche; +Cc: Olivier Bornet, BlueZ Developers List Hi Charles, > it's a CSR, it's included in my Dell Inspiron 8600. The I8600 is recent, > but of course it tells nothing about the included bluetooth module. Here > are the details : > --- > # hciconfig -a > hci0: Type: USB > BD Address: 00:10:C6:22:54:AF ACL MTU: 192:8 SCO MTU: 64:8 > UP RUNNING PSCAN ISCAN > RX bytes:88278 acl:5562 sco:0 events:305 errors:0 > TX bytes:3779 acl:170 sco:0 commands:54 errors:0 > Features: 0xff 0xff 0x0f 0x00 > Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 > Link policy: > Link mode: SLAVE ACCEPT > Name: 'laptopcb (0)' > Class: 0x000000 > Service Classes: Unspecified > Device Class: Miscellaneous, > HCI Ver: 1.1 (0x1) HCI Rev: 0x235 LMP Ver: 1.1 (0x1) LMP Subver: > 0x235 > Manufacturer: Cambridge Silicon Radio (10) > > --- > I don't know how to find the firmware version. I have a dual boot with > XP, so I could look there if there is now way in Linux. this is a HCI 16.5 with 128 bit encryption and it should work fine. The problematic part is maybe that you have no link policy set. The minimum options should be rswitch and sniff. Please use http://www.holtmann.org/linux/bluetooth/btdfu-0.2.tar.gz to extract your firmware and send it to me. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-13 19:04 ` Marcel Holtmann @ 2003-12-14 13:55 ` Charles Bueche 2003-12-14 14:22 ` Marcel Holtmann 0 siblings, 1 reply; 31+ messages in thread From: Charles Bueche @ 2003-12-14 13:55 UTC (permalink / raw) To: Marcel Holtmann; +Cc: Olivier Bornet, BlueZ Developers List Hi Marcel and Olivier, it works. Shame on me. Your remark about my empty link policy googled me to another hcid.conf, and I suddenly saw mine, which was wrongly configured, and worst, *hcid wasn't started*. I'm running gentoo, and for some reason, there are no startup script for bluetooth, so I was starting it by hand (hciconfig hci0 up). Now, my mouse isn't jumpy at all anymore. The only glitch left is that I have to press its "connect" button just after starting bthid if I want a link. Is there a way to get this automated ? I don't like to criticize about missing docs, because I have the same problem at my main contract as Solaris admin (too many things to do to write proper docs). However, bluez suffer a bit from that problem. They are loads of small HOWTOs, but I miss a sort of white paper to explain bluetooth in general. Any pointer is welcome. Meanwhile, I'm still ready to test new versions of bthid or its future replacement. Thanks a lot for your help. As soon as my last prob is worked out (auto-connect of MX900), I'll finish my "yet-another-bluez-mini-HOWTO" :-) Charles On Sat, 2003-12-13 at 20:04, Marcel Holtmann wrote: > Hi Charles, > > > it's a CSR, it's included in my Dell Inspiron 8600. The I8600 is recent, > > but of course it tells nothing about the included bluetooth module. Here > > are the details : > > --- > > # hciconfig -a > > hci0: Type: USB > > BD Address: 00:10:C6:22:54:AF ACL MTU: 192:8 SCO MTU: 64:8 > > UP RUNNING PSCAN ISCAN > > RX bytes:88278 acl:5562 sco:0 events:305 errors:0 > > TX bytes:3779 acl:170 sco:0 commands:54 errors:0 > > Features: 0xff 0xff 0x0f 0x00 > > Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 > > Link policy: > > Link mode: SLAVE ACCEPT > > Name: 'laptopcb (0)' > > Class: 0x000000 > > Service Classes: Unspecified > > Device Class: Miscellaneous, > > HCI Ver: 1.1 (0x1) HCI Rev: 0x235 LMP Ver: 1.1 (0x1) LMP Subver: > > 0x235 > > Manufacturer: Cambridge Silicon Radio (10) > > > > --- > > I don't know how to find the firmware version. I have a dual boot with > > XP, so I could look there if there is now way in Linux. > > this is a HCI 16.5 with 128 bit encryption and it should work fine. The > problematic part is maybe that you have no link policy set. The minimum > options should be rswitch and sniff. Please use > > http://www.holtmann.org/linux/bluetooth/btdfu-0.2.tar.gz > > to extract your firmware and send it to me. > > Regards > > Marcel -- Charles Bueche <charles@bueche.ch> sand, snow, wave, wind and net -surfer ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-14 13:55 ` Charles Bueche @ 2003-12-14 14:22 ` Marcel Holtmann 2003-12-14 20:01 ` Charles Bueche 0 siblings, 1 reply; 31+ messages in thread From: Marcel Holtmann @ 2003-12-14 14:22 UTC (permalink / raw) To: Charles Bueche; +Cc: Olivier Bornet, BlueZ Developers List Hi Charles, > Now, my mouse isn't jumpy at all anymore. The only glitch left is that I > have to press its "connect" button just after starting bthid if I want a > link. Is there a way to get this automated ? this shouldn't be needed, because the mouse reconnects if you start moving it. The only thing you need is a HID server process on your host. > I don't like to criticize about missing docs, because I have the same > problem at my main contract as Solaris admin (too many things to do to > write proper docs). However, bluez suffer a bit from that problem. They > are loads of small HOWTOs, but I miss a sort of white paper to explain > bluetooth in general. Any pointer is welcome. If you understand german you are in the lucky position that I have written some articles for german magazines and most of them are also available online. The missing of a general white paper is a good point. I have thought so many times about writing the one and only introduction into Linux and Bluetooth, but always the same things stopped me from doing this. The first is that no company pays me for working on BlueZ and so we come to the second, that my time is very limited. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-14 14:22 ` Marcel Holtmann @ 2003-12-14 20:01 ` Charles Bueche 2003-12-14 20:09 ` Marcel Holtmann 0 siblings, 1 reply; 31+ messages in thread From: Charles Bueche @ 2003-12-14 20:01 UTC (permalink / raw) To: Marcel Holtmann; +Cc: Olivier Bornet, BlueZ Developers List Hi, On Sun, 2003-12-14 at 15:22, Marcel Holtmann wrote: > Hi Charles, > > > Now, my mouse isn't jumpy at all anymore. The only glitch left is that I > > have to press its "connect" button just after starting bthid if I want a > > link. Is there a way to get this automated ? > > this shouldn't be needed, because the mouse reconnects if you start > moving it. The only thing you need is a HID server process on your host. I have to test more. What is your command line for this ? I use /data/util/bthid-0.8-2.6/bthid -m -d -p 600 00:07:61:08:7E:2E > > I don't like to criticize about missing docs, because I have the same > > problem at my main contract as Solaris admin (too many things to do to > > write proper docs). However, bluez suffer a bit from that problem. They > > are loads of small HOWTOs, but I miss a sort of white paper to explain > > bluetooth in general. Any pointer is welcome. > > If you understand german you are in the lucky position that I have > written some articles for german magazines and most of them are also > available online. I can read it, I will look at your articles, thx for the hint. I have already seen a nice presentation which helped to understand the bluetooth layers. A long time ago, I developped low-level code in Z80 assembler and C for embedded systems, so I'm not completely lost :-) > The missing of a general white paper is a good point. I have thought so > many times about writing the one and only introduction into Linux and > Bluetooth, but always the same things stopped me from doing this. The > first is that no company pays me for working on BlueZ and so we come to > the second, that my time is very limited. You do a very good job in that limited time, given all these beginners like me asking basic stuff on mailing lists :-) Charles -- Charles Bueche <charles@bueche.ch> sand, snow, wave, wind and net -surfer ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-14 20:01 ` Charles Bueche @ 2003-12-14 20:09 ` Marcel Holtmann 0 siblings, 0 replies; 31+ messages in thread From: Marcel Holtmann @ 2003-12-14 20:09 UTC (permalink / raw) To: Charles Bueche; +Cc: Olivier Bornet, BlueZ Developers List Hi Charles, > > this shouldn't be needed, because the mouse reconnects if you start > > moving it. The only thing you need is a HID server process on your host. > > I have to test more. What is your command line for this ? I use > /data/util/bthid-0.8-2.6/bthid -m -d -p 600 00:07:61:08:7E:2E I used Peter's code only once, but I remember that you must use -l to fork a server process. > You do a very good job in that limited time, given all these beginners > like me asking basic stuff on mailing lists :-) Thank you. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-09 20:31 ` Charles Bueche 2003-12-09 22:42 ` Olivier Bornet @ 2003-12-10 1:41 ` Marcel Holtmann 1 sibling, 0 replies; 31+ messages in thread From: Marcel Holtmann @ 2003-12-10 1:41 UTC (permalink / raw) To: Charles Bueche Cc: Olivier Bornet, Edd Dumbill, Peter Klausler, BlueZ Developers List Hi Charles, > - modified out.c to use /dev/misc/uinput (Marcel says devfs produce > this, I don't see exactly what I do wrong or what I should do to get > /dev/input/uinput). I don't use devfs and this is what I have in /dev crw-rw-rw- 1 root root 10, 223 Aug 31 22:05 /dev/input/uinput You can use mknod for creating it. Maybe your devfs problem is a permission problem. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-02 15:55 ` Edd Dumbill 2003-12-02 16:01 ` Edd Dumbill @ 2003-12-02 17:39 ` Marcel Holtmann 2003-12-02 17:42 ` Peter Klausler 2003-12-03 10:10 ` Stephen Crane 1 sibling, 2 replies; 31+ messages in thread From: Marcel Holtmann @ 2003-12-02 17:39 UTC (permalink / raw) To: Edd Dumbill; +Cc: Peter Klausler, Charles Bueche, BlueZ Developers List Hi Edd, > Hmm, I'd thought I'd sent this to the list, but obviously didn't. yes you sent it to list. It still resides in my Bluetooth mailbox and it is working fine. I think Marcelo will take my backport of the uinput driver into 2.4.24 and so uinput should be the way to go, even if this means that we have to implement our own HID parser in userspace. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-02 17:39 ` Marcel Holtmann @ 2003-12-02 17:42 ` Peter Klausler 2003-12-02 17:56 ` Marcel Holtmann 2003-12-03 10:10 ` Stephen Crane 1 sibling, 1 reply; 31+ messages in thread From: Peter Klausler @ 2003-12-02 17:42 UTC (permalink / raw) To: Marcel Holtmann Cc: Edd Dumbill, Peter Klausler, Charles Bueche, BlueZ Developers List On 2003.12.02 11:39 Marcel Holtmann wrote: > Hi Edd, > > > Hmm, I'd thought I'd sent this to the list, but obviously didn't. > > yes you sent it to list. It still resides in my Bluetooth mailbox and > it > is working fine. I think Marcelo will take my backport of the uinput > driver into 2.4.24 and so uinput should be the way to go, even if this > means that we have to implement our own HID parser in userspace. What's wrong with the HID parser in bthid today? ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-02 17:42 ` Peter Klausler @ 2003-12-02 17:56 ` Marcel Holtmann 0 siblings, 0 replies; 31+ messages in thread From: Marcel Holtmann @ 2003-12-02 17:56 UTC (permalink / raw) To: Peter Klausler Cc: Edd Dumbill, Peter Klausler, Charles Bueche, BlueZ Developers List Hi Peter, > > yes you sent it to list. It still resides in my Bluetooth mailbox and > > it > > is working fine. I think Marcelo will take my backport of the uinput > > driver into 2.4.24 and so uinput should be the way to go, even if this > > means that we have to implement our own HID parser in userspace. > > What's wrong with the HID parser in bthid today? my problem is that it depends on static variables and I don't see any method to create HID reports from input events that the kernel send to us and we have to forward to the HID device. For exmaple the keyboard leds. I have rewritten my core HID layer which is now only one process with an event loop. It handles all connection establishment and termination fine without any problems or stalled ACL links. It also gets the vendor and product ID's from the PNP information. Some minor things have to be fixed first, but I think that I will commit it to CVS very soon. If this code is available I hope we can work together on a full featured HID parser implementation and I think we can use your current code as a starting point. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-02 17:39 ` Marcel Holtmann 2003-12-02 17:42 ` Peter Klausler @ 2003-12-03 10:10 ` Stephen Crane 2003-12-03 13:06 ` Marcel Holtmann 1 sibling, 1 reply; 31+ messages in thread From: Stephen Crane @ 2003-12-03 10:10 UTC (permalink / raw) To: Marcel Holtmann Cc: Edd Dumbill, Peter Klausler, Charles Bueche, BlueZ Developers List Hi Marcel, If this posting is anything to go by, 2.4.24 is the very last chance for getting this into the 2.4 series, after that it's bugfixes only: http://www.ussg.iu.edu/hypermail/linux/kernel/0312.0/0052.html On Tue, 2003-12-02 at 17:39, Marcel Holtmann wrote: > Hi Edd, > > > Hmm, I'd thought I'd sent this to the list, but obviously didn't. > > yes you sent it to list. It still resides in my Bluetooth mailbox and it > is working fine. I think Marcelo will take my backport of the uinput > driver into 2.4.24 and so uinput should be the way to go, even if this > means that we have to implement our own HID parser in userspace. > > Regards > > Marcel > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel -- Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com steve.crane@rococosoft.com +353-1-6601315 (ext 209) ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 2003-12-03 10:10 ` Stephen Crane @ 2003-12-03 13:06 ` Marcel Holtmann 0 siblings, 0 replies; 31+ messages in thread From: Marcel Holtmann @ 2003-12-03 13:06 UTC (permalink / raw) To: Stephen Crane Cc: Edd Dumbill, Peter Klausler, Charles Bueche, BlueZ Developers List Hi Stephen, > If this posting is anything to go by, 2.4.24 is the very last chance for > getting this into the 2.4 series, after that it's bugfixes only: > > http://www.ussg.iu.edu/hypermail/linux/kernel/0312.0/0052.html I read his posting and as you see, he already listed the input userlevel driver support. I hope that he will merge it very soon ;) Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2003-12-14 20:09 UTC | newest] Thread overview: 31+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-11-30 14:12 [Bluez-devel] Logitech MX900 mouse with Dell Inspiron 8600 Charles Bueche 2003-11-30 18:51 ` Charles Bueche 2003-12-01 15:38 ` Peter Klausler 2003-12-02 15:55 ` Edd Dumbill 2003-12-02 16:01 ` Edd Dumbill 2003-12-03 20:18 ` Charles Bueche 2003-12-03 20:35 ` Marcel Holtmann 2003-12-04 8:53 ` Olivier Bornet 2003-12-04 13:52 ` Marcel Holtmann 2003-12-04 13:57 ` Olivier Bornet 2003-12-04 14:10 ` Marcel Holtmann 2003-12-04 16:35 ` Olivier Bornet 2003-12-04 17:03 ` Marcel Holtmann 2003-12-09 20:31 ` Charles Bueche 2003-12-09 22:42 ` Olivier Bornet 2003-12-10 8:12 ` Charles Bueche 2003-12-10 8:30 ` Olivier Bornet 2003-12-13 15:56 ` Charles Bueche 2003-12-13 16:39 ` Marcel Holtmann 2003-12-13 18:51 ` Charles Bueche 2003-12-13 19:04 ` Marcel Holtmann 2003-12-14 13:55 ` Charles Bueche 2003-12-14 14:22 ` Marcel Holtmann 2003-12-14 20:01 ` Charles Bueche 2003-12-14 20:09 ` Marcel Holtmann 2003-12-10 1:41 ` Marcel Holtmann 2003-12-02 17:39 ` Marcel Holtmann 2003-12-02 17:42 ` Peter Klausler 2003-12-02 17:56 ` Marcel Holtmann 2003-12-03 10:10 ` Stephen Crane 2003-12-03 13:06 ` Marcel Holtmann
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.