LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 12-07-2014, 12:37 PM   #1
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Rep: Reputation: 0
xorg-server installation


Hi everyone,

I have completely exhausted all ways trying to fix my problem. I have recently installed Gentoo base system and trying to install xorg server but encountering problems when executing 'startx':

startx error:
http://pastebin.calculate-linux.org/en/show/10340

I followed Xorg-server installation by-the-book and installed xf86-video-intel driver also. I then created /etc/X11/xorg.conf file and etc/X11/xorg.conf.d directory because it wasn't created automatically during xorg-server installation. I put the contents of my working xorg.conf from Calculate Linux into Gentoo's /etc/X11/xorg.conf

http://pastebin.calculate-linux.org/en/show/10341

and re-run 'env-update' and 'source /etc/profile' - following religiously all steps from Xorg installation docs.

My video specs are as follows:

PHP Code:
00:02.0 VGA compatible controllerIntel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b
I also visited intel's Xorg website: https://01.org/linuxgraphics/downloads

Installed kernel 16.2, Mesa, Cairo - all required software.

But still same problem when using startx.

Could somebody please help me what else can be done here?

Thank you!
Victor.
 
Old 12-08-2014, 10:08 AM   #2
PECONET009
Member
 
Registered: Sep 2006
Location: Finland.
Distribution: kali linux.
Posts: 156

Rep: Reputation: 21
Have you tried this...

Quote:
Originally Posted by victorsk View Post
Hi everyone,

I have completely exhausted all ways trying to fix my problem. I have recently installed Gentoo base system and trying to install xorg server but encountering problems when executing 'startx':

startx error:
http://pastebin.calculate-linux.org/en/show/10340

I followed Xorg-server installation by-the-book and installed xf86-video-intel driver also. I then created /etc/X11/xorg.conf file and etc/X11/xorg.conf.d directory because it wasn't created automatically during xorg-server installation. I put the contents of my working xorg.conf from Calculate Linux into Gentoo's /etc/X11/xorg.conf

http://pastebin.calculate-linux.org/en/show/10341

and re-run 'env-update' and 'source /etc/profile' - following religiously all steps from Xorg installation docs.

My video specs are as follows:

PHP Code:
00:02.0 VGA compatible controllerIntel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b
I also visited intel's Xorg website: https://01.org/linuxgraphics/downloads

Installed kernel 16.2, Mesa, Cairo - all required software.

But still same problem when using startx.

Could somebody please help me what else can be done here?

Thank you!
Victor.
Go here for more information:
http://wiki.gentoo.org/wiki/Xorg/Configuration
 
Old 12-08-2014, 02:26 PM   #3
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PECONET009 View Post
I worked off of that website from the start.
 
Old 12-08-2014, 02:55 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
You don't seem to have the intel driver installed.

Please, post the output of emerge --info
 
Old 12-08-2014, 08:14 PM   #5
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
You don't seem to have the intel driver installed.

Please, post the output of emerge --info
Hi,

My apologies for slightly delayed response - had to get home to my laptop.

This is the output of 'emerge --info' command:

http://pastebin.calculate-linux.org/en/show/10343
 
Old 12-09-2014, 12:38 PM   #6
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by victorsk View Post
Hi,

My apologies for slightly delayed response - had to get home to my laptop.

This is the output of 'emerge --info' command:

http://pastebin.calculate-linux.org/en/show/10343
I have compared the 'emerge --info' information from my fully-functional Calculate installation and USE flags there have this entry:

Code:
VIDEO_CARDS="intel i965"
If I set USE flags in make.conf to these parameters in my gentoo installation, do you think this will fix my problem?

Thanks.
 
Old 12-10-2014, 01:17 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The VIDEO_DRIVERS variable controls the parameters with which the package x11-base/xorg-drivers is emerged.

Use this command to see the current status:

Code:
emerge -av xorg-drivers
This will show you what drivers are available and which ones are disabled. Post the output here if in doubt. If the driver is in VIDEO_CARDS but it hasn't been compiled yet you should see something like this:

