View previous topic :: View next topic |
Author |
Message |
Brolin Empey n00b
Joined: 20 Oct 2005 Posts: 20 Location: /home/brolin/
|
Posted: Sun Oct 07, 2007 4:55 am Post subject: cannot switch VTs after switching to vt7 |
|
|
I am using KDE and KDM with x11-base/xorg-x11 v7.1. Sometimes, when I use /etc/init.d/xdm to restart KDM, I have to restart the xdm service at least twice before X will start. The first time I try restarting xdm, I get a message saying "Error: Could not start the Display Manager" on vt7, which is the VT usually used by X. When I successfully restart xdm, X uses vt8. This is not a problem. The problem is that after I switch back to vt7, I cannot use my keyboard to switch to another VT! My PC is unusable until I use another PC on the LAN to run chvt on my PC via SSH. I even tried using loadkeys to make Ctrl+F1 switch to vt1. This binding works on all the text-mode console VTs except for vt7.
Any ideas? Is there a way to return vt7 to a normal state after this happens, so that I can switch VTs after switching to vt7? I try to avoid switching to vt7 when this happens, but I inevitably forget and have to run chvt over SSH.
Thanks,
Brolin |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sun Oct 07, 2007 6:02 am Post subject: |
|
|
Have you determined what program is using /dev/tty7? That can be done using lsof /dev/tty7, lsof is provided by sys-process/lsof. |
|
Back to top |
|
|
Brolin Empey n00b
Joined: 20 Oct 2005 Posts: 20 Location: /home/brolin/
|
Posted: Sun Oct 07, 2007 7:05 am Post subject: lsof |
|
|
There is no process using /dev/tty7. However, the interactive Bash on tty1 is shown as using /dev/vc/1 in the lsof listing. If I grep the lsof output, there are no other processes using any file under /dev/vc/ nor any file whose name contains /dev/tty. |
|
Back to top |
|
|
|
|
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
|
|