LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-19-2010, 01:19 PM   #1
Manish87
Member
 
Registered: May 2010
Posts: 116

Rep: Reputation: 18
black screen after startx?


Hi,

Without wasting much time will Come straight to the point,i installed backtrack4(ubuntu based) few hours ago and i am facing a problem in getting into the graphical mode(live cd)!,hence i tryed to check and run it in a "safe graphical mode" and unexpectedly it works fine! but when i switch to 1024x768 resoultion in the same live cd ,and then when i type startx it just produces a black screen!

after doing some research on finding a soultion to this problem i found out that this goto do some thing with editing the xorg.conf file! but when i type xorgconfig,it shows an error saying command not found!

sudo dpkg-reconfigure xserver-xorg command just talks about the keyboard bla bla bla! nuthin intresting on graphics or screen section!

resource:

intel corporation 828456/gl 128 mb


a kind request towards you,if u have "any" info on this prob or how to modify the xorgconfig file,kindly please reply



Regards,
Manish87

Last edited by Manish87; 10-19-2010 at 01:22 PM.
 
Old 10-19-2010, 01:59 PM   #2
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Quote:
Originally Posted by Manish87 View Post
a kind request towards you,if u have "any" info on this prob or how to modify the xorgconfig file,kindly please reply
On Fedora its located right here.. thats the direct file for X11 video, and input devices


vi /etc/X11/xorg.conf


its prolly in the same spot
 
Old 10-19-2010, 02:47 PM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,221

Rep: Reputation: 251Reputation: 251Reputation: 251
Safe graphical mode uses the vesa driver. There is no xorgconfig command. /etc/X11/xorg.conf may not be present by default. - You can create an X configuration file with the following command (as root, from a terminal window):
Code:
Xorg -configure :1
. This will create the file xorg.conf.new. Edit as needed, test it
Code:
Xorg -config xorg.conf.new :1
, and when it's working, copy it to /etc/X11/xorg.conf. Restart your X server (if you don't know how to do that, just reboot).
 
Old 10-19-2010, 02:58 PM   #4
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 847

Rep: Reputation: Disabled
One of the best ways: boot the pc with the live cd - copy the xorg.conf from the live cd to the hdd and then reboot and move the saved file to /etc/xorg.config.
Hope this helps.
 
Old 10-20-2010, 01:07 AM   #5
Manish87
Member
 
Registered: May 2010
Posts: 116

Original Poster
Rep: Reputation: 18
Hi,

thanks for the reply zerosignal,rockdoctor and silver black,sry if the questions are lame,but i am still a new bie in linux world! neways

my graphics card model and size

VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE C hipset Integrated Graphics Device (rev 03) (128mb)

horizontal and vertical sync of monitor

30-55 khz
50-120hz


@zero signal: this is the ouput of your command,but i still can't figure it out on how we can edit this file xorg file ,

output:

If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Device"
Identifier "Configured Video Device"
Driver "vesa"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection




rock doctor:

i did try the command which u gave me on my terminal! both ended up giving me a "black screen" again! any other alternatives on how to edit xorg.conf?


silver black:


can you be more precise on how to "edit xorgconf" to my respc graphic card n monitor resolutn!



Kind regards,
Manish87
 
Old 10-20-2010, 12:52 PM   #6
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Quote:
One of the best ways: boot the pc with the live cd - copy the xorg.conf from the live cd to the hdd and then reboot and move the saved file to /etc/xorg.config.
my way just opens up the xorg.config file;

I think you should follow what rock is saying;

cp /dev/cdrom/etc/X11/xorg.conf /dev/sda1???/etc/X11/xorg.conf

SDA is what ever partition you installed Backtrack on. and /Dev/CDROM is the location of the Live CD

So copy the file from the LIVE CD ----> to your Hard Drive you installed Backtrack on "/dev/SDA1-15" 1-15 represents your partions

Last edited by zer0signal; 10-20-2010 at 01:29 PM.
 
Old 10-20-2010, 01:44 PM   #7
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,221

Rep: Reputation: 251Reputation: 251Reputation: 251
Another thought (for what it's worth - remember, this advice is free). Boot from the live cd and take a look at the configuration file (isolinux.cfg ?) on the live cd. Note the parameters on the kernel line that are used when booting into safe mode. Then just modify your /boot/grub/grub.cfg file appropriately, and boot from the hard drive. Once booted, do a proper modification (by modifying /etc/default/grub - I believe there's a tool for doing this).
 
Old 10-21-2010, 01:08 PM   #8
Manish87
Member
 
Registered: May 2010
Posts: 116

Original Poster
Rep: Reputation: 18
hi,

thankx for the reply rock,silver and zero.


fdisk -l

Disk /dev/hdc: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x129c129b

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 4665 37471581 83 Linux
/dev/hdc2 4666 4870 1646662+ 5 Extended
/dev/hdc5 4666 4870 1646631 82 Linux swap / Solaris

Disk /dev/hdd: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x00600060


root@bt:~# cp /dev/cdrom/etc/X11/xorg.conf /dev/hdc1/etc/X11/xorg.conf
cp: accessing `/dev/hdc1/etc/X11/xorg.conf': Not a directory




Kind Regards,
Manish87

Last edited by Manish87; 10-21-2010 at 01:21 PM.
 
Old 10-21-2010, 03:12 PM   #9
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
When you did that are you logged on as your fresh install? or are you logged on with the Live disc...?

I would boot up the live disc, and once you are in X on the live disc


I would

mkdir /mnt/whatever

mount /dev/hdc1 /mnt/whatever


then copy

cp /etc/X11/xorg.conf /mnt/whatever/etc/X11/xorg.conf.new


once the file is placed in your /dev/hdc1/etc/X11/ DIR

i would reboot your live disc X session, and then remove the disc, and boot up your local HD - then i would rename the original xorg

mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old


then i would rename the .new file we copied over, to the original file - xorg.conf

mv /etc/X11/xorg.conf.new /etc/X11/xorg.conf


then startx

and see if that works

Last edited by zer0signal; 10-21-2010 at 03:13 PM.
 
Old 10-22-2010, 02:21 AM   #10
Manish87
Member
 
Registered: May 2010
Posts: 116

Original Poster
Rep: Reputation: 18
Hi,

Followed all the above commands as zero instructed, and it works like a charm now! but there is problem with my screen,that is on my left,bottom and on my top side of the screen i can see about 3-5cms of black screen which is very disturbing, i tryed to change the resoultion to 800x..,but then like my desktop icons looks way too huge,i even try to play around with the monitor hieght n width size thing but even that doesnt prove any good ! any idea on setting CUSTOM RESOULTION?




Kind Regards,
Manish87
 
Old 10-22-2010, 02:21 AM   #11
Manish87
Member
 
Registered: May 2010
Posts: 116

Original Poster
Rep: Reputation: 18
Hi,

Followed all the above commands as zero instructed, and it works like a charm now! but there is problem with my screen,that is on my left,bottom and on my top side of the screen i can see about 3-5cms of black screen which is very disturbing, i tryed to change the resoultion to 800x..,but then like my desktop icons looks way too huge,i even try to play around with the monitor hieght n width size thing but even that doesnt prove any good ! any idea on setting CUSTOM RESOULTION?




Kind Regards,
Manish87
 
Old 10-22-2010, 07:00 AM   #12
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
What size monitor?
 
Old 10-22-2010, 11:32 AM   #13
Manish87
Member
 
Registered: May 2010
Posts: 116

Original Poster
Rep: Reputation: 18
hi,

1024 X 768






Kind Regards,
Manish87
 
Old 10-22-2010, 11:34 AM   #14
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Quote:
Originally Posted by Manish87 View Post
hi,

1024 X 768
I mean, 15in LCD? 19in LCD, 22in LCD Wide Screen?
 
Old 10-22-2010, 12:52 PM   #15
Manish87
Member
 
Registered: May 2010
Posts: 116

Original Poster
Rep: Reputation: 18
Oops! apologies for the wrong info!

its 15 inch crt monitor
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help. Startx gives black screen! sl4ckw4r3 Slackware 23 01-29-2010 05:08 PM
Black screen on startx kremers78 Slackware 5 01-06-2007 07:06 PM
Startx results in a black screen with VGA and screen errors kwosource Linux - Newbie 4 03-11-2005 02:58 PM
startx....black screen. bumjubeo Linux - Newbie 8 01-27-2005 10:13 PM
black screen when try startx Brian_CC Slackware 8 10-15-2003 06:06 PM


All times are GMT -5. The time now is 07:02 AM.

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