You are not logged in.

#1 2012-11-10 04:56:08

howardh
Member
Registered: 2012-02-11
Posts: 8

[SOLVED] Can't log into tty1

This started some time while I was setting up X: When I try to log into tty1 (tty2 to tty6 works), it gives some error message and logs out immediately. Since it clears the screen after logging out, I can't make out any more of the error message than "/etc/X11". How do I figure out what's happening, or if someone knows what's wrong, how do I fix it?

Last edited by howardh (2012-11-13 06:03:02)

Offline

#2 2012-11-10 05:10:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Can't log into tty1

Check your Xorg log...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-11-10 06:03:20

howardh
Member
Registered: 2012-02-11
Posts: 8

Re: [SOLVED] Can't log into tty1

There seems to be a seg fault in there, but I have no idea what it means.

[    41.304] (**) ThinkPad Extra Buttons: always reports core events
[    41.304] (**) evdev: ThinkPad Extra Buttons: Device: "/dev/input/event5"
[    41.304] (--) evdev: ThinkPad Extra Buttons: Vendor 0x17aa Product 0x5054
[    41.304] (--) evdev: ThinkPad Extra Buttons: Found keys
[    41.304] (II) evdev: ThinkPad Extra Buttons: Configuring as keyboard
[    41.304] (**) Option "config_info" "udev:/sys/devices/platform/thinkpad_acpi/input/input5/event5"
[    41.304] (II) XINPUT: Adding extended input device "ThinkPad Extra Buttons" (type: KEYBOARD, id 12)
[    41.304] (**) Option "xkb_rules" "evdev"
[    41.304] (**) Option "xkb_model" "evdev"
[    41.304] (**) Option "xkb_layout" "us"
[   520.244] (EE) 
[   520.244] (EE) Backtrace:
[   520.247] (EE) 0: /usr/bin/X (xorg_backtrace+0x36) [0x58a006]
[   520.247] (EE) 1: /usr/bin/X (0x400000+0x18de59) [0x58de59]
[   520.247] (EE) 2: /usr/lib/libpthread.so.0 (0x7fa9ea419000+0xf1a0) [0x7fa9ea4281a0]
[   520.248] (EE) 3: /usr/bin/X (0x400000+0x4d7d0) [0x44d7d0]
[   520.248] (EE) 4: /usr/bin/X (0x400000+0x142ef8) [0x542ef8]
[   520.248] (EE) 5: /usr/bin/X (0x400000+0x13d474) [0x53d474]
[   520.248] (EE) 6: /usr/bin/X (mieqProcessDeviceEvent+0x1b5) [0x56b795]
[   520.248] (EE) 7: /usr/bin/X (0x400000+0x2f4bc) [0x42f4bc]
[   520.248] (EE) 8: /usr/bin/X (DisableDevice+0xbc) [0x430c6c]
[   520.248] (EE) 9: /usr/bin/X (0x400000+0x31152) [0x431152]
[   520.248] (EE) 10: /usr/bin/X (0x400000+0x26935) [0x426935]
[   520.248] (EE) 11: /usr/lib/libc.so.6 (__libc_start_main+0xf5) [0x7fa9e90b8725]
[   520.248] (EE) 12: /usr/bin/X (0x400000+0x26c6d) [0x426c6d]
[   520.248] (EE) 
[   520.248] (EE) Segmentation fault at address 0xd0
[   520.248] 
Fatal server error:
[   520.248] Caught signal 11 (Segmentation fault). Server aborting
[   520.248] 
[   520.248] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[   520.248] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   520.249] (EE) 
[   520.266] (II) evdev: TPPS/2 IBM TrackPoint: Close
[   520.266] (II) UnloadModule: "evdev"
[   520.280] (II) evdev: ThinkPad Extra Buttons: Close
[   520.280] (II) UnloadModule: "evdev"
[   520.280] (II) UnloadModule: "synaptics"
[   520.280] (II) evdev: AT Translated Set 2 keyboard: Close
[   520.280] (II) UnloadModule: "evdev"
[   520.280] (II) evdev: Integrated Camera: Close
[   520.280] (II) UnloadModule: "evdev"
[   520.280] (II) evdev: Power Button: Close
[   520.280] (II) UnloadModule: "evdev"
[   520.280] (II) evdev: Power Button: Close
[   520.280] (II) UnloadModule: "evdev"
[   520.748] Server terminated with error (1). Closing log file.

Offline

#4 2012-11-10 11:42:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Can't log into tty1

My first thought was that there could be something problematic in your xinitrc - and that would still be good to check to be sure - but that error is very early in the starting of X, so I am less inclined to think xinitrc is relevant.  A video driver or other optional extension seems the more likely suspect.

What video driver do you use?  Do you add anything to xorg.conf?  Can you remove all 'extras' from xorg.conf (and things like the Thinkpad Buttons) to try a 'vanilla' x start.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-11-10 15:09:55

howardh
Member
Registered: 2012-02-11
Posts: 8

Re: [SOLVED] Can't log into tty1

I don't seem to have an xorg.conf file (Checked all the directories listed in the xorg.conf man page), but I do have an /etc/X11/xorg.conf.d folder, to which I added something so that I can use my middle button. I removed the file and rebooted, but it didn't change anything.
I think I caught a glimpse of "session" somewhere in that error message.
The problem isn't with starting X though. X runs fine, I just can't log into the first virtual terminal. The seg fault doesn't appear in the current log, so possibly irrelevant to the problem?

My .xinitrc file consists of one line: "exec awesome".

Video driver: xf86-video-intel (or vesa? I don't know how to determine which is used)
I followed the Wiki's Beginner's Guide and installed the following in this order:
xorg-server
xorg-xinit
xorg-server-utils
xf86-video-vesa
xf86-video-intel

Offline

#6 2012-11-10 20:06:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Can't log into tty1

How do you start X?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2012-11-11 15:20:57

howardh
Member
Registered: 2012-02-11
Posts: 8

Re: [SOLVED] Can't log into tty1

Using "startx", is that what you meant?

Offline

#8 2012-11-11 16:18:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Can't log into tty1

Wait, so X is running and you are switching to tty1 to log in there to the console?

Do you, by chance, have a conditional in your bashrc to start x when logging in to tty1?  This is a common way to start X at boot, if you then implemented a different way of starting X (and put it on tty7) but you didn't remove this from your bashrc, this could be a likely result.

Edit: now I'm more confused - you start x with `startx`?  Where do you run startx from?  TTY1 right?

Last edited by Trilby (2012-11-11 16:19:29)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2012-11-11 17:22:10

howardh
Member
Registered: 2012-02-11
Posts: 8

Re: [SOLVED] Can't log into tty1

I boot into tty1's login screen. Unless one of the packages I installed changed my bashrc file (I will verify later when I have access to my laptop), X should not start when I boot up as I never touched the file.
I run startx from any of the other virtual terminals (tty2 to tty6), since I can't log in on tty1.

Last edited by howardh (2012-11-11 17:22:53)

Offline

#10 2012-11-11 22:19:47

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] Can't log into tty1

Given you start X from tty1 you may force it to run in another VT using startx like this:

startx -- vt02

Then you'll be able to switch back to tty1 from within the running X.


To know or not to know ...
... the questions remain forever.

Offline

#11 2012-11-12 05:59:05

howardh
Member
Registered: 2012-02-11
Posts: 8

Re: [SOLVED] Can't log into tty1

My .bashrc file contains nothing for starting X.

bernarcher wrote:

Given you start X from tty1 you may force it to run in another VT using startx like this:

startx -- vt02

Then you'll be able to switch back to tty1 from within the running X.

I followed your instructions, and it seems the seg fault happens when I try to switch into a virtual terminal after I've started X. I don't know if it's related to the original issue, but it is something that needs to be fixed too.

What I did:
Boot up
switch to tty2 and log in
Run "startx -- vt2"
ctrl+alt+fn+f1 (because I need to press fn to get to f1 on this laptop)
seg fault (All I see is the background colour)
Rebooted with ctrl+alt+delete

I'm going to try uninstalling some of the packages to see if I can revert whatever caused the problem.

[edit]
And that does solve the problem (the original problem, at least)! cdm-git was the issue (forgot I had installed it), and after I removed the package, I can now log into tty1.
The problem of X seg faulting when I try switching to a vitual terminal remains.
Should I be keeping everything to this thread or start a new one for this problem?

Last edited by howardh (2012-11-12 06:24:46)

Offline

Board footer

Powered by FluxBB