Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]No device detected while startx?
View unanswered posts
View posts from last 24 hours

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


Joined: 23 Sep 2013
Posts: 40

PostPosted: Tue Oct 15, 2013 7:58 am    Post subject: [Solved]No device detected while startx? Reply with quote

I've read almost all related posts on this forum but no luck!

No device detected seems some other framebuffer drivers take over the hardware ?

I have installed Xorg following the Wiki here : http://wiki.gentoo.org/wiki/Xorg/Configuration

One thing different is I didn't disable all other framebuffer drivers as the Wiki says. Because I
use EFI, I have to enable the EFI framebuffer or it will render blank screen while booting.


And worse, I couldn't enable
Code:

Device Drivers --->
  <*> Intel 8xx/9xx/G3x/G4x/HD Graphics
  [*]   Enable modesetting on intel by default


Because it will render black sreen while booting either.

Any idea? Thanks !

My /var/log/Xorg.0.log: http://pastebin.ca/2466843

My .config: http://pastebin.ca/2466846

My lspci -v:

Code:


00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device 3801
   Flags: bus master, fast devsel, latency 0
   Memory at c2000000 (64-bit, non-prefetchable) [size=4M]
   Memory at b0000000 (64-bit, prefetchable) [size=256M]
   I/O ports at 5000 [size=64]
   Expansion ROM at <unassigned> [disabled]
   Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [d0] Power Management version 2
   Capabilities: [a4] PCI Advanced Features

01:00.0 VGA compatible controller: NVIDIA Corporation Device 0fcd (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device 3801
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Memory at c0000000 (32-bit, non-prefetchable) [size=16M]
   Memory at 90000000 (64-bit, prefetchable) [size=256M]
   Memory at a0000000 (64-bit, prefetchable) [size=32M]
   I/O ports at 4000 [size=128]
   Expansion ROM at a2000000 [disabled] [size=512K]
   Capabilities: [60] Power Management version 3
   Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [78] Express Endpoint, MSI 00
   Capabilities: [b4] Vendor Specific Information: Len=14 <?>
   Capabilities: [100] Virtual Channel
   Capabilities: [128] Power Budgeting <?>
   Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
   Capabilities: [900] #19
   Kernel driver in use: nouveau



emerge --info

Code:

Portage 2.2.1 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.1, glibc-2.15-r3, 3.11.2-gentoo x86_64)
=================================================================
System uname: Linux-3.11.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-4200M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7901044 total,   7700652 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Tue, 01 Oct 2013 01:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.8.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.cn.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



dmesg | grep noveau : no output

dmesg | grep drm:

Code:

[    0.565014] [drm] Initialized drm 1.1.0 20060810
[    4.077834] [drm] Initialized nouveau 1.1.1 20120801 for 0000:01:00.0 on minor 0


dmesg | grep fb:

Code:

[    0.560166] efifb: probing for efifb
[    0.560323] efifb: framebuffer at 0xb0000000, mapped to 0xffffc90020780000, using 4160k, total 4160k
[    0.560326] efifb: mode is 1366x768x32, linelength=5504, pages=1
[    0.560327] efifb: scrolling: redraw
[    0.560329] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    0.564911] fb0: EFI VGA frame buffer device



udev is in the sysinit level


Last edited by lcx on Fri Nov 01, 2013 12:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Oct 15, 2013 2:24 pm    Post subject: Reply with quote

Start at: The Bumblebee Project
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Oct 15, 2013 4:45 pm    Post subject: Reply with quote

So,...
FB_EFI shouldn't be a problem.
I don't have a laptop, so I can't tell much except of a few things I've learnt here.
For the time being, it might be a good idea to provide the driver for intel card, regardless on nvidia.
It might be that your card is too recent for nouveau driver (or at least this version), cause if I'm googling right, it's GeForce GT 755M.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Oct 15, 2013 8:33 pm    Post subject: Reply with quote

lcx,

From your Xorg log, you appear to have an Optimus laptop.
Your log shows
Code:
[  7284.979] (--) PCI:*(0:0:2:0) 8086:0416:17aa:3801 rev 6, Mem @ 0xc2000000/4194304, 0xb0000000/268435456, I/O @ 0x00005000/64
[  7284.979] (--) PCI: (0:1:0:0) 10de:0fcd:17aa:3801 rev 161, Mem @ 0xc0000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
which includes an Intel and nVidia graphics chips.

The Intel one is a complete graphics system. It can write new images in the pixel buffer and read the pixel buffer out to the dispaly.
The nVidia graphics can only write new images in the pixel buffer. It has no way to get the pixel buffer onto the screen.
This means that for low power/performce you use the Intel system.
For high power/performance you use the Intel system to refresh the screen and the nVidia chip to draw in the pixel buffer.

Make the Intel graphics work first. Then either use the Bumblebee project, as mentioned by others, or add the nVidia binary blob driver.
Its README file tells how to make it work with an Optimus graphic system. From memory, around chapter 33.
_________________
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
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Oct 15, 2013 9:45 pm    Post subject: Reply with quote

eyoung100 wrote:
Start at: The Bumblebee Project


NeddySeagoon wrote:
Make the Intel graphics work first. Then either use the Bumblebee project, as mentioned by others...


Some people listen and some people don't :roll: 8O
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Wed Oct 16, 2013 2:29 am    Post subject: Reply with quote

eyoung100 wrote:
Start at: The Bumblebee Project


Hi, thanks. I'll give it a try.
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Wed Oct 16, 2013 2:32 am    Post subject: Reply with quote

VoidMage wrote:
So,...
FB_EFI shouldn't be a problem.
I don't have a laptop, so I can't tell much except of a few things I've learnt here.
For the time being, it might be a good idea to provide the driver for intel card, regardless on nvidia.


Hmm, as I said in the question, when I built the driver support for my intel card. I got a black screen while booting.
So I have to turn it off...

VoidMage wrote:

It might be that your card is too recent for nouveau driver (or at least this version), cause if I'm googling right, it's GeForce GT 755M.


Correct ! Then you mean a live nouveau driver may solve this problem?[/quote]
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Wed Oct 16, 2013 2:56 am    Post subject: Reply with quote

NeddySeagoon wrote:


The Intel one is a complete graphics system. It can write new images in the pixel buffer and read the pixel buffer out to the dispaly.
The nVidia graphics can only write new images in the pixel buffer. It has no way to get the pixel buffer onto the screen.
This means that for low power/performce you use the Intel system.
For high power/performance you use the Intel system to refresh the screen and the nVidia chip to draw in the pixel buffer.



Thanks, NeddySeagoon,

The drvier for my Intel integrated card is i915. But as I said in the question, when I enable these two options:

Code:

Device Drivers --->
  <*> Intel 8xx/9xx/G3x/G4x/HD Graphics   # CONFIG_DRM_I915
  [*]   Enable modesetting on intel by default    # CONFIG_DRM_I915_KMS


My system got black screen shortly after booting. I don't know if it conflicts with EFI framebuffer driver

Quote:
Make the Intel graphics work first. Then either use the Bumblebee project, as mentioned by others, or add the nVidia binary blob driver.
Its README file tells how to make it work with an Optimus graphic system. From memory, around chapter 33.


Then I just turn off all noveau driver options to make Intel graphics work first or
just a configuration is enough? Any references?

And what do you by chapter 33? What book is it?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Wed Oct 16, 2013 10:03 am    Post subject: Reply with quote

You need to read a guide aimed specifically at laptops and a recent one at that - it seems you have a muxless laptop and those have began to be fully handled only recently.
Looking at the upstream repo, live ebuild won't help (not enough more recent commits). But if - as NeddySeagoon says - it's a muxless laptop, then the whole problem comes from not yet working intel card.
Make sure your libdrm/mesa has correct useflags (might not be the immediate problem, but it's good to be prepared).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Oct 16, 2013 6:53 pm    Post subject: Reply with quote

lcx,

[SOLVED] Optimus new nvidia drivers may help.
_________________
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
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Wed Oct 23, 2013 8:12 am    Post subject: Reply with quote

VoidMage wrote:

Looking at the upstream repo, live ebuild won't help (not enough more recent commits). But if - as NeddySeagoon says - it's a muxless laptop, then the whole problem comes from not yet working intel card.


Thanks, but once I configured in the Intel card driver(i915), my screen turns black shortly after booting.
even I removed the nouveau driver config option .

Any suggestion? Thanks.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Oct 23, 2013 1:53 pm    Post subject: Reply with quote

Will your laptop boot a Ubuntu Live CD, or Debian LiveCD etc :?: If so, boot it and look at the dmesg produced and attempt to replicate it on your gentoo install...
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Wed Oct 23, 2013 2:36 pm    Post subject: Reply with quote

eyoung100 wrote:
Will your laptop boot a Ubuntu Live CD, or Debian LiveCD etc :?: If so, boot it and look at the dmesg produced and attempt to replicate it on your gentoo install...


Thanks for your help.

Isn't gentoo miniCD or SystemRescueCD good? I don't quite understand what do you mean by "replicate".
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Oct 23, 2013 3:10 pm    Post subject: Reply with quote

Boot into Ubuntu LiveCD, or Knoppix. After Booting Choose Use Live CD(the opposite of the install option) Start a term and type dmesg. Search through the dmesg untill you find the section that loaded the video driver...
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Mon Oct 28, 2013 5:29 pm    Post subject: Reply with quote

NeddySeagoon wrote:
lcx


Hi, NeddySeagoon and eyoung100,

eyoung100 wrote:
Boot into Ubuntu LiveCD, or Knoppix. After Booting Choose Use Live CD(the opposite of the install option) Start a term and type dmesg. Search through the dmesg untill you find the section that loaded the video driver...


My hardware is pretty new and even Ubuntu 13.10 version LiveCD gives a black screen after booting.

After some searching, I found the black screen (both under my situation with intel drvier builtin and under Ubuntu LiveCD booting) maybe caused by the insane graphic card behaviour under UEFI booting system , so I passed the nomodeset kernel option and chaged the boot mode from UEFI mode to Legacy Mode(supporting bios). Gratifyingly, black screen during booting is away even I built in the Intel driver.

And then I moved on to startx. This time the Xorg.0.log is quite different from the original one I posted on this thead. I put the new one here:
http://pastebin.ca/2472214

It seems it could not find a driver ?

I have builtin in the Intel graphics driver
Code:

Device Drivers --->
  <*> Intel 8xx/9xx/G3x/G4x/HD Graphics
  [*]   Enable modesetting on intel by default


and the nouveau driver
Code:

<*> Nouveau (nVidia) card


And it indeed didn't load the nouveau driver(the lspci -k dont tell nouveau in use, dmesg have nothing about nouveau)
I didn't block nor blacklist the nouveau driver.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Mon Oct 28, 2013 5:46 pm    Post subject: Reply with quote

NeddySeagoon wrote:
lcx,
The Intel one is a complete graphics system. It can write new images in the pixel buffer and read the pixel buffer out to the dispaly.
The nVidia graphics can only write new images in the pixel buffer. It has no way to get the pixel buffer onto the screen.
This means that for low power/performce you use the Intel system.
For high power/performance you use the Intel system to refresh the screen and the nVidia chip to draw in the pixel buffer.

Make the Intel graphics work first. Then either use the Bumblebee project, as mentioned by others, or add the nVidia binary blob driver.
Its README file tells how to make it work with an Optimus graphic system. From memory, around chapter 33.


Follow Neddy's advice here, you cannot use the nouveau driver . If you want to use both you must use the Bumblebee Project, or the Binary NVIDIA Drivers in tandem with the intel driver
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Oct 28, 2013 6:08 pm    Post subject: Reply with quote

To make xf86-video-intel work, you need - at minimum - to drop 'nomodeset' from bootloader options.
It seems though, that you don't have the driver installed in the first place.
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Mon Oct 28, 2013 6:20 pm    Post subject: Reply with quote

VoidMage wrote:
To make xf86-video-intel work, you need - at minimum - to drop 'nomodeset' from bootloader options.
It seems though, that you don't have the driver installed in the first place.


Hi, what is xf86-video-intel? The driver for Intel card? Then what are that driver i915 for?

I couldn't drop the nomodeset option, though Intel and nouveau all need KMS...
Because dropping it will caused black screen when i915 is built in...
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Mon Oct 28, 2013 6:21 pm    Post subject: Reply with quote

eyoung100 wrote:


Follow Neddy's advice here, you cannot use the nouveau driver . If you want to use both you must use the Bumblebee Project, or the Binary NVIDIA Drivers in tandem with the intel driver



OK. I will try the Bumblee. Thanks.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Mon Oct 28, 2013 6:30 pm    Post subject: Reply with quote

lcx wrote:
VoidMage wrote:
To make xf86-video-intel work, you need - at minimum - to drop 'nomodeset' from bootloader options.
It seems though, that you don't have the driver installed in the first place.


Hi, what is xf86-video-intel? The driver for Intel card? Then what are that driver i915 for?

I couldn't drop the nomodeset option, though Intel and nouveau all need KMS...
Because dropping it will caused black screen when i915 is built in...


Intel915 is the correct driver, leave everything as it is, passing nomodeset as you stated earlier, and add the bumblebee.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Oct 28, 2013 7:43 pm    Post subject: Reply with quote

lcx,

The intel graphics driver is in two parts.
The kernel part provides the frame buffer console and cooperates with the xorg part which is provided by Xorg.
You need to set your VIDEO_CARDS in make.conf

You need both parts of the driver to make Xorg work
_________________
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
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Tue Oct 29, 2013 6:47 pm    Post subject: Reply with quote

NeddySeagoon wrote:
lcx,

The intel graphics driver is in two parts.
The kernel part provides the frame buffer console and cooperates with the xorg part which is provided by Xorg.
You need to set your VIDEO_CARDS in make.conf

You need both parts of the driver to make Xorg work



Thanks NeddySeagoon and other good guys.

I've installed the Intel driver xf86-video-intel(by add an intel in VIDEO_CARDS).

This time it again complains about No devices detected. Since the Intel card
is a complete video card to work well and I have buit the kernel part i915(as module)
and installed the X part xf86-video-intel, I quite don't understand why it still complains this issue.


Then I thought of that I passeed the nomodeset parameter in bootloader(as I
stated in previous post, otherwise I got a black screen at booting.)

And I found on other threads in this forum saying that KMS is mandatory for recent xf86-video-intel
, so I thought that this maybe the problem and installed the generic driver xf86-video-modesetting,
it did find the devices! But some other errors :
Code:

[   588.827] (EE) open /dev/dri/card0: No such file or directory
[   588.827] (WW) Falling back to old probe method for modesetting
[   588.827] (EE) open /dev/dri/card0: No such file or directory
[   588.827] (EE) Screen 0 deleted because of no matching config section.
[   588.827] (II) UnloadModule: "modesetting"
[   588.827] (EE) Device(s) detected, but none match those in the config file.
[   588.827] (EE)
Fatal server error:
[   588.827] (EE) no screens found(EE)
[   588.827] (EE)

(the complete one is here: http://pastebin.ca/2472545)

I have checked this : https://forums.gentoo.org/viewtopic-t-916514-start-0.html
NeddySeagoon mentioned this:
Code:
Turn off any hardware framebuffer drivers.
Turn on Intel in agpgart and in DRM in the kernel.
Turn on KMS (Kernel mode setting) under one of the intel options.

1. I have only EFI fb driver.
2. Yes. But dmesg | grep drm : [drm:drm_pci_agp_init] *ERROR* Cannot initailize the agpart module.
3. Yes, CONFG_DRM_I915_KMS=y. But I turned it off via nomodeset kernel parameter.

Any suggestion? Thanks.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Oct 29, 2013 7:51 pm    Post subject: Reply with quote

Your over complicating this whole thing:
  1. Add intel to VIDEO_CARDS
  2. Remove xf86-video-modesetting
  3. Leave the i915 as a module
  4. Pass nomodeset=1 in your kernel command line

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Oct 29, 2013 8:21 pm    Post subject: Reply with quote

eyoung100 wrote:

  1. Pass nomodeset=1 in your kernel command line

This point is wrong.

But it seems a basic question needs to be asked: what is the output of:
'emerge -1pv media-libs/mesa x11-libs/libdrm x11-base/xorg-server x11-drivers/xf86-video-intel' ?
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Oct 29, 2013 9:09 pm    Post subject: Reply with quote

lcx wrote:
I couldn't drop the nomodeset option, though Intel and nouveau all need KMS...
Because dropping it will caused black screen when i915 is built in...


Void, please read the previous posts, enabling modesetting causes the black screen the OP wants to get rid of.

nomodesetting=0 enables
nomodesetting=1 disables
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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