I have Raspbian Debian Wheezy installed on my Raspberry Pi. I was trying to learn python in IDLE 3 but when I tried to type the Number symbol (aka Hashtag, Pound) it came out with "£", so I can't type the number symbol at all. Also this symbol " is now swapped with the #. I was trying to reconfigure my keyboard with "sudo raspi-config" but I don't know what my model for my keyboard is. I am not familiar with the logo. But in the back it says "98149 Multimedia Keyboard". Is there a way to remap my keyboard correctly?
P.S. The default selected model is Generic 105 key (Intl) PC
you can use this command
setxkbmap us
Related
I have loaded the latest version of Raspberry Pi OS (32-bit) to a pi400, but the keymapping is odd. For instance, my backslash '\' Key types the pound sign '#'. Other keys are also mapped oddly too.
I first checked the keyboard-mapping via
sudo raspi-config
and then from the prompt selected Localization Options > Keyboard > Configuring keyboard-configuration
For Keyboard Model, I selected 'Generic 101-key PC' as per this pihut article suggestion.
I saved and rebooted; no luck.
I found a tutorial on remapping keys, but requires some bash scripting to run on start, which seems messy.
Maybe choosing a different Keyboard model in keyboard-configuration would solve the issue instead?
Turns out my locale was set to UK.
I used the following command to change my keyboard region and it fixed the issue
setxkbmap us
I installed Cinnamon Manjaro linux on my 2017 QWERTY Macbook Air. Kernel: 5.4.27-1-MANJARO.
I've tried changing my keyboard languages, but my compose key always produces the same behavior -- that of a US (intl) keyboard. I don't know why.
I've tried setting my compose key to different things, like LWin or RAlt, no luck.
Ideally, I want the same key behavior as that on Mac. My current keyboard layout is English (Macintosh). Everything works, except for all of the compose key combos / accents, which all seem to produce US(intl) dead key outputs.
Things I've tried:
changing my keyboard layouts, from GUI to setxkbmap.
changing my compose key
manually setting the value of Option "Xkblayout" "mac" in /etc/X11/xorg.conf.d/00-keyboard.conf
Failing to understand how to manually force set the accent keys I want via xmodmap :(
Thanks for the help.
Solved: I realized that there was another keyboard which Xorg was somehow (I don't know how) set to, other than English (Macbook). I ran setxbmap -option which had the effect of "resetting" my keyboard to the layout I'd correctly chosen via the GUI.
I don't much understand how / why Xorg persisted in using another keyboard layout despite what I had entered in the GUI keyboard settings -- somehow it survived a reset through multiple computer restarts throughout these past days. But it works.
i'm facing the following problem.
I use python with emacs on a mac with Catalina OS.
I try to get input from the keyboard in my python script (trhough psychopy library). It does not work, and i receive the following message:
HIDBuildMultiDeviceList: Couldn’t open IOHIDManager.PsychHID-ERROR: Could not enumerate and attach to all HID devices (HIDBuildDeviceList(0,0) failed)!
PsychHID-ERROR: One reason could be that some HID devices are already exclusively claimed by some 3rd party device drivers
I have a similar problem when i try to access the microphone. However, it works from within another editor. It seems that the problem is that i'm denied access to the keyboard (and mic) when running a python script.
Any help would be most welcome.
Best
thibault
I was experiencing the same problem, and restarting solved it!
I had code to play audio files and wait for a key on the keyboard to be hit. This code used to work, and then when I made some changes elsewhere in the code I started for the first time to experience this problem. Using the Python debugger in Terminal (python -m pdb myPsychopyCode.py) I tracked it down to occurring in the 2nd of these lines:
from psychopy.hardware import keyboard
kb = keyboard.Keyboard() # Set up a keyboard device
The error occurred replicably, whether I ran from the whole script or used it interactively in the python debugger. My fix was simply to restart! Thereafter the error messages stopped. I don't like this fix because it means I don't know what caused it or when it might happen again.
2017 MacBook Pro, macOS Big Sur 11.4, external LG monitor, bluetooth external Magic Keyboard, bluetooth external Magic Trackpad.
This code:
use Term::ANSIColor;
print color("blink bold red"), "TEST\n";
print color("reset");
Has worked for eons on whatever linux console I have used it on. However, I when I try it on a Raspberry Pi console (not Xwindows) running Raspbian Stretch it simply colors the text red but does not blink. Anyone have any ideas as to how I can get this to work?
Attributes such as blink, italic, or bold may not work with the 256-color palette. -documentation
After experimenting I can conclude that the reason that perl ANSI color's blink feature does not work on a Raspberry PI is because the monitor is connected via HDMI. perl ANSI color does in fact blink on a Raspberry PI if one logs in remotely from a machine with a VGA monitor.
Update: Further testing concludes the blinking feature will NOT work by using a HDMI to VGA adapter to connect a VGA monitor to the raspberry PI -- so save yourself the money. The only way possible to get perl ANSIColor's blink feature to work on a PI is by sshing to the machine from a VGA displayed machine.
I have Linux (Backtrack5) running as guest operating system in IOS.
There seems to be some problems with certain keys, I can't type the # sign.. instead, it gives 2 (in superscript).
I have tried hex (%40) but it won't compile.
I have reinstalled it with another keyboard layouts but problem reproduces.
Is there a file where i can reconfigure certain keys?
I am afraid I may sound trivial, but maybe this is your case.It might be that the keymap your system loads by default does not match the one your physical keyboard actually has.
You can change the keyboard layout you're using with setxkbmap it Return typed in a console in your graphical environment (X11), be it under KDE, GNOME, or what you have. With that command you would use an Italian keyboard layout, it looks like the two-letter code for a Danish one is da.
If you're not working with a graphical environment you can set your keyboard layout with loadkeys it Return