public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] how to switch laptop to usb keyboard
@ 2009-03-02 17:34 Michael Higgins
  2009-03-02 17:42 ` Paul Hartman
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Higgins @ 2009-03-02 17:34 UTC (permalink / raw
  To: gentoo-user

Hey, all --

I picked up a logitech usb keyboard to use with my laptop. Plugged it in and it works... almost. No number keys.

How to I tell X to use this different device when I plug it in?

Cheers,

-- 
 |\  /|        |   |          ~ ~  
 | \/ |        |---|          `|` ?
 |    |ichael  |   |iggins    \^ /
 michael.higgins[at]evolone[dot]org



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] how to switch laptop to usb keyboard
  2009-03-02 17:34 [gentoo-user] how to switch laptop to usb keyboard Michael Higgins
@ 2009-03-02 17:42 ` Paul Hartman
  2009-03-03  2:31   ` Michael Higgins
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Hartman @ 2009-03-02 17:42 UTC (permalink / raw
  To: gentoo-user

On Mon, Mar 2, 2009 at 11:34 AM, Michael Higgins <linux@evolone.org> wrote:
> Hey, all --
>
> I picked up a logitech usb keyboard to use with my laptop. Plugged it in and it works... almost. No number keys.
>
> How to I tell X to use this different device when I plug it in?
>
> Cheers,

Using HAL and .fdi files you can set up rules for that device ID to
treat it as a certain kind of keyboard. Search gentoo forums or google
for some examples and more info about it.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] how to switch laptop to usb keyboard
  2009-03-02 17:42 ` Paul Hartman
@ 2009-03-03  2:31   ` Michael Higgins
  2009-03-03  4:24     ` Mike Kazantsev
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Higgins @ 2009-03-03  2:31 UTC (permalink / raw
  To: gentoo-user

On Mon, 2 Mar 2009 11:42:53 -0600
Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:

> On Mon, Mar 2, 2009 at 11:34 AM, Michael Higgins <linux@evolone.org>
> wrote:
> > Hey, all --
> >
> > I picked up a logitech usb keyboard to use with my laptop. Plugged
> > it in and it works... almost. No number keys.
> >
> > How to I tell X to use this different device when I plug it in?
> >
> > Cheers,
> 
> Using HAL and .fdi files you can set up rules for that device ID to
> treat it as a certain kind of keyboard. Search gentoo forums or google
> for some examples and more info about it.
> 

Still no luck here, as this is new to me. Really, I'm lost on the process... figured it would just work, which it does, except that I don't have number keys... on either keyboard. So, why is *that*?

What should I be trying to do next?

Cheers,

-- 
 |\  /|        |   |          ~ ~  
 | \/ |        |---|          `|` ?
 |    |ichael  |   |iggins    \^ /
 michael.higgins[at]evolone[dot]org



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] how to switch laptop to usb keyboard
  2009-03-03  2:31   ` Michael Higgins
@ 2009-03-03  4:24     ` Mike Kazantsev
  2009-03-03 19:04       ` Michael Higgins
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Kazantsev @ 2009-03-03  4:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 890 bytes --]

On Mon, 2 Mar 2009 18:31:41 -0800
Michael Higgins <linux@evolone.org> wrote:

> Still no luck here, as this is new to me. Really, I'm lost on the
> process... figured it would just work, which it does, except that I
> don't have number keys... on either keyboard. So, why is *that*?
> 
> What should I be trying to do next?

If xev (x11-apps/xev) shows generated events and a keycodes when you
press these keys (on either KB), you can bind them for any purpose you
wish (including KP_*) via xmodmap (x11-apps/xmodmap). Just hack
together an ~/.xmodmaprc file, looking like this:

  keycode 100 = KP_4
  keycode 102 = KP_6
  keycode 98 = KP_8
  keycode 104 = KP_2
  ...

and add 'xmodmap ~/.xmodmaprc' line to some X/WM init script.
Note that the keycodes probably won't be the same for you, but you can
get them from xev output.

-- 
Mike Kazantsev // fraggod.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] how to switch laptop to usb keyboard
  2009-03-03  4:24     ` Mike Kazantsev
