pclark
Posts: 2
Joined: Mon Sep 23, 2013 10:55 am

'\|' Key and Recompiling Kernel

Mon Sep 23, 2013 11:21 am

I have a non-responsive '\|' key. I have followed the instructions from

https://groups.google.com/forum/#!topic ... cok6NTCWCg

and by editing /sys/lib/kbmap/uk I now have the '\' working.

To get the shift+'\|' to give me '|' I have edited /sys/src/9/omap/kbd.c

Code: Select all

if(kbscan->esc1 && c != 0x58){
Probably due to a nooby inability to compile and install a new Kernel I can't seem to apply this change. I am using

Code: Select all

cd /sys/src/cmd/usb/kb && mk install
cd /sys/src/cmd/usb/usbd && mk install
cd /sys/src/9/bcm && mk
c:
cp 9pi /n/c
Any help with what I should be using?

Bakul Shah
Posts: 304
Joined: Sun Sep 25, 2011 1:25 am

Re: '\|' Key and Recompiling Kernel

Wed Sep 25, 2013 7:14 am

pclark wrote:I have a non-responsive '\|' key. I have followed the instructions from

https://groups.google.com/forum/#!topic ... cok6NTCWCg

and by editing /sys/lib/kbmap/uk I now have the '\' working.

To get the shift+'\|' to give me '|' I have edited /sys/src/9/omap/kbd.c

Code: Select all

if(kbscan->esc1 && c != 0x58){
Probably due to a nooby inability to compile and install a new Kernel I can't seem to apply this change. I am using

Code: Select all

cd /sys/src/cmd/usb/kb && mk install
cd /sys/src/cmd/usb/usbd && mk install
cd /sys/src/9/bcm && mk
c:
cp 9pi /n/c
Any help with what I should be using?
If you followed the above steps without any errors, you have built and installed the new kernel on the first partition. Make sure you have set time accurately or else mk will get confused. To rebuild, do "mk clean" prior to each mk. To reboot do "fshalt -r". If "shift \" still doesn't work, may be there is a keyboard issue or some code change issue? Follow the advice in the 9fans thread you cited to debug. If you still need help, I suggest subscribing to 9fans where you are more likely to get quicker response.

pclark
Posts: 2
Joined: Mon Sep 23, 2013 10:55 am

Re: '\|' Key and Recompiling Kernel

Wed Sep 25, 2013 4:25 pm

Thanks for your help. Once I knew I was compiling the Kernel correctly I soon tracked down where I had gone wrong. I had confused myself by already editing the /sys/lib/kbmap/uk map file. Although the '\' can be made to work that way, the code change cures all and means the original uk map works fine for that key both '|' and '\'.

Return to “Plan 9”

Who is online

Users browsing this forum: No registered users and 2 guests