[Fwd: Re: Since chvt works, the problem must be the keymap]

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

[Fwd: Re: Since chvt works, the problem must be the keymap]

by David Claughton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florian Kulzer wrote:
>
> It would be interesting to see which keycodes and keysyms are reported
> if you run "xev", press (and hold) both CTRL and ALT, and then press F1,
> F2, etc. Does xev really display the keycodes for the Fn keys and the
> keysyms "XF86_Switch_VT_n"? Are the hexadecimal keysym values the same
> as the ones that you get with "grep VT /usr/share/X11/XKeysymDB"?
>

As another "sufferer" of this problem I thought I would give this a try
- I get ...

KeyPress event, serial 29, synthetic NO, window 0x2600001,
     root 0x3e, subw 0x0, time 1066810844, (622,696), root:(630,759),
     state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
     XLookupString gives 0 bytes:
     XmbLookupString gives 0 bytes:
     XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x2600001,
     root 0x3e, subw 0x0, time 1066810861, (622,696), root:(630,759),
     state 0x14, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
     XLookupString gives 0 bytes:
     XmbLookupString gives 0 bytes:
     XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x2600001,
     root 0x3e, subw 0x0, time 1066815357, (622,696), root:(630,759),
     state 0x1c, keycode 67 (keysym 0xffbe, F1), same_screen YES,
     XLookupString gives 0 bytes:
     XmbLookupString gives 0 bytes:
     XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x2600001,
     root 0x3e, subw 0x0, time 1066815411, (622,696), root:(630,759),
     state 0x1c, keycode 67 (keysym 0xffbe, F1), same_screen YES,
     XLookupString gives 0 bytes:

KeyRelease event, serial 29, synthetic NO, window 0x2600001,
     root 0x3e, subw 0x0, time 1066816162, (622,696), root:(630,759),
     state 0x1c, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
     XLookupString gives 0 bytes:

KeyRelease event, serial 29, synthetic NO, window 0x2600001,
     root 0x3e, subw 0x0, time 1066816188, (622,696), root:(630,759),
     state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
     XLookupString gives 0 bytes:

And "grep VT /usr/share/X11/XKeysymDB" returns :

XF86_Switch_VT_1        :1008FE01
XF86_Switch_VT_2        :1008FE02
XF86_Switch_VT_3        :1008FE03
XF86_Switch_VT_4        :1008FE04
XF86_Switch_VT_5        :1008FE05
XF86_Switch_VT_6        :1008FE06
XF86_Switch_VT_7        :1008FE07
XF86_Switch_VT_8        :1008FE08
XF86_Switch_VT_9        :1008FE09
XF86_Switch_VT_10       :1008FE0A
XF86_Switch_VT_11       :1008FE0B
XF86_Switch_VT_12       :1008FE0C

Does this tell anyone anything?

Dave.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by David Claughton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David Claughton wrote:

> Florian Kulzer wrote:
>>
>> It would be interesting to see which keycodes and keysyms are reported
>> if you run "xev", press (and hold) both CTRL and ALT, and then press F1,
>> F2, etc. Does xev really display the keycodes for the Fn keys and the
>> keysyms "XF86_Switch_VT_n"? Are the hexadecimal keysym values the same
>> as the ones that you get with "grep VT /usr/share/X11/XKeysymDB"?
>>
>
> As another "sufferer" of this problem I thought I would give this a try
> - I get ...
>
> KeyPress event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066810844, (622,696), root:(630,759),
>     state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
>
> KeyPress event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066810861, (622,696), root:(630,759),
>     state 0x14, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
>
> KeyPress event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066815357, (622,696), root:(630,759),
>     state 0x1c, keycode 67 (keysym 0xffbe, F1), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
>
> KeyRelease event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066815411, (622,696), root:(630,759),
>     state 0x1c, keycode 67 (keysym 0xffbe, F1), same_screen YES,
>     XLookupString gives 0 bytes:
>
> KeyRelease event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066816162, (622,696), root:(630,759),
>     state 0x1c, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
>     XLookupString gives 0 bytes:
>
> KeyRelease event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066816188, (622,696), root:(630,759),
>     state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
>     XLookupString gives 0 bytes:
>
> And "grep VT /usr/share/X11/XKeysymDB" returns :
>
> XF86_Switch_VT_1        :1008FE01
> XF86_Switch_VT_2        :1008FE02
> XF86_Switch_VT_3        :1008FE03
> XF86_Switch_VT_4        :1008FE04
> XF86_Switch_VT_5        :1008FE05
> XF86_Switch_VT_6        :1008FE06
> XF86_Switch_VT_7        :1008FE07
> XF86_Switch_VT_8        :1008FE08
> XF86_Switch_VT_9        :1008FE09
> XF86_Switch_VT_10       :1008FE0A
> XF86_Switch_VT_11       :1008FE0B
> XF86_Switch_VT_12       :1008FE0C
>
> Does this tell anyone anything?
>
> Dave.
>
>

