sun type 6 (NOT USB) owners
"Tom 'spot' Callaway" <[email protected]>
| Newsgroups | gmane.linux.aurora.devel,gmane.linux.aurora.user |
|---|---|
| Organization | Red Hat |
| Message-ID | <1052420381.3526.31.camel@zorak> |
if you own a Sun Type6 keyboard (not a Type6 USB), please download the attached .c file, compile it (gcc -o test test.c) run it (./test), and email me the output. When you send me the output, be specific as to what keyboard you have (US, UK, etc). Thanks, ~spot --- Tom "spot" Callaway <tcallawa(a)redhat*com> SAIR LCA, RHCE Red Hat Enterprise Architect :: http://www.redhat.com Project Leader for Aurora Sparc Linux :: http://auroralinux.org GPG: D786 8B22 D9DB 1F8B 4AB7 448E 3C5E 99AD 9305 4260 The words and opinions reflected in this message do not necessarily reflect those of my employer, Red Hat, and belong solely to me. "Immature poets borrow, mature poets steal." --- T. S. Eliot
test.c
(text/x-c, 638 B)
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/serial.h>
#include <asm/kbio.h>
#include <asm/openpromio.h>
#include <asm/types.h>
int main() {
int kbdtype;
int kbdlayout;
int fd;
fd=open("/dev/kbd", O_RDWR);
printf("fd for devkbd is %d\n", fd);
ioctl(fd, KIOCTYPE, &kbdtype);
printf("kbdtype is %d\n", kbdtype);
ioctl(fd, KIOCLAYOUT, &kbdlayout);
printf("kbdlayout is %d\n", kbdlayout);
return 0;
}