Code:
[ebuild   R   ~] x11-base/xorg-drivers-1.16  INPUT_DEVICES="evdev synaptics -acecad -aiptek -elographics -fpit -hyperpen -joystick -keyboard -mouse -mutouch -penmount -tslib -vmmouse -void -wacom" VIDEO_CARDS="intel* -apm -ast -chips -cirrus -dummy -epson -fbdev -fglrx (-freedreno) (-geode) -glint -i128 (-i740) -mach64 -mga -modesetting -neomagic -nouveau -nv -nvidia (-omap) (-omapfb) -qxl -r128 -radeon -radeonsi -rendition -s3 -s3virge -savage -siliconmotion -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox -vmware (-voodoo)" 0 KiB
See the '*' behind "intel", that means the USE flag has changed but it still isn't applied, and it is going to be so if you answer "yes". So, if that's the case, answer "yes" and wait for the compilation to finish. You should then be able to startx, or, at least, get a different error in your logs.

If the driver is compiled, you should be able to see it under /usr/lib/xorg/modules/drivers/.

I have no experience with intel video drivers, but I think you should be ok nowadays with just "intel". There might be more than one problem in your configuration, but the evident one is the one I pointed, since the X log is telling you that there's no intel driver at all...
 
1 members found this post helpful.
Old 12-10-2014, 09:22 PM   #8
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
The VIDEO_DRIVERS variable controls the parameters with which the package x11-base/xorg-drivers is emerged.

Use this command to see the current status:

Code:
emerge -av xorg-drivers
This will show you what drivers are available and which ones are disabled. Post the output here if in doubt. If the driver is in VIDEO_CARDS but it hasn't been compiled yet you should see something like this:

Code:
[ebuild   R   ~] x11-base/xorg-drivers-1.16  INPUT_DEVICES="evdev synaptics -acecad -aiptek -elographics -fpit -hyperpen -joystick -keyboard -mouse -mutouch -penmount -tslib -vmmouse -void -wacom" VIDEO_CARDS="intel* -apm -ast -chips -cirrus -dummy -epson -fbdev -fglrx (-freedreno) (-geode) -glint -i128 (-i740) -mach64 -mga -modesetting -neomagic -nouveau -nv -nvidia (-omap) (-omapfb) -qxl -r128 -radeon -radeonsi -rendition -s3 -s3virge -savage -siliconmotion -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox -vmware (-voodoo)" 0 KiB
See the '*' behind "intel", that means the USE flag has changed but it still isn't applied, and it is going to be so if you answer "yes". So, if that's the case, answer "yes" and wait for the compilation to finish. You should then be able to startx, or, at least, get a different error in your logs.

If the driver is compiled, you should be able to see it under /usr/lib/xorg/modules/drivers/.

I have no experience with intel video drivers, but I think you should be ok nowadays with just "intel". There might be more than one problem in your configuration, but the evident one is the one I pointed, since the X log is telling you that there's no intel driver at all...
Thank you for the message! Unfortunately, I am still stuck with the same problem after xorg-drivers got installed. I checked package.use entry and I didn't have "X11-base/xorg-server udev" correctly specified in package.use, as per Xorg configuration documentation. My first try on virtual box installing X went extremely well and I followed the same Xorg documentation but seems like I've been careless this time.

I tried to:

Code:
emerge --unmerge xorg-server
and

Code:
emerge --unmerge xorg-drivers
then re-install them with corrected entry in package.use, but to no avail. I am inclined to wipe out and re-install Gentoo from scratch but it seems rather drastic measure. Is there anything else I should try? startx is still not working with the same error message.

Thanks,
Victor.
 
Old 12-11-2014, 02:01 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The driver is failing to load for some reason.

So, the first thing to check is whether the driver is in /usr/lib/xorg/modules/drivers/. If it's there then the problem could be in the device detection mechanism, lacking udev support in come key component could have something to do, I am not sure.