Sorry, sorry - first I reply directly to Florian by mistake, then I try
to correct that and end up screwing up the Subject and threading.  I
must be getting tired :-)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by Florian Kulzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Apr 30, 2007 at 00:26:12 +0100, David Claughton wrote:

> Florian Kulzer wrote:
>> It would be interesting to see which keycodes and keysyms are reported
>> if you run "xev", press (and hold) both CTRL and ALT, and then press F1,
>> F2, etc. Does xev really display the keycodes for the Fn keys and the
>> keysyms "XF86_Switch_VT_n"? Are the hexadecimal keysym values the same
>> as the ones that you get with "grep VT /usr/share/X11/XKeysymDB"?
>
> As another "sufferer" of this problem I thought I would give this a try
> - I get ...
>
> KeyPress event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066810844, (622,696), root:(630,759),
>     state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
>
> KeyPress event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066810861, (622,696), root:(630,759),
>     state 0x14, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
>
> KeyPress event, serial 29, synthetic NO, window 0x2600001,
>     root 0x3e, subw 0x0, time 1066815357, (622,696), root:(630,759),
>     state 0x1c, keycode 67 (keysym 0xffbe, F1), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False

I think that is part of the problem: Even though you hold down CTRL and
ALT before you press F1, you still get the normal "F1" keysymbol and not
the "XF86_Switch_VT_1" one. If I run "xev" and press the three keys then
I never see the KeyPress event for F1 because X switches to the
terminal. If, on the other hand, I disable VT switching in my xorg.conf
then I still do not get any event for F1 if I press it while CTRL + ALT
are held down. Something within X obviously intercepts these events and
processes them or deletes them from the event queue, depending on the
settings in xorg.conf.

[ snip: we see the expected three KeyRelease events ]

> And "grep VT /usr/share/X11/XKeysymDB" returns :
>
> XF86_Switch_VT_1        :1008FE01

[...]

I have the same here.

> Does this tell anyone anything?

Check what is assigned to keycode 67. I see this:

$ xmodmap -pk | egrep '^[ ]+67 '
     67         0xffbe (F1)     0x1008fe01 (XF86_Switch_VT_1)

If your output looks different then you can try if

xmodmap -e 'keycode  67 = F1 XF86_Switch_VT_1'

restores the VT switching.

--
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by Amy Templeton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florian Kulzer wrote:
> Check what is assigned to keycode 67. I see this:

> $ xmodmap -pk | egrep '^[ ]+67 '
>      67         0xffbe (F1)     0x1008fe01 (XF86_Switch_VT_1)

> If your output looks different then you can try if

> xmodmap -e 'keycode  67 = F1 XF86_Switch_VT_1'

> restores the VT switching.

Well, I've got what seems to be the correct output. Also,
xev seems to read things fine from what I can tell. I would
be glad to provide the exact output if it would be helpful.

Thanks,
Amy


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by Florian Kulzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Apr 30, 2007 at 16:03:42 -0400, Amy Templeton wrote:

> Florian Kulzer wrote:
> > Check what is assigned to keycode 67. I see this:
>
> > $ xmodmap -pk | egrep '^[ ]+67 '
> >      67         0xffbe (F1)     0x1008fe01 (XF86_Switch_VT_1)
>
> > If your output looks different then you can try if
>
> > xmodmap -e 'keycode  67 = F1 XF86_Switch_VT_1'
>
> > restores the VT switching.
>
> Well, I've got what seems to be the correct output. Also,
> xev seems to read things fine from what I can tell. I would
> be glad to provide the exact output if it would be helpful.

At the moment it seems to me that we have checked all the common
pitfalls and still we have no clue why VT switching does not work for
you. Pretty much all that we can do now is poke at a few more things and
hope that a hint comes up. I am now simply very curious what events are
reported when you press CTR + ALT + F1. The KeyPress events for CTRL and
ALT should harbor no surprises, but what happens with F1? Is it reported
as keysym "F1", is it recognized as keysym "XF86_Switch_VT_1" or is it
swallowed by X?

