2002-08-26 09:39:11

by Kai-Boris Schad

[permalink] [raw]
Subject: Q: Howto access the keyboard in a linux system without a graphics card ?

Hi !

I'm trying to set up a small embedded system for gps receiving with a linux
system. I want to have the system working without a graphics card - wich
works well. The Problem I have at the moment is to access the keyboard
without a graphics card, because the console driver does not start then (
Also a redirect doesn't work then :-( )
Is there a way to access the keyboard in this case by a user program ?
The system recognises the keyboard ( I think Kernel and init) and reacts if
ctrl-alt-del is pressed.

Thanks for your help !

Kai

--
Kai-Boris Schad
University of Ulm, Germany
Dept. of Electron Devices and Circuits
Integrated Circuits in Communications
Albert Einstein Allee 45
89069 ULM

http://www.uni-ulm.de/icic
email:[email protected]
phone +49/731/50-31581 fax +49/731/50-31599


2002-08-26 20:29:54

by Eric Lammerts

[permalink] [raw]
Subject: Re: Q: Howto access the keyboard in a linux system without a graphics card ?


On Mon, 26 Aug 2002, Kai-Boris Schad wrote:
> I'm trying to set up a small embedded system for gps receiving with a linux
> system. I want to have the system working without a graphics card - wich
> works well. The Problem I have at the moment is to access the keyboard
> without a graphics card, because the console driver does not start then (
> Also a redirect doesn't work then :-( )
> Is there a way to access the keyboard in this case by a user program ?
> The system recognises the keyboard ( I think Kernel and init) and reacts if
> ctrl-alt-del is pressed.

What would probably work, is to add funkey support to your kernel
(http://rick.vanrein.org/linux/funkey/), define all keys of your
keyboard to be funkeys, and read them from /dev/funkey.

Eric

2002-08-28 18:54:10

by James Simmons

[permalink] [raw]
Subject: Re: Q: Howto access the keyboard in a linux system without a graphics card ?


Its is easy if your keyboard driver is based on the input api. Just use
the /dev/input/event interface.

MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.

James Simmons [[email protected]] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net

On Mon, 26 Aug 2002, Kai-Boris Schad wrote:

> Hi !
>
> I'm trying to set up a small embedded system for gps receiving with a linux
> system. I want to have the system working without a graphics card - wich
> works well. The Problem I have at the moment is to access the keyboard
> without a graphics card, because the console driver does not start then (
> Also a redirect doesn't work then :-( )
> Is there a way to access the keyboard in this case by a user program ?
> The system recognises the keyboard ( I think Kernel and init) and reacts if
> ctrl-alt-del is pressed.
>
> Thanks for your help !
>
> Kai
>
> --
> Kai-Boris Schad
> University of Ulm, Germany
> Dept. of Electron Devices and Circuits
> Integrated Circuits in Communications
> Albert Einstein Allee 45
> 89069 ULM
>
> http://www.uni-ulm.de/icic
> email:[email protected]
> phone +49/731/50-31581 fax +49/731/50-31599
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>