LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-26-2009, 02:25 PM   #1
JPG0J
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 0
Debian Lenny cf.kmap keyboard bug


I know. It is a bug, and probably a bad one. However, as I like working with TTYx, I would like to know if somebody can describe the problem, and if it will be corrected in the next Debian release.

I tried to place a bug report, but was dismissed. (probably because I have no idea of the meaning of the questions when I run it)

Canadian-French keyboard not installed in TTY at first post-install boot. Please read details.

Brand new Computer:

Brand new SATA II hard drive:
Motherboard Asrock P45XE
Bios AMI 1.50
Intel core 2 duo E8400
4 GB DDR2 800
Asus GeForce 9600 GT
Lenny 501 amd64 net-install

The first install attempt was made with the i386 version, and aborted for the reasons below:

1.- First netinstall i386 flavour of Lenny 5.01
Keyboard settings (canadian-french) correct during install, but settings lost at first reboot.
US qwerty keyboard only (no accents) in TTYx and in graphics.
French files displayed in TTY with graphic characters instead of accents.
<ctrl><alt><Fx> do not work at all.

Second install with Lenny 501 amd64 net-install was by far better. I kept it and use it now, but there is still a bug:

2.- Second netinstall with amd64 net-install:
This time, everything is ok with Gnome
<ctrl><alt><Fx> are working ok
The only problem is again the Canadian-french keyboard with TTY.
Although the kmap was perfect before the first reboot, it was gone afterwards.

To try and correct this I did:

# dpkg-reconfigure console-setup

It works, but if I switch to graphics <ctrl><alt><F7> and then back to text <ctrl><alt><Fx>
my new keyboard settings are lost...

Other attempt:

# loadkeys cf.kmap
Loadkeys can read the file cf.kmap.gz, but if I trace the command:
(# strace -o /tmp/log loadkeys cf.kmap)
It is giving a lot of 0 instead of the keycode:

For Example:
ioctl(4, KDSKBSENT, 0x60d120) = 0

So impossible to have cf.kmap...

I tried to get rid of console-setup, but it make no difference.

So, if somebody can explain me the reason of the bug, I will be grateful.

Regards
JP
 
Old 05-27-2009, 12:35 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Have you tried "install-keymap cf.kmap.gz" instead of loadkeys.
From "man install-keymap":
Code:
install-keymap usually takes a keymap-name as argument.  The file is passed to loadkeys for loading, so that valid values
for this argument are the same than that of arguments to loadkeys.  install-keymap expands include-like statements in that
file,  and  puts the result in /etc/console/boottime.kmap.gz, which will be loaded into the kernel at boot-time.
 
Old 05-27-2009, 01:33 PM   #3
JPG0J
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by makuyl View Post
Have you tried "install-keymap cf.kmap.gz" instead of loadkeys.
From "man install-keymap":
Code:
install-keymap usually takes a keymap-name as argument.  The file is passed to loadkeys for loading, so that valid values
for this argument are the same than that of arguments to loadkeys.  install-keymap expands include-like statements in that
file,  and  puts the result in /etc/console/boottime.kmap.gz, which will be loaded into the kernel at boot-time.
It makes no difference. I did try it.
See attached the log from strace -o /home/jpre/loadkeys.log.txt loadkeys cf.kmap

Apart from the curious way of research (IMO, but I am not a programmer) of the cf.kmap file, see the way the command is executed, and the result ( 0 attributed for ea. key)

Of course, I am unable to find out why...

Thank you
JP
Attached Files
File Type: txt loadkeys.log.txt (98.4 KB, 3 views)
 
Old 05-27-2009, 02:46 PM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
I assume you left out the .gz from the end of previous loadkeys command.
How about "dpkg-reconfigure console-common" then?
Wish I could remember what I did to make the finnish keyboard stick, but it was a couple of years ago. Probably just copied /usr/share/keymaps/i386/qwerty/fi.kmap.gz to /etc/console/boottime.kmap.gz
 
Old 05-27-2009, 08:21 PM   #5
JPG0J
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by makuyl View Post
I assume you left out the .gz from the end of previous loadkeys command.
How about "dpkg-reconfigure console-common" then?
Wish I could remember what I did to make the finnish keyboard stick, but it was a couple of years ago. Probably just copied /usr/share/keymaps/i386/qwerty/fi.kmap.gz to /etc/console/boottime.kmap.gz
Of course I left out the .gz

I also analyzed the bootime.kmap file, and did a lot of things, including dpkg-reconfigure ...
But from what I was said, it is kind of a nasty bug.

I am just waiting for some of the very busy people working for us on Debian, to drop some explanation...And maybe giving hope for the next Debian release.

Regards
JP
 
  


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
Debian Etch->Lenny upgrade: vncserver: fubar keyboard and unstable theme stolsvik Linux - Desktop 4 06-11-2009 01:04 PM
LXer: How to fix the Debian Lenny bug in which Epiphany always starts in "working off LXer Syndicated Linux News 0 03-29-2008 10:00 PM
LXer: Approaching CPU fan management in OpenBSD ... and a bug enters Debian Lenny LXer Syndicated Linux News 0 03-08-2008 03:50 PM
LXer: Debian Lenny doesn't fix my Nautilus problem, but a look at the bug report tell LXer Syndicated Linux News 0 01-23-2008 06:50 AM
Is this a bug? (lenny) kaz2100 Debian 4 12-16-2007 12:20 PM


All times are GMT -5. The time now is 06:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration