'\|' Key and Recompiling Kernel
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
Probably due to a nooby inability to compile and install a new Kernel I can't seem to apply this change. I am using
Any help with what I should be using?
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){
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
- Bakul Shah
- Posts: 326
- Joined: Sun Sep 25, 2011 1:25 am
Re: '\|' Key and Recompiling Kernel
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 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
Probably due to a nooby inability to compile and install a new Kernel I can't seem to apply this change. I am usingCode: Select all
if(kbscan->esc1 && c != 0x58){
Any help with what I should be 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
Re: '\|' Key and Recompiling Kernel
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 '\'.
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion