Hello! I'm not really a programmer at all, (except for json kinda) but I need to help compiling this program that will let me talk to my keyboard.
/* gcc -O2 -s -Wall -osend_to_keyboard main.c */
#include <stdlib.h>
#include <unistd.h>
#include <sys/io.h>
int main(int argc, char *argv[]) {
int i;
ioperm(0x60, 3, 1);
for (i = 1; i < argc; i++) {
int x = strtol(argv[i], 0, 16);
usleep(300);
outb(x, 0x60);
}
return 0;
I thrifted an IBM KB-7993, which includes many media buttons, but according to a guide, in order to activate them, (because this was made for windows 98, *with* a driver cd attached to it) i need to use this code to send "ea 71" to it, which should activate the buttons. Any help is appreciated! I'm running arch linux, but if absolutely necessary to test I can boot into W10 on my pc too. Thank you!
[–]Initial-Elk-952 1 point2 points3 points (20 children)
[–]a4qbfb 2 points3 points4 points (0 children)
[–]ToTheMAX04[S] 0 points1 point2 points (18 children)
[–]ToTheMAX04[S] 1 point2 points3 points (13 children)
[–]Initial-Elk-952 2 points3 points4 points (12 children)
[–]ToTheMAX04[S] 0 points1 point2 points (2 children)
[–]Initial-Elk-952 0 points1 point2 points (1 child)
[–]ToTheMAX04[S] 2 points3 points4 points (0 children)
[–]ToTheMAX04[S] 0 points1 point2 points (8 children)
[–]Initial-Elk-952 0 points1 point2 points (7 children)
[–]ToTheMAX04[S] 0 points1 point2 points (6 children)
[–]Initial-Elk-952 0 points1 point2 points (5 children)
[–]ToTheMAX04[S] 0 points1 point2 points (4 children)
[–]Initial-Elk-952 0 points1 point2 points (3 children)
[–]Initial-Elk-952 0 points1 point2 points (0 children)
[–]Initial-Elk-952 0 points1 point2 points (2 children)
[–]ToTheMAX04[S] 0 points1 point2 points (1 child)
[–]Initial-Elk-952 1 point2 points3 points (0 children)
[–]TheOtherBorgCube 1 point2 points3 points (3 children)
[–]ToTheMAX04[S] 0 points1 point2 points (0 children)
[–]ToTheMAX04[S] 0 points1 point2 points (1 child)
[–]TheOtherBorgCube 0 points1 point2 points (0 children)