| View previous topic :: View next topic |
| Author |
Message |
uncleringo Tux's lil' helper


Joined: 21 Jul 2004 Posts: 146
|
Posted: Mon Mar 24, 2008 3:20 pm Post subject: Why is alt-f2 switching to console without pressing ctrl? |
|
|
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 |
|
 |
uncleringo Tux's lil' helper


Joined: 21 Jul 2004 Posts: 146
|
Posted: Wed Mar 26, 2008 4:33 pm Post subject: |
|
|
| 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 |
|
 |
EvaSDK Developer

Joined: 12 Jul 2003 Posts: 162 Location: France, Paris
|
Posted: Wed Mar 26, 2008 5:11 pm Post subject: |
|
|
| 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 |
|
 |
uncleringo Tux's lil' helper


Joined: 21 Jul 2004 Posts: 146
|
Posted: Wed Mar 26, 2008 6:24 pm Post subject: |
|
|
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 |
|
 |
spielc Guru

Joined: 20 Apr 2004 Posts: 447
|
Posted: Wed Mar 26, 2008 7:36 pm Post subject: |
|
|
| 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 |
|
 |
uncleringo Tux's lil' helper


Joined: 21 Jul 2004 Posts: 146
|
Posted: Wed Apr 23, 2008 11:56 am Post subject: |
|
|
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 |
|
 |
SimonKellett Tux's lil' helper

Joined: 17 Dec 2003 Posts: 88 Location: Darmstadt, Germany
|
Posted: Thu Apr 24, 2008 1:46 pm Post subject: |
|
|
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 |
|
 |
uncleringo Tux's lil' helper


Joined: 21 Jul 2004 Posts: 146
|
Posted: Thu Apr 24, 2008 1:51 pm Post subject: |
|
|
That also sounds pretty likely.
I'll be sure to post an update once I've had time to investigate properly |
|
| Back to top |
|
 |
widremann Veteran

Joined: 14 Mar 2005 Posts: 1312
|
Posted: Fri Apr 25, 2008 2:59 pm Post subject: |
|
|
| 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 |
|
 |
jongkook90 n00b

Joined: 28 Jan 2012 Posts: 1
|
Posted: Sat Jan 28, 2012 2:02 am Post subject: |
|
|
| Adding 'kbd_mode -s' in /etc/X11/gdm/Init/Default solved the problem in my case. |
|
| Back to top |
|
 |
trock89 n00b

Joined: 08 Feb 2012 Posts: 1
|
Posted: Wed Feb 08, 2012 5:55 am Post subject: Solution?? |
|
|
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
I think keymaps grabs the keyboard after xdm has already started.
This solved the problem for me. |
|
| Back to top |
|
 |
|