To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
or, via email, send a message with subject or body 'help' to
freebsd-u...@freebsd.org
You can reach the person managing the list at
freebsd-...@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-usb digest..."
Today's Topics:
1. Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
(Hans Petter Selasky)
2. Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
(Alexander Best)
3. Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
(Alexander Best)
4. Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
(Hans Petter Selasky)
5. Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
(Alexander Best)
6. Re: usb/144199: commit references a PR (dfilter service)
7. Re: usb/144201: commit references a PR (dfilter service)
8. Re: usb/144414: commit references a PR (dfilter service)
9. Re: PS3's Joystick on FreeBSD (can be possible?) (Alexander Best)
10. Re: PS3's Joystick on FreeBSD (can be possible?) (Paul B Mahol)
11. Re: PS3's Joystick on FreeBSD (can be possible?) (Alexander Best)
12. Re: PS3's Joystick on FreeBSD (can be possible?) (Paul B Mahol)
13. Re: PS3's Joystick on FreeBSD (can be possible?) (Alexander Best)
14. Re: PS3's Joystick on FreeBSD (can be possible?)
(Hans Petter Selasky)
15. Re: PS3's Joystick on FreeBSD (can be possible?) (Alexander Best)
16. Re: PS3's Joystick on FreeBSD (can be possible?) (Alexander Best)
17. usb to ps/2 adapter works in one machine, but not another?
(Torfinn Ingolfsen)
18. Re: docs/127406: [patch] update umodem man page: Sony
Ericsson W810i (lin...@FreeBSD.org)
19. Re: docs/127406: [patch] update umodem man page: Sony
Ericsson W810i (lin...@FreeBSD.org)
20. Re: usb/127543: [patch] [ubsa] Support Option Globetrotter
HSDPA modem (lin...@FreeBSD.org)
21. Re: usb/127543: [patch] [ubsa] Support Option Globetrotter
HSDPA modem (lin...@FreeBSD.org)
22. Re: usb/127543: [patch] [ubsa] Support Option Globetrotter
HSDPA modem (lin...@FreeBSD.org)
23. Re: PS3's Joystick on FreeBSD (can be possible?) (Alexander Best)
24. Re: usb to ps/2 adapter works in one machine, but not
another? (per...@pluto.rain.com)
25. Re: usb/144414: Apple "Fn" key doesn't work properly
(Steven Noonan)
26. Re: usb/144414: Apple "Fn" key doesn't work properly
(Steven Noonan)
27. Re: usb/144414: Apple "Fn" key doesn't work properly
(Hans Petter Selasky)
28. Re: usb/144414: Apple "Fn" key doesn't work properly
(Steven Noonan)
29. Re: usb/144414: Apple "Fn" key doesn't work properly
(Hans Petter Selasky)
----------------------------------------------------------------------
Message: 1
Date: Thu, 11 Mar 2010 12:29:24 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
To: freeb...@freebsd.org
Cc: Alexander Best <alexb...@wwu.de>
Message-ID: <201003111229....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-15"
On Thursday 11 March 2010 12:25:46 Alexander Best wrote:
> just a product addition to usbdevs.
>
> cheers.
> alex
>
> oh...and one question:
>
Hi,
See USB P4 ID 175574.
> why does `usbconfig dump_device_desc` say
I think you need to compile the kernel with:
option USB_VERBOSE
Before it works like you expect.
> although the vendor id is already in usbdevs?
--HPS
------------------------------
Message: 2
Date: Thu, 11 Mar 2010 13:15:13 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
To: Hans Petter Selasky <hsel...@c2i.net>, <freeb...@freebsd.org>
Message-ID:
<permail-201003111215138...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Hans Petter Selasky schrieb am 2010-03-11:
> On Thursday 11 March 2010 12:25:46 Alexander Best wrote:
> > just a product addition to usbdevs.
> > cheers.
> > alex
> > oh...and one question:
> Hi,
> See USB P4 ID 175574.
thanks. :)
> > why does `usbconfig dump_device_desc` say
> I think you need to compile the kernel with:
> option USB_VERBOSE
> Before it works like you expect.
options USB_VERBOSE seems broken on r204988:
cc -c -O0 -pipe -fno-builtin -march=native -std=c99 -g -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
/usr/src/sys/dev/usb/usb_dev.c
cc -c -O0 -pipe -fno-builtin -march=native -std=c99 -g -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
/usr/src/sys/dev/usb/usb_device.c
In file included from /usr/src/sys/dev/usb/usb_device.c:2181:
./usbdevs_data.h:5671: error: 'USB_VENDOR_MICRODIA' undeclared here (not in a
function)
*** Error code 1
Stop in /usr/obj/usr/src/sys/ARUNDEL.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
> > although the vendor id is already in usbdevs?
> --HPS
i'd also like to ask what the purpose of this code in storage/umass.c is:
#define UMASS_EXT_BUFFER
#ifdef UMASS_EXT_BUFFER
/* this enables loading of virtual buffers into DMA */
#define UMASS_USB_FLAGS .ext_buffer=1,
#else
#define UMASS_USB_FLAGS
#endif
isn't that just doing the same as:
#define UMASS_EXT_BUFFER
/* this enables loading of virtual buffers into DMA */
#define UMASS_USB_FLAGS .ext_buffer=1,
cheers.
alex
------------------------------
Message: 3
Date: Thu, 11 Mar 2010 13:38:39 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
To: Hans Petter Selasky <hsel...@c2i.net>, <freeb...@freebsd.org>
Message-ID:
<permail-201003111238398...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Hans Petter Selasky schrieb am 2010-03-11:
> On Thursday 11 March 2010 12:25:46 Alexander Best wrote:
> > just a product addition to usbdevs.
> > cheers.
> > alex
> > oh...and one question:
> Hi,
> See USB P4 ID 175574.
hmm...with the patch applied and the kernel rebuilt the device's vendor and
product id still get displayed instead of the usbdev-names:
otaku% sudo usbconfig -d ugen3.2 dump_device_desc
ugen3.2: <product 0x2514 vendor 0x0424> at usbus3, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=SAVE
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0009
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0002
bMaxPacketSize0 = 0x0040
idVendor = 0x0424
idProduct = 0x2514
bcdDevice = 0x0000
iManufacturer = 0x0000 <no string>
iProduct = 0x0000 <no string>
iSerialNumber = 0x0000 <no string>
bNumConfigurations = 0x0001
otaku% egrep '0x2514|0x0424' /usr/src/sys/dev/usb/usbdevs
vendor SMC2 0x0424 Standard Microsystems
product SMC2 2514HUB 0x2514 USB Hub
alex
> > why does `usbconfig dump_device_desc` say
> I think you need to compile the kernel with:
> option USB_VERBOSE
> Before it works like you expect.
> > although the vendor id is already in usbdevs?
> --HPS
------------------------------
Message: 4
Date: Thu, 11 Mar 2010 19:21:41 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
To: Alexander Best <alexb...@wwu.de>
Cc: freeb...@freebsd.org
Message-ID: <201003111921....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"
On Thursday 11 March 2010 13:15:13 Alexander Best wrote:
> Hans Petter Selasky schrieb am 2010-03-11:
> > On Thursday 11 March 2010 12:25:46 Alexander Best wrote:
> > > just a product addition to usbdevs.
> > >
> > > cheers.
> > > alex
> > >
> > > oh...and one question:
> >
> > Hi,
> >
> > See USB P4 ID 175574.
>
> thanks. :)
>
> > > why does `usbconfig dump_device_desc` say
> >
> > I think you need to compile the kernel with:
> >
> > option USB_VERBOSE
> >
> > Before it works like you expect.
>
> options USB_VERBOSE seems broken on r204988:
>
Try this patch:
http://www.mail-archive.com/svn-s...@freebsd.org/msg02230.html
>
> Stop in /usr/src.
>
> > > although the vendor id is already in usbdevs?
> >
> > --HPS
>
> i'd also like to ask what the purpose of this code in storage/umass.c is:
>
> #define UMASS_EXT_BUFFER
> #ifdef UMASS_EXT_BUFFER
> /* this enables loading of virtual buffers into DMA */
> #define UMASS_USB_FLAGS .ext_buffer=1,
> #else
> #define UMASS_USB_FLAGS
> #endif
When ext_buffer is set, no data is copied. Else data is copied into an
intermediate buffer.
>
> isn't that just doing the same as:
Probably we should expand those macros.
Send me a patch!
>
> #define UMASS_EXT_BUFFER
> /* this enables loading of virtual buffers into DMA */
> #define UMASS_USB_FLAGS .ext_buffer=1,
>
--HPS
------------------------------
Message: 5
Date: Thu, 11 Mar 2010 21:09:10 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: [patch] add usb hub (0x2514 / 0x0424) to usbdevs
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freeb...@freebsd.org
Message-ID:
<permail-20100311200910f...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Hans Petter Selasky schrieb am 2010-03-11:
> On Thursday 11 March 2010 13:15:13 Alexander Best wrote:
> > Hans Petter Selasky schrieb am 2010-03-11:
> > > On Thursday 11 March 2010 12:25:46 Alexander Best wrote:
> > > > just a product addition to usbdevs.
> > > > cheers.
> > > > alex
> > > > oh...and one question:
> > > Hi,
> > > See USB P4 ID 175574.
> > thanks. :)
> > > > why does `usbconfig dump_device_desc` say
> > > I think you need to compile the kernel with:
> > > option USB_VERBOSE
> > > Before it works like you expect.
> > options USB_VERBOSE seems broken on r204988:
> Try this patch:
> http://www.mail-archive.com/svn-s...@freebsd.org/msg02230.html
thanks. now i can build a kernel with USB_VERBOSE. it seems the changes made
by r185998 were lost/reverted during a later commit. my usbdevs is r204632 and
still had the "/* Microdia products */" section in it.
> > Stop in /usr/src.
> > > > although the vendor id is already in usbdevs?
> > > --HPS
> > i'd also like to ask what the purpose of this code in
> > storage/umass.c is:
> > #define UMASS_EXT_BUFFER
> > #ifdef UMASS_EXT_BUFFER
> > /* this enables loading of virtual buffers into DMA */
> > #define UMASS_USB_FLAGS .ext_buffer=1,
> > #else
> > #define UMASS_USB_FLAGS
> > #endif
> When ext_buffer is set, no data is copied. Else data is copied into
> an
> intermediate buffer.
> > isn't that just doing the same as:
> Probably we should expand those macros.
> Send me a patch!
hehe...ok. i'll see what i can do. ;)
> > #define UMASS_EXT_BUFFER
> > /* this enables loading of virtual buffers into DMA */
> > #define UMASS_USB_FLAGS .ext_buffer=1,
> --HPS
------------------------------
Message: 6
Date: Thu, 11 Mar 2010 21:50:03 GMT
From: dfi...@FreeBSD.ORG (dfilter service)
Subject: Re: usb/144199: commit references a PR
To: freeb...@FreeBSD.org
Message-ID: <201003112150....@freefall.freebsd.org>
The following reply was made to PR usb/144199; it has been noted by GNATS.
From: dfi...@FreeBSD.ORG (dfilter service)
To: bug-fo...@FreeBSD.org
Cc:
Subject: Re: usb/144199: commit references a PR
Date: Thu, 11 Mar 2010 21:46:42 +0000 (UTC)
Author: thompsa
Date: Thu Mar 11 21:46:33 2010
New Revision: 205031
URL: http://svn.freebsd.org/changeset/base/205031
Log:
It appears that some UVISOR devices do not handle when the clear stall command
is issued at the beginning of the initial IN/OUT data transfers. Reason
unknown, probably firmware fault. Now the stall is only cleared on data
transfer errors.
PR: usb/144199
Submitted by: Hans Petter Selasky
Modified:
head/sys/dev/usb/serial/uvisor.c
Modified: head/sys/dev/usb/serial/uvisor.c
==============================================================================
--- head/sys/dev/usb/serial/uvisor.c Thu Mar 11 21:45:31 2010 (r205030)
+++ head/sys/dev/usb/serial/uvisor.c Thu Mar 11 21:46:33 2010 (r205031)
@@ -338,11 +338,6 @@ uvisor_attach(device_t dev)
DPRINTF("could not allocate all pipes\n");
goto detach;
}
- /* clear stall at first run */
- mtx_lock(&sc->sc_mtx);
- usbd_xfer_set_stall(sc->sc_xfer[UVISOR_BULK_DT_WR]);
- usbd_xfer_set_stall(sc->sc_xfer[UVISOR_BULK_DT_RD]);
- mtx_unlock(&sc->sc_mtx);
error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
&uvisor_callback, &sc->sc_mtx);
_______________________________________________
svn-s...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all...@freebsd.org"
------------------------------
Message: 7
Date: Thu, 11 Mar 2010 21:50:05 GMT
From: dfi...@FreeBSD.ORG (dfilter service)
Subject: Re: usb/144201: commit references a PR
To: freeb...@FreeBSD.org
Message-ID: <201003112150....@freefall.freebsd.org>
The following reply was made to PR usb/144201; it has been noted by GNATS.
From: dfi...@FreeBSD.ORG (dfilter service)
To: bug-fo...@FreeBSD.org
Cc:
Subject: Re: usb/144201: commit references a PR
Date: Thu, 11 Mar 2010 21:47:35 +0000 (UTC)
Author: thompsa
Date: Thu Mar 11 21:47:25 2010
New Revision: 205032
URL: http://svn.freebsd.org/changeset/base/205032
Log:
Add new uvisor(4) device ID.
PR: usb/144201
Modified:
head/sys/dev/usb/serial/uvisor.c
head/sys/dev/usb/usbdevs
Modified: head/sys/dev/usb/serial/uvisor.c
==============================================================================
--- head/sys/dev/usb/serial/uvisor.c Thu Mar 11 21:46:33 2010 (r205031)
+++ head/sys/dev/usb/serial/uvisor.c Thu Mar 11 21:47:25 2010 (r205032)
@@ -256,6 +256,7 @@ MODULE_DEPEND(uvisor, usb, 1, 1, 1);
static const struct usb_device_id uvisor_devs[] = {
#define UVISOR_DEV(v,p,i) { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, i) }
UVISOR_DEV(ACEECA, MEZ1000, UVISOR_FLAG_PALM4),
+ UVISOR_DEV(ALPHASMART, DANA_SYNC, UVISOR_FLAG_PALM4),
UVISOR_DEV(GARMIN, IQUE_3600, UVISOR_FLAG_PALM4),
UVISOR_DEV(FOSSIL, WRISTPDA, UVISOR_FLAG_PALM4),
UVISOR_DEV(HANDSPRING, VISOR, UVISOR_FLAG_VISOR),
Modified: head/sys/dev/usb/usbdevs
==============================================================================
--- head/sys/dev/usb/usbdevs Thu Mar 11 21:46:33 2010 (r205031)
+++ head/sys/dev/usb/usbdevs Thu Mar 11 21:47:25 2010 (r205032)
@@ -400,6 +400,7 @@ vendor STSN 0x07ef STSN
vendor CENTURY 0x07f7 Century Corp
vendor ZOOM 0x0803 Zoom Telephonics
vendor PCS 0x0810 Personal Communication Systems
+vendor ALPHASMART 0x081e AlphaSmart, Inc.
vendor BROADLOGIC 0x0827 BroadLogic
vendor HANDSPRING 0x082d Handspring
vendor PALM 0x0830 Palm Computing
@@ -885,6 +886,10 @@ product ALTEC ASC495 0xff05 ASC495 Spea
/* Allied Telesyn International products */
product ALLIEDTELESYN ATUSB100 0xb100 AT-USB100
+/* AlphaSmart, Inc. products */
+product ALPHASMART DANA_KB 0xdbac AlphaSmart Dana Keyboard
+product ALPHASMART DANA_SYNC 0xdf00 AlphaSmart Dana HotSync
+
/* Amoi products */
product AMOI H01 0x0800 H01 3G modem
product AMOI H01A 0x7002 H01A 3G modem
_______________________________________________
svn-s...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all...@freebsd.org"
------------------------------
Message: 8
Date: Thu, 11 Mar 2010 22:00:12 GMT
From: dfi...@FreeBSD.ORG (dfilter service)
Subject: Re: usb/144414: commit references a PR
To: freeb...@FreeBSD.org
Message-ID: <201003112200....@freefall.freebsd.org>
The following reply was made to PR usb/144414; it has been noted by GNATS.
From: dfi...@FreeBSD.ORG (dfilter service)
To: bug-fo...@FreeBSD.org
Cc:
Subject: Re: usb/144414: commit references a PR
Date: Thu, 11 Mar 2010 21:57:15 +0000 (UTC)
Author: thompsa
Date: Thu Mar 11 21:57:01 2010
New Revision: 205040
URL: http://svn.freebsd.org/changeset/base/205040
Log:
extend search for Apple Function Key.
PR: usb/144414
Submitted by: Hans Petter Selasky
Modified:
head/sys/dev/usb/input/ukbd.c
Modified: head/sys/dev/usb/input/ukbd.c
==============================================================================
--- head/sys/dev/usb/input/ukbd.c Thu Mar 11 21:55:25 2010 (r205039)
+++ head/sys/dev/usb/input/ukbd.c Thu Mar 11 21:57:01 2010 (r205040)
@@ -876,28 +876,33 @@ ukbd_attach(device_t dev)
err = usbd_req_get_hid_desc(uaa->device, NULL, &hid_ptr,
&hid_len, M_TEMP, uaa->info.bIfaceIndex);
if (err == 0) {
+ uint8_t apple_keys = 0;
uint8_t temp_id;
/* investigate if this is an Apple Keyboard */
if (hid_locate(hid_ptr, hid_len,
HID_USAGE2(HUP_CONSUMER, HUG_APPLE_EJECT),
hid_input, 0, &sc->sc_loc_apple_eject, &flags,
- &sc->sc_kbd_id)) {
+ &temp_id)) {
if (flags & HIO_VARIABLE)
sc->sc_flags |= UKBD_FLAG_APPLE_EJECT |
UKBD_FLAG_APPLE_SWAP;
- if (hid_locate(hid_ptr, hid_len,
- HID_USAGE2(0xFFFF, 0x0003),
- hid_input, 0, &sc->sc_loc_apple_fn, &flags,
- &temp_id)) {
- if (flags & HIO_VARIABLE)
- sc->sc_flags |= UKBD_FLAG_APPLE_FN |
- UKBD_FLAG_APPLE_SWAP;
- if (temp_id != sc->sc_kbd_id) {
- DPRINTF("HID IDs mismatch\n");
- }
- }
- } else {
+ DPRINTFN(1, "Found Apple eject-key\n");
+ apple_keys = 1;
+ sc->sc_kbd_id = temp_id;
+ }
+ if (hid_locate(hid_ptr, hid_len,
+ HID_USAGE2(0xFFFF, 0x0003),
+ hid_input, 0, &sc->sc_loc_apple_fn, &flags,
+ &temp_id)) {
+ if (flags & HIO_VARIABLE)
+ sc->sc_flags |= UKBD_FLAG_APPLE_FN |
+ UKBD_FLAG_APPLE_SWAP;
+ DPRINTFN(1, "Found Apple FN-key\n");
+ apple_keys = 1;
+ sc->sc_kbd_id = temp_id;
+ }
+ if (apple_keys == 0) {
/*
* Assume the first HID ID contains the
* keyboard data
_______________________________________________
svn-s...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all...@freebsd.org"
------------------------------
Message: 9
Date: Sat, 13 Mar 2010 12:41:57 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: <freeb...@freebsd.org>
Message-ID:
<permail-201003131141578...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
i'm sorry to hijack this thread, but i've been having similar issues as
Vinicius with his PS3 controller with my logitech cordless gamepad. this is
the attach message:
ugen3.3: <Logitech> at usbus3
uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev 1.10/2.00, addr
3> on usbus3
the output of `usbhidctl -f /dev/uhid0 -r` is:
Report descriptor:
Collection page=Generic_Desktop usage=Game_Pad
Total input size 0 bytes
Total output size 0 bytes
Total feature size 0 bytes
if i do `hd /dev/uhid0` is see output like this when pressing buttons on the
gamepad:
00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00 |.xr.i...........|
00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00 |................|
00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00 |.............(..|
00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00 |.............H..|
00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00 |................|
00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00 |................|
00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00 |................|
00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00 |................|
00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00 |................|
00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00 |................|
000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00 |.............. .|
000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00 |................|
000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00 |................|
000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00 |................|
000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00 |................|
the pad has 10 buttons, 1 analog stick, 2 digital sticks, a "mode" button and
a "vibration" button.
cheers.
alex
------------------------------
Message: 10
Date: Sat, 13 Mar 2010 12:56:12 +0100
From: Paul B Mahol <one...@gmail.com>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: Alexander Best <alexb...@wwu.de>
Cc: freeb...@freebsd.org
Message-ID:
<3a142e751003130356w2c9...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> i'm sorry to hijack this thread, but i've been having similar issues as
> Vinicius with his PS3 controller with my logitech cordless gamepad. this is
> the attach message:
>
> ugen3.3: <Logitech> at usbus3
> uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev 1.10/2.00,
> addr
> 3> on usbus3
>
> the output of `usbhidctl -f /dev/uhid0 -r` is:
>
> Report descriptor:
> Collection page=Generic_Desktop usage=Game_Pad
> Total input size 0 bytes
> Total output size 0 bytes
> Total feature size 0 bytes
>
> if i do `hd /dev/uhid0` is see output like this when pressing buttons on the
> gamepad:
>
> 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00
> |.xr.i...........|
> 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00
> |................|
> 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00
> |.............(..|
> 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00
> |.............H..|
> 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00
> |................|
> 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00
> |................|
> 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00
> |................|
> 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00
> |................|
> 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00
> |................|
> 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00
> |................|
> 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00 |..............
> .|
> 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00
> |................|
> 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00
> |................|
> 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00
> |................|
> 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00
> |................|
>
> the pad has 10 buttons, 1 analog stick, 2 digital sticks, a "mode" button
> and
> a "vibration" button.
There was/is ujoy in development but that is all.
------------------------------
Message: 11
Date: Sat, 13 Mar 2010 13:09:34 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: Paul B Mahol <one...@gmail.com>
Cc: freeb...@freebsd.org
Message-ID:
<permail-20100313120934f...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Paul B Mahol schrieb am 2010-03-13:
> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> > i'm sorry to hijack this thread, but i've been having similar
> > issues as
> > Vinicius with his PS3 controller with my logitech cordless gamepad.
> > this is
> > the attach message:
> > ugen3.3: <Logitech> at usbus3
> > uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev
> > 1.10/2.00,
> > addr
> > 3> on usbus3
> > the output of `usbhidctl -f /dev/uhid0 -r` is:
> > Report descriptor:
> > Collection page=Generic_Desktop usage=Game_Pad
> > Total input size 0 bytes
> > Total output size 0 bytes
> > Total feature size 0 bytes
> > if i do `hd /dev/uhid0` is see output like this when pressing
> > buttons on the
> > gamepad:
> > 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00
> > |.xr.i...........|
> > 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00
> > |................|
> > 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00
> > |.............(..|
> > 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00
> > |.............H..|
> > 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00
> > |................|
> > 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00
> > |................|
> > 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00
> > |................|
> > 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00
> > |................|
> > 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00
> > |................|
> > 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00
> > |................|
> > 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00
> > |..............
> > .|
> > 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00
> > |................|
> > 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00
> > |................|
> > 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00
> > |................|
> > 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00
> > |................|
> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a "mode"
> > button
> > and
> > a "vibration" button.
> There was/is ujoy in development but that is all.
thanks for the hint. i mailed the developer a year or so ago due to his post
on the freebsd-drivers@ mailinglist [1], but he told development of the ujoy
driver had ceased. i checked the site mentioned in his post and the ujoy
driver from back then is also no longer available.
so there is no way of xorg or hal working directly with uhid devices then?
cheers.
alex
[1]
http://lists.freebsd.org/pipermail/freebsd-drivers/2008-December/000858.html
------------------------------
Message: 12
Date: Sat, 13 Mar 2010 13:21:10 +0100
From: Paul B Mahol <one...@gmail.com>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: Alexander Best <alexb...@wwu.de>
Cc: freeb...@freebsd.org
Message-ID:
<3a142e751003130421m7e...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> Paul B Mahol schrieb am 2010-03-13:
>> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
>> > i'm sorry to hijack this thread, but i've been having similar
>> > issues as
>> > Vinicius with his PS3 controller with my logitech cordless gamepad.
>> > this is
>> > the attach message:
>
>> > ugen3.3: <Logitech> at usbus3
>> > uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev
>> > 1.10/2.00,
>> > addr
>> > 3> on usbus3
>
>> > the output of `usbhidctl -f /dev/uhid0 -r` is:
>
>> > Report descriptor:
>> > Collection page=Generic_Desktop usage=Game_Pad
>> > Total input size 0 bytes
>> > Total output size 0 bytes
>> > Total feature size 0 bytes
>
>> > if i do `hd /dev/uhid0` is see output like this when pressing
>> > buttons on the
>> > gamepad:
>
>> > 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00
>> > |.xr.i...........|
>> > 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00
>> > |................|
>> > 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00
>> > |.............(..|
>> > 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00
>> > |.............H..|
>> > 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00
>> > |................|
>> > 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00
>> > |................|
>> > 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00
>> > |................|
>> > 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00
>> > |................|
>> > 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00
>> > |................|
>> > 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00
>> > |................|
>> > 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00
>> > |..............
>> > .|
>> > 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00
>> > |................|
>> > 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00
>> > |................|
>> > 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00
>> > |................|
>> > 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00
>> > |................|
>
>> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a "mode"
>> > button
>> > and
>> > a "vibration" button.
>
>> There was/is ujoy in development but that is all.
>
> thanks for the hint. i mailed the developer a year or so ago due to his post
> on the freebsd-drivers@ mailinglist [1], but he told development of the ujoy
> driver had ceased. i checked the site mentioned in his post and the ujoy
> driver from back then is also no longer available.
>
> so there is no way of xorg or hal working directly with uhid devices then?
There is xf86-input-joystick, but I dunno about its usability.
> [1]
> http://lists.freebsd.org/pipermail/freebsd-drivers/2008-December/000858.html
>
------------------------------
Message: 13
Date: Sat, 13 Mar 2010 13:29:34 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: Paul B Mahol <one...@gmail.com>
Cc: freeb...@freebsd.org
Message-ID:
<permail-20100313122934f...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Paul B Mahol schrieb am 2010-03-13:
> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> > Paul B Mahol schrieb am 2010-03-13:
> >> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> >> > i'm sorry to hijack this thread, but i've been having similar
> >> > issues as
> >> > Vinicius with his PS3 controller with my logitech cordless
> >> > gamepad.
> >> > this is
> >> > the attach message:
> >> > ugen3.3: <Logitech> at usbus3
> >> > uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev
> >> > 1.10/2.00,
> >> > addr
> >> > 3> on usbus3
> >> > the output of `usbhidctl -f /dev/uhid0 -r` is:
> >> > Report descriptor:
> >> > Collection page=Generic_Desktop usage=Game_Pad
> >> > Total input size 0 bytes
> >> > Total output size 0 bytes
> >> > Total feature size 0 bytes
> >> > if i do `hd /dev/uhid0` is see output like this when pressing
> >> > buttons on the
> >> > gamepad:
> >> > 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00
> >> > |.xr.i...........|
> >> > 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00
> >> > |................|
> >> > 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00
> >> > |.............(..|
> >> > 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00
> >> > |.............H..|
> >> > 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00
> >> > |................|
> >> > 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00
> >> > |................|
> >> > 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00
> >> > |................|
> >> > 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00
> >> > |................|
> >> > 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00
> >> > |................|
> >> > 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00
> >> > |................|
> >> > 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00
> >> > |..............
> >> > .|
> >> > 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00
> >> > |................|
> >> > 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00
> >> > |................|
> >> > 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00
> >> > |................|
> >> > 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00
> >> > |................|
> >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a
> >> > "mode"
> >> > button
> >> > and
> >> > a "vibration" button.
> >> There was/is ujoy in development but that is all.
> > thanks for the hint. i mailed the developer a year or so ago due to
> > his post
> > on the freebsd-drivers@ mailinglist [1], but he told development of
> > the ujoy
> > driver had ceased. i checked the site mentioned in his post and the
> > ujoy
> > driver from back then is also no longer available.
> > so there is no way of xorg or hal working directly with uhid
> > devices then?
> There is xf86-input-joystick, but I dunno about its usability.
thanks. i'll go check that out. i also found an old post from 1999 saying
something about a usb joystick driver being committed to freebsd "soon" [1].
;)
[1]
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=782800+0+archive/1999/cvs-all/19990704.cvs-all
> > [1]
> > http://lists.freebsd.org/pipermail/freebsd-drivers/2008-December/000858.html
------------------------------
Message: 14
Date: Sat, 13 Mar 2010 13:43:48 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: freeb...@freebsd.org
Cc: Alexander Best <alexb...@wwu.de>
Message-ID: <201003131343....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"
On Saturday 13 March 2010 13:21:10 Paul B Mahol wrote:
> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> > Paul B Mahol schrieb am 2010-03-13:
> >> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> >> > i'm sorry to hijack this thread, but i've been having similar
> >> > issues as
> >> > Vinicius with his PS3 controller with my logitech cordless gamepad.
> >> > this is
> >> > the attach message:
> >> >
> >> > ugen3.3: <Logitech> at usbus3
> >> > uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev
> >> > 1.10/2.00,
> >> > addr
> >> > 3> on usbus3
> >> >
> >> > the output of `usbhidctl -f /dev/uhid0 -r` is:
> >> >
> >> > Report descriptor:
> >> > Collection page=Generic_Desktop usage=Game_Pad
> >> > Total input size 0 bytes
> >> > Total output size 0 bytes
> >> > Total feature size 0 bytes
> >> >
> >> > if i do `hd /dev/uhid0` is see output like this when pressing
> >> > buttons on the
> >> > gamepad:
> >> >
> >> > 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00
> >> >
> >> > |.xr.i...........|
> >> >
> >> > 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00
> >> >
> >> > |................|
> >> >
> >> > 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00
> >> >
> >> > |.............(..|
> >> >
> >> > 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00
> >> >
> >> > |.............H..|
> >> >
> >> > 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00
> >> >
> >> > |................|
> >> >
> >> > 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00
> >> >
> >> > |................|
> >> >
> >> > 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00
> >> >
> >> > |................|
> >> >
> >> > 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00
> >> >
> >> > |................|
> >> >
> >> > 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00
> >> >
> >> > |................|
> >> >
> >> > 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00
> >> >
> >> > |................|
> >> >
> >> > 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00
> >> >
> >> > |..............
> >> >
> >> > .|
> >> > 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00
> >> >
> >> > |................|
> >> >
> >> > 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00
> >> >
> >> > |................|
> >> >
> >> > 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00
> >> >
> >> > |................|
> >> >
> >> > 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00
> >> >
> >> > |................|
> >> >
> >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a "mode"
> >> > button
> >> > and
> >> > a "vibration" button.
> >>
> >> There was/is ujoy in development but that is all.
> >
> > thanks for the hint. i mailed the developer a year or so ago due to his
> > post on the freebsd-drivers@ mailinglist [1], but he told development of
> > the ujoy driver had ceased. i checked the site mentioned in his post and
> > the ujoy driver from back then is also no longer available.
> >
> > so there is no way of xorg or hal working directly with uhid devices
> > then?
>
> There is xf86-input-joystick, but I dunno about its usability.
>
Also look here:
--HPS
------------------------------
Message: 15
Date: Sat, 13 Mar 2010 14:56:21 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: Hans Petter Selasky <hsel...@c2i.net>, <freeb...@freebsd.org>
Message-ID:
<permail-20100313135621f...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Hans Petter Selasky schrieb am 2010-03-13:
> On Saturday 13 March 2010 13:21:10 Paul B Mahol wrote:
> > On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> > > Paul B Mahol schrieb am 2010-03-13:
> > >> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> > >> > i'm sorry to hijack this thread, but i've been having similar
> > >> > issues as
> > >> > Vinicius with his PS3 controller with my logitech cordless
> > >> > gamepad.
> > >> > this is
> > >> > the attach message:
> > >> > ugen3.3: <Logitech> at usbus3
> > >> > uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev
> > >> > 1.10/2.00,
> > >> > addr
> > >> > 3> on usbus3
> > >> > the output of `usbhidctl -f /dev/uhid0 -r` is:
> > >> > Report descriptor:
> > >> > Collection page=Generic_Desktop usage=Game_Pad
> > >> > Total input size 0 bytes
> > >> > Total output size 0 bytes
> > >> > Total feature size 0 bytes
> > >> > if i do `hd /dev/uhid0` is see output like this when pressing
> > >> > buttons on the
> > >> > gamepad:
> > >> > 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00
> > >> > |.xr.i...........|
> > >> > 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00
> > >> > |................|
> > >> > 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00
> > >> > |.............(..|
> > >> > 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00
> > >> > |.............H..|
> > >> > 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00
> > >> > |................|
> > >> > 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00
> > >> > |................|
> > >> > 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00
> > >> > |................|
> > >> > 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00
> > >> > |................|
> > >> > 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00
> > >> > |................|
> > >> > 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00
> > >> > |................|
> > >> > 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00
> > >> > |..............
> > >> > .|
> > >> > 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00
> > >> > |................|
> > >> > 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00
> > >> > |................|
> > >> > 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00
> > >> > |................|
> > >> > 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00
> > >> > |................|
> > >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a
> > >> > "mode"
> > >> > button
> > >> > and
> > >> > a "vibration" button.
> > >> There was/is ujoy in development but that is all.
> > > thanks for the hint. i mailed the developer a year or so ago due
> > > to his
> > > post on the freebsd-drivers@ mailinglist [1], but he told
> > > development of
> > > the ujoy driver had ceased. i checked the site mentioned in his
> > > post and
> > > the ujoy driver from back then is also no longer available.
> > > so there is no way of xorg or hal working directly with uhid
> > > devices
> > > then?
> > There is xf86-input-joystick, but I dunno about its usability.
> Also look here:
> http://wiki.freebsd.org/uhidd
thanks for the hint. i'm about to try it out. however i'm having difficulties
recompiling my kernel without ukbd (which is required for using uhidd):
cc -c -O0 -pipe -fno-builtin -march=native -std=c99 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
vnode_if.c
:> hack.c
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
MAKE=make sh /usr/src/sys/conf/newvers.sh ARUNDEL
cc -c -O0 -pipe -fno-builtin -march=native -std=c99 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
vers.c
linking kernel
kbd.o(.text+0x59b): In function `kbd_register':
: undefined reference to `__start_set_kbddriver_set'
kbd.o(.text+0x686): In function `kbd_register':
: undefined reference to `__stop_set_kbddriver_set'
kbd.o(.text+0x842): In function `kbd_get_switch':
: undefined reference to `__start_set_kbddriver_set'
kbd.o(.text+0x87f): In function `kbd_get_switch':
: undefined reference to `__stop_set_kbddriver_set'
kbd.o(.text+0xdf8): In function `kbd_configure':
: undefined reference to `__start_set_kbddriver_set'
kbd.o(.text+0xe2c): In function `kbd_configure':
: undefined reference to `__stop_set_kbddriver_set'
*** Error code 1
Stop in /usr/obj/usr/src/sys/ARUNDEL.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
alex
> --HPS
------------------------------
Message: 16
Date: Sat, 13 Mar 2010 15:18:14 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: Paul B Mahol <one...@gmail.com>
Cc: freeb...@freebsd.org
Message-ID:
<permail-20100313141814f...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Paul B Mahol schrieb am 2010-03-13:
> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> > Paul B Mahol schrieb am 2010-03-13:
> >> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> >> > i'm sorry to hijack this thread, but i've been having similar
> >> > issues as
> >> > Vinicius with his PS3 controller with my logitech cordless
> >> > gamepad.
> >> > this is
> >> > the attach message:
> >> > ugen3.3: <Logitech> at usbus3
> >> > uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev
> >> > 1.10/2.00,
> >> > addr
> >> > 3> on usbus3
> >> > the output of `usbhidctl -f /dev/uhid0 -r` is:
> >> > Report descriptor:
> >> > Collection page=Generic_Desktop usage=Game_Pad
> >> > Total input size 0 bytes
> >> > Total output size 0 bytes
> >> > Total feature size 0 bytes
> >> > if i do `hd /dev/uhid0` is see output like this when pressing
> >> > buttons on the
> >> > gamepad:
> >> > 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00
> >> > |.xr.i...........|
> >> > 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00
> >> > |................|
> >> > 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00
> >> > |.............(..|
> >> > 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00
> >> > |.............H..|
> >> > 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00
> >> > |................|
> >> > 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00
> >> > |................|
> >> > 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00
> >> > |................|
> >> > 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00
> >> > |................|
> >> > 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00
> >> > |................|
> >> > 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00
> >> > |................|
> >> > 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00
> >> > |..............
> >> > .|
> >> > 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00
> >> > |................|
> >> > 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00
> >> > |................|
> >> > 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00
> >> > |................|
> >> > 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00
> >> > |................|
> >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a
> >> > "mode"
> >> > button
> >> > and
> >> > a "vibration" button.
> >> There was/is ujoy in development but that is all.
> > thanks for the hint. i mailed the developer a year or so ago due to
> > his post
> > on the freebsd-drivers@ mailinglist [1], but he told development of
> > the ujoy
> > driver had ceased. i checked the site mentioned in his post and the
> > ujoy
> > driver from back then is also no longer available.
> > so there is no way of xorg or hal working directly with uhid
> > devices then?
> There is xf86-input-joystick, but I dunno about its usability.
no luck unfortunately:
(**) Option "Device" "/dev/uhid0"
(**) Option "SendCoreEvents"
(**) Logitech Cordless RumblePad 2: always reports core events
(**) Option "DebugLevel" "9"
(**) Logitech Cordless RumblePad 2: debug level set to 9
(**) Button 1 mapped to 5
(**) Button 2 mapped to 5
(**) Button 3 mapped to 5
(**) Button 4 mapped to 0
(**) Button 5 mapped to 0
(**) Button 6 mapped to 0
(**) Button 7 mapped to 0
(**) Button 8 mapped to 0
(**) Button 9 mapped to 0
(**) Button 10 mapped to 0
(**) Button 11 mapped to 0
(**) Button 12 mapped to 0
(**) Button 13 mapped to 0
(**) Button 14 mapped to 0
(**) Button 15 mapped to 0
(**) Button 16 mapped to 0
(**) Button 17 mapped to 0
(**) Button 18 mapped to 0
(**) Button 19 mapped to 0
(**) Button 20 mapped to 0
(**) Button 21 mapped to 0
(**) Button 22 mapped to 0
(**) Button 23 mapped to 0
(**) Button 24 mapped to 0
(**) Button 25 mapped to 0
(**) Button 26 mapped to 0
(**) Button 27 mapped to 0
(**) Button 28 mapped to 0
(**) Button 29 mapped to 0
(**) Button 30 mapped to 0
(**) Button 31 mapped to 0
(**) Button 32 mapped to 0
(**) Axis 1 type is 1, mapped to 1, amplify=1.000
(**) Axis 2 type is 1, mapped to 2, amplify=1.000
(**) Axis 3 type is 1, mapped to 3, amplify=1.000
(**) Axis 4 type is 1, mapped to 4, amplify=1.000
(**) Axis 5 type is 2, mapped to 1, amplify=1.000
(**) Axis 6 type is 2, mapped to 2, amplify=1.000
(**) Axis 7 type is 0, mapped to 0, amplify=1.000
(**) Axis 8 type is 0, mapped to 0, amplify=1.000
(**) Axis 9 type is 0, mapped to 0, amplify=1.000
(**) Axis 10 type is 0, mapped to 0, amplify=1.000
(**) Axis 11 type is 0, mapped to 0, amplify=1.000
(**) Axis 12 type is 0, mapped to 0, amplify=1.000
(**) Axis 13 type is 0, mapped to 0, amplify=1.000
(**) Axis 14 type is 0, mapped to 0, amplify=1.000
(**) Axis 15 type is 0, mapped to 0, amplify=1.000
(**) Axis 16 type is 0, mapped to 0, amplify=1.000
(**) Axis 17 type is 0, mapped to 0, amplify=1.000
(**) Axis 18 type is 0, mapped to 0, amplify=1.000
(**) Axis 19 type is 0, mapped to 0, amplify=1.000
(**) Axis 20 type is 0, mapped to 0, amplify=1.000
(**) Axis 21 type is 0, mapped to 0, amplify=1.000
(**) Axis 22 type is 0, mapped to 0, amplify=1.000
(**) Axis 23 type is 0, mapped to 0, amplify=1.000
(**) Axis 24 type is 0, mapped to 0, amplify=1.000
(**) Axis 25 type is 0, mapped to 0, amplify=1.000
(**) Axis 26 type is 0, mapped to 0, amplify=1.000
(**) Axis 27 type is 0, mapped to 0, amplify=1.000
(**) Axis 28 type is 0, mapped to 0, amplify=1.000
(**) Axis 29 type is 0, mapped to 0, amplify=1.000
(**) Axis 30 type is 0, mapped to 0, amplify=1.000
(**) Axis 31 type is 0, mapped to 0, amplify=1.000
(**) Axis 32 type is 0, mapped to 0, amplify=1.000
(**) Option "SendCoreEvents"
(**) Logitech Cordless RumblePad 2 (keys): always reports core events
(II) XINPUT: Adding extended input device "Logitech Cordless RumblePad 2"
(type: JOYSTICK)
jstkDeviceControlProc what=INIT
(EE) Joystick: Didn't find any usable axes.
(EE) Couldn't init device "Logitech Cordless RumblePad 2"
Fatal server error:
Caught signal 11. Server aborting
cheers.
alex
just found this old thread discussing the problem:
http://lists.freebsd.org/pipermail/freebsd-x11/2009-April/008162.html
> > [1]
> > http://lists.freebsd.org/pipermail/freebsd-drivers/2008-December/000858.html
------------------------------
Message: 17
Date: Sat, 13 Mar 2010 18:07:06 +0100
From: Torfinn Ingolfsen <torfinn....@broadpark.no>
Subject: usb to ps/2 adapter works in one machine, but not another?
To: freeb...@FreeBSD.org
Message-ID: <20100313180706.0aeaa...@broadpark.no>
Content-Type: text/plain; CHARSET=US-ASCII
Hi,
Many new machines / motherboards today comes with only one ps/2 port.
Well, the kvm switches I use still has ps/2 ports. Therefore I use
adapters that plug into a usb port and gives me two ps/2 ports.
Like the Slim USB 2.0 to PS/2 Adapter Dongle (sku 1440)[1] from DX.
I generally only use one port on these - for a mouse.
On a Asus V7-P7H55E[2] it works nicely. Detection in dmesg looks like
this:
Mar 13 17:13:08 kg-v7 kernel: ugen1.4: <GASIA> at usbus1
Mar 13 17:13:08 kg-v7 kernel: ukbd1: <GASIA PS2toUSB Adapter, class 0/0, rev 1.10/2.80, addr 4> on usbus1
Mar 13 17:13:08 kg-v7 kernel: kbd3 at ukbd1
Mar 13 17:13:08 kg-v7 kernel: ums1: <GASIA PS2toUSB Adapter, class 0/0, rev 1.10/2.80, addr 4> on usbus1
Mar 13 17:13:08 kg-v7 kernel: ums1: 5 buttons and [XYZ] coordinates ID=1
The machine runs FreeBSD 8.0-stable / amd64:
root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 8.0-STABLE FreeBSD 8.0-STABLE #1: Fri Mar 12 19:56:45 CET 2010 ro...@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
But on a Gigabyte GA-MA74GM-S2H[3] it doesn't work, even if detection looks similar:
Mar 13 17:43:06 kg-f2 kernel: ugen0.2: <GASIA> at usbus0
Mar 13 17:43:06 kg-f2 kernel: ukbd0: <GASIA PS2toUSB Adapter, class 0/0, rev 1.10/2.80, addr 2> on usbus0
Mar 13 17:43:06 kg-f2 kernel: kbd2 at ukbd0
Mar 13 17:43:06 kg-f2 kernel: ums0: <GASIA PS2toUSB Adapter, class 0/0, rev 1.10/2.80, addr 2> on usbus0
Mar 13 17:43:06 kg-f2 kernel: ums0: 5 buttons and [XYZ] coordinates ID=1
This machine also runs FreeBSD 8.0-stable / amd64:
root@kg-f2# uname -a
FreeBSD kg-f2.kg4.no 8.0-STABLE FreeBSD 8.0-STABLE #3: Fri Mar 5 18:16:51 CET 2010 ro...@kg-f2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
One machine has an Intel usb chipset, and the other an ATI usb chipset, but shouldn't it work anyway?
References:
1) http://www.dealextreme.com/details.dx/sku.1440
2) http://sites.google.com/site/tingox/asus_v7-p7h55e
3) http://sites.google.com/site/tingox/ga-ma74gm-s2h
--
Regards,
Torfinn Ingolfsen
------------------------------
Message: 18
Date: Sat, 13 Mar 2010 20:20:12 GMT
From: lin...@FreeBSD.org
Subject: Re: docs/127406: [patch] update umodem man page: Sony
Ericsson W810i
To: lin...@FreeBSD.org, freeb...@FreeBSD.org,
freeb...@FreeBSD.org
Message-ID: <201003132020....@freefall.freebsd.org>
Synopsis: [patch] update umodem man page: Sony Ericsson W810i
Responsible-Changed-From-To: freeb...@FreeBSD.org->freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Sat Mar 13 20:19:54 UTC 2010
Responsible-Changed-Why:
Canonicalize assignment.
http://www.freebsd.org/cgi/query-pr.cgi?pr=127406
------------------------------
Message: 19
Date: Sat, 13 Mar 2010 20:20:12 GMT
From: lin...@FreeBSD.org
Subject: Re: docs/127406: [patch] update umodem man page: Sony
Ericsson W810i
To: lin...@FreeBSD.org, freeb...@FreeBSD.org,
freeb...@FreeBSD.org
Message-ID: <201003132020....@freefall.freebsd.org>
Synopsis: [patch] update umodem man page: Sony Ericsson W810i
Responsible-Changed-From-To: freeb...@FreeBSD.org->freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Sat Mar 13 20:19:54 UTC 2010
Responsible-Changed-Why:
Canonicalize assignment.
http://www.freebsd.org/cgi/query-pr.cgi?pr=127406
------------------------------
Message: 20
Date: Sat, 13 Mar 2010 20:20:29 GMT
From: lin...@FreeBSD.org
Subject: Re: usb/127543: [patch] [ubsa] Support Option Globetrotter
HSDPA modem
To: lin...@FreeBSD.org, freeb...@FreeBSD.org,
freeb...@FreeBSD.org
Message-ID: <201003132020....@freefall.freebsd.org>
Synopsis: [patch] [ubsa] Support Option Globetrotter HSDPA modem
Responsible-Changed-From-To: freeb...@FreeBSD.org->freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Sat Mar 13 20:20:15 UTC 2010
Responsible-Changed-Why:
Canonicalize assignment.
http://www.freebsd.org/cgi/query-pr.cgi?pr=127543
------------------------------
Message: 21
Date: Sat, 13 Mar 2010 20:20:29 GMT
From: lin...@FreeBSD.org
Subject: Re: usb/127543: [patch] [ubsa] Support Option Globetrotter
HSDPA modem
To: lin...@FreeBSD.org, freeb...@FreeBSD.org,
freeb...@FreeBSD.org
Message-ID: <201003132020....@freefall.freebsd.org>
Synopsis: [patch] [ubsa] Support Option Globetrotter HSDPA modem
Responsible-Changed-From-To: freeb...@FreeBSD.org->freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Sat Mar 13 20:20:15 UTC 2010
Responsible-Changed-Why:
Canonicalize assignment.
http://www.freebsd.org/cgi/query-pr.cgi?pr=127543
------------------------------
Message: 22
Date: Sat, 13 Mar 2010 20:21:36 GMT
From: lin...@FreeBSD.org
Subject: Re: usb/127543: [patch] [ubsa] Support Option Globetrotter
HSDPA modem
To: ga...@freebsd.org, lin...@FreeBSD.org, freeb...@FreeBSD.org
Message-ID: <201003132021....@freefall.freebsd.org>
Synopsis: [patch] [ubsa] Support Option Globetrotter HSDPA modem
State-Changed-From-To: open->feedback
State-Changed-By: linimon
State-Changed-When: Sat Mar 13 20:20:34 UTC 2010
State-Changed-Why:
To submitter: hps claims that this should now be supported by the u3g
driver. Can you confirm this? Thanks.
http://www.freebsd.org/cgi/query-pr.cgi?pr=127543
------------------------------
Message: 23
Date: Sat, 13 Mar 2010 22:36:44 +0100 (CET)
From: Alexander Best <alexb...@wwu.de>
Subject: Re: PS3's Joystick on FreeBSD (can be possible?)
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freeb...@freebsd.org
Message-ID:
<permail-20100313213644f...@message-id.uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Hans Petter Selasky schrieb am 2010-03-13:
> On Saturday 13 March 2010 13:21:10 Paul B Mahol wrote:
> > On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> > > Paul B Mahol schrieb am 2010-03-13:
> > >> On 3/13/10, Alexander Best <alexb...@wwu.de> wrote:
> > >> > i'm sorry to hijack this thread, but i've been having similar
> > >> > issues as
> > >> > Vinicius with his PS3 controller with my logitech cordless
> > >> > gamepad.
> > >> > this is
> > >> > the attach message:
> > >> > ugen3.3: <Logitech> at usbus3
> > >> > uhid0: <Logitech Logitech Cordless RumblePad 2, class 0/0, rev
> > >> > 1.10/2.00,
> > >> > addr
> > >> > 3> on usbus3
> > >> > the output of `usbhidctl -f /dev/uhid0 -r` is:
> > >> > Report descriptor:
> > >> > Collection page=Generic_Desktop usage=Game_Pad
> > >> > Total input size 0 bytes
> > >> > Total output size 0 bytes
> > >> > Total feature size 0 bytes
> > >> > if i do `hd /dev/uhid0` is see output like this when pressing
> > >> > buttons on the
> > >> > gamepad:
> > >> > 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00
> > >> > |.xr.i...........|
> > >> > 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00
> > >> > |................|
> > >> > 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00
> > >> > |.............(..|
> > >> > 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00
> > >> > |.............H..|
> > >> > 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00
> > >> > |................|
> > >> > 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00
> > >> > |................|
> > >> > 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00
> > >> > |................|
> > >> > 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00
> > >> > |................|
> > >> > 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00
> > >> > |................|
> > >> > 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00
> > >> > |................|
> > >> > 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00
> > >> > |..............
> > >> > .|
> > >> > 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00
> > >> > |................|
> > >> > 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00
> > >> > |................|
> > >> > 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00
> > >> > |................|
> > >> > 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00
> > >> > |................|
> > >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a
> > >> > "mode"
> > >> > button
> > >> > and
> > >> > a "vibration" button.
> > >> There was/is ujoy in development but that is all.
> > > thanks for the hint. i mailed the developer a year or so ago due
> > > to his
> > > post on the freebsd-drivers@ mailinglist [1], but he told
> > > development of
> > > the ujoy driver had ceased. i checked the site mentioned in his
> > > post and
> > > the ujoy driver from back then is also no longer available.
> > > so there is no way of xorg or hal working directly with uhid
> > > devices
> > > then?
> > There is xf86-input-joystick, but I dunno about its usability.
> Also look here:
> http://wiki.freebsd.org/uhidd
thanks. i've tried very hard to compile a kernel without ukbd statically
linked in to it and didn't succeed. maybe you could have a look at this? to me
it seems building a kernel with ukbd as module and without it statically
linked into the kernel is broken.
again the error message during buildkernel is:
cc -c -O0 -pipe -fno-builtin -march=native -std=c99 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
vnode_if.c
:> hack.c
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
MAKE=make sh /usr/src/sys/conf/newvers.sh ARUNDEL
cc -c -O0 -pipe -fno-builtin -march=native -std=c99 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
vers.c
linking kernel
kbd.o(.text+0x59b): In function `kbd_register':
: undefined reference to `__start_set_kbddriver_set'
kbd.o(.text+0x686): In function `kbd_register':
: undefined reference to `__stop_set_kbddriver_set'
kbd.o(.text+0x842): In function `kbd_get_switch':
: undefined reference to `__start_set_kbddriver_set'
kbd.o(.text+0x87f): In function `kbd_get_switch':
: undefined reference to `__stop_set_kbddriver_set'
kbd.o(.text+0xdf8): In function `kbd_configure':
: undefined reference to `__start_set_kbddriver_set'
kbd.o(.text+0xe2c): In function `kbd_configure':
: undefined reference to `__stop_set_kbddriver_set'
*** Error code 1
Stop in /usr/obj/usr/src/sys/ARUNDEL.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
> --HPS
------------------------------
Message: 24
Date: Sat, 13 Mar 2010 18:06:01 -0800
From: per...@pluto.rain.com
Subject: Re: usb to ps/2 adapter works in one machine, but not
another?
To: torfinn....@broadpark.no
Cc: freeb...@freebsd.org
Message-ID: <4b9c4489./UfK+ON+Pg58oJ8B%per...@pluto.rain.com>
Content-Type: text/plain; charset=us-ascii
Torfinn Ingolfsen <torfinn....@broadpark.no> wrote:
> Many new machines / motherboards today comes with only one
> ps/2 port. Well, the kvm switches I use still has ps/2 ports.
> Therefore I use adapters that plug into a usb port and gives
> me two ps/2 ports ... I generally only use one port on these
> - for a mouse.
There may be a simpler solution. The systems I've seen with only
one ps/2 jack had both the keyboard and the mouse signals wired to
the single jack. (Quick test: if it is wired this way it will work
with either a keyboard or a mouse.) If that's how yours is set up
you can get a Y adapter with one ps/2 plug and two ps/2 jacks, and
not need to deal with USB keyboard or mouse support at all.
------------------------------
Message: 25
Date: Sun, 14 Mar 2010 03:26:19 -0700
From: Steven Noonan <ste...@uplinklabs.net>
Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
To: per...@pluto.rain.com
Cc: freebsd-gn...@freebsd.org, freeb...@freebsd.org
Message-ID:
<f488382f1003140326j7c8...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan <ste...@uplinklabs.net> wrote:
> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan <ste...@uplinklabs.net> wrote:
>> On Wed, Mar 3, 2010 at 10:36 PM, <per...@pluto.rain.com> wrote:
>>> Steven Noonan <ste...@uplinklabs.net> wrote:
>>>> Interestingly, my tilde key doesn't work either (though the key
>>>> press is detected, no character shows when the key is pressed).
>>>
>>> Any chance it is configured as a "dead" key? If you press
>>> tilde followed by n do you get an n with a tilde over it?
>>>
>>
>> Nope. It simply does nothing in the console.
>>
>> But in X11, it does something very odd. Shift+Tilde Key gives me '>',
>> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I don't
>> even know what action. It's grabbing some arbitrary command in my
>> .bash_history. It gave me the first item in my .bash_history the first
>> time I tried it. Then I tried an arbitrary command ("echo"), and then
>> Alt+Tilde gave me the second command in my .bash_history. Whaa?
>>
Any more ideas/news on this from anyone?
The tilde key thing is especially irritating.
- Steven
------------------------------
Message: 26
Date: Sun, 14 Mar 2010 10:30:04 GMT
From: Steven Noonan <ste...@uplinklabs.net>
Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
To: freeb...@FreeBSD.org
Message-ID: <201003141030....@freefall.freebsd.org>
The following reply was made to PR usb/144414; it has been noted by GNATS.
From: Steven Noonan <ste...@uplinklabs.net>
To: per...@pluto.rain.com
Cc: freeb...@freebsd.org, freebsd-gn...@freebsd.org
Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
Date: Sun, 14 Mar 2010 03:26:19 -0700
On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan <ste...@uplinklabs.net> wrot=
e:
> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan <ste...@uplinklabs.net> wr=
ote:
>> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0<per...@pluto.rain.com> wrote:
>>> Steven Noonan <ste...@uplinklabs.net> wrote:
>>>> Interestingly, my tilde key doesn't work either (though the key
>>>> press is detected, no character shows when the key is pressed).
>>>
>>> Any chance it is configured as a "dead" key? =C2=A0If you press
>>> tilde followed by n do you get an n with a tilde over it?
>>>
>>
>> Nope. It simply does nothing in the console.
>>
>> But in X11, it does something very odd. Shift+Tilde Key gives me '>',
>> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I don't
>> even know what action. It's grabbing some arbitrary command in my
>> .bash_history. It gave me the first item in my .bash_history the first
>> time I tried it. Then I tried an arbitrary command ("echo"), and then
>> Alt+Tilde gave me the second command in my .bash_history. Whaa?
>>
Any more ideas/news on this from anyone?
The tilde key thing is especially irritating.
- Steven
------------------------------
Message: 27
Date: Sun, 14 Mar 2010 12:01:03 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
To: freeb...@freebsd.org, Steven Noonan <ste...@uplinklabs.net>
Message-ID: <201003141201....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-15"
On Sunday 14 March 2010 11:30:04 Steven Noonan wrote:
> The following reply was made to PR usb/144414; it has been noted by GNATS.
>
> From: Steven Noonan <ste...@uplinklabs.net>
> To: per...@pluto.rain.com
> Cc: freeb...@freebsd.org, freebsd-gn...@freebsd.org
> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
> Date: Sun, 14 Mar 2010 03:26:19 -0700
>
> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan <ste...@uplinklabs.net>
> wrot=
>
> e:
> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan <ste...@uplinklabs.net>
> > wr=
>
> ote:
> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0<per...@pluto.rain.com> wrote:
> >>> Steven Noonan <ste...@uplinklabs.net> wrote:
> >>>> Interestingly, my tilde key doesn't work either (though the key
> >>>> press is detected, no character shows when the key is pressed).
> >>>
> >>> Any chance it is configured as a "dead" key? =C2=A0If you press
> >>> tilde followed by n do you get an n with a tilde over it?
> >>
> >> Nope. It simply does nothing in the console.
> >>
> >> But in X11, it does something very odd. Shift+Tilde Key gives me '>',
> >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I don't
> >> even know what action. It's grabbing some arbitrary command in my
> >> .bash_history. It gave me the first item in my .bash_history the first
> >> time I tried it. Then I tried an arbitrary command ("echo"), and then
> >> Alt+Tilde gave me the second command in my .bash_history. Whaa?
>
> Any more ideas/news on this from anyone?
>
> The tilde key thing is especially irritating.
>
static uint8_t
ukbd_apple_swap(uint8_t keycode) {
switch (keycode) {
case 0x35: return 0x64;
case 0x64: return 0x35;
default: return keycode;
}
}
Can you try to change the function above in ukbd.c to only return keycode? Any
difference?
--HPS
------------------------------
Message: 28
Date: Sun, 14 Mar 2010 05:22:33 -0800
From: Steven Noonan <ste...@uplinklabs.net>
Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freeb...@freebsd.org
Message-ID:
<f488382f1003140622j778...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky <hsel...@c2i.net> wrote:
> On Sunday 14 March 2010 11:30:04 Steven Noonan wrote:
>> The following reply was made to PR usb/144414; it has been noted by GNATS.
>>
>> From: Steven Noonan <ste...@uplinklabs.net>
>> To: per...@pluto.rain.com
>> Cc: freeb...@freebsd.org, freebsd-gn...@freebsd.org
>> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
>> Date: Sun, 14 Mar 2010 03:26:19 -0700
>>
>> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan <ste...@uplinklabs.net>
>> wrot=
>>
>> e:
>> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan <ste...@uplinklabs.net>
>> > wr=
>>
>> ote:
>> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0<per...@pluto.rain.com> wrote:
>> >>> Steven Noonan <ste...@uplinklabs.net> wrote:
>> >>>> Interestingly, my tilde key doesn't work either (though the key
>> >>>> press is detected, no character shows when the key is pressed).
>> >>>
>> >>> Any chance it is configured as a "dead" key? =C2=A0If you press
>> >>> tilde followed by n do you get an n with a tilde over it?
>> >>
>> >> Nope. It simply does nothing in the console.
>> >>
>> >> But in X11, it does something very odd. Shift+Tilde Key gives me '>',
>> >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I don't
>> >> even know what action. It's grabbing some arbitrary command in my
>> >> .bash_history. It gave me the first item in my .bash_history the first
>> >> time I tried it. Then I tried an arbitrary command ("echo"), and then
>> >> Alt+Tilde gave me the second command in my .bash_history. Whaa?
>>
>> Any more ideas/news on this from anyone?
>>
>> The tilde key thing is especially irritating.
>>
>
> static uint8_t
> ukbd_apple_swap(uint8_t keycode) {
> switch (keycode) {
> case 0x35: return 0x64;
> case 0x64: return 0x35;
> default: return keycode;
> }
> }
>
> Can you try to change the function above in ukbd.c to only return keycode? Any
> difference?
>
Yep, commenting the two case lines brought my tilde key back. Any idea
what the ukbd_apple_swap() function was _supposed_ to be doing?
Also, there's only one thing left (input-wise) that I can't get to
work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain
that it's not a problem with Fn+Backspace failing to map to Delete,
because my non-Mac i386 box has the same problem.
Everything I read online keeps saying to muck with an .inputrc file
(for bash, anyway), but I haven't been able to get it to work. Places
I've looked have said to add this to .inputrc:
"\e[3~": delete-char
But this seems to have no effect (and I tried bind -f .inputrc in case
my INPUTRC environment variable wasn't working). Is there something
FreeBSD-specific I'm not seeing, or what?
- Steven
------------------------------
Message: 29
Date: Sun, 14 Mar 2010 14:48:30 +0100
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
To: Steven Noonan <ste...@uplinklabs.net>
Cc: Christoph Langguth <chri...@rosenkeller.org>,
freebsd-gn...@freebsd.org, freeb...@freebsd.org
Message-ID: <201003141448....@c2i.net>
Content-Type: Text/Plain; charset="utf-8"
On Sunday 14 March 2010 14:22:33 Steven Noonan wrote:
> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky <hsel...@c2i.net>
wrote:
> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote:
> >> The following reply was made to PR usb/144414; it has been noted by
> >> GNATS.
> >>
> >> From: Steven Noonan <ste...@uplinklabs.net>
> >> To: per...@pluto.rain.com
> >> Cc: freeb...@freebsd.org, freebsd-gn...@freebsd.org
> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly
> >> Date: Sun, 14 Mar 2010 03:26:19 -0700
> >>
> >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan <ste...@uplinklabs.net>
> >> wrot=
> >>
> >> e:
> >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan
> >> <ste...@uplinklabs.net> > wr=
> >>
> >> ote:
> >> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0<per...@pluto.rain.com>
> >> wrote: >>> Steven Noonan <ste...@uplinklabs.net> wrote:
> >> >>>> Interestingly, my tilde key doesn't work either (though the key
> >> >>>> press is detected, no character shows when the key is pressed).
> >> >>>
> >> >>> Any chance it is configured as a "dead" key? =C2=A0If you press
> >> >>> tilde followed by n do you get an n with a tilde over it?
> >> >>
> >> >> Nope. It simply does nothing in the console.
> >> >>
> >> >> But in X11, it does something very odd. Shift+Tilde Key gives me
> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I
> >> don't >> even know what action. It's grabbing some arbitrary command in
> >> my >> .bash_history. It gave me the first item in my .bash_history the
> >> first >> time I tried it. Then I tried an arbitrary command ("echo"),
> >> and then >> Alt+Tilde gave me the second command in my .bash_history.
> >> Whaa?
> >>
> >> Any more ideas/news on this from anyone?
> >>
> >> The tilde key thing is especially irritating.
> >
> > static uint8_t
> > ukbd_apple_swap(uint8_t keycode) {
> > switch (keycode) {
> > case 0x35: return 0x64;
> > case 0x64: return 0x35;
> > default: return keycode;
> > }
> > }
> >
> > Can you try to change the function above in ukbd.c to only return
> > keycode? Any difference?
>
> Yep, commenting the two case lines brought my tilde key back. Any idea
> what the ukbd_apple_swap() function was _supposed_ to be doing?
>
> Also, there's only one thing left (input-wise) that I can't get to
> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain
> that it's not a problem with Fn+Backspace failing to map to Delete,
> because my non-Mac i386 box has the same problem.
>
> Everything I read online keeps saying to muck with an .inputrc file
> (for bash, anyway), but I haven't been able to get it to work. Places
> I've looked have said to add this to .inputrc:
>
> "\e[3~": delete-char
>
> But this seems to have no effect (and I tried bind -f .inputrc in case
> my INPUTRC environment variable wasn't working). Is there something
> FreeBSD-specific I'm not seeing, or what?
>
> - Steven
>
Hi Steven,
Can you talk this over with Christoph and send me a patch when you agreed?
He's the one that made the Apple-SWAP key patch. Meanwhile I suggest the
following patch:
==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 -
src/sys/dev/usb/input/ukbd.c ====
@@ -896,8 +896,7 @@
hid_input, 0, &sc->sc_loc_apple_fn, &flags,
&temp_id)) {
if (flags & HIO_VARIABLE)
- sc->sc_flags |= UKBD_FLAG_APPLE_FN |
- UKBD_FLAG_APPLE_SWAP;
+ sc->sc_flags |= UKBD_FLAG_APPLE_FN;
DPRINTFN(1, "Found Apple FN-key\n");
apple_keys = 1;
sc->sc_kbd_id = temp_id;
The hardware that Christoph was using had an Eject-key, while yours didn't. I
think the patch above will make both cases work.
Christoph, do you have any comments?
http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/sys/dev/usb/input/ukbd.c&REV=47
--HPS
------------------------------
End of freebsd-usb Digest, Vol 279, Issue 2
*******************************************