Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Black screen after installing X
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sat Aug 27, 2011 11:37 am    Post subject: Black screen after installing X Reply with quote

So I installed gentoo, it booted up nicely. Then I installed X and rebooted. After reboot I only get black screen. The screen is working as backlight is on and I can also ssh to gentoo.
I don't have much experience with gentoo or linux in general so I would aprreciate any help, just tell me which logs and conf files I need to post.

Here's my computer:
http://support.vaio.sony.eu/computing/vaio/specifications/index.aspx?old=n&l=en_GB&m=VPCY21S1E_SI
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7635
Location: Goose Creek SC

PostPosted: Sat Aug 27, 2011 3:04 pm    Post subject: Reply with quote

Have you emerged a display manager/window manager/desktop? if not, X has nothing to display.
If running
Code:
X -retro
produces a black/white stippled scree with a movable mouse cursor, X is working. Emerge your chosen GUI.

If X is not working:
Reference is: http://www.gentoo.org/doc/en/xorg-config.xml
menuconfig should be:
Code:
cd /usr/src/linux
make menuconfig
edit to:
Quote:
Device Drivers --->
Graphics support --->
<*> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
< > AMD Opteron/Athlon64 on-CPU GART support
<*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
< > 3dfx Banshee/Voodoo3+ (NEW)
< > ATI Rage 128 (NEW)
< > ATI Radeon (NEW)
<*> Intel 8xx/9xx/G3x/G4x/HD Graphics (NEW)
[*] Enable modesetting on intel by default ##### Depending on kernel version either green or blue is ok

<*> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) --->
i915 driver
[*] Enable modesetting on intel by default

< > Matrox g200/g400 (NEW)
< > SiS video cards (NEW)
< > Via unichrome video cards (NEW)
< > Savage video cards (NEW)
< > Intel GMA500 Stub Driver
<*> Lowlevel video output switch controls
<*> Support for frame buffer devices --->
--- Support for frame buffer devices
[*] Enable firmware EDID # needed so monitor parameters can be read
[ ] Framebuffer foreign endianness support --->
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support
[ ] IMS Twin Turbo display support
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[ ] VESA VGA graphics support #a no no with kms
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > VIA UniChrome (Pro) and Chrome9 display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support (EXPERIMENTAL)
< > Fujitsu carmine frame buffer support
[ ] AMD Geode family framebuffer support (EXPERIMENTAL)
< > Displaylink USB Framebuffer support
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
[*] Backlight & LCD device support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
-*- Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Frontpath ProGear Backlight Driver
< > Apple Backlight Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
Display device support --->
<*> Display panel/monitor support
*** Display hardware drivers ***
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(256) Scrollback Buffer Size (in KB)
-*- Framebuffer Console support
-*- Map the console to the primary display device
[ ] Framebuffer Console Rotation
[ ] Select compiled-in fonts
Console display driver support --->
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo

If any changes to menuconfig were made, ensure the /boot partition is mounted (if you made a separate boot partition), recompile and recopy the kernel.
Code:
nano /etc/make.conf
edit to add
Quote:
VIDEO_CARDS="intel"
INPUT_DEVICES="evdev synaptics"

Code:
emerge xorg-server xf86-video-intel xf86-input-evdev xf86-input-synaptics

Quote:
nano /etc/X11/xorg.conf.d/98-keyboard.conf
edit to add
Quote:

Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Code:
env-update
X-retro
a black and white stippled screen with a moveable mouse pointer means xorg-server is working. ctrl-alt-backspace to exit X
Code:
emerge <your gui>
ls /etc/X11/Sessions
Determine correct spelling for your GUI's session name
Code:
nano /etc/env.d/90xsession
edit to add
Quote:
XSESSION="correct spelling for your GUI's session name"

Code:
nano /etc/conf.d/xdm
check for
Quote:
DISPLAYMANAGER="xdm"
if missing, add it
Code:
reboot
when rebooted to the command line, login, run
Code:
startx

_________________
Defund the FCC.


Last edited by DONAHUE on Sun Aug 28, 2011 4:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sat Aug 27, 2011 9:29 pm    Post subject: Reply with quote

Firstly, thanks very much for reply, it helped a lot. I got my X working with 3 default windows and a clock. Now i am trying to install a GUI.
Also I ran into a problem. I am missing /etc/X11/xorg.conf.d/ dir? What can I do about it?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7635
Location: Goose Creek SC

PostPosted: Sat Aug 27, 2011 9:35 pm    Post subject: Reply with quote

Code:
mkdir /etc/X11/xorg.conf.d
Sort of thought that emerge xorg-server made it but I may have created it and forgotten ...
I gather you emerged xterm or twm?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sat Aug 27, 2011 10:21 pm    Post subject: Reply with quote

I did emerge them, yes. Now I am trying to emerge kde-meta.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sun Aug 28, 2011 11:21 am    Post subject: Reply with quote

