What | Removed | Added |
---|---|---|
CC | jslaby@suse.com | |
Flags | needinfo?(jslaby@suse.com) | |
Assignee | antonio.teixeira@suse.com | sbrabec@suse.com |
This feature was not added by me. I just ported a very old feature to systemd. Fri Jun 14 12:58:10 CEST 2002 - sndirsch@suse.de - boot.setup: handle Numlock depending on BIOS setting if KBD_NUMLOCK is set to "bios" - sysconfig.keyboard: added "bios" to KBD_NUMLOCK description This feature needs to read the BIOS data area. Is there a better way, how to do it? It basically does: fdmem = open("/dev/mem", O_RDONLY); lseek(fdmem, 0x497, SEEK_SET); read (fdmem, &c, sizeof(char)); if (c & 0x02) printf("on\n"); else printf("off\n");