Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]couldn't switch to X/xfce4 sometimes
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
littlebar
n00b
n00b


Joined: 27 Aug 2013
Posts: 26

PostPosted: Fri Sep 20, 2013 4:13 am    Post subject: [SOLVED]couldn't switch to X/xfce4 sometimes Reply with quote

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.) 8O
I loss the xfce4 session starting with "startx"

yes, my English is poor. anybody understand? :D

many thx!


Last edited by littlebar on Fri Sep 20, 2013 10:41 am; edited 2 times in total
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Sep 20, 2013 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message
littlebar
n00b
n00b


Joined: 27 Aug 2013
Posts: 26

PostPosted: Fri Sep 20, 2013 10:40 am    Post subject: Reply with quote

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  |



:D 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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