LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-10-2010, 11:18 AM   #1
spikeygg
Member
 
Registered: Dec 2004
Location: America
Distribution: Ubuntu
Posts: 32

Rep: Reputation: 0
Unhappy kdm works but startx doesn't (black screen stop)


I'm running debian (AMD64 dist), and I recently upgraded via aptitude to KDE 4.3.4. After the upgrade I found that I could no longer start X (using startx from my user account). I am, however, able to launch kdm from a root command line and log in as a user to X this way (graphically).

I want to run startx as a user and I cannot figure out where the hangup is. I've looked in my Xorg.0.log files comparing .old to current and nothing stands out. After I launch 'startx' the screen goes black and the computer waits. I can hit ctrl-alt-f2 and bring back the text-mode terminal screen; it's at a point where it looks like X is working. From there, I can control-c it and get back to the command prompt.

I'm thinking this is a software configuration thing but I don't know enough about how all the systems tie together to figure out where the problem is. If you know, please help.

Thanks,
-Greg
 
Old 01-10-2010, 01:53 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
What is in your xinitrc?

Regards,

Alunduil
 
Old 01-10-2010, 03:36 PM   #3
spikeygg
Member
 
Registered: Dec 2004
Location: America
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alunduil View Post
What is in your xinitrc?

Regards,

Alunduil
Code:
$ cat /etc/X11/xinit/xinitrc
#!/bin/bash

# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

# invoke global X session script
. /etc/X11/Xsession
$
$
$ cat /etc/X11/xinit/xserverrc
#!/bin/sh

exec /usr/bin/X -nolisten tcp "$@"
$
Also xserverrc, just in case. Is it bad?
 
Old 01-10-2010, 03:39 PM   #4
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Looks fine, but you should perhaps check out this Guide on Startx.

Regards,

Alunduil

P.S. If that doesn't solve the problem post back and we'll continue the search.
 
Old 01-10-2010, 04:33 PM   #5
spikeygg
Member
 
Registered: Dec 2004
Location: America
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alunduil View Post
Looks fine, but you should perhaps check out this Guide on Startx.

Regards,

Alunduil

P.S. If that doesn't solve the problem post back and we'll continue the search.
Thanks Alunduil, you nailed it!

I did a "echo startkde > ~/.xinitrc" and then startx worked, I got into KDE. When I remove the file it breaks again. Do you know where the default window manager information is stored? That's, apparently, what is messed up.
 
Old 01-10-2010, 04:38 PM   #6
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Glad that resolved it. Have fun with your Linux install.

Regards,

Alunduil
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Black screen on startx kremers78 Slackware 5 01-06-2007 07:06 PM
(nvidia) First startx = blank screen, second startx = works ?!? BuckRogers01 Linux - Hardware 2 04-07-2006 05:26 PM
Startx results in a black screen with VGA and screen errors kwosource Linux - Newbie 4 03-11-2005 02:58 PM
startx works but kdm won't (videoram issue) BuddyLove *BSD 0 05-09-2004 04:04 AM
black screen when try startx Brian_CC Slackware 8 10-15-2003 06:06 PM


All times are GMT -5. The time now is 01:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration