LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   black screen after startx? (https://www.linuxquestions.org/questions/linux-hardware-18/black-screen-after-startx-839101/)

Manish87 10-19-2010 01:19 PM

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

zer0signal 10-19-2010 01:59 PM

Quote:

Originally Posted by Manish87 (Post 4132738)
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

RockDoctor 10-19-2010 02:47 PM

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).

honeybadger 10-19-2010 02:58 PM

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.

Manish87 10-20-2010 01:07 AM

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

zer0signal 10-20-2010 12:52 PM

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

RockDoctor 10-20-2010 01:44 PM

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).

Manish87 10-21-2010 01:08 PM

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

zer0signal 10-21-2010 03:12 PM

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

Manish87 10-22-2010 02:21 AM

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

Manish87 10-22-2010 02:21 AM

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

zer0signal 10-22-2010 07:00 AM

What size monitor?

Manish87 10-22-2010 11:32 AM

hi,

1024 X 768






Kind Regards,
Manish87

zer0signal 10-22-2010 11:34 AM

Quote:

Originally Posted by Manish87 (Post 4136032)
hi,

1024 X 768

I mean, 15in LCD? 19in LCD, 22in LCD Wide Screen?

Manish87 10-22-2010 12:52 PM

Oops! apologies for the wrong info!

its 15 inch crt monitor


All times are GMT -5. The time now is 03:49 AM.