Also, you really shouldn't need an xorg.conf these days unless you need to configure something in a non-standard way. Most (if not all) open source graphics drivers just work with the default config today.

So, things to try: first of everything, move /etc/X11/xorg.conf* somewhere else so that X does not see it, let it do the autoconfig stuff, and see if startx still fails. Check /usr/lib/xorg/modules/drivers/ and see what's in there. Also, post the output of lspci, in case you have some kind of rare unsupported video card which would be strange if you have been using Linux before in that same machine.

Double check that you have USE="udev", and also that you DO NOT HAVE USE="minimal" or some other crazy thing like that. Then emerge -auDvN @world, to see if there're any USE updates pending. If there are, apply them. Note that USE="minimal" translates to regular English as "not-working-at-all-unless-you-truly-know-what-you-are-doing".
 
1 members found this post helpful.
Old 12-11-2014, 08:31 PM   #10
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
The driver is failing to load for some reason.

So, the first thing to check is whether the driver is in /usr/lib/xorg/modules/drivers/. If it's there then the problem could be in the device detection mechanism, lacking udev support in come key component could have something to do, I am not sure.

Also, you really shouldn't need an xorg.conf these days unless you need to configure something in a non-standard way. Most (if not all) open source graphics drivers just work with the default config today.

So, things to try: first of everything, move /etc/X11/xorg.conf* somewhere else so that X does not see it, let it do the autoconfig stuff, and see if startx still fails. Check /usr/lib/xorg/modules/drivers/ and see what's in there. Also, post the output of lspci, in case you have some kind of rare unsupported video card which would be strange if you have been using Linux before in that same machine.

Double check that you have USE="udev", and also that you DO NOT HAVE USE="minimal" or some other crazy thing like that. Then emerge -auDvN @world, to see if there're any USE updates pending. If there are, apply them. Note that USE="minimal" translates to regular English as "not-working-at-all-unless-you-truly-know-what-you-are-doing".
Thank you again for suggestions! It very much seems like I don't have intel driver but have no idea why because I several times executed command 'emerge xorg-drivers' and each time the output was saying "installing". When I list the /usr/lib/xorg/modules, there is no drivers directory. This is my gentoo's directory listing after mounting it from my Calculate system:

Code:
calculate modules # pwd
/var/run/media/me/07a93727-7cc1-4d01-8666-aa40fd43a1b4/usr/lib/xorg/modules
calculate modules # ls
extensions  libexa.so  libfbdevhw.so  libfb.so  libint10.so  libshadowfb.so  libshadow.so  libvbe.so  libvgahw.so  libwfb.so  multimedia
There is no 'drivers' directory and I have no idea why. I then followed your advise and removed /etc/X11/xorg.conf*. I then checked my make.conf file:

http://pastebin.calculate-linux.org/en/show/10351

There doesn't appear to be 'minimal' in USE flags and 'udev' is in there.

And this is my lspci information:

http://pastebin.calculate-linux.org/en/show/10352

This really is quite strange. I had no problem installing and starting x on my virtualbox and already installing KDE packages on virtualbox. But I am having all sorts of problems with real installation on my laptop and startx is still not working. I did make filesystem to be btrfs. Do you think this could be the reason why I am having these problems - because my filesystem was set up as btrfs?

Last edited by victorsk; 12-11-2014 at 08:37 PM.
 
Old 12-12-2014, 01:28 AM   #11
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
I don't think btrfs is related in any way, unless one of its features is to silently delete files at random. I haven't ever used it personally though.

Well, let's try another thing. xorg-drivers is just a stub that merges secondary packages depending on USEs. The real package for the intel driver is xf86-video-intel, so, try to emerge it directly and see what happens (whether the drivers directory appears or not).

Also, please, post the output of this command:

Code:
$ emerge -pv xorg-drivers
Maybe there's something that's mangling your VIDEO_CARDS or something, or... you don't have strange overlays installed locally or using layman, do you?
 
Old 12-13-2014, 01:00 PM   #12
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
I don't think btrfs is related in any way, unless one of its features is to silently delete files at random. I haven't ever used it personally though.

Well, let's try another thing. xorg-drivers is just a stub that merges secondary packages depending on USEs. The real package for the intel driver is xf86-video-intel, so, try to emerge it directly and see what happens (whether the drivers directory appears or not).

Also, please, post the output of this command:

Code:
$ emerge -pv xorg-drivers
Maybe there's something that's mangling your VIDEO_CARDS or something, or... you don't have strange overlays installed locally or using layman, do you?
I emerged xf86-video-intel individually and now there is 'drivers' directory:

Code:
intel_drv.so
calculate drivers # pwd
/var/run/media/me/07a93727-7cc1-4d01-8666-aa40fd43a1b4/usr/lib/xorg/modules/drivers
In the very beginning it was showing [I] beside xf86-video-intel when I used 'eix intel' command and I previously executed individually 'emerge xf86-video-intel' as I refer in my original post. Why it seems to have been installed now I have no idea.

Below is output from command 'emerge -pv xorg-drivers':

http://pastebin.calculate-linux.org/en/show/10358

I've added virtualbox to VIDEO_CARDS so it's showing there as pending install.

However, I am still unable to startx. The error message is the same.

Thanks,
Victor.

Last edited by victorsk; 12-13-2014 at 01:03 PM.
 
Old 12-13-2014, 01:29 PM   #13
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Smile

Great success!

So I examined xorg logs after intel driver got installed and it said 'vesa' module failed to load. I then emerged xf86-video-vesa and X server loaded without that error

I am learning how to read Xorg.0.log file. There do appear to be some modules still failed to load but I am not sure whether those are critical components or it's just being capricious

Could you kindly check the logs and advise if I have to install those modules it mentions as failed or if those modules are optional?

http://pastebin.calculate-linux.org/en/show/10359

I did get screen switch and go blank suggesting xserver was working but, again, I am not sure if additional modules need to be installed.

Thank you so much!
Victor.
 
Old 12-13-2014, 02:40 PM   #14
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
That error is not the same.

Firts, intel tries to load. This time it is found but it fails because you lack modesettings capabilities. That can be due to a number of reasons.

You really shouldn't use vesa. It intended only as a fallback since it uses absolutely no acceleration capabilities.

Check this, specially the part about kernel config for modesetting (kms).
https://wiki.gentoo.org/wiki/Xorg/Configuration

While you are at it you might also want to add evdev support as well.
 
1 members found this post helpful.
Old 12-13-2014, 02:52 PM   #15
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
That error is not the same.

Firts, intel tries to load. This time it is found but it fails because you lack modesettings capabilities. That can be due to a number of reasons.

You really shouldn't use vesa. It intended only as a fallback since it uses absolutely no acceleration capabilities.

Check this, specially the part about kernel config for modesetting (kms).
https://wiki.gentoo.org/wiki/Xorg/Configuration

While you are at it you might also want to add evdev support as well.
Hi, yes, I've just installed evdev and synaptic as logs suggested (thought wasn't sure if it was mandatory). I don't see errors in the log anymore, which is a good sign The kernel configuration file I use is a template file I saved from previous installations that have all modules set up (wireless support, video drivers etc..).

I really appreciate you pointing me in the right direction with this problem.

Gracias!
Victor.
 
  


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
Xorg nouveau installation issues Defaul Gentoo 18 07-15-2011 01:30 PM
Xorg installation problem with Gentoo LuvNoze Linux - Laptop and Netbook 7 07-03-2011 05:17 AM
[SOLVED] xorg-server-1.7.1 shows only blank screen after update from xorg-server-1.6.3 irmin Linux - Software 2 01-07-2010 11:23 AM
[SOLVED] Error with xorg-x11-server-Xorg callumacrae Fedora 1 10-13-2009 02:22 PM
Xorg installation failure novacrasher Linux - Software 2 02-07-2005 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 10:12 AM.

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