I would also suggest that you check the end /var/log/Xorg.0.log right
after you try to switch VTs. I see these new lines in the log after I
switch to tty1 with CTRL + ALT + F1:

(II) AIGLX: Suspending AIGLX clients for VT switch
(II) intel(0): xf86UnbindGARTMemory: unbind key 0
(II) intel(0): xf86UnbindGARTMemory: unbind key 1
(II) intel(0): xf86UnbindGARTMemory: unbind key 2
(II) intel(0): xf86UnbindGARTMemory: unbind key 3
(II) intel(0): xf86UnbindGARTMemory: unbind key 4

Maybe your VT switching is indeed blocked by a problem with the graphics
driver as suggested earlier by cga. In that case I would hope that the
log will give us a hint what to do about it.

--
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by cga2000 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Apr 30, 2007 at 04:31:53PM EDT, Florian Kulzer wrote:

> On Mon, Apr 30, 2007 at 16:03:42 -0400, Amy Templeton wrote:
> > Florian Kulzer wrote:
> > > Check what is assigned to keycode 67. I see this:
> >
> > > $ xmodmap -pk | egrep '^[ ]+67 '
> > >      67         0xffbe (F1)     0x1008fe01 (XF86_Switch_VT_1)
> >
> > > If your output looks different then you can try if
> >
> > > xmodmap -e 'keycode  67 = F1 XF86_Switch_VT_1'
> >
> > > restores the VT switching.
> >
> > Well, I've got what seems to be the correct output. Also,
> > xev seems to read things fine from what I can tell. I would
> > be glad to provide the exact output if it would be helpful.
>
> At the moment it seems to me that we have checked all the common
> pitfalls and still we have no clue why VT switching does not work for
> you. Pretty much all that we can do now is poke at a few more things and
> hope that a hint comes up. I am now simply very curious what events are
> reported when you press CTR + ALT + F1. The KeyPress events for CTRL and
> ALT should harbor no surprises, but what happens with F1? Is it reported
> as keysym "F1", is it recognized as keysym "XF86_Switch_VT_1" or is it
> swallowed by X?
>
> I would also suggest that you check the end /var/log/Xorg.0.log right
> after you try to switch VTs. I see these new lines in the log after I
> switch to tty1 with CTRL + ALT + F1:
>
> (II) AIGLX: Suspending AIGLX clients for VT switch
> (II) intel(0): xf86UnbindGARTMemory: unbind key 0
> (II) intel(0): xf86UnbindGARTMemory: unbind key 1
> (II) intel(0): xf86UnbindGARTMemory: unbind key 2
> (II) intel(0): xf86UnbindGARTMemory: unbind key 3
> (II) intel(0): xf86UnbindGARTMemory: unbind key 4
>
> Maybe your VT switching is indeed blocked by a problem with the graphics
> driver as suggested earlier by cga. In that case I would hope that the
> log will give us a hint what to do about it.

Normally, that would have been my first reaction to the problem.  But
then this was some 4-5 years ago and I can't be sure I looked .. or if
I saw anything.

Also, I'm not sure the behavior of xev is to be relied upon in this
case.  From a totally non-technical standpoint, it could be that when
CTRL+Alt+Fn "works" as intended, xev never gets to "see" it .. and otoh,
when it does not, the keycode gets passed to xev.  If you follow my
general train of thought.

If I was experiencing such a problem at this point I think I would
subscribe to one of the X.org mailing lists.  They are clearly meant for
developers only and these folks may very well not be willing to deal
with us mortals .. but then they should be able to tell us where to go
to try and figure out what this problem is ..

worth a try?

Thanks,
cga


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by David Claughton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florian Kulzer wrote:

> Check what is assigned to keycode 67. I see this:
>
> $ xmodmap -pk | egrep '^[ ]+67 '
>      67         0xffbe (F1)     0x1008fe01 (XF86_Switch_VT_1)
>
> If your output looks different then you can try if
>
> xmodmap -e 'keycode  67 = F1 XF86_Switch_VT_1'
>
> restores the VT switching.
>

This does seem to be the answer, or nearly at least ...

david@debian:~$ xmodmap -pk | egrep '^[ ]+67 '
      67         0xffbe (F1)     0xffca (F13)

This is wrong, so I run the second command ...

david@debian:~$ xmodmap -e 'keycode  67 = F1 XF86_Switch_VT_1'
david@debian:~$ xmodmap -pk | egrep '^[ ]+67 '
      67         0xffbe (F1)     0x1008fe01 (XF86_Switch_VT_1)

