LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-16-2012, 12:52 PM   #1
dbagatini
LQ Newbie
 
Registered: Jul 2012
Location: Brazil
Distribution: Debian, Arch, Slack
Posts: 3

Rep: Reputation: Disabled
Console don't write but partially shows utf8 characters (keyboard is configured)


Hi everyone

I am starting with Slack 13.37 and I am having some problems with accented characters in text mode (no problems under KDE).

I can't write any accented characters (ã é...) but i can see them in confirmation messages of some programs like nano or lynx (like quit confirmation) and using cat in texts. I can even copy and paste these characters (with gpm) but never write them directly with the keyboard.

- All my locale are pt_BR.UTF-8
- My rc.keymap is br-abnt2.map
Code:
if [ -x /usr/bin/loadkeys ]; then
/usr/bin/loadkeys br-abnt2.map
fi
- My rc.font is latin1-16.psfu
Code:
setfont -v lat1-16.psfu.gz
- I have tried unicode_start
- I am using Grub with vt.default_utf8=1
Code:
kernel /boot/vmlinuz root=/dev/sda1 vt.default_utf8=1 ro vga=788
I thanks any help...

Daniel
 
Old 07-17-2012, 11:41 AM   #2
NonNonBa
Member
 
Registered: Aug 2010
Distribution: Slackware
Posts: 192

Rep: Reputation: Disabled
Hello,

It looks like a problem with your rc.keymap.

Try first to exec this:

Code:
/usr/bin/loadkeys pt-latin9.map
If then all works as expected, your problem can be fixed just by editing the rc.keymap like this:

Code:
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys pt-latin9.map
fi
EDIT: after some tests by there, it effectively seems none of the br-*abnt.map works... :\

Last edited by NonNonBa; 07-17-2012 at 12:48 PM. Reason: Read too fast... sorry
 
Old 07-17-2012, 01:40 PM   #3
dbagatini
LQ Newbie
 
Registered: Jul 2012
Location: Brazil
Distribution: Debian, Arch, Slack
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi NonNonBa,

Nothing yet.

I tried all pt-*.map but they are not the correct keymaps neither have the correct accentuation.

EDIT:

There is a keymap called "us-acentos.map". I can write all accented letters using it BUT it is still the incorrect keymap, I need to guess the position of the characters.

Is there a way to edit this keymap and change it to abnt2 pattern?

Daniel

Last edited by dbagatini; 07-17-2012 at 01:49 PM. Reason: new information...
 
Old 07-17-2012, 02:45 PM   #4
dbagatini
LQ Newbie
 
Registered: Jul 2012
Location: Brazil
Distribution: Debian, Arch, Slack
Posts: 3

Original Poster
Rep: Reputation: Disabled
I found a solution.

Apparently it is a bug with kdb

I had to put two kbd_mode commands in the rc.keymap:
kbd_mode -a before the loadkeys command
kdb_mode -u after the loadkeys command

My rc.keyloas is like this:
Code:
if [ -x /usr/bin/loadkeys ]; then
/usr/bin/kbd_mode -a
/usr/bin/loadkeys br-abnt2.map
/usr/bin/kbd_mode -u
fi
Unfortunately I don't understand what happened but it worked fine.

I found this solution at the links below:
http://lists.altlinux.org/pipermail/...er/000270.html
http://bugs.gentoo.org/show_bug.cgi?id=324351

Thanks

Daniel
 
  


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
[SOLVED] Strange keyboard behavior - funny characters on the console montyny Linux - Newbie 2 02-22-2012 07:09 AM
Keyboard 'partially' freezes cygpen Linux - Newbie 9 09-08-2011 10:44 AM
Regarding Problem writing UTF8 characters to a file Sathya Programming 0 05-06-2009 09:18 AM
deadkeys don't work in utf8 console gmels Linux - General 1 09-14-2007 06:20 AM
I don't want to write modprobe sk98lin into console for the network to work dont_stop_me Slackware 6 03-26-2006 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:31 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
Open Source Consulting | Domain Registration