You are not logged in.

#1 2012-06-23 22:29:55

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

[Solved] tty1 bugged after installing slim/openbox

The problem is hard to explain, but suffice to say that I'm unable to log in via tty1 after loggin in to openbox via slim, which is started via inittab (the default method, which I don't quite comprihend).

x5:respawn:/usr/bin/slim >/dev/null 2>&1

When trying to log in via tty1, I can write my username and presumably password without problems, but having to press enter multiple times. I'm sorry, but I don't know how to explain it better. Anyway, can't log in via tty1, althoug 2-6 works fine.

From the information I've gathered, and I have spend quite some time trying to solve the problem on my own, the problem seem to have something to do with Slim, but what exactly goes wrong, I cannot say.


Well, that's it really. It's not a huge issue as I have 5 other terminals to play with, but it annoys the hell out of me, so if you know of a solution, please let me know.


As a side note, if anyone know of a good openbox arch linux theme, I'd be interested in knowing about that to.


Best regards.


zacariaz wrote:
progandy wrote:

Try using the following in your inittab. Maybe slim grabs the inputstream of tty1 and that leads to this behaviour.

x5:respawn:/usr/bin/slim >/dev/null 2>&1 </dev/null

I haven't got a clue what it means, but it works never the less.

Thanks a bunch, now I can finaly get some sleep. big_smile

Last edited by zacariaz (2012-06-23 23:08:00)


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

#2 2012-06-23 22:34:54

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [Solved] tty1 bugged after installing slim/openbox

This also happens with lxdm. I didn't know tty 2-6 worked fine (but I just checked and they do) so thanks for the info smile.

Offline

#3 2012-06-23 22:35:42

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

Re: [Solved] tty1 bugged after installing slim/openbox

As often as slim is to blame, it shouldn't surprise me if it is the problem here to, though I fail to see how it could have the effect you describe.  Have you tried any other login managers, like xdm, to test whether slim really is the problem?

Also, is there anything different about how the 6 ttys are launched from your inittab?

Edit: cross posted with the above comment.  For once slim may be innocent.

Edit2: I wonder if redirecting stdin, say from an empty file, might help.  It may also cause all sorts of other problems, but it sounds like the login managers may be catching input from tty1 ... though that makes no sense to me.

Last edited by Trilby (2012-06-23 22:38:38)


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

Offline

#4 2012-06-23 22:40:42

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] tty1 bugged after installing slim/openbox

Try using the following in your inittab. Maybe slim grabs the inputstream of tty1 and that leads to this behaviour.

x5:respawn:/usr/bin/slim >/dev/null 2>&1 </dev/null

Last edited by progandy (2012-06-23 22:40:59)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2012-06-23 23:07:12

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: [Solved] tty1 bugged after installing slim/openbox

progandy wrote:

Try using the following in your inittab. Maybe slim grabs the inputstream of tty1 and that leads to this behaviour.

x5:respawn:/usr/bin/slim >/dev/null 2>&1 </dev/null

I haven't got a clue what it means, but it works never the less.

Thanks a bunch, now I can finaly get some sleep. big_smile


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

#6 2012-06-23 23:12:52

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [Solved] tty1 bugged after installing slim/openbox

progandy wrote:

Try using the following in your inittab. Maybe slim grabs the inputstream of tty1 and that leads to this behaviour.

x5:respawn:/usr/bin/slim >/dev/null 2>&1 </dev/null

That solves it, thank you. My line in inittab now says:

x:5:respawn:/usr/sbin/lxdm -nodaemon </dev/null

Some other things that I checked:
- The problem also occurs when starting lxdm from the deamons array in rc.conf instead of from inittab.
- The problem does not occur when booting to run level 5 but not starting a display manager.
- There are some related topics and bug-reports on google but nothing that seemed to solve it (untill now smile).

Offline

#7 2012-06-23 23:14:07

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] tty1 bugged after installing slim/openbox

zacariaz wrote:
progandy wrote:

Try using the following in your inittab. Maybe slim grabs the inputstream of tty1 and that leads to this behaviour.

x5:respawn:/usr/bin/slim >/dev/null 2>&1 </dev/null

I haven't got a clue what it means, but it works never the less.

Thanks a bunch, now I can finaly get some sleep. big_smile

>/dev/null : redirect stdout to oblivion
2>&1 : redirect stderr to stdout
</dev/null : set stdin to nothing


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#8 2012-06-23 23:14:49

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: [Solved] tty1 bugged after installing slim/openbox

progandy wrote:
zacariaz wrote:
progandy wrote:

Try using the following in your inittab. Maybe slim grabs the inputstream of tty1 and that leads to this behaviour.

x5:respawn:/usr/bin/slim >/dev/null 2>&1 </dev/null

I haven't got a clue what it means, but it works never the less.

Thanks a bunch, now I can finaly get some sleep. big_smile

>/dev/null : redirect stdout to oblivion
2>&1 : redirect stderr to stdout
</dev/null : set stdin to nothing

Cool, thanks.


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

Board footer

Powered by FluxBB