This now allows me to switch VT on pressing Shift-F1, but not on
Ctrl-Alt-F1.  Checking the xmodmap man page reveals that this is correct
- the command maps keycode = keysym shifted-keysym.

However despite careful reading of the man page and a bit of googling,
I'm not sure of the correct way to get the XF86_Switch_VT_1 keysym onto
Ctrl-Alt-F1 where it belongs?

Thanks, Dave.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Since chvt works, the problem must be the keymap [(mostly SOLVED)]

by Amy Templeton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I did some follow-through and read through a bit of the
sudoers manual, and added the following to the line for my
username to the system /etc/sudoers file (using visudo, of
course):

Code:
_______________________

NOPASSWD: /usr/bin/chvt
_______________________

...which allows me to successfully invoke chvt without
entering a password. I then added the following stanzas to
my ~/.xmodmap file:

Code:
_____________________

"sudo chvt 1"
  control + Mod1 + F1
"sudo chvt 2"
  control + Mod1 + F2
"sudo chvt 3"
  control + Mod1 + F3
"sudo chvt 4"
  control + Mod1 + F4
"sudo chvt 5"
  control + Mod1 + F5
"sudo chvt 6"
  control + Mod1 + F6
_____________________

...which allows me to switch to a VT using control-alt-f#!
Sweet! Mission accomplished! Thanks for the help of everyone
here.

However, there is one small hitch:  when invoked from a
commandline, chvt takes me to a VT. There, I can log in,
move to another VT with Alt-f#, or go back to X with alt-f7.
However, when invoked via a keybinding, chvt takes me to the
correct VT, from which I can either log in or go back to X
with alt-f7. If, however, I try to change to another VT from
there, it flashes over to it for a second and then switches
back. This also happens if I invoke chvt from the VT. Unless
somebody has an immediately obvious fix for this, however,
I'm willing to live with this, since the fix above is
admittedly treating the symptoms but not so much the
problem.

Anyway, thanks again to everyone.

Amy


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by Florian Kulzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, May 01, 2007 at 02:09:10 +0100, David Claughton wrote:

> Florian Kulzer wrote:
>> Check what is assigned to keycode 67. I see this:
>> $ xmodmap -pk | egrep '^[ ]+67 '
>>      67         0xffbe (F1)     0x1008fe01 (XF86_Switch_VT_1)
>> If your output looks different then you can try if
>> xmodmap -e 'keycode  67 = F1 XF86_Switch_VT_1'
>> restores the VT switching.
>
> This does seem to be the answer, or nearly at least ...
>
> david@debian:~$ xmodmap -pk | egrep '^[ ]+67 '
>      67         0xffbe (F1)     0xffca (F13)
>
> This is wrong, so I run the second command ...
>
> david@debian:~$ xmodmap -e 'keycode  67 = F1 XF86_Switch_VT_1'
> david@debian:~$ xmodmap -pk | egrep '^[ ]+67 '
>      67         0xffbe (F1)     0x1008fe01 (XF86_Switch_VT_1)
>
> This now allows me to switch VT on pressing Shift-F1, but not on
> Ctrl-Alt-F1.  Checking the xmodmap man page reveals that this is correct -
> the command maps keycode = keysym shifted-keysym.

That is interesting. "keycode  67 = F1 XF86_Switch_VT_1" is the output that I
get with "xmodmap -pke" and this command is supposed to return the exact
expressions which can be used with "-e" to set things up. I can only guess that
the format of the expressions is dependent on the general keyboard setup.

> However despite careful reading of the man page and a bit of googling, I'm
> not sure of the correct way to get the XF86_Switch_VT_1 keysym onto
> Ctrl-Alt-F1 where it belongs?

I would experiment like this:

xmodmap -e 'keycode  67 = F1 F13 XF86_Switch_VT_1'
xmodmap -e 'keycode  67 = F1 F13 F1 XF86_Switch_VT_1'
xmodmap -e 'keycode  67 = F1 F1 F1 XF86_Switch_VT_1'
xmodmap -e 'keycode  67 = F1 F13 F13 XF86_Switch_VT_1'

It would be interesting to know what works for you and also your general
keyboard setup. For comparison, here is what I have:

$ xmodmap -pke | grep 'F1 '
keycode  67 = F1 XF86_Switch_VT_1

$ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete+caps(shift)"  };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc(pc105)+es(nodeadkeys)+compose(menu)"        };
        xkb_geometry  { include "pc(pc105)"     };
};

$ awk '/Section "InputDevice"/,/EndSection/' /etc/X11/xorg.conf
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "es"
        Option          "XkbVariant"    "nodeadkeys"
EndSection

[ snip: output related to the mouse ]

--
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by David Claughton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florian Kulzer wrote:

> I would experiment like this:
>
> xmodmap -e 'keycode  67 = F1 F13 XF86_Switch_VT_1'
> xmodmap -e 'keycode  67 = F1 F13 F1 XF86_Switch_VT_1'
> xmodmap -e 'keycode  67 = F1 F1 F1 XF86_Switch_VT_1'
> xmodmap -e 'keycode  67 = F1 F13 F13 XF86_Switch_VT_1'

Nope, none of these commands seem to work - all possible
shift/alt/control F1 combinations I tried after running each of these
commands just got me an error beep + a letter or two on the terminal,
or it launched Gnome Help!

> It would be interesting to know what works for you and also your general
> keyboard setup. For comparison, here is what I have:
>
> $ xmodmap -pke | grep 'F1 '
> keycode  67 = F1 XF86_Switch_VT_1
>

I get the same ...

> $ setxkbmap -print
> xkb_keymap {
>         xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
>         xkb_types     { include "complete+caps(shift)"  };
>         xkb_compat    { include "complete"      };
>         xkb_symbols   { include "pc(pc105)+es(nodeadkeys)+compose(menu)"        };
>         xkb_geometry  { include "pc(pc105)"     };
> };
>

I get ...
xkb_keymap {
         xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
         xkb_types     { include "complete"      };
         xkb_compat    { include "complete"      };
         xkb_symbols   { include "pc(pc105)+uk"  };
         xkb_geometry  { include "pc(pc105)"     };
};


> $ awk '/Section "InputDevice"/,/EndSection/' /etc/X11/xorg.conf
> Section "InputDevice"
>         Identifier      "Generic Keyboard"
>         Driver          "kbd"
>         Option          "CoreKeyboard"
>         Option          "XkbRules"      "xorg"
>         Option          "XkbModel"      "pc105"
>         Option          "XkbLayout"     "es"
>         Option          "XkbVariant"    "nodeadkeys"
> EndSection
>
> [ snip: output related to the mouse ]
>

I get this ...

Section "InputDevice"
         Identifier      "Generic Keyboard"
         Driver          "kbd"
         Option          "CoreKeyboard"
         Option          "XkbRules"      "xorg"
         Option          "XkbModel"      "pc105"
         Option          "XkbLayout"     "uk"
EndSection


So AFAICT, not a lot of help there.

I should also mention that once I have switched VT using Shift-F1, I can
switch back using Ctrl-Alt-F7 as expected - which seems to suggest
nothing is wrong with the system keymap.

Dave.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by Florian Kulzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, May 02, 2007 at 00:49:38 +0100, David Claughton wrote:

> Florian Kulzer wrote:
>
>> I would experiment like this:
>> xmodmap -e 'keycode  67 = F1 F13 XF86_Switch_VT_1'
>> xmodmap -e 'keycode  67 = F1 F13 F1 XF86_Switch_VT_1'
>> xmodmap -e 'keycode  67 = F1 F1 F1 XF86_Switch_VT_1'
>> xmodmap -e 'keycode  67 = F1 F13 F13 XF86_Switch_VT_1'
>
> Nope, none of these commands seem to work - all possible shift/alt/control
> F1 combinations I tried after running each of these commands just got me an
> error beep + a letter or two on the terminal, or it launched Gnome Help!

So much for that brilliant theory...

[...]

>> $ setxkbmap -print

[...]

> xkb_keymap {
>         xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
>         xkb_types     { include "complete"      };
>         xkb_compat    { include "complete"      };
>         xkb_symbols   { include "pc(pc105)+uk"  };
>         xkb_geometry  { include "pc(pc105)"     };
> };

[...]

> Section "InputDevice"
>         Identifier      "Generic Keyboard"
>         Driver          "kbd"
>         Option          "CoreKeyboard"
>         Option          "XkbRules"      "xorg"
>         Option          "XkbModel"      "pc105"
>         Option          "XkbLayout"     "uk"
> EndSection
>
>
> So AFAICT, not a lot of help there.
>
> I should also mention that once I have switched VT using Shift-F1, I can
> switch back using Ctrl-Alt-F7 as expected - which seems to suggest nothing
> is wrong with the system keymap.

There are two different keymaps: The console keymap (which seems to be
OK) and the X keymap (which we cannot quite figure out, it seems). The
VT switching mechanism is different once you are outside of X. This is
also the reason why it is enough to press ALT + Fn (no CTRL) to switch
VTs once you are on a non-X tty.

I am afraid it is time to start grasping at straws now:

- try "gb" instead of "uk" for XkbLayout

and/or

- try "pc104" instead of "pc105" for XkbModel

and/or

- add this to the keyboard section:
  Option "Xkbdisable" "true"

Restart X and see if any of it helps.

--
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap [SOLVED]

by David Claughton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florian Kulzer wrote:
  > I am afraid it is time to start grasping at straws now:
>
> - try "gb" instead of "uk" for XkbLayout
>

Well, would you believe it - that fixed the problem!

I still can't quite believe it was as simple as that.

Thanks a lot for your help :-)

Dave.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by cga2000 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, May 02, 2007 at 09:27:35AM EDT, Florian Kulzer wrote:

> On Wed, May 02, 2007 at 00:49:38 +0100, David Claughton wrote:
> > Florian Kulzer wrote:
> >
> >> I would experiment like this:
> >> xmodmap -e 'keycode  67 = F1 F13 XF86_Switch_VT_1'
> >> xmodmap -e 'keycode  67 = F1 F13 F1 XF86_Switch_VT_1'
> >> xmodmap -e 'keycode  67 = F1 F1 F1 XF86_Switch_VT_1'
> >> xmodmap -e 'keycode  67 = F1 F13 F13 XF86_Switch_VT_1'
> >
> > Nope, none of these commands seem to work - all possible shift/alt/control
> > F1 combinations I tried after running each of these commands just got me an
> > error beep + a letter or two on the terminal, or it launched Gnome Help!
>
> So much for that brilliant theory...

It's certainly the one that makes the better sense.

At least it's something I can understand.

> [...]
>
> >> $ setxkbmap -print
>
> [...]
>
> > xkb_keymap {
> >         xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
> >         xkb_types     { include "complete"      };
> >         xkb_compat    { include "complete"      };
> >         xkb_symbols   { include "pc(pc105)+uk"  };
> >         xkb_geometry  { include "pc(pc105)"     };
> > };
>
> [...]
>
> > Section "InputDevice"
> >         Identifier      "Generic Keyboard"
> >         Driver          "kbd"
> >         Option          "CoreKeyboard"
> >         Option          "XkbRules"      "xorg"
> >         Option          "XkbModel"      "pc105"
> >         Option          "XkbLayout"     "uk"
> > EndSection
> >
> >
> > So AFAICT, not a lot of help there.
> >
> > I should also mention that once I have switched VT using Shift-F1, I can
> > switch back using Ctrl-Alt-F7 as expected - which seems to suggest nothing
> > is wrong with the system keymap.
>
> There are two different keymaps: The console keymap (which seems to be
> OK) and the X keymap (which we cannot quite figure out, it seems). The
> VT switching mechanism is different once you are outside of X.

To be a little more precise .. it looks as if there are two totally
separate mechanisms...  One that's "system-wide" so to speak .. handled
by the kernel .. (?) ..  manages VT's wherever you are .. including in
an X session .. and whatever they are currently connected with including
"nothing" .. lets you switch .. but also create & destroy VT's on the
fly (man chvt).  And then there's another mechanism that works only when
you are running an X session .. only lets you switch VT's .. and is
presumably handled by the X server.

No idea if the two are related or how..

> This is also the reason why it is enough to press ALT + Fn (no CTRL)
> to switch VTs once you are on a non-X tty.

> I am afraid it is time to start grasping at straws now:
>
> - try "gb" instead of "uk" for XkbLayout
>
> and/or
>
> - try "pc104" instead of "pc105" for XkbModel
>
> and/or
>
> - add this to the keyboard section:
>   Option "Xkbdisable" "true"
>
> Restart X and see if any of it helps.

The other (vague I admit) reason I mentioned buggy video drivers as a
possible cause is that though I was not able to verify this first-hand
.. I did see in google instances of folks reporting they has fixed such
a problem being fixed by upgrading their X driver to a more current
version.  But since both those who experienced the problem and those who
came up with the "solution" were just as clueless as myself as to what
would be causing this .. it mostly ran along the lines of ..  ".. works
here with the 3.99 version .. what're you running .. 3.72.3 .. hmm..
you may want to try to upgrade" .. "you're my hero  .. thanks a ton ..
upgraded the driver and it took care of the problem."

Thanks,
cga


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap [SOLVED]

by Florian Kulzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, May 03, 2007 at 00:41:32 +0100, David Claughton wrote:
> Florian Kulzer wrote:
>  > I am afraid it is time to start grasping at straws now:
>> - try "gb" instead of "uk" for XkbLayout
>
> Well, would you believe it - that fixed the problem!
>
> I still can't quite believe it was as simple as that.
>
> Thanks a lot for your help :-)

Well, in retrospect it is obvious that we should have had a good look at
your xorg.conf and your logfile first. You joined this thread when we
were already completely fixated on solving the ultimate mystery of the
keysyms and therefore we could not see the forest for the tress anymore,
I guess.

--
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by Florian Kulzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, May 02, 2007 at 19:47:44 -0400, cga2000 wrote:

> On Wed, May 02, 2007 at 09:27:35AM EDT, Florian Kulzer wrote:
> > On Wed, May 02, 2007 at 00:49:38 +0100, David Claughton wrote:
> > > Florian Kulzer wrote:
> > >
> > >> I would experiment like this:
> > >> xmodmap -e 'keycode  67 = F1 F13 XF86_Switch_VT_1'
> > >> xmodmap -e 'keycode  67 = F1 F13 F1 XF86_Switch_VT_1'
> > >> xmodmap -e 'keycode  67 = F1 F1 F1 XF86_Switch_VT_1'
> > >> xmodmap -e 'keycode  67 = F1 F13 F13 XF86_Switch_VT_1'
> > >
> > > Nope, none of these commands seem to work - all possible shift/alt/control
> > > F1 combinations I tried after running each of these commands just got me an
> > > error beep + a letter or two on the terminal, or it launched Gnome Help!
> >
> > So much for that brilliant theory...
>
> It's certainly the one that makes the better sense.
>
> At least it's something I can understand.

I think I understand now why it did not work: There is more to this
keysym business than what meets the eye in the output of the xmodmap
commands as we have used them in this thread. Besides their symbols the
keys also have a "type" assigned to them and this type determines how
the additional keysyms are interpreted. The function keys should
normally be of type "CTRL+ALT" which means what the name suggests: They
always produce "Fn" except when used with CTRL and ALT together, in
which case the second keysym is registered. This type is defined here:

$ awk '/CTRL\+ALT/,/};/' /usr/share/X11/xkb/types/pc
    type "CTRL+ALT" {
        modifiers = Control+Alt;
        map[Control+Alt] = Level2;
        level_name[Level1] = "Base";
        level_name[Level2] = "Ctrl+Alt";
    };

In David's case it turned out that he had the obsolete "uk" layout in
his xorg.conf instead of "gb" and because of this his X obviously did
not load the correct type definitions. Therefore he could only activate
the VT switching for SHIFT + F1.

If you specify an existing layout from /usr/share/X11/xkb/symbols/ then
everything seems to be taken care of by the "pc" file in that directory:

$ awk '/<FK01>/,/};/' /usr/share/X11/xkb/symbols/pc
    key <FK01> {
        type="CTRL+ALT",
        symbols[Group1]= [ F1,  XF86_Switch_VT_1 ]
    };

[...]

> > > I should also mention that once I have switched VT using Shift-F1, I can
> > > switch back using Ctrl-Alt-F7 as expected - which seems to suggest nothing
> > > is wrong with the system keymap.
> >
> > There are two different keymaps: The console keymap (which seems to be
> > OK) and the X keymap (which we cannot quite figure out, it seems). The
> > VT switching mechanism is different once you are outside of X.
>
> To be a little more precise .. it looks as if there are two totally
> separate mechanisms...  One that's "system-wide" so to speak .. handled
> by the kernel .. (?) ..  manages VT's wherever you are .. including in
> an X session .. and whatever they are currently connected with including
> "nothing" .. lets you switch .. but also create & destroy VT's on the
> fly (man chvt).  And then there's another mechanism that works only when
> you are running an X session .. only lets you switch VT's .. and is
> presumably handled by the X server.
>
> No idea if the two are related or how..

[...]

> The other (vague I admit) reason I mentioned buggy video drivers as a
> possible cause is that though I was not able to verify this first-hand
> .. I did see in google instances of folks reporting they has fixed such
> a problem being fixed by upgrading their X driver to a more current
> version.  But since both those who experienced the problem and those who
> came up with the "solution" were just as clueless as myself as to what
> would be causing this .. it mostly ran along the lines of ..  ".. works
> here with the 3.99 version .. what're you running .. 3.72.3 .. hmm..
> you may want to try to upgrade" .. "you're my hero  .. thanks a ton ..
> upgraded the driver and it took care of the problem."

I think these are all good points. We definitely have to use the next
person with this problem as our guinea pig to experiment a bit more in
that direction ;)

P.S. David, I included the information about types and keysyms in this
     mail rather than in my last response to you because the quoted
     older messages here made it easier for me to have the complete
     story in one mail.

--
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap

by David Claughton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florian Kulzer wrote:

> I think I understand now why it did not work: There is more to this
> keysym business than what meets the eye ...  [snipped very informative explanation]

Great work, Florian!  I always find it fascinating when I get a glimpse
into how something works "under the covers".

FWIW, I can confirm I have no 'uk' symbols file in the directory you
quoted.  I can only imagine that one existed when I first installed
Debian on this machine (which would have been just after the Sarge
release IIRC), and it has since been replaced by the 'gb' one.  I'm just
guessing though.

Thanks again,

Dave.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap [SOLVED]

by Andrew Sackville-West :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, May 03, 2007 at 10:09:42PM +0200, Florian Kulzer wrote:

> On Thu, May 03, 2007 at 00:41:32 +0100, David Claughton wrote:
> > Florian Kulzer wrote:
> >  > I am afraid it is time to start grasping at straws now:
> >> - try "gb" instead of "uk" for XkbLayout
> >
> > Well, would you believe it - that fixed the problem!
> >
> > I still can't quite believe it was as simple as that.
> >
> > Thanks a lot for your help :-)
>
> Well, in retrospect it is obvious that we should have had a good look at
> your xorg.conf and your logfile first. You joined this thread when we
> were already completely fixated on solving the ultimate mystery of the
> keysyms and therefore we could not see the forest for the tress anymore,
> I guess.
is Amy still lurking on this thread??? is there something missing in
your xorg.conf?

A


signature.asc (196 bytes) Download Attachment

Re: Since chvt works, the problem must be the keymap [SOLVED]

by Amy Templeton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andrew Sackville-West wrote:

> On Thu, May 03, 2007 at 10:09:42PM +0200, Florian Kulzer wrote:
> > On Thu, May 03, 2007 at 00:41:32 +0100, David Claughton wrote:
> > > Florian Kulzer wrote:
> > >  > I am afraid it is time to start grasping at straws now:
> > >> - try "gb" instead of "uk" for XkbLayout
> > >
> > > Well, would you believe it - that fixed the problem!
> > >
> > > I still can't quite believe it was as simple as that.
> > >
> > > Thanks a lot for your help :-)
> >
> > Well, in retrospect it is obvious that we should have had a good look at
> > your xorg.conf and your logfile first. You joined this thread when we
> > were already completely fixated on solving the ultimate mystery of the
> > keysyms and therefore we could not see the forest for the tress anymore,
> > I guess.
>
> is Amy still lurking on this thread??? is there something
> missing in your xorg.conf?

I'm still around. I guess you missed my quick workaround the
other day (thanks to the magics of xbindkeys, sudo, and
chvt). However, if there is an alternative to "us" that you
think might fix the problem if given as an argument to
"XkbLayout," I'd certainly be glad to try it. GB settings
are somewhat useless to me, I'm afraid, since I'm from the
US. Thanks, though.

Amy

P.S.:  When did the thread title get changed, anyway? I
       guess I missed that.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Since chvt works, the problem must be the keymap [SOLVED (for me)]

by David Claughton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Amy Templeton wrote:
P.S.:  When did the thread title get changed, anyway? I
       guess I missed that.
If you mean the 'SOLVED' tag, I'm afraid that'd be me.  I guess I'd forgotton I was riding on your thread, I probably
shouldn't have implied that the entire issue was resolved.  Sorry.

Dave.

Re: Since chvt works, the problem must be the keymap [SOLVED (for reals)]

by Amy Templeton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David Claughton wrote:
> Amy Templeton wrote:
> >
> > P.S.:  When did the thread title get changed, anyway? I
> >        guess I missed that.
> >

> If you mean the 'SOLVED' tag, I'm afraid that'd be me.  I guess I'd
> forgotton I was riding on your thread, I probably
> shouldn't have implied that the entire issue was resolved.  Sorry.

Actually, I meant from "Oh! Also, can't get to VT" or
whatever it was originally. I also attached a [solved] tag
to it at some point. No worries. :-)

Amy


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...

< Prev | 1 - 2 | Next >