Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-13-2023, 11:48 PM
|
#1
|
LQ Newbie
Registered: Mar 2005
Location: Virgin Islands
Distribution: Red Hat 9.0
Posts: 13
Rep:
|
keyboad emits UTF-8 code (0xCB 0x86) for upper case 6 rather than ASCII (0x5E)
keyboard emits UTF-8 code (0xCB 0x86) for upper case 6 rather than ASCII (0x5E)
all other keys emit ASCII codes as expected!
this causes problems when writing code
how to fix it?
how to see mapping?
Mac Pro Intel Ventura 13.1
apple wireless US keyboard
|
|
|
01-14-2023, 11:39 AM
|
#2
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,263
|
The keyboard is not emitting ASCII or Unicode, but a scan-code that the keyboard driver translates. Since everything else works, you obviously have the Apple keyboard recognised. The driver should live at
/usr/share/X11/xkb/symbols/macintosh_vndr/us
and it should contain the line
key <AE06> {[ 6, asciicircum ]};
If it doesn't have "asciicircum" at that point, correct it.
|
|
|
12-07-2023, 02:32 AM
|
#3
|
LQ Newbie
Registered: Dec 2023
Posts: 2
Rep:
|
Quote:
Originally Posted by john@ackley.net
keyboard emits UTF-8 code (0xCB 0x86) for upper case 6 rather than ASCII (0x5E)
all other keys emit ASCII codes as expected!
this causes problems when writing code
how to fix it?
how to see mapping? wordle today
Mac Pro Intel Ventura 13.1
apple wireless US keyboard
|
Instead of standard ASCII or Unicode characters, the keyboard is actually transmitting a scan-code, which the driver uses to decipher. Everything else being equal, it's clear that the Apple keyboard is recognized. It is recommended that the driver resides at
Last edited by hueljannie; 12-11-2023 at 01:34 AM.
|
|
|
12-07-2023, 10:08 AM
|
#4
|
LQ Newbie
Registered: Dec 2023
Location: United States
Distribution: window, windows xp home, windows 98, white hat
Posts: 3
Rep:
|
Change input source to "US Extended".
Use Karabiner-Elements to map "6" to "Circumflex".
Use Keyboard Viewer or Karabiner-Elements to see current mapping.
Last edited by Timothy Miller; 12-10-2023 at 12:12 PM.
Reason: Remove spam links.
|
|
|
12-07-2023, 10:19 AM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728
|
You can also edit your keyboard file manually. The defaults are in /usr/share/X11/xkb/symbols/, but you can overwrite them with files in /etc/X11/xkb/symbols. create if necessary.
|
|
|
All times are GMT -5. The time now is 08:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|