@ 2009-03-03 19:04       ` Michael Higgins
  2009-03-03 23:16         ` [gentoo-user] " Miernik
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Higgins @ 2009-03-03 19:04 UTC (permalink / raw
  To: gentoo-user

On Tue, 3 Mar 2009 09:24:38 +0500
Mike Kazantsev <mike_kazantsev@fraggod.net> wrote:

> On Mon, 2 Mar 2009 18:31:41 -0800
> Michael Higgins <linux@evolone.org> wrote:
> 
> > Still no luck here, as this is new to me. Really, I'm lost on the
> > process... figured it would just work, which it does, except that I
> > don't have number keys... on either keyboard. So, why is *that*?
> > 
> > What should I be trying to do next?
> 
> If xev (x11-apps/xev) shows generated events and a keycodes when you
> press these keys (on either KB), 

It doesn't.

What the *keypad* does, after plugging in the usb keyboard, is act as a mouse. I've never seen this... it's kinda cool, actually. Like using an etch-a-sketch.

This is what the device is:

usb 2-1: new low speed USB device using uhci_hcd and address 3
usb 2-1: configuration #1 chosen from 1 choice
input: Logitech Logitech USB Keyboard as /class/input/input8
input: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:1d.1-1

Bus 002 Device 003: ID 046d:c315 Logitech, Inc. 

Some of the bug reports regarding this keyboard have to do with misidentification as a mouse, so maybe that satisfies me enough to let it drop. Maybe at some point in the future it'll just work...

Cheers,

-- 
 |\  /|        |   |          ~ ~  
 | \/ |        |---|          `|` ?
 |    |ichael  |   |iggins    \^ /
 michael.higgins[at]evolone[dot]org



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-user]  Re: how to switch laptop to usb keyboard
  2009-03-03 19:04       ` Michael Higgins
@ 2009-03-03 23:16         ` Miernik
  2009-03-04 22:26           ` Michael Higgins
  0 siblings, 1 reply; 7+ messages in thread
From: Miernik @ 2009-03-03 23:16 UTC (permalink / raw
  To: gentoo-user

Michael Higgins <linux@evolone.org> wrote:
> What the *keypad* does, after plugging in the usb keyboard, is act as
> a mouse. I've never seen this... it's kinda cool, actually. Like using
> an etch-a-sketch.

You can turn such behaviour on and off on any keyboard under X with
Shift+Ctrl+NumLock. Try it, maybe it will bring back numbers.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user]  Re: how to switch laptop to usb keyboard
  2009-03-03 23:16         ` [gentoo-user] " Miernik
@ 2009-03-04 22:26           ` Michael Higgins
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Higgins @ 2009-03-04 22:26 UTC (permalink / raw
  To: gentoo-user

On Wed, 4 Mar 2009 00:16:22 +0100
Miernik <public@public.miernik.name> wrote:

> Michael Higgins <linux@evolone.org> wrote:
> > What the *keypad* does, after plugging in the usb keyboard, is act
> > as a mouse. I've never seen this... it's kinda cool, actually. Like
> > using an etch-a-sketch.
> 
> You can turn such behaviour on and off on any keyboard under X with
> Shift+Ctrl+NumLock. Try it, maybe it will bring back numbers.
> 

1234567890/*-+

THANKS!

Cheers,

-- 
 |\  /|        |   |          ~ ~  
 | \/ |        |---|          `|` ?
 |    |ichael  |   |iggins    \^ /
 michael.higgins[at]evolone[dot]org



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-04 22:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02 17:34 [gentoo-user] how to switch laptop to usb keyboard Michael Higgins
2009-03-02 17:42 ` Paul Hartman
2009-03-03  2:31   ` Michael Higgins
2009-03-03  4:24     ` Mike Kazantsev
2009-03-03 19:04       ` Michael Higgins
2009-03-03 23:16         ` [gentoo-user] " Miernik
2009-03-04 22:26           ` Michael Higgins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox