I have ported all g15 tools to freebsd and libg15 not find my keyboard. I need to add the new keyboard ids to libg15
usbdevs -v -f /dev/usb0
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), ATI(0x0000), rev 1.00
port 1 addr 3: full speed, power 100 mA, config 1, G15 Keyboard Hub(0xc223), vendor 0x046d(0x046d), rev 0.20
port 1 addr 4: low speed, power 100 mA, config 1, G15 Gaming Keyboard(0xc226), vendor 0x046d(0x046d), rev 1.00
port 2 powered
port 3 powered
port 4 addr 5: full speed, power 100 mA, config 1, G15 GamePanel LCD(0xc227), vendor 0x046d(0x046d), rev 0.20
port 2 addr 2: full speed, power 98 mA, config 1, G9 Laser Mouse(0xc048), Logitech(0x046d), rev 50.00
I'm added:
--- libg15.c.orig 2008-01-19 22:02:04.000000000 +0200
+++ libg15.c 2008-05-10 14:41:42.000000000 +0300
@@ -44,8 +44,9 @@
const libg15_devices_t g15_devices[] = {
DEVICE("Logitech G15",0x46d,0xc222,G15_LCD|G15_KEYS),
DEVICE("Logitech G11",0x46d,0xc225,G15_KEYS),
+ DEVICE("G15 Gaming Keyboard",0x46d,0xc226,G15_LCD|G15_KEYS),
DEVICE("Logitech Z-10",0x46d,0x0a07,G15_LCD|G15_KEYS|G15_DEVICE_IS_SHARED),
- DEVICE("Logitech G15 v2",0x46d,0xc227,G15_LCD|G15_KEYS|G15_DEVICE_5BYTE_RETURN),
+ DEVICE("G15 GamePanel LCD",0x46d,0xc227,G15_LCD|G15_KEYS|G15_DEVICE_IS_SHARED),
DEVICE("Logitech Gamepanel",0x46d,0xc251,G15_LCD|G15_KEYS|G15_DEVICE_IS_SHARED),
DEVICE(NULL,0,0,0)
And:
@@ -109,11 +114,8 @@
* / busses added / removed since the last call. since this is the first
* call we have to return values != 0 or else we didnt find anything */
- if (!usb_find_busses())
- return G15_ERROR_OPENING_USB_DEVICE;
-
- if (!usb_find_devices())
- return G15_ERROR_OPENING_USB_DEVICE;
+ usb_find_busses();
+ usb_find_devices();
return G15_NO_ERROR;
}
g15daemon:
g15daemon -d
G15Daemon CMDLINE ARGS: -d
usb_set_debug: Setting debugging level to 1 (on)
libg15: libg15 1.2.6
libg15: Found 0 supported devices
libg15: Trying to find Logitech G15
libg15: Logitech G15 not found
libg15: Trying to find Logitech G11
libg15: Logitech G11 not found
libg15: Trying to find G15 Gaming Keyboard
libg15: G15 Gaming Keyboard not found
libg15: Trying to find Logitech Z-10
libg15: Logitech Z-10 not found
libg15: Trying to find G15 GamePanel LCD
libg15: G15 GamePanel LCD not found
libg15: Trying to find Logitech Gamepanel
libg15: Logitech Gamepanel not found
Unable to attach to the G15 Keyboard... exiting
What's i'm wrong?
Re: libg15 and new G15 keyboard.
I added a quick (and completely untested) howto for FreeBSD to G15Daemon SVN a while ago, which I'll reproduce here. Please let me know if it does/doesn't work.
---
In order for G15Daemon to be able to claim the usb device needed for the LCD and extra keys,
the following _kernel_ configuration changes may be necessary:
First test if ugen is already enabled:
- Plug in the keyboard or other supported USB device.
- dmesg |grep "ugen"
- you should see a line similar to "ugen0: Logitech G15 Keyboard"
If not already enabled:
For FreeBSD versions 5.4 and below, and version 6.0:
Disable uhid
Enable ugen
For FreeBSD versions 5.5, 6.1 and higher:
Enable ugen
Recompile the kernel and reboot.
NetBSD and OpenBSD are not supported at this time due to libusb deficiencies on those platforms.
---
Re: libg15 and new G15 keyboard.
libg15 relies on non-portable functions in libusb that will only work on linux. If you can somehow prevent the HID driver from attaching to the keyboard before starting g15daemon you may be able to get it working, but I can't make any guarantees.