Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63471 - xorg 6.8.0 - ctrl+alt+Fn keys don't work
Summary: xorg 6.8.0 - ctrl+alt+Fn keys don't work
Status: RESOLVED DUPLICATE of bug 63795
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: http://freedesktop.org/bugzilla/show_...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-09 13:31 UTC by David Morgan
Modified: 2005-07-17 13:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix-bad-uk-keyboard-settings.patch (patch,605 bytes, patch)
2004-09-10 13:23 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Morgan 2004-09-09 13:31:04 UTC
After updating xorg, I can't use ctrl+alt+Fn keys to switch to a virtual console. ctrl+alt+bkspace works though (restarts X)

/etc/init.d/xdm stop and killall -9 gdm X both freeze X/my whole system (can't tell the difference as I can't log in remotely)

Reproducible: Always
Steps to Reproduce:
1. emerge -u xorg-x11 (to version 6.8.0)
2. restart X
3a. press ctrl+alt+Fn
3b. Try to stop X

Actual Results:  
a. Nothing Happens
b. X freezes

Expected Results:  
a. Switch to virtual console n
b. X gets stopped/killed

Gentoo Base System version 1.5.3
Portage 2.0.51_pre20 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.4.20040808-r0,
2.6.7-ck1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz)
=================================================================
System uname: 2.6.7-ck1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://194.117.158.28 http://194.117.158.29
ftp://194.117.158.28/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm atm avi berkdb cdr crypt directfb divx4linux dvd encode
Comment 1 Andrew Ross (RETIRED) gentoo-dev 2004-09-09 17:54:46 UTC
Please reassign this bug to the responsible herd, x11@gentoo.org (taken from x11-base/xorg-x11/metadata.xml).
Comment 2 Andrew Ross (RETIRED) gentoo-dev 2004-09-09 20:20:17 UTC
I have just upgraded to xorg-x11-6.8.0 myself and Ctrl-Alt-{Fn,backspace} are working fine for me.

Please post (as an attachment) your xorg log file from /var/log

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8)
=================================================================
System uname: 2.6.8 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/gentoo http://mirror.pacific.net.au/linux/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 avi bcmath berkdb bitmap-fonts bzlib caps cdr crypt cups divx4linux doc dvd encode fam gd gdbm gif gnome gpm gtk gtk2 guile imap imlib java jikes jpeg ldap libwww mad memlimit mmx motif mozilla mpeg mysql ncurses offensive oggvorbis opengl pam pdflib perl png python quicktime readline samba sdl slang spell sse ssl svg svga tcltk theora tiff truetype x86 xml2 xmms xprint xv zlib"
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-10 02:18:29 UTC
I wonder if it has much to do with gcc-3.4 and p4 combo.
Comment 4 Brad Cramer 2004-09-10 08:39:07 UTC
I don't know about GCC-3.4 and P$. I am using GCC-3.3.4 and AMD Athlon XP 2600 and also have the same problem after my upgrade last night to Xorg-6.8.0. Xorg.log does show some problems whit opening compiled keymap:
<snip>
(II) XINPUT: Adding extended input device "Keyboard1" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(EE) Couldn't open compiled keymap file /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
(II) Mouse1: ps2EnableDataReporting: succeeded
Could not init font path element /usr/share/fonts/CID/, removing from list!
Could not init font path element /usr/share/fonts/local/, removing from list!
Could not init font path element /usr/share/fonts/Speedo/, removing from list!
SetClientVersion: 0 8
<snip>
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2004-09-10 11:56:41 UTC
Looking into this, although stabbing in the dark. Could someone who doesn't suffer this issue (Hi Seemant!) please post their xorg log, output of "setxkbmap -print",  and the relevant "xev" output produced when you press ctrl+alt+F1.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2004-09-10 12:11:53 UTC
Ignore that.. don't need it. I found the issue.

The bug is present with the following section in my xorg.conf :
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbLayout" "uk"
EndSection

However removing the Xkblayout line fixes the issue:
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

...except that my keys are a bit screwed up! Can anyone confirm or deny this behaviour? Are there other broken XkbLayout's too (I note a .au on the CC list..) ?
Comment 7 David Morgan 2004-09-10 12:22:26 UTC
Taking that out fixed it for me too

I guess it's a good job that not many keys are different, but piping, quoting and typing email addresses might take a bit longer than normal...
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-10 12:36:29 UTC
as dsd just discovered in 
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-10 12:36:29 UTC
as dsd just discovered in £-dev, change it from uk to gb
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2004-09-10 12:42:24 UTC
Yes. I think the "uk" layout is being pulled in from keymaps (this is the old/deprecated way of doing things, even with 6.7). We should be using "gb" for UK keyboards. I'm going to file a bug with Xorg just so that they are aware of the behaviour change - not sure if they'll want to fix it.

Is anyone else having the issue with other XkbLayout settings?
Comment 11 Brad Cramer 2004-09-10 13:16:59 UTC
my xorg.conf already is set this way
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
the only place I have keymap="us" is in /etc/rc.conf. Could this be cauysing the problem
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2004-09-10 13:23:26 UTC
Created attachment 39351 [details, diff]
fix-bad-uk-keyboard-settings.patch

We could use another sed hack to stop other users running into the same problem
(auto-replace uk with gb for XkbLayout settings).
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2004-09-10 13:41:00 UTC
Brad: Please post the output of "setxkbmap -print"
Comment 14 Brad Cramer 2004-09-10 15:34:59 UTC
bcramer@bigdaddy ~ $ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc/pc(pc101)+pc/us"    };
        xkb_geometry  { include "pc(pc101)"     };
};
Comment 15 Daniel Drake (RETIRED) gentoo-dev 2004-09-26 08:29:50 UTC
Odd... could you just test if running "setxkbmap gb" helps?
Also, does running "chvt 1" as root change to vt/1?
Comment 16 Daniel Drake (RETIRED) gentoo-dev 2004-09-26 08:34:23 UTC
Hmm..looking at your log messages, doesn't look normal. Does the directory /usr/X11R6/lib/X11/xkb/compiled exist? how about the file /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm before and after starting X?
Also check that you did run etc-update after installing xorg as I think it replaces some keymap related things.
Could you also please post your xorg.conf as an attachment.
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-26 10:43:57 UTC
Incidentally, Daniel, that dir's a symlink to /var/lib/xkb/. Just so you know.
Comment 18 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-07 16:36:14 UTC

*** This bug has been marked as a duplicate of 63795 ***