Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old November 3rd, 2007   #1
sandman887
5 Cups of Ubuntu
 
Join Date: Nov 2007
Beans: 24
Incorrect keyboard setup - xubuntu 7.10 i386

Compaq evo N600c xubuntu 7.10 i386

I am running xubuntu 7.10 great, but I noticed when I tried making an alias in bash that the apostrophe key to the right of the semi-colon button produces a wierd apostrophe, the one that slants down to the left. Also, it requires me to press it twice to even get it. Also, the tilde button does the same thing, requiring me to press it twice, although this gives the correct character, the tilde.

I can't write any code or aliases with this problem. I tried several different US keyboard layouts, and they all do the same thing. Anybody know what to do?

Thanks.
sandman887 is offline  
Old November 4th, 2007   #2
bakeneko
5 Cups of Ubuntu
 
bakeneko's Avatar
 
Join Date: Sep 2007
Beans: 23
Ubuntu 8.04 Hardy Heron
Re: Incorrect keyboard setup - xubuntu 7.10 i386

The problem:
You are using an ordinary US keyboard. As the result of a buggy keyboard setup in Xubuntu alternate install, you have ended up with a keyboard configuration that turns apostrophe and backtick into dead keys.

More on dead keys: http://en.wikipedia.org/wiki/Dead_keys
More on the installer: https://wiki.ubuntu.com/SaneInstallerKeyboard

Copy and paste this line into your terminal in X:
Code:
$ xmodmap -e "keycode 48 = 0x0027 0x0022"
This should allow you to temporarily use your apostrophe key in X. You could add this to your /etc/profile to apply the fix for every X terminal, but there are better ways. The fundamental error needs to be fixed in two spots. First, invoke the following:
Code:
$ sudo dpkg-reconfigure console-setup
For "Keyboard model", "Generic 105-key (Intl) PC" is probably a safe choice, or you can pick your keyboard out of the list.
For "The origin of the keyboard", pick "U.S. English".
For "Keyboard layout", pick "U.S. English" --this is the important one.
For the remaining choices, accept the defaults or adjust as desired.
After completing your choices, you should see:
Quote:
* Setting up console font and keymap... [ OK ]
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
(or similar)
This may take a minute. After this is complete, switch to a tty (ctrl-alt-f1 or similar) and enter:
Code:
$ sudo /etc/init.d/console-setup restart
When it's done, try typing some apostrophes and double quotes. Next, you will probably want to permanently fix your keymap in X. This involves a simple fix to /etc/X11/xorg.conf, but I'll advise backing it up beforehand to be safe.
Code:
$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
Now open /etc/X11/xorg.conf in nano or your favorite text editor.
Code:
$ sudo nano /etc/X11/xorg.conf
You should see some lines similar to this:
Quote:
Option "XkbVariant" "intl"
Option "XkbOptions" "lv3:ralt_switch"
Delete them, save, and exit. Now, log out of any X sessions you may be running and switch to a tty. Enter the following to restart GDM:
Code:
$ sudo /etc/init.d/gdm restart
Or, just reboot. When this is done, log in as normal and try typing some apostrophes, double quotes, backticks and tildes.

Last edited by bakeneko; November 4th, 2007 at 07:02 AM.. Reason: Include console-setup restart
bakeneko is offline  
Old January 20th, 2008   #3
zesty
Spilled the Beans
 
Join Date: Jan 2007
Beans: 13
Re: Incorrect keyboard setup - xubuntu 7.10 i386

"Woo Hoo, it's great"

I had the same exact problem, thanks for this post. I have no idea how to exit a tty session but I printed these instructions to followed the commands. My keyboard seems to be working perfectly now.
zesty is offline  
Old April 10th, 2008   #4
meisert
First Cup of Ubuntu
 
Join Date: Apr 2008
Beans: 1
Re: Incorrect keyboard setup - xubuntu 7.10 i386

Thanks, this partially worked for me. Some of my keys were fixed after restarting gdm. The strange thing is that all of my keys seem to map correctly in the tty console, but not in my X Session. The "/" and "*" key is mapping, but the "\" and "|" are not.

My first attempts were at changing the keyboard layout within GNOME in System->Preferences->Keyboard. But for some reason that didn't work. Though I thought that it had worked on my last install of Ubuntu, when I ran into the same problem. I'd be curious if others got this problem resolved using the GNOME tools as well?

I'll look some more in the forums and may try other keyboard configurations in the console-setup tool.

Last edited by meisert; April 10th, 2008 at 01:44 PM..
meisert is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:19 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry