LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2015, 02:54 AM   #1
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 17.1 Rebecca
Posts: 19

Rep: Reputation: Disabled
One weird looking keyboard-bug (?)


I have problem with characters in my keyboard, they switched their's places. Not all of them, only those specific to english and to croatian language (my native tongue).
If I got the right shell input, the output is:
Code:
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $ sudo dpkg-reconfigure keyboard-configuration
[sudo] password for sokre:
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-37-generic
Warning: No support for locale: en_US.utf8
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $
Been scrolling through related forum threads for some 'simpleton-cluess', this commands looked promising for solving locale en_US.utf8 missing:
Code:
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $ sudo dpkg-reconfigure locales
[sudo] password for sokre:
Generating locales...
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZM.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
  hr_HR.UTF-8... done
Generation complete.  
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $
Code:
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $ sudo update-locale LANG=en_US.UTF-8 
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $
Code:
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $ sudo locale-gen --purge --no-archive
Generating locales...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
  hr_HR.UTF-8... done
Generation complete. 
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $
Code:
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $ sudo update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-3.13.0-37-generic
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $
Shell output after reboot:
Code:
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $ sudo dpkg-reconfigure keyboard-configuration
[sudo] password for sokre:
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-37-generic
sokre@sokre-HP-Compaq-dc7800-Small-Form-Factor ~ $
One of theese threads suggested opening test account under Menu > Administration > User & Groups and setting the keyboard layout from there, so I did that. Same character behavior as in main account remained here, regardless of specific given layout I choose (my language has four offered layouts).

Later on, my younger brother took the keyboard and plugged it into his computer running on win xp to see how the characters will behave in there I guessed no harm in that. Strange thing is that every character seemed to be in his place on the keyboard back then.

So, what's the next step in fixing this one boss?

Using Linux Mint 17. 1 Rebecca
MATE 1. 8. 1
Kernel Linux 3. 13. 0-37 generic
 
Old 09-01-2015, 04:13 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
$ sudo apt-get install --reinstall libx11-data

Seems to be the place that contains the en_US.UTF-8 bits in debian.

$ cat /boot/config | grep -i utf

Code:
CONFIG_FAT_DEFAULT_IOCHARSET="utf8"
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_UTF8=m
What's found on my kernel. And might be missing from yours, since you have that initrd message.

Worst case scenario you can use the unicode version for the LANG / LC_ALL variables. The iso-8859-1 and iso-8859-15 are the english(US) ones to best of my current knowledge.
 
Old 09-01-2015, 04:20 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
With iso-8859-2 for the croatian version. In dpkg-reconfigure keyboard-configuration, generic 104 -> other -> croation -> (quite a few variants there to choose). Perhaps one of those would suit your needs.
 
Old 09-05-2015, 02:51 PM   #4
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 17.1 Rebecca
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks, I'll be marking this thread as solved now!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Lubuntu] Weird Bug in LXTerminal fu9ar Ubuntu 11 04-30-2015 03:41 PM
Weird flash bug. Gumboherpy Slackware 3 05-10-2013 08:57 AM
Weird bug eeluve Linux - Newbie 7 11-30-2011 10:12 PM
Weird installer bug? MaTrIx709 Debian 2 07-15-2005 04:06 PM
Weird Konqueror problem (a bug?) ivanatora Linux - Software 1 10-13-2003 04:02 PM


All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration