View previous topic :: View next topic |
Author |
Message |
littlebar n00b
Joined: 27 Aug 2013 Posts: 26
|
Posted: Fri Sep 20, 2013 4:13 am Post subject: [SOLVED]couldn't switch to X/xfce4 sometimes |
|
|
slim + xfce4
>>log in xfce4 with slim instead of "startx"
1.boot computer
2.log in xfce4 with slim
3.swtich to tty1..6
4.swtich to tty7
all is OK
BUT
>>log in xfce4 with command "startx"
1.boot computer
2.log in tty1..6 && "startx" ( cat ~/.xinitrc , get "exec startxfce4" )
3.switch to tty1..6
4.switch to tty7
ERROR! now need relog in with slim. ( need enter my username & passwd to relog in.)
I loss the xfce4 session starting with "startx"
yes, my English is poor. anybody understand?
many thx!
Last edited by littlebar on Fri Sep 20, 2013 10:41 am; edited 2 times in total |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Fri Sep 20, 2013 8:47 am Post subject: |
|
|
First, your life will be much easier if you log the output of startx: Code: | startx &> ~/startx-errors | then look in that file to see what is going in.
It sounds like SLiM had already started on vt7 before you ran startx. If that is the case then the session started by startx will be in vt8. Use <Ctrl><Alt><F8> to get to it, or from the command line "sudo chvt 8".
If you had not start SLiM, or if SLiM were stopped then startx would launch in vt7 as you expected.
If you run startx yet again without killing SLiM and without killing the first session started with startx then the third session will end up in vt9.
The startx script automatically selects the first unused display. Code: | | vt1 -- vt6 | vt7 | vt8 | vt9 |
| ttys | SLiM | 1st startx | 2nd startx | |
|
|
Back to top |
|
|
littlebar n00b
Joined: 27 Aug 2013 Posts: 26
|
Posted: Fri Sep 20, 2013 10:40 am Post subject: |
|
|
BitJam wrote: | First, your life will be much easier if you log the output of startx: Code: | startx &> ~/startx-errors | then look in that file to see what is going in.
It sounds like SLiM had already started on vt7 before you ran startx. If that is the case then the session started by startx will be in vt8. Use <Ctrl><Alt><F8> to get to it, or from the command line "sudo chvt 8".
If you had not start SLiM, or if SLiM were stopped then startx would launch in vt7 as you expected.
If you run startx yet again without killing SLiM and without killing the first session started with startx then the third session will end up in vt9.
The startx script automatically selects the first unused display. Code: | | vt1 -- vt6 | vt7 | vt8 | vt9 |
| ttys | SLiM | 1st startx | 2nd startx | |
|
You are right!
thank you!
the reason I didn't post the error log is there are other problems with Xorg and these problems seems have small hurt. So I don't care about these small error now.
But I will note your great suggestions.
Good luck! |
|
Back to top |
|
|
|