Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is alt-f2 switching to console without pressing ctrl?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
uncleringo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 146

PostPosted: Mon Mar 24, 2008 3:20 pm    Post subject: Why is alt-f2 switching to console without pressing ctrl? Reply with quote

A couple of weeks ago my usual shortcut (alt-f2) to bring up the program/url launcher started also switching me to the 2nd console screen as if I had pressed ctrl-alt-f2. Any idea why this started happening? It doesn't depend on which window manager I'm using. It happens both on kde and xfce4. And it doesn't happen every time either, which makes me think it's more likely to be a bug rather than a config setting.

I'm using ~amd64 xorg-7.3, which I guess could be the reason, but I'm curious as to whether anyone else has experienced this and if they have a cure for it if so.

It's quite annoying since there's a delay of at least a second or so between switching both to the console screen and back to X again.

Any ideas?
Back to top
View user's profile Send private message
uncleringo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 146

PostPosted: Wed Mar 26, 2008 4:33 pm    Post subject: Reply with quote

I guess I'm the only one then! I've since taken out a couple of dri related lines from my xorg.conf, I have not had the problem since, although it's too early to tell if it's fixed it for good.
Back to top
View user's profile Send private message
EvaSDK
Developer
Developer


Joined: 12 Jul 2003
Posts: 162
Location: France, Paris

PostPosted: Wed Mar 26, 2008 5:11 pm    Post subject: Reply with quote

if you have xorg server compiled with hal support or are using evdev driver, this might be the cause of your problem.
Back to top
View user's profile Send private message
uncleringo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 146

PostPosted: Wed Mar 26, 2008 6:24 pm    Post subject: Reply with quote

I do have the hal use flag enabled in xorg-server. I'll see if I get any further occurrences and try without if I do.

Thanks for the advice
Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 447

PostPosted: Wed Mar 26, 2008 7:36 pm    Post subject: Reply with quote

uncleringo wrote:
I do have the hal use flag enabled in xorg-server. I'll see if I get any further occurrences and try without if I do.

Thanks for the advice


Actually i experienced the same problem.

i tried to figure out what was wrong and in my case the problem was that the xdm-init script was started too early during the boot-process and because of the that some init-scripts (i can remember local was one of them) didn't finish. To solve this problem i forced the xdm-init-script to start as the absolutely last init-script and with this workaround the problem disappeard.
Back to top
View user's profile Send private message
uncleringo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 146

PostPosted: Wed Apr 23, 2008 11:56 am    Post subject: Reply with quote

I think that might be the cause of my problem too. If I /etc/init.d/xdm restart then the problem disappears. Also I get a message at bootup which says failed to start local. Will investigate further!

Thanks
Back to top
View user's profile Send private message
SimonKellett
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2003
Posts: 88
Location: Darmstadt, Germany

PostPosted: Thu Apr 24, 2008 1:46 pm    Post subject: Reply with quote

Just a suggestion: as the consoles use alt-fX to switch, but X uses ctl-alt-fX perhaps the problem is a slow startup of whatever maps the console keys . ie X starts, maps it's keys and then the console maps it's keys.

Restarting xdm would remap the X keys (as observed above).

Perhaps there is a problem with parallel startup ?

I have no idea how the keys are mapped !!
Back to top
View user's profile Send private message
uncleringo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 146

PostPosted: Thu Apr 24, 2008 1:51 pm    Post subject: Reply with quote

That also sounds pretty likely.

I'll be sure to post an update once I've had time to investigate properly
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1312

PostPosted: Fri Apr 25, 2008 2:59 pm    Post subject: Reply with quote

SimonKellett wrote:
Just a suggestion: as the consoles use alt-fX to switch, but X uses ctl-alt-fX perhaps the problem is a slow startup of whatever maps the console keys . ie X starts, maps it's keys and then the console maps it's keys.

Restarting xdm would remap the X keys (as observed above).

Perhaps there is a problem with parallel startup ?

I have no idea how the keys are mapped !!

X uses a different system for dealing with keyboard input than the kernel. It must simulate ctrl-alt-Fx to switch consoles.
Back to top
View user's profile Send private message
jongkook90
n00b
n00b


Joined: 28 Jan 2012
Posts: 1

PostPosted: Sat Jan 28, 2012 2:02 am    Post subject: Reply with quote

Adding 'kbd_mode -s' in /etc/X11/gdm/Init/Default solved the problem in my case.
Back to top
View user's profile Send private message
trock89
n00b
n00b


Joined: 08 Feb 2012
Posts: 1

PostPosted: Wed Feb 08, 2012 5:55 am    Post subject: Solution?? Reply with quote

Based on the hints on xdm above, I edited /etc/init.d/xdm:

depend() {
need localmount xdm-setup

# this should start as early as possible
# we can't do 'before *' as that breaks it
# (#139824) Start after ypbind and autofs for network authentication
# (#145219 #180163) Could use lirc mouse as input device
# (#70689 comment #92) Start after consolefont to avoid display corruption
# (#291269) Start after quota, since some dm need readable home
after bootmisc consolefont modules netmount
after readahead-list ypbind autofs openvpn gpm lircmd
after quota
#ADDING THIS to solve problem #
after keymaps
########################
before alsasound

# Start before X
use consolekit xfs
}

adding
Code:
 after keymaps

I think keymaps grabs the keyboard after xdm has already started.
This solved the problem for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum