Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Keyboard issue console vs X window

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
erikdeb
Posts: 1
Joined: 2016-03-03 14:02

Keyboard issue console vs X window

#1 Post by erikdeb »

Hello!

I have a problem with ps/2 keyboard with inbuilt magnetic stripe reader. Keyboard works as expected but msr does not.
In console, msr output is correct, but in X window (xterm in xfce desktop manager) partial output is displayed only on
first try, sequential reads yield only newline. However, showkey shows that output is almost identical in both cases, see below:

=========
#1 under X
root@test:/home/service# sleep 1;showkey -s
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
0x07 0x0b 0x0a 0x0a 0x0a 0x02 0x0a 0x0b 0x0b 0x04 0x09 0x08 0x04 0x04 0x03 0x0b 0x0d 0x02
0x09 0x0b 0x05 0x08 0x0b 0x02 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b

0x0b 0xe0 0x1c 0xe0 0x9c
#2 console
root@test:~# sleep 1;showkey -s
kb mode was UNICODE
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
0x07 0x0b 0x0a 0x0a 0x0a 0x02 0x0a 0x0b 0x0b 0x04 0x09 0x08 0x04 0x04 0x03 0x0b 0x0d 0x02
0x09 0x0b 0x05 0x08 0x0b 0x02 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b
0x0b 0xe0 0x1c 0xe0 0x9c
========

Under X, there's extra empty line and none of it (msr's output) reaches xterm. showkey's behaviour
is repeatable and yields same result every time. So my question is, what extra layers are there in X
that seem to be interfering? As I get same behaviour in Knoppix livecd I guess it's not Debian
specific question but hopefully someone can still help.

Erik

Post Reply