[SOLVED] Slackware 14.1 64-bit Black Screen at startx
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Good evening. Sorry I'm late in responding. I did not get online last night.
O.k. So, I tried the suggestions you guys provided.
1. I started Slackware from the installation DVD using the following suggested by onebuck:
Code:
Boot: huge.s root=/dev/sda5 initrd=ro nomodeset
I then logged on to Darkstar as root. I entered startx at the prompt.
Quote:
You should get your Lilo boot screen for the Slackware install.
I did not get the LILO boot screen. I again received the same unresponsive black screen.
2. As requested by onebuck, here are the contents of the Slackware '/etc/lilo.conf' file:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda5
#compact # faster, but won't work on all systems.
# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
prompt
timeout = 300
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda5
label = Slackware
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
table = /dev/sda
# Windows bootable partition config ends
3. I restarted the computer. I again logged on to Darkstar as root. At the prompt I tried startxfce4 as suggested by Drakeo:
Quote:
Food for thought.
last but not least try startxfce4 and see what happens. because I do remember
a long time ago with kde there was a start up problem with the default 3d desktop.
I again received the same unresponsive black screen upon entering startxfce4 at the boot prompt.
4. I retried the code provided by Didier, and verified that I typed it just as directed (with upper case X in Xorg):
So just a thought: did you set up the BIOS of your machine to first try an USB boot (before any other media), else to boot off an USB stick once? If you forgot that it's normal that you couldn't boot off the USB stick. Also, some BIOS need a specific setting to allow booting off an USB device.
Yes, I have BIOS set to boot from both the DVD drive and USB prior to the hard drive. I have a boot USB thumb drive for Slax Linux that I can boot the computer into just fine (in fact, I used the Slax Linux booted from the USB thumb drive to run the cfdisk command to partition my hard drive).
6. To answer the other questions posed by Didier:
Quote:
Also, when you say that typing "startx" you receive a black screen, do you mean that the screen becomes fully black instantly, or do you first see some messages and then, which ones?
Other question, did you make a full Slackware installation (installed all packages), as recommended?
I allowed Slackware to perform a full installation with all packages (selected the "recommended" option during install).
Perhaps I need to be a little more specific when I say that I receive a "black screen". Yes, I do see a full screen of code flash by just prior to the "black" screen; however, it scrolls so quickly that I cannot read it. Also, the screen is not completely black, such as when the display is turned off, or when Windows is in Hibernation mode. The screen technically appears as a slightly back-lit grey/black color just as when the computer begins booting from BIOS when initially turned on.
7. Drakeo mentioned that the problem could possibly be loading 64-bit Slackware onto a 32-bit machine. I don't think this would be the problem, since I run Windows 7 64-bit on it.
I sincerely appreciate all of the energy you guys are expending in assisting me in getting Slackware running!
Thanks for your precise answers that really help investigate.
Maybe, the black screen is linked to the lack of a line beginning with "kernel driver in use" in the output of the lspci command. I have three more questions to investigate further.
1. What is the output of following commands (once logged in your system as root):
Code:
modprobe i915 #output should be empty
lsmod | grep i915
2. After the screen has become black (after "startx"), can you switch virtual terminals? In other words, if for instance you press together [Alt]+[F2], do you see the the prompt, or just a black screen as before?
3. Did you check the integrity of the Slackware ISO image before burning it to the USB stick? If not please do that. I remind you that the check-sum .md5 files for each Slackware DVD ISO image are available in the same directory as the ISO image itself, in a sub-directory of http://mirrors.slackware.com/slackware/slackware-iso/
Oh and a small remark: you could have used the Slackware installer itself to run cfdisk, it contains this utility among other ones.
After the screen has become black (after "startx"), can you switch virtual terminals? In other words, if for instance you press together [Alt]+[F2], do you see the the prompt, or just a black screen as before?
[Alt]+[F2] works prior to me entering "startx" (it opens tty2). However, after I enter "startx" and receive the "black" screen, and [Alt]+[F2], [Alt]+[F1], [Alt]+[F3], etc. have no affect - they do nothing.
3.
Quote:
Did you check the integrity of the Slackware ISO image before burning it to the USB stick? If not please do that. I remind you that the check-sum .md5 files for each Slackware DVD ISO image are available in the same directory as the ISO image itself, in a sub-directory of http://mirrors.slackware.com/slackware/slackware-iso/
I downloaded the Slackware DVD ISO file twice (from two different locations) and installed it twice with the same result when I enter "startx". However, I did not check the integrity of the ISO image. Honestly, I don't know how to use the check-sum .md5. Please forgive my ignorance. If you can give me some direction, I'll be glad to check it.
-------
Hi, allend.
I tried the code you provided:
The lack of output in /var/log/Xorg.0.log is strange. There should at least be information on the version of the X.Org X Server in use.
Is the D-bus message service available? i.e. is /etc/rc.d/rc.messagebus an executable file
If you have been able to configure networking, then you could use slackpkg to check your installation for missing packages. Type 'man slackpkg' for further information.
2.
[Alt]+[F2] works prior to me entering "startx" (it opens tty2). However, after I enter "startx" and receive the "black" screen, and [Alt]+[F2], [Alt]+[F1], [Alt]+[F3], etc. have no affect - they do nothing.
Try adding the CTRL key to the combination so it's a three-key combination [ctrl]+[alt]+[fx]. That's often what's required to return to a virtual terminal once X starts. (though that part is in question.)
I downloaded the Slackware DVD ISO file twice (from two different locations) and installed it twice with the same result when I enter "startx". However, I did not check the integrity of the ISO image. Honestly, I don't know how to use the check-sum .md5. Please forgive my ignorance. If you can give me some direction, I'll be glad to check it.
In Linux, use the command md5sum. For instance the command
Code:
md5sum <filename ending in .iso>
will output a long character string that should be exactly the same (else the ISO file is corrupt) as found in output of:
Code:
cat <same filename but ending in .md5>
"man md5sum" will tell you more.
In Windows, you can use in a terminal the command fciv, to get and use it see here (this utility is old but still works in Windows 7, I just checked). The command is similar:
Code:
fciv <filename ending in .iso>
Just typing fciv will output a help text. You can also have a look at the ReadMe file included in the package.
Last edited by Didier Spaier; 08-21-2014 at 04:50 PM.
NOTE: I wanted to ensure I could still boot into Windows in case I still had issues so I did not allow LILO to modify the Master Boot Record.
I think that as you have not installed LILO to the MBR, then when you have been booting from the install media, you have been in the Slackware installer environment. There is no X windows system available there.
I suggest installing LILO to the MBR so that you have a multiboot setup.
1. Boot from the install media and continue till you are logged in as root.
2. Mount your Slackware partition with 'mount /dev/sda5 /mnt'
3. Take a copy of the first track of your disk with 'dd if=/dev/sda of=/mnt/boot/track0.img bs=512 count=63'
3. Test installing LILO to the MBR with 'lilo -r /mnt -M /dev/sda -t'
4. If all looks OK, install LILO to the MBR with 'lilo -r /mnt -M /dev/sda'
I understand your concern about protecting your Windows setup, but installing LILO to the MBR is what I have always done and I have never experienced any problems. If a disaster occurs, then your options include:
a) use the Windows repair function to recover e.g. http://www.tomshardware.com/news/win...mbr,10036.html.
b) restore disk track 0 by following steps 1 and 2 above, then 'dd if=/mnt/boot/track0.img of=/dev/sda'.
c) restore the copy of the first sector of the disk (containing your disk partition table) that LILO placed in the /boot directory using dd.
Good evening. My apologies for taking so long in reposting. My graduate school semester began and I had to put getting Slackware running on the backburner - only so many hours in a day with little sleep. :-)
So, now that my semester is over and we're through the Christmas holidays, I'm back trying to get Slackware running on my laptop. I finally stopped being hard-headed and took the advice many of you gave - I loaded LILO to the Master Boot Record. To do so, I used the process provided by allend:
Quote:
I suggest installing LILO to the MBR so that you have a multiboot setup.
1. Boot from the install media and continue till you are logged in as root.
2. Mount your Slackware partition with 'mount /dev/sda5 /mnt'
3. Take a copy of the first track of your disk with 'dd if=/dev/sda of=/mnt/boot/track0.img bs=512 count=63'
3. Test installing LILO to the MBR with 'lilo -r /mnt -M /dev/sda -t'
4. If all looks OK, install LILO to the MBR with 'lilo -r /mnt -M /dev/sda'
When I ran the LILO test line I received the following message:
Quote:
Backup copy of /dev/sda in /boot/boot.0800 (test mode)
The Master Boot Record of /dev/sda has *NOT* been updated.
When I ran the step to install LILO to the Master Boot Record I received the following message:
Quote:
Backup copy of /dev/sda in /boot/boot.0800
The Master Boot Record of /dev/sda has been updated.
BUT... the problem is that when I reboot the computer it acts as if LILO were never installed. It boots straight into Windows 7!
I even tried re-running cfdisk and changing sda5 partition to bootable, instead of sda1. However, when I restarted the computer it were as if the BIOS couldn't find the bootable partition. I received a message stating that there was not a bootable partition. I re-ran cfdisk, changed sda1 partition back to be bootable, and restarted the computer. It boots straight into Windows 7 again.
As a recap, here's my lilo config file contents:
Quote:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda5
#compact # faster, but won't work on all systems.
# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
prompt
timeout = 300
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda5
label = Slackware
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
table = /dev/sda
# Windows bootable partition config ends
Any suggestions on why it appears the system is "skipping" LILO and going straight into Windows 7?
You will need to boot from the Slackware install media, and once you get to the root login prompt, mount the sda5 partition, chroot, edit /etc/lilo.conf and rerun lilo. This SlackDocs page has further details. http://docs.slackware.com/howtos:sla...oot_from_media
BTW - You may also want to add these lines to the global section of your /etc/lilo.conf.
Code:
lba32 # Allow booting past 1024th cylinder with a recent BIOS
large-memory
compact # faster, but won't work on all systems.
In the LILO global section I added the following two lines:
Code:
lba32
compact
I re-ran:
Code:
lilo -r /mnt -M /dev/sda
When I restart the laptop it boots straight into Windows 7 again.
Now... I did initially make a typing mistake. When I first typed the lilo command, I accidently hit the enter key before typing the rest of the command (immediately after the word lilo). So, I reentered the full line lilo -r /mnt -M /dev/sda again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.