FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-23-2008, 12:05 AM
Gabriel Parrondo
 
Default Cannot switch to VT (console)

El mié, 23-07-2008 a las 00:23 +0100, Michal R. Hoffmann escribió:
> Hi,
>
> Recently I tried to switch to VT (console) and I couldn't - Ctrl+Alt+F1
> didn't work (and they used to couple of weeks ago). I don't even know
> where to look for the problem; xev detects KeyRelease XF86_Switch_VT_1
> event, /etc/inittab contain getty respawns.
>
> Oh, when I tried chvt 1 it responded:
> Couldnt get a file descriptor referring to the console


Did you try as root?

>
> Debian sid, home-compiled kernel, GDM/Gnome, nvidia-glx

If your graphics card is supported, you should try with nv.

[...]


--
Gabriel Parrondo
GNU/Linux User #404138
GnuPG Public Key ID: BED7BF43
JID: gabrielp@xmpp.us

"The only difference between theory and practice is that, in theory,
there's no difference between theory and practice."
 
Old 07-23-2008, 06:41 AM
Anthony Campbell
 
Default Cannot switch to VT (console)

On 22 Jul 2008, Gabriel Parrondo wrote:
> El mié, 23-07-2008 a las 00:23 +0100, Michal R. Hoffmann escribió:
> > Hi,
> >
> > Recently I tried to switch to VT (console) and I couldn't - Ctrl+Alt+F1
> > didn't work (and they used to couple of weeks ago). I don't even know
> > where to look for the problem; xev detects KeyRelease XF86_Switch_VT_1
> > event, /etc/inittab contain getty respawns.
> >
> > Oh, when I tried chvt 1 it responded:
> > Couldnt get a file descriptor referring to the console
>
>
> Did you try as root?
>
> >
> > Debian sid, home-compiled kernel, GDM/Gnome, nvidia-glx
>
> If your graphics card is supported, you should try with nv.
>
> [...]
>

I haven't been able to use ctrl-alt-F1 for well over a year. I didn't
know about chvt; it does work as root for me. Useful.

Anthony


--
Anthony Campbell - ac@acampbell.org.uk
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews,
and sceptical articles)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-23-2008, 01:38 PM
Raj Kiran Grandhi
 
Default Cannot switch to VT (console)

Michal R. Hoffmann wrote:

Hi,

Recently I tried to switch to VT (console) and I couldn't - Ctrl+Alt+F1
didn't work (and they used to couple of weeks ago). I don't even know
where to look for the problem; xev detects KeyRelease XF86_Switch_VT_1
event, /etc/inittab contain getty respawns.


Check your xorg.conf and see if the DontVTSwitch option is present.
Also, it could be some problem with your XkbModel setting, like pc105
instead of pc104.




Oh, when I tried chvt 1 it responded:
Couldnt get a file descriptor referring to the console


Did you try that as root?



Debian sid, home-compiled kernel, GDM/Gnome, nvidia-glx

Any suggestions, please?



--

If you can't explain it simply, you don't understand it well enough.
-- Albert Einstein


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-23-2008, 10:36 PM
"Michal R. Hoffmann"
 
Default Cannot switch to VT (console)

On 23/07/08 01:05, Gabriel Parrondo wrote:

El mié, 23-07-2008 a las 00:23 +0100, Michal R. Hoffmann escribió:

Hi,

Recently I tried to switch to VT (console) and I couldn't - Ctrl+Alt+F1
didn't work (and they used to couple of weeks ago). I don't even know
where to look for the problem; xev detects KeyRelease XF86_Switch_VT_1
event, /etc/inittab contain getty respawns.


Oh, when I tried chvt 1 it responded:
Couldnt get a file descriptor referring to the console


Did you try as root?
I hadn't before. Now I tried and it worked, thanks. So at least I know
switching to the terminal works; the problem is usually I try to switch
to the console when something goes bad in Gnome and I cannot do anything
in GUI and I need a quick way for a 'blindfolded man' to quit to VT.




Debian sid, home-compiled kernel, GDM/Gnome, nvidia-glx

If your graphics card is supported, you should try with nv.


Still the same

--
Kind regards,
Michal R. Hoffmann


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-23-2008, 10:41 PM
"Michal R. Hoffmann"
 
Default Cannot switch to VT (console)

On 23/07/08 14:38, Raj Kiran Grandhi wrote:

Michal R. Hoffmann wrote:

Hi,

Recently I tried to switch to VT (console) and I couldn't -
Ctrl+Alt+F1 didn't work (and they used to couple of weeks ago). I
don't even know where to look for the problem; xev detects KeyRelease
XF86_Switch_VT_1 event, /etc/inittab contain getty respawns.


Check your xorg.conf and see if the DontVTSwitch option is present.

No, it's not.

Also, it could be some problem with your XkbModel setting, like pc105
instead of pc104.
Hmmm, that's possible - I have that Microsoft ergonomical USB keyboard,
connected via Avocent KVM. But it worked previously... And xev detects
the XF86_Switch_VT_1 event so it seems to be OK.



Oh, when I tried chvt 1 it responded:
Couldnt get a file descriptor referring to the console

Did you try that as root?

Just tried and it worked; so maybe this is some access rights issue then?


--
Kind regards,
Michal R. Hoffmann


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 07:40 PM
Florian Kulzer
 
Default Cannot switch to VT (console)

On Wed, Jul 23, 2008 at 23:41:37 +0100, Michal R. Hoffmann wrote:
> On 23/07/08 14:38, Raj Kiran Grandhi wrote:
>> Michal R. Hoffmann wrote:
>>> Hi,
>>>
>>> Recently I tried to switch to VT (console) and I couldn't -
>>> Ctrl+Alt+F1 didn't work (and they used to couple of weeks ago). I
>>> don't even know where to look for the problem; xev detects KeyRelease
>>> XF86_Switch_VT_1 event, /etc/inittab contain getty respawns.

Does is also report the KeyPress event for XF86_Switch_VT_1?

>> Check your xorg.conf and see if the DontVTSwitch option is present.
> No, it's not.
>
>> Also, it could be some problem with your XkbModel setting, like pc105
>> instead of pc104.
> Hmmm, that's possible - I have that Microsoft ergonomical USB keyboard,
> connected via Avocent KVM. But it worked previously... And xev detects
> the XF86_Switch_VT_1 event so it seems to be OK.

Post the output of these commands:

setxkbmap -print

xmodmap

xmodmap -pk | grep XF86_Switch_VT

>>> Oh, when I tried chvt 1 it responded:
>>> Couldnt get a file descriptor referring to the console
>> Did you try that as root?
> Just tried and it worked; so maybe this is some access rights issue then?

I think it is normal that chvt only works as root.

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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-28-2008, 02:09 PM
Osamu Aoki
 
Default Cannot switch to VT (console)

On Wed, Jul 23, 2008 at 12:23:52AM +0100, Michal R. Hoffmann wrote:
> Hi,
>
> Recently I tried to switch to VT (console) and I couldn't - Ctrl+Alt+F1
> didn't work (and they used to couple of weeks ago). I don't even know
> where to look for the problem; xev detects KeyRelease XF86_Switch_VT_1
> event, /etc/inittab contain getty respawns.
>
> Oh, when I tried chvt 1 it responded:
> Couldnt get a file descriptor referring to the console
>
> Debian sid, home-compiled kernel, GDM/Gnome, nvidia-glx
>
> Any suggestions, please?

Other than configuration suggestions for X provided by others, here is a
simple command line command to switch VT.

# chvt 1

See more in latest debian-reference-en package or at:
http://people.debian.org/~osamu/pub/getwiki/html/ch02.en.html#virtualconsoles

Osamu


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-28-2008, 11:17 PM
"Michal R. Hoffmann"
 
Default Cannot switch to VT (console)

On 27/07/08 20:40, Florian Kulzer wrote:

On Wed, Jul 23, 2008 at 23:41:37 +0100, Michal R. Hoffmann wrote:

On 23/07/08 14:38, Raj Kiran Grandhi wrote:

Michal R. Hoffmann wrote:

Hi,

Recently I tried to switch to VT (console) and I couldn't -
Ctrl+Alt+F1 didn't work (and they used to couple of weeks ago). I
don't even know where to look for the problem; xev detects KeyRelease
XF86_Switch_VT_1 event, /etc/inittab contain getty respawns.

Does is also report the KeyPress event for XF86_Switch_VT_1?

No, only KeyRelease.

Check your xorg.conf and see if the DontVTSwitch option is present.

No, it's not.
Also, it could be some problem with your XkbModel setting, like pc105
instead of pc104.
Hmmm, that's possible - I have that Microsoft ergonomical USB keyboard,
connected via Avocent KVM. But it worked previously... And xev detects
the XF86_Switch_VT_1 event so it seems to be OK.

Post the output of these commands:

setxkbmap -print


$ setxkbmap -print
xkb_keymap {
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include
"pc+gb+inet(microsoftprousb)+pl:2+level3(ralt_swit ch_for_alts_toggle):1+level3(ralt_switch_for_alts_ toggle):2+group(alts_toggle)+eurosign(4)+keypad(os s)"
};

xkb_geometry { include "microsoft(natural)" };
};


xmodmap

$ xmodmap
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x71),
ISO_Level3_Shift (0x7c)




xmodmap -pk | grep XF86_Switch_VT


$ xmodmap -pk | grep XF86_Switch_VT
67 0xffbe (F1) 0x1008fe01 (XF86_Switch_VT_1)
68 0xffbf (F2) 0x1008fe02 (XF86_Switch_VT_2)
69 0xffc0 (F3) 0x1008fe03 (XF86_Switch_VT_3)
70 0xffc1 (F4) 0x1008fe04 (XF86_Switch_VT_4)
71 0xffc2 (F5) 0x1008fe05 (XF86_Switch_VT_5)
72 0xffc3 (F6) 0x1008fe06 (XF86_Switch_VT_6)
73 0xffc4 (F7) 0x1008fe07 (XF86_Switch_VT_7)
74 0xffc5 (F8) 0x1008fe08 (XF86_Switch_VT_8)
75 0xffc6 (F9) 0x1008fe09 (XF86_Switch_VT_9)
76 0xffc7 (F10) 0x1008fe0a (XF86_Switch_VT_10)
95 0xffc8 (F11) 0x1008fe0b (XF86_Switch_VT_11)
96 0xffc9 (F12) 0x1008fe0c (XF86_Switch_VT_12)


--
Kind regards,
Michal R. Hoffmann


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-30-2008, 09:15 PM
Florian Kulzer
 
Default Cannot switch to VT (console)

On Tue, Jul 29, 2008 at 00:17:35 +0100, Michal R. Hoffmann wrote:
> On 27/07/08 20:40, Florian Kulzer wrote:
>> On Wed, Jul 23, 2008 at 23:41:37 +0100, Michal R. Hoffmann wrote:
>>> On 23/07/08 14:38, Raj Kiran Grandhi wrote:
>>>> Michal R. Hoffmann wrote:
>>>>> Hi,
>>>>>
>>>>> Recently I tried to switch to VT (console) and I couldn't -
>>>>> Ctrl+Alt+F1 didn't work (and they used to couple of weeks ago). I
>>>>> don't even know where to look for the problem; xev detects
>>>>> KeyRelease XF86_Switch_VT_1 event, /etc/inittab contain getty
>>>>> respawns.
>> Does is also report the KeyPress event for XF86_Switch_VT_1?
> No, only KeyRelease.

Interesting, the KeyPress event seems to be intercepted, but X does not
act on it. You could try to run

tail -fn0 /var/log/Xorg.0.log

in an X terminal and check if anything is appended to the Xorg log when
you press CTRL+ALT+F1.

>>>> Check your xorg.conf and see if the DontVTSwitch option is present.
>>>>
>>> No, it's not.
>>>> Also, it could be some problem with your XkbModel setting, like
>>>> pc105 instead of pc104.
>>> Hmmm, that's possible - I have that Microsoft ergonomical USB
>>> keyboard, connected via Avocent KVM. But it worked previously... And
>>> xev detects the XF86_Switch_VT_1 event so it seems to be OK.
>> Post the output of these commands:
>>
>> setxkbmap -print
>
> $ setxkbmap -print
> xkb_keymap {
> xkb_keycodes { include "xfree86+aliases(qwerty)" };
> xkb_types { include "complete" };
> xkb_compat { include "complete" };
> xkb_symbols { include
> "pc+gb+inet(microsoftprousb)+pl:2+level3(ralt_swit ch_for_alts_toggle):1+level3(ralt_switch_for_alts_ toggle):2+group(alts_toggle)+eurosign(4)+keypad(os s)"
> };
> xkb_geometry { include "microsoft(natural)" };
> };

Wow, that is quite a mouthful...

>> xmodmap
> $ xmodmap

[ snip: all normal here ]

>> xmodmap -pk | grep XF86_Switch_VT
>
> $ xmodmap -pk | grep XF86_Switch_VT
> 67 0xffbe (F1) 0x1008fe01 (XF86_Switch_VT_1)

[ snip: the others seem to be OK as well ]

I agree with you that it should work like that. Maybe you have to try a
simpler configuration now, and then you can gradually add all the above
options to find out which one breaks the VT switching. As far as I can
tell, they should all be defined, but maybe they are not all compatible
(which could be a bug).

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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-01-2008, 09:04 PM
"Michal R. Hoffmann"
 
Default Cannot switch to VT (console)

On 30/07/08 22:15, Florian Kulzer wrote:

On Tue, Jul 29, 2008 at 00:17:35 +0100, Michal R. Hoffmann wrote:

On 27/07/08 20:40, Florian Kulzer wrote:

On Wed, Jul 23, 2008 at 23:41:37 +0100, Michal R. Hoffmann wrote:

On 23/07/08 14:38, Raj Kiran Grandhi wrote:

Michal R. Hoffmann wrote:

Hi,

Recently I tried to switch to VT (console) and I couldn't -
Ctrl+Alt+F1 didn't work (and they used to couple of weeks ago). I
don't even know where to look for the problem; xev detects
KeyRelease XF86_Switch_VT_1 event, /etc/inittab contain getty
respawns.

Does is also report the KeyPress event for XF86_Switch_VT_1?

No, only KeyRelease.

Interesting, the KeyPress event seems to be intercepted, but X does not
act on it. You could try to run
tail -fn0 /var/log/Xorg.0.log

in an X terminal and check if anything is appended to the Xorg log when
you press CTRL+ALT+F1.


Nothing. It returns nothing.

[cut]


I agree with you that it should work like that. Maybe you have to try a
simpler configuration now, and then you can gradually add all the above
options to find out which one breaks the VT switching. As far as I can
tell, they should all be defined, but maybe they are not all compatible
(which could be a bug).


I have to do some tests tomorrow (too tired now). I found that it
doesn't matter if I'm logged in or not (I use GDM / Gnome) - it's all
the same. So probably it's something about Xorg. Maybe my keyboard
settings (it's Microsoft Natural Ergonomic Keyboard 4000, UK version):


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

Or maybe it is a bug.

--
Kind regards,
Michal R. Hoffmann


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

Thread Tools




All times are GMT. The time now is 06:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org