Taking over /dev/kbd

On a custom machine the keyboard doesn’t have the CTRL ALT keys.
That means user can’t press CTRL-ALT-BACKSPACE to get
out of the XServer can come back to text mode.

Solution is to replace that key sequence with another. Unfortunately
this key sequence is hardcoded in the Xserver. I must insert a program
between Dev.con and Xserver.

Since both Xserver and Dev.con hardcoded /dev/kbd how can I insert
my program in the stream. Second where can i find the list of all messages
I will need to handle?

I’m also open to other suggestion how to handle this problem.

Thanks

  • Mario
    “People looking to serious, should be looking to Sirius”

Well, since you need to create a special utility anyway, it wouldn’t really
be that hacky to simply make a copy of Dev.ansi (call it say mario :slight_smile:, and
spatch the “kbd” in the executable to say “mch”. Then have your special
utility spawn(“mario”), register /dev/kbd and open /dev/mch. Just consider
“mario” to be part of your special utility. Ain’t pretty, but what is these
days (besides Neutrino architecture of course :slight_smile:

“Mario Charest” <mcharest@void_zinformatic.com> wrote in message
news:93ddcc$89f$1@nntp.qnx.com

On a custom machine the keyboard doesn’t have the CTRL ALT keys.
That means user can’t press CTRL-ALT-BACKSPACE to get
out of the XServer can come back to text mode.

Solution is to replace that key sequence with another. Unfortunately
this key sequence is hardcoded in the Xserver. I must insert a program
between Dev.con and Xserver.

Since both Xserver and Dev.con hardcoded /dev/kbd how can I insert
my program in the stream. Second where can i find the list of all
messages
I will need to handle?

I’m also open to other suggestion how to handle this problem.

Thanks

  • Mario
    “People looking to serious, should be looking to Sirius”

“John Doe” <john@csical.com> wrote in message
news:93g9ac$4os$1@inn.qnx.com

Well, since you need to create a special utility anyway, it wouldn’t
really
be that hacky to simply make a copy of Dev.ansi (call it say mario > :slight_smile:> ,
and
spatch the “kbd” in the executable to say “mch”. Then have your special
utility spawn(“mario”), register /dev/kbd and open /dev/mch. Just
consider
“mario” to be part of your special utility. Ain’t pretty, but what is
these
days (besides Neutrino architecture of course > :slight_smile:

I like the idea!!! Now I just have to find what are the messages handle
by /dev/kdb.

Thanks

“Mario Charest” <mcharest@void_zinformatic.com> wrote in message
news:93ddcc$89f$> 1@nntp.qnx.com> …

On a custom machine the keyboard doesn’t have the CTRL ALT keys.
That means user can’t press CTRL-ALT-BACKSPACE to get
out of the XServer can come back to text mode.

Solution is to replace that key sequence with another. Unfortunately
this key sequence is hardcoded in the Xserver. I must insert a program
between Dev.con and Xserver.

Since both Xserver and Dev.con hardcoded /dev/kbd how can I insert
my program in the stream. Second where can i find the list of all
messages
I will need to handle?

I’m also open to other suggestion how to handle this problem.

Thanks

  • Mario
    “People looking to serious, should be looking to Sirius”

    \

Again a bit thanks, everything is now working!!!

“Mario Charest” <mcharest@void_zinformatic.com> wrote in message
news:93gdhk$24o$1@nntp.qnx.com

“John Doe” <> john@csical.com> > wrote in message
news:93g9ac$4os$> 1@inn.qnx.com> …
Well, since you need to create a special utility anyway, it wouldn’t
really
be that hacky to simply make a copy of Dev.ansi (call it say mario > :slight_smile:> ,
and
spatch the “kbd” in the executable to say “mch”. Then have your special
utility spawn(“mario”), register /dev/kbd and open /dev/mch. Just
consider
“mario” to be part of your special utility. Ain’t pretty, but what is
these
days (besides Neutrino architecture of course > :slight_smile:

I like the idea!!! Now I just have to find what are the messages handle
by /dev/kdb.

Thanks


“Mario Charest” <mcharest@void_zinformatic.com> wrote in message
news:93ddcc$89f$> 1@nntp.qnx.com> …

On a custom machine the keyboard doesn’t have the CTRL ALT keys.
That means user can’t press CTRL-ALT-BACKSPACE to get
out of the XServer can come back to text mode.

Solution is to replace that key sequence with another. Unfortunately
this key sequence is hardcoded in the Xserver. I must insert a
program
between Dev.con and Xserver.

Since both Xserver and Dev.con hardcoded /dev/kbd how can I insert
my program in the stream. Second where can i find the list of all
messages
I will need to handle?

I’m also open to other suggestion how to handle this problem.

Thanks

  • Mario
    “People looking to serious, should be looking to Sirius”



    \