LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-10-2014, 07:16 AM   #1
Th3_DarkSky
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
Unhappy startx command make my screen blank (VESA Driver)


Hello everyone, i have a problem when building (B)LFS 7.5 stable

My OS host is Ubuntu 12.04, my VGA driver in Ubuntu is : Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)

i issue all command in Chapter 24 and no error, just when i go to "startx", blank screen appear

the VGA have no issue in my host OS, but when i confiure the driver "sis" in xorg, an error come to the screen said my Screen not found, so i use VESA instead sis.

when use VESA, blank screen come to my build when i issue "startx", i just can use Ctrl+Alt+BckSpc to go back to my terminal

this is my xorg.log.0 : http://pastebin.com/13s5T8wv

anyone have any suggestion ?

if i must include more log, please tell me what log i must include

thanks before

P.S : sorry for my BAD english, i'm Indonesian anw

Last edited by Th3_DarkSky; 09-10-2014 at 07:18 AM.
 
Old 09-10-2014, 08:59 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,325

Rep: Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330
Quote:
[ 17.974] (EE) open /dev/dri/card0: No such file or directory
That's it, my friend. You have no working video driver - vesa won't go near it. There may be an "xf86-video-SiS" or something like it package for X. you need that one badly.
 
Old 09-10-2014, 01:13 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I used the 6.4.2 section from the FreeBSD handbook to setup my X.

http://www.freebsd.org/doc/en_US.ISO.../x-config.html
 
Old 09-10-2014, 11:13 PM   #4
Th3_DarkSky
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
That's it, my friend. You have no working video driver - vesa won't go near it. There may be an "xf86-video-SiS" or something like it package for X. you need that one badly.
thanks for your reply friend, i follow the tutorial in here, i downloaded all driver and compile it, from ATI to VMWare, so Sis is include too, IMHO maybe i must compile the driver in kernel ?

Quote:
Originally Posted by ReaperX7 View Post
I used the 6.4.2 section from the FreeBSD handbook to setup my X.

http://www.freebsd.org/doc/en_US.ISO.../x-config.html
Thanks for the tutorial friend, i will learn in there after i re-compile my kernel, but, you think i must re-compile my kernel ?

Last edited by Th3_DarkSky; 09-10-2014 at 11:18 PM.
 
Old 09-10-2014, 11:20 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Um... depends on your kernel. I use a slightly modified Slackware-Huge kernel for my own system. Works well enough for my needs. However, unless you have the correct framebuffers, drm modules, etc. built for the kernel correctly it might not work.
 
Old 09-10-2014, 11:44 PM   #6
Th3_DarkSky
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Um... depends on your kernel. I use a slightly modified Slackware-Huge kernel for my own system. Works well enough for my needs. However, unless you have the correct framebuffers, drm modules, etc. built for the kernel correctly it might not work.
thanks again for the reply friend, can i ask you a question ?

how to know i have a "correct" framebuffer, drm modules, etc ?

anw, i have read the FreeBSD tutorial, and i think i was issue sudo X -configure in my (B)LFS, i have the driver "VESA" and i copy the /root/xorg.conf.new to /etc/xorg.conf, when i issue "startx", guess what, blank screen appear again T.T

when blank screen appear again, i press Ctrl+Alt+F1, and i see "tmw:warning:font for xxxxx is lacking", after that i issue : ctrl+c, and i see "argv:1:bad display name in remove command" or something like that T.T

any suggestion friend ?

Last edited by Th3_DarkSky; 09-10-2014 at 11:45 PM.
 
Old 09-11-2014, 02:15 AM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Trial and error mostly.
 
Old 09-11-2014, 03:10 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,325

Rep: Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330
My last SiS card was the SiS 6326.

There were 16 video modes that are pretty universal and used for vga in Dos, for example, and starting X on fallback and so forth. The SiS 6326 didn't have them, and so nothing worked without the SiS driver.

You can install the SiS driver, or check that it is installed, and uninstall vesa and every other video driver if you want to get going. That will clear the landscape. The kernel offers the following config options
Code:
bash-4.2$ grep SIS /usr/src/linux-3.14.5/.config
# CONFIG_SATA_SIS is not set
# CONFIG_PATA_SIS is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_AGP_SIS is not set
# CONFIG_DRM_SIS is not set
# CONFIG_FB_SIS is not set
CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_PERSISTENT_KEYRINGS is not set
bash-4.2$
You only need sis_agp if you have an agp socket; you definitely need sis_drm; and may find a use for sis_fb; compile in your chipset also.

If you are running a distro kernel, the config is usually stored as /boot/config-version or suchlike.
 
Old 09-11-2014, 03:59 AM   #9
Th3_DarkSky
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
My last SiS card was the SiS 6326.

There were 16 video modes that are pretty universal and used for vga in Dos, for example, and starting X on fallback and so forth. The SiS 6326 didn't have them, and so nothing worked without the SiS driver.

You can install the SiS driver, or check that it is installed, and uninstall vesa and every other video driver if you want to get going. That will clear the landscape. The kernel offers the following config options
Code:
bash-4.2$ grep SIS /usr/src/linux-3.14.5/.config
# CONFIG_SATA_SIS is not set
# CONFIG_PATA_SIS is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_AGP_SIS is not set
# CONFIG_DRM_SIS is not set
# CONFIG_FB_SIS is not set
CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_PERSISTENT_KEYRINGS is not set
bash-4.2$
You only need sis_agp if you have an agp socket; you definitely need sis_drm; and may find a use for sis_fb; compile in your chipset also.

If you are running a distro kernel, the config is usually stored as /boot/config-version or suchlike.
thanks for your comment friend, FYI, my machine is a local brand laptop (axioo), in kernel detected as CLEVO, i'm using vanilla kernel ( 3.13.3 ) like the LFS book said, for the sis driver, i must compile them (sis_agp, sis_drm, sis_fb and my chipset too) in kernel (in another word re-cmpiling the kernel) or when in BLFS ?
sorry for my stupid question about compiling driver, i'm new in kernel world T.T
 
Old 09-11-2014, 08:38 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,325

Rep: Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330
The subject of this thread is :Black screen on X. X in LFS or X in your base system (whatever that is)?
If you are in a chroot, I wish you luck starting X because you will need it. That makes it difficult.

If you are not booting LFS, and complaining about LFS explain please where X does not start. Otherwise check your kernel options in LFS. Try the check I did.
 
Old 09-11-2014, 08:31 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
One of the reasons I use a Slackware-Huge kernel config is because it covers everything I need, and think I'll need.

I do run make oldconfig against it enabling, disabling, and modularizing as given, and then recheck it with make menuconfig to double check what is and isn't enabled.

The only problem you may run across afterwards is OpenGL support. Mesa removed a lot of older hardware DRI1 support features back in the 7.x series including various SiS chipsets.
 
Old 09-14-2014, 04:00 AM   #12
Th3_DarkSky
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
The subject of this thread is :Black screen on X. X in LFS or X in your base system (whatever that is)?
If you are in a chroot, I wish you luck starting X because you will need it. That makes it difficult.

If you are not booting LFS, and complaining about LFS explain please where X does not start. Otherwise check your kernel options in LFS. Try the check I did.
Black screen on X in my (B)LFS, in Ubuntu everything was fine

Quote:
Originally Posted by ReaperX7 View Post
One of the reasons I use a Slackware-Huge kernel config is because it covers everything I need, and think I'll need.

I do run make oldconfig against it enabling, disabling, and modularizing as given, and then recheck it with make menuconfig to double check what is and isn't enabled.

The only problem you may run across afterwards is OpenGL support. Mesa removed a lot of older hardware DRI1 support features back in the 7.x series including various SiS chipsets.
But sir, in Ubuntu everything was fine

Last edited by Th3_DarkSky; 09-14-2014 at 04:01 AM.
 
Old 09-14-2014, 08:42 AM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
LFS is not Ubuntu though.
 
Old 09-14-2014, 05:32 PM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,325

Rep: Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330
Try this

In lfs:
lsmod > file_lfs

In Ubuntu:
lsmod > file_ubuntu

Then you can
diff -u file_lfs file_ubuntu
 
Old 09-14-2014, 09:45 PM   #15
Th3_DarkSky
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
LFS is not Ubuntu though.
Quote:
Originally Posted by business_kid View Post
Try this

In lfs:
lsmod > file_lfs

In Ubuntu:
lsmod > file_ubuntu

Then you can
diff -u file_lfs file_ubuntu
Thanks for all your attention everyone, the problem was FOUND and FIXED

the problem is not in my driver nor in my Xorg setting, the problem is in the Xorg font

when installing the Xorg font, i'm using BLFS 7.5 stable tutorial, in the tutoial for installing font, the book said like this :

Code:
for package in $(grep -v '^#' ../font-7.7.md5 | awk '{print $2}')
do
  packagedir=${package%.tar.bz2}
  tar -xf $package
  pushd $packagedir
  ./configure $XORG_CONFIG
  make
  as_root make install
  popd
  rm -rf $packagedir
done
when i issue the command, the subshell is exit, the problem is in the 10th line "rm -rf $packagedir", if we use the command as non-root user, it may exit with error, so we must add "as_root" in the 10th line, so the code must be like this :

Code:
for package in $(grep -v '^#' ../font-7.7.md5 | awk '{print $2}')
do
  packagedir=${package%.tar.bz2}
  tar -xf $package
  pushd $packagedir
  ./configure $XORG_CONFIG
  make
  as_root make install
  popd
  as_root rm -rf $packagedir
done
when i do that and rebuild the font + issue : "startx", everything is FINE, LIKE A CHARM ( twm, xterm and xclock are appear in my screen ) Thanks GOD

once again, thanks for all your attention FRIENDS, my problem was SOLVED, may the odds be ever in your favor

source : (B)LFS 7.5 errata

*P.S : for Moderator, please delete this thread, i make mistake so i make double-thread
 
  


Reply



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
[SOLVED] A command to make the screen go blank. stf92 Linux - Software 4 01-19-2023 02:21 AM
[SOLVED] startx command make my screen blank :( Th3_DarkSky Linux From Scratch 0 09-11-2014 03:44 PM
Startx command leads to a blank and hanged screen Hassan989 Linux - Hardware 1 03-29-2011 02:14 PM
"Nvidia" driver Blank screen on startx violettheconqueror Linux - Desktop 61 08-01-2007 05:26 AM
(nvidia) First startx = blank screen, second startx = works ?!? BuckRogers01 Linux - Hardware 2 04-07-2006 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration