Re: Logitech G15

2007-10-14 Thread Roland Smith
On Sun, Oct 14, 2007 at 09:56:11PM +0200, Bruce Alcock wrote:

> No, it does absolutely nothing. I've mapped keysyms for a multimedia
> keyboard with xmodmap before, so I know what I'm doing there. There's a
> linux driver program ( http://g15tools.sourceforge.net/) which allows you to
> use everything, including the LCD screen on the keyboard. Unfortunately it
> requires linux kernel support to work, which obviously I can't give it in
> FreeBSD...any ideas? Really keen to just be able to use the extra keys, dont
> care about the LCD :-P

> Let me just add to that: I've compiled g15tools and g15daemon and installed
> them in FreeBSD...when I run the g15daemon program i get:
> An Error Occured - 2 : ( Unable to initialize keyboard ) received
> Which I think is because it tries to load itself into the linux kernel at
> that point...

AFAICT, g15daemon isn't a linux kernel module, so it can't  load itself
into the kernel.

From a cursory inspection of the g15daemon source code, it does try to
access Linux specific devices, which is where I assume it fails.

If you plug the keyboard in, does it show up as a uhid device, or as ugen?

There are two things you could do, I think.
- Port the libg15 and g15daemon to FreeBSD
- Add support for the g15 to the existing uhid(4) driver.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpi3D6Y6BCFe.pgp
Description: PGP signature


Logitech G15

2007-10-14 Thread Bruce Alcock
- Forwarded message --
From: Bruce Alcock <[EMAIL PROTECTED]>
Date: Oct 14, 2007 9:49 PM
Subject: Re: Logitech G15
To: freebsd-questions@freebsd.org

On 10/14/07, Roland Smith <[EMAIL PROTECTED]> wrote:
>
> On Sun, Oct 14, 2007 at 08:11:30PM +0200, Bruce Alcock wrote:
> > >
> > It doesn't generate keysyms...hence the problem. Thanks, should've
> mentioned
> > that. Anyone got any ideas how to map keys that don't generate keysyms?
> Or
> > how to make them make keysyms rather?
>
> Does they generate KeyPress and KeyRelease events, with a keycode?  If
> the buttons don't generate events, I think there isn't anything you can
> do with those keys. :-) But if they do, you can assign them a keysym in
> ~/.Xmodmap. See xmodmap(1).
>
> A list of keysyms is available in /usr/local/include/X11/keysymdef.h.
> You should remove the 'XK_' prefix from each keysym, though. I suggest
> you pick a couple of unused ones instead of defining your own.
>
> Roland
> --
> R.F.Smith   
> http://www.xs4all.nl/~rsmith/<http://www.xs4all.nl/%7Ersmith/>
> [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
> pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
>
>
No, it does absolutely nothing. I've mapped keysyms for a multimedia
keyboard with xmodmap before, so I know what I'm doing there. There's a
linux driver program ( http://g15tools.sourceforge.net/) which allows you to
use everything, including the LCD screen on the keyboard. Unfortunately it
requires linux kernel support to work, which obviously I can't give it in
FreeBSD...any ideas? Really keen to just be able to use the extra keys, dont
care about the LCD :-P

Bruce



Let me just add to that: I've compiled g15tools and g15daemon and installed
them in FreeBSD...when I run the g15daemon program i get:
An Error Occured - 2 : ( Unable to initialize keyboard ) received
Which I think is because it tries to load itself into the linux kernel at
that point...

Regards
Bruce
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Logitech G15

2007-10-14 Thread Bruce Alcock
On 10/14/07, Roland Smith <[EMAIL PROTECTED]> wrote:
>
> On Sun, Oct 14, 2007 at 08:11:30PM +0200, Bruce Alcock wrote:
> > >
> > It doesn't generate keysyms...hence the problem. Thanks, should've
> mentioned
> > that. Anyone got any ideas how to map keys that don't generate keysyms?
> Or
> > how to make them make keysyms rather?
>
> Does they generate KeyPress and KeyRelease events, with a keycode?  If
> the buttons don't generate events, I think there isn't anything you can
> do with those keys. :-) But if they do, you can assign them a keysym in
> ~/.Xmodmap. See xmodmap(1).
>
> A list of keysyms is available in /usr/local/include/X11/keysymdef.h.
> You should remove the 'XK_' prefix from each keysym, though. I suggest
> you pick a couple of unused ones instead of defining your own.
>
> Roland
> --
> R.F.Smith   http://www.xs4all.nl/~rsmith/
> [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
> pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
>
>
No, it does absolutely nothing. I've mapped keysyms for a multimedia
keyboard with xmodmap before, so I know what I'm doing there. There's a
linux driver program (http://g15tools.sourceforge.net/) which allows you to
use everything, including the LCD screen on the keyboard. Unfortunately it
requires linux kernel support to work, which obviously I can't give it in
FreeBSD...any ideas? Really keen to just be able to use the extra keys, dont
care about the LCD :-P

Bruce
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Logitech G15

2007-10-14 Thread Roland Smith
On Sun, Oct 14, 2007 at 08:11:30PM +0200, Bruce Alcock wrote:
> >
> It doesn't generate keysyms...hence the problem. Thanks, should've mentioned
> that. Anyone got any ideas how to map keys that don't generate keysyms? Or
> how to make them make keysyms rather?

Does they generate KeyPress and KeyRelease events, with a keycode?  If
the buttons don't generate events, I think there isn't anything you can
do with those keys. :-) But if they do, you can assign them a keysym in
~/.Xmodmap. See xmodmap(1).

A list of keysyms is available in /usr/local/include/X11/keysymdef.h. 
You should remove the 'XK_' prefix from each keysym, though. I suggest
you pick a couple of unused ones instead of defining your own.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpoUrsge3iFh.pgp
Description: PGP signature


Re: Logitech G15

2007-10-14 Thread Bruce Alcock
On 10/14/07, Roland Smith <[EMAIL PROTECTED]> wrote:
>
> On Sun, Oct 14, 2007 at 11:16:31AM +0200, Bruce Alcock wrote:
> > Hi
> >
> > I own a Logitech G15 keyboard and although the standard keys work, none
> of
> > the multimedia or 'G' keys do. I've googled a lot on the matter and
> although
> > there is a linux kernel driver, nothing exists for FreeBSD. I'm using
> > 6.2STABLE RC2 and Xorg
> > 7.3. Has anyone got any ideas? Even ways to go about writing a driver
> myself
> > would be helpful.
>
> When in X, launch xev(1) and give it the input focus. Now press the
> special keys and see which keysyms they generate.
>
> Once you know what the keysyms are, you could use them to tell the
> window manager to e.g. launch a program when they are pressed. How that
> is done depends on the window manager, of course.
>
> Roland
> --
> R.F.Smith   http://www.xs4all.nl/~rsmith/
> [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
> pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
>
>
It doesn't generate keysyms...hence the problem. Thanks, should've mentioned
that. Anyone got any ideas how to map keys that don't generate keysyms? Or
how to make them make keysyms rather?

Thanks
Bruce
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Logitech G15

2007-10-14 Thread Roland Smith
On Sun, Oct 14, 2007 at 11:16:31AM +0200, Bruce Alcock wrote:
> Hi
> 
> I own a Logitech G15 keyboard and although the standard keys work, none of
> the multimedia or 'G' keys do. I've googled a lot on the matter and although
> there is a linux kernel driver, nothing exists for FreeBSD. I'm using
> 6.2STABLE RC2 and Xorg
> 7.3. Has anyone got any ideas? Even ways to go about writing a driver myself
> would be helpful.

When in X, launch xev(1) and give it the input focus. Now press the
special keys and see which keysyms they generate.

Once you know what the keysyms are, you could use them to tell the
window manager to e.g. launch a program when they are pressed. How that
is done depends on the window manager, of course.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpirfqXh8PoG.pgp
Description: PGP signature


Logitech G15

2007-10-14 Thread Bruce Alcock
Hi

I own a Logitech G15 keyboard and although the standard keys work, none of
the multimedia or 'G' keys do. I've googled a lot on the matter and although
there is a linux kernel driver, nothing exists for FreeBSD. I'm using
6.2STABLE RC2 and Xorg
7.3. Has anyone got any ideas? Even ways to go about writing a driver myself
would be helpful.

Thanks
Bruce Alcock
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"