I am having some trouble with kde. It's still giving me only black screen on startup. Is there any way i can remove X server from starting on boot? Or stopping it while sshd into my computer?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46322
Location: 56N 3W

PostPosted: Sun Aug 28, 2011 11:23 am    Post subject: Reply with quote

jaanuzka,

Take xdm out of the default runlevel to avoid bootup starting Xorg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7635
Location: Goose Creek SC

PostPosted: Sun Aug 28, 2011 12:58 pm    Post subject: Reply with quote

Did you:
Code:
ls /etc/X11/Sessions
Determine correct spelling for your GUI's session name, presumably KDE-4 .
Code:
nano /etc/env.d/90xsession
edit to add
Quote:
XSESSION="<correct spelling for your GUI's session name>"
Presumably XSESSION="KDE-4" .
Code:
nano /etc/conf.d/xdm
check for
Quote:
DISPLAYMANAGER="xdm"
if missing, add it
Code:
reboot
when rebooted to the command line, login, run
Code:
startx

_________________
Defund the FCC.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sun Aug 28, 2011 3:30 pm    Post subject: Reply with quote

rc-update show doesn't have xdm in list, but I am still getting black screen on boot after seeing some text...

EDIT: when i chroot to my gentoo installation i am getting KDE, but when booting it normally I am just getting a black screen..
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7635
Location: Goose Creek SC

PostPosted: Sun Aug 28, 2011 4:06 pm    Post subject: Reply with quote

It sounds as though you might have some choice under *** Frame buffer hardware drivers *** before [*] Backlight & LCD device support ---> enabled.
That is inconsistent with kms. If that is the case correct the kernel configuration.
Ensure all graphics support choices are builtin, not modules.
Ensure you have
Quote:
-*- Framebuffer Console support
-*- Map the console to the primary display device
See the graphics support kernel configuration posted above.
Mount the /boot partition, recompile and recopy the kernel.
If the kernel configuration is ok, KMS may be failing on its own. Append "nomodeset" to the Grub boot command and see if behavior changes. If this solves the immediate problem boot process will be visible all the way to the login prompt. This may prevent xorg working.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sun Aug 28, 2011 4:30 pm    Post subject: Reply with quote

I configured the kernel exactly as you said few posts ago, so it should be ok. I tried appending nomodeset, but result is the same. I am using LILO tho should that matter?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7635
Location: Goose Creek SC

PostPosted: Sun Aug 28, 2011 4:39 pm    Post subject: Reply with quote

I don't lilo so don't know how appending kernel parameters in lilo works. Have you rerun lilo after each kernel build or configuration change? That is about all I think I know.

try this:
reboot
after the screen turns black wait for disk activity to end plus a minute or so then blind login as root, wait 30 secs, enter root password, wait 30 secs enter startx.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46322
Location: 56N 3W

PostPosted: Sun Aug 28, 2011 4:51 pm    Post subject: Reply with quote

jaanuzka.

lilo will as long as you remembery to run /sbin/lilo every time your change your kernel - even if you overwite and older kernel with a newer one.
lilo does not use the the filesystem to find your kernel and initrd. It blindly loads a list of blocks into memory.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sun Aug 28, 2011 6:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
jaanuzka.

lilo will as long as you remembery to run /sbin/lilo every time your change your kernel - even if you overwite and older kernel with a newer one.
lilo does not use the the filesystem to find your kernel and initrd. It blindly loads a list of blocks into memory.


thanks, I forgot to run /sbin/lilo. Now nomodeset works and I am getting console instead of black screen.
But when running startx I am getting:

(EE) open /dev/fb0: No such file or directory
(EE) Screen(s) found, but none have a usable configuration

Fatal server error:
no screens found
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7635
Location: Goose Creek SC

PostPosted: Sun Aug 28, 2011 6:49 pm    Post subject: Reply with quote

xorg problem is likely to be because of nomodeset. If you tried the blind login without nomodeset and startx and it worked that would be confirmation.
Code:
emerge wgetpaste
wgetpaste /var/log/Xorg.0.log
wgetpaste /etc/X11/xorg.conf
zcat /proc/config.gz | wgetpaste
Post URL's returned. If /etc/X11/xorg.conf is found; delete it unless you are running multiple monitors or something else complicated. If /proc/config.gz is not found, edit menuconfig to include:
Quote:
General setup --->
Kernel compression mode (Gzip) --->
<*> Kernel .config support
[*] Enable access to .config through /proc/config.gz
ensure the /boot partition is mounted, recompile, recopy the kernel, run
Code:
/sbin/lilo
reboot
When backup:
Code:
zcat /proc/config.gz | wgetpaste
Post URL returned.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sun Aug 28, 2011 7:06 pm    Post subject: Reply with quote

Here are the logs:

http://paste.pocoo.org/show/465950/
http://paste.pocoo.org/show/465951/
http://paste.pocoo.org/show/465952/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46322
Location: 56N 3W

PostPosted: Sun Aug 28, 2011 7:18 pm    Post subject: Reply with quote

jaanuzka,

Code:
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"              # [<bool>]
        #Option     "Rotate"                # <str>
        #Option     "fbdev"                 # <str>
        #Option     "debug"                 # [<bool>]
   Identifier  "Card1"
   Driver      "fbdev"
   BusID       "PCI:0:2:0"
EndSection


You don't want to do
Code:
Driver      "fbdev"
in that section.
Code:
Driver      "intel"
would be correct.
If you rename your xorg.conf to xorg.conf_broken, it should all JustWork(tm) on one screen. That would be a useful test.
The Intel driver depends on KMS, so you must not use nomodeset.

Remember to run /sbin/lilo
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sun Aug 28, 2011 7:26 pm    Post subject: Reply with quote

Ok so i removed nomodeset and renamed xorg.conf and now i am getting same black screen with backlight as before.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46322
Location: 56N 3W

PostPosted: Sun Aug 28, 2011 8:02 pm    Post subject: Reply with quote

jaanuzka,

Post your /var/log/Xorg.0.log as it is after your changes
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Sun Aug 28, 2011 8:06 pm    Post subject: Reply with quote

Xorg.0.log:

http://paste.pocoo.org/show/465995/

EDIT: I managed get my computer to block at boot somehow so I chrooted into gentoo again and startx is launching KDE from there nicely. Touchpad is not working unfortunately.
Heres Xorg.0.log after KDE started:
http://paste.pocoo.org/show/466018/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46322
Location: 56N 3W

PostPosted: Sun Aug 28, 2011 9:03 pm    Post subject: Reply with quote

jaanuzka,

Code:
[    34.345] (EE) open /dev/fb0: No such file or directory
is the same error as last time.
Xorg is not using an xorg.conf, which is good.

The log says
Code:
Using config directory: "/etc/X11/xorg.conf.d"
have you changed anything in the files there ?

Your intel chipset was detected
Code:
[    33.999] (--) PCI:*(0:0:2:0) 8086:0046:104d:9076 rev 2, Mem @ 0xd0000000/4194304, 0xc0000000/268435456, I/O @ 0x00005050/8
so the error
Code:
[    34.290] (EE) Failed to load module "vesa" (module does not exist, 0)
can be ignored. Its just Xorg trying all the drivers that work with your chipset. vesa is a poor second choice.

Post your kernel config as it is now please.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7635
Location: Goose Creek SC

PostPosted: Mon Aug 29, 2011 12:41 am    Post subject: Reply with quote

I'm thinking there should be several occurences of the words intel, evdev, and synaptics in the Xorg.0.log; I see none.
Code:
qlist -IC x11-drivers | wgetpaste
emerge --info | wgetpaste
find /  -name xorg.conf | wgetpaste
emerge -pv xorg-server | wgetpaste
dmesg | wgetpaste
post url's
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Mon Aug 29, 2011 8:03 am    Post subject: Reply with quote

NeddySeagoon,

Code:
ls /etc/X11/xorg.conf.d

Code:
98-keyboard.conf


Code:
cat /etc/X11/xorg.conf.d/98-keyboard.conf


Code:
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection


All I have there.

Kernel conf:
http://paste.pocoo.org/show/466267/

DONAHUE,

Code:
qlist -IC x11-drivers | wgetpaste

http://paste.pocoo.org/show/466268/

Code:
emerge --info | wgetpaste

http://paste.pocoo.org/show/466269/

Code:
find /  -name xorg.conf | wgetpaste

http://paste.pocoo.org/show/466271/

Code:
emerge -pv xorg-server | wgetpaste

http://paste.pocoo.org/show/466272/

Code:
dmesg | wgetpaste

http://paste.pocoo.org/show/466273/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7635
Location: Goose Creek SC

PostPosted: Mon Aug 29, 2011 3:20 pm    Post subject: Reply with quote

boot cd
lspci -vvkn | wgetpaste
mount gentoo partitions, enter the chroot
Code:
update-pciids
wgetpaste /var/log/dmesg
emerge --unmerge xf86-video-fbdev
/sbin/lilo
reboot

xf86-video-fbdev is the only odd bit I see.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jaanuzka
n00b
n00b


Joined: 14 Mar 2011
Posts: 19

PostPosted: Mon Aug 29, 2011 5:33 pm    Post subject: Reply with quote

Code:
lspci -vvkn | wgetpaste


Code:
pcilib: sysfs_read_vpd: read failed: Connection timed out
http://paste.pocoo.org/show/466577/


Code:
wgetpaste /var/log/dmesg

http://paste.pocoo.org/show/466587/
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
Goto page 1, 2  Next
Page 1 of 2

 
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