Lineak
Posted: Wed Mar 29, 2006 5:12 pm
You might remember me talking about Lineak on LaGER episode 2 and saying how not all the keys worked and I said I'd look into a fix. I wasn't lying, however this is somewhat hard so noobies be warned.
First off find what keys don't work by following the instructions that I gave on episode 2. Then run xev in the terminal and try pressing the keys that didn't work. If you get any KeyPress and KeyRelease events for any of those keys you can manually edit .lineak/lineakkb.def and .lineak/lineakd.conf with the keycode from xev. If it doesn't spit out any keys check if the end of the /var/log/messages says anything about unknown scan codes from atkbd.c cat /var/log/messages. If it does you have to do what it says and add the setkeycodes to the end of /etc/rc.sysinit if it exists or add a new script like /etc/init.d/setkeys and add the commands to the place where it says [COMMANDS] in this script:
then save it and make it executable chmod +x /etc/init.d/setkeys and make it startup at boot (on gentoo this is done by rc-update add setkeys default) and restart your computer.
After it has restarted I deleted my .lineak/lineakkb.def and .lineak/lineakd.conf in my home directory and set it back up again using klineakconfig and the keys should work now. If not make sure you did everything right. After you set it up start up lineakd and everything should work perfectly. If you get a Xlib error go here and at the bottom of the page I gave a workaround.
If something in here didn't work or you are having trouble go ahead and reply and maybe I can help.
First off find what keys don't work by following the instructions that I gave on episode 2. Then run xev in the terminal and try pressing the keys that didn't work. If you get any KeyPress and KeyRelease events for any of those keys you can manually edit .lineak/lineakkb.def and .lineak/lineakd.conf with the keycode from xev. If it doesn't spit out any keys check if the end of the /var/log/messages says anything about unknown scan codes from atkbd.c cat /var/log/messages. If it does you have to do what it says and add the setkeycodes to the end of /etc/rc.sysinit if it exists or add a new script like /etc/init.d/setkeys and add the commands to the place where it says [COMMANDS] in this script:
Code: Select all
#!/sbin/runscript
start() {
[COMMANDS]
}After it has restarted I deleted my .lineak/lineakkb.def and .lineak/lineakd.conf in my home directory and set it back up again using klineakconfig and the keys should work now. If not make sure you did everything right. After you set it up start up lineakd and everything should work perfectly. If you get a Xlib error go here and at the bottom of the page I gave a workaround.
If something in here didn't work or you are having trouble go ahead and reply and maybe I can help.