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 Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5618

PostPosted: Tue Oct 29, 2013 10:25 pm    Post subject: Reply with quote

:roll: eyoung100, xf86-video-intel has been KMS-only since 2.10.0 (released on 2010-01-04), so honestly...

And anyway, it's been already established, that the kernel portion of intel driver was previously missing, so that "black screen" shouldn't be that surprising (given muxless laptop and NeddySeagoon's post).
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Tue Oct 29, 2013 10:44 pm    Post subject: Reply with quote

VoidMage wrote:
so that "black screen" shouldn't be that surprising (given muxless laptop and NeddySeagoon's post).


Not necessarily...

https://bugs.gentoo.org/show_bug.cgi?id=458746
https://bugs.gentoo.org/show_bug.cgi?id=463838

While this might not exactly be the same issue; it might be possible, that lcx could run into something like this. While we should first try to diagnose and resolve it, do not exclude the possibility of it being a bug.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5618

PostPosted: Wed Oct 30, 2013 12:38 am    Post subject: Reply with quote

Let's call that Occam's Razor - yes, it might be a real bug, but far more likely is that's a misconfiguration.
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Wed Oct 30, 2013 3:15 am    Post subject: Reply with quote

VoidMage wrote:
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' ?



Hi, VoidMage,

the output is
Code:

[ebuild   R    ] x11-libs/libdrm-2.4.46  USE="-libkms -static-libs" VIDEO_CARDS="intel nouveau (-exynos) (-freedreno) (-omap) -radeon -vmware" 0 kB
[ebuild   R    ] media-libs/mesa-9.1.6  USE="bindist classic egl gallium llvm nptl shared-glapi -debug -gbm -gles1 -gles2 -openvg -osmesa -pax_kernel -pic (-r600-llvm-compiler) (-selinux) -vdpau (-wayland) -xa -xorg -xvmc" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" VIDEO_CARDS="intel nouveau -i915 -i965 -r100 -r200 -r300 -r600 -radeon (-radeonsi) -vmware" 0 kB
[ebuild   R    ] x11-base/xorg-server-1.14.3-r2:0/1.14.3  USE="ipv6 nptl suid udev xorg -dmx -doc -kdrive -minimal (-selinux) -static-libs -tslib -xnest -xvfb" 0 kB
[ebuild   R    ] x11-drivers/xf86-video-intel-2.21.15  USE="dri sna udev -glamor -uxa -xvmc" 0 kB
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1411

PostPosted: Wed Oct 30, 2013 4:03 am    Post subject: Reply with quote

Code:
remove nouveau from VIDEO_CARDS, add xorg and libkms to USE in make.conf
and add that to whatever VoidMage tells you
_________________
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 30, 2013 5:42 am    Post subject: Reply with quote

eyoung100 wrote:
Code:
remove nouveau from VIDEO_CARDS, add xorg and libkms to USE in make.conf
and add that to whatever VoidMage tells you


I've tried that and then ran emerge --ask --newuse --deep --update @world,
it told me I should process the accept_keywords and unmask to proceed. I don't know
if it is appropriate to do so, so I didn't do it yet.

And I don't understand why to remove nouveau.Because I passed the nomodeset kernel parameter,
one effect is it prevents the nouveau from initializing ( dmesg | grep nouveau has no output), so
it seems removal of nouveau is not a keypoint to the problem ?

Also, I don't understand why a xorg and libkms should be add to USE, doesn't portage already
handle this ? I've strictly followed the xorg configuration wiki.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5618

PostPosted: Wed Oct 30, 2013 11:40 am    Post subject: Reply with quote

lcx, I don't think either I or eyoung100 said what you think we said, going by your last post.

Let me stress again, that with nomodeset among your bootloader options for kernel, you won't get xorg part of intel driver working.

As for those keywords/mask changes, it's hard to say without seeing the output, but if it really talks about mask changes, chances are you went a bit too far somewhere.

Anyway, what about the output of the command I've asked a few posts back ?
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1411

PostPosted: Wed Oct 30, 2013 2:03 pm    Post subject: Reply with quote

NeddySeagoon wrote:
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.


This is the reason you cannot use the nouveau driver, because the intel driver is the only driver that can write to the pixel buffer. Your choices are:
  1. Remove the nouveau driver, and leave nomodeset=1, and have no X.
  2. Remove the nouveau driver, and test with nomodeset=1, configure kernel and X properly, and pass nomodeset=0(turn it off). If it fails, we repeat the configuration.
  3. Remove the nouveau driver, and install both the intel driver and the nvidia-drivers package. If you use this option, you will not need bumblebee.
  4. Remove the nouveau driver, properly configure the intel driver, and then install bumblebee


I was unaware that the intel driver now required kms, but adding the libkms flag enables kms in all packages that need it, and xorg enables xorg support in mesa
_________________
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 30, 2013 2:22 pm    Post subject: Reply with quote

VoidMage wrote:

Let me stress again, that with nomodeset among your bootloader options for kernel, you won't get xorg part of intel driver working.


VoidMage, thanks,

I know. But the reason I use the nomodeset parameter is that otherwise the kernel part of intel driver will cause black screen at booting time
(I've tested this and make sure that the black screen is the result of switcing on CONFIG_DRM_I915 and CONFIG_DRM_I915_KMS).
So this is to some degree a dilemma I couldn't get rid of... Is it a bug?

VoidMage wrote:

Anyway, what about the output of the command I've asked a few posts back ?


I've posted the output of the command in previous post:
Code:

[ebuild   R    ] x11-libs/libdrm-2.4.46  USE="-libkms -static-libs" VIDEO_CARDS="intel nouveau (-exynos) (-freedreno) (-omap) -radeon -vmware" 0 kB
[ebuild   R    ] media-libs/mesa-9.1.6  USE="bindist classic egl gallium llvm nptl shared-glapi -debug -gbm -gles1 -gles2 -openvg -osmesa -pax_kernel -pic (-r600-llvm-compiler) (-selinux) -vdpau (-wayland) -xa -xorg -xvmc" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" VIDEO_CARDS="intel nouveau -i915 -i965 -r100 -r200 -r300 -r600 -radeon (-radeonsi) -vmware" 0 kB
[ebuild   R    ] x11-base/xorg-server-1.14.3-r2:0/1.14.3  USE="ipv6 nptl suid udev xorg -dmx -doc -kdrive -minimal (-selinux) -static-libs -tslib -xnest -xvfb" 0 kB
[ebuild   R    ] x11-drivers/xf86-video-intel-2.21.15  USE="dri sna udev -glamor -uxa -xvmc" 0 kB


Last edited by lcx on Wed Oct 30, 2013 2:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1411

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

Based on the output, set:
Code:
USE="<other useflags> libkms xorg"
VIDEO_CARDS="intel intel915 -nouveau nvidia"
INPUT_DEVICES="evdev"

Then:
Code:
emerge -uND world


This should apply new USE Flag and VIDEO_CARDS/INPUT_DEVICES to all affected packages on your system. Pass nomodeset=0 and reboot.

Tell us what happened...
_________________
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 30, 2013 3:31 pm    Post subject: Reply with quote

eyoung100 wrote:
Based on the output, set:
Code:
USE="<other useflags> libkms xorg"
VIDEO_CARDS="intel intel915 -nouveau nvidia"
INPUT_DEVICES="evdev"

Then:
Code:
emerge -uND world


This should apply new USE Flag and VIDEO_CARDS/INPUT_DEVICES to all affected packages on your system. Pass nomodeset=0 and reboot.

Tell us what happened...


-nouveau should not be in VIDEO_CARDS, otherwise error :

Code:
Invalid '-' operator in non-incremental variable 'VIDEO_CARDS': '-nouveau'



nvidia shouldn't either, because it will boil out during compilation of nvidia driver, saying that
this nvidia driver should be used with limited kernel version <=3.11(I use 3.11.2)

Other things remains, and I ran
Code:
emerge -uND world
, and didn't pass nomodeset.
Unsurprisingly, black screen...
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1411

PostPosted: Wed Oct 30, 2013 4:33 pm    Post subject: Reply with quote

Remove -nouveau
Code:
USE="<other useflags> libkms xorg"
VIDEO_CARDS="intel intel915 nvidia"
INPUT_DEVICES="evdev"



Make sure intel and intel915 are compiled as built-in...

/etc/portage/package.keywords
x11-drivers/nvidia-drivers

Code:
emerge -uND world


Please post your grub.conf
_________________
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


Last edited by eyoung100 on Thu Oct 31, 2013 3:07 am; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1411

PostPosted: Wed Oct 30, 2013 4:48 pm    Post subject: Reply with quote

Found this over on Arch: [solved] intel KMS and the blank screen
_________________
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
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Wed Oct 30, 2013 10:24 pm    Post subject: Reply with quote

eyoung100 wrote:
Found this over on Arch: [solved] intel KMS and the blank screen


If that's the case, this very much sounds similar to one of the bugs I referred to earlier in this thread; this is indeed a nice workaround we haven't considered trying in those bugs. Thanks.
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Thu Oct 31, 2013 2:51 am    Post subject: Reply with quote

eyoung100 wrote:
Found this over on Arch: [solved] intel KMS and the blank screen


Uh, thanks ! I followed this thread, instead of using nomodeset, using acpi_backlight=vendor did sovle black screen problem(though it still cause a short interval of black screen too).

And I tried startx, this time I encounter a bug in nouveau : a divide error. (I think I should file a bug report for this).

My VIDEO_CARDS now has only intel intel915, and I have ran emerge -uDN world, I don't konw why X
still use nouveau instead of intel915, should I unemerge the nouveau driver manually?
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1411

PostPosted: Thu Oct 31, 2013 3:09 am    Post subject: Reply with quote

Just rebuild xorg-drivers
_________________
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
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1551

PostPosted: Thu Oct 31, 2013 11:40 am    Post subject: Reply with quote

You can also do `emerge @x11-module-rebuild` to rebuild them.
Back to top
View user's profile Send private message
lcx
n00b
n00b


Joined: 23 Sep 2013
Posts: 40

PostPosted: Thu Oct 31, 2013 3:16 pm    Post subject: Reply with quote

TomWij wrote:
You can also do `emerge @x11-module-rebuild` to rebuild them.


Thanks for this tips. Also thank eyoung100 and other guys.

A sole emerge @x11-module-rebuild or emerge xorg-drivers won't get rid of
the nouveau drivers, so I manually ran emerge -C xf86-video-nouveau.

Now X works with the Intel graphics card and I got a desktop environment running.

Next I will try the nVidia cards. Just a question: Why I don't need bumblebee if I use proprietary
nvidia blobs? Why nouveau need it ?

Thanks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Oct 31, 2013 8:52 pm    Post subject: Reply with quote

lcx,

emerge nvida-drivers then read
Code:
less /usr/share/doc/nvidia-drivers-331.17/README.bz2
Your version number may differ.

You don't need it all but its good reading.
I think its chapters 33 and 36 that are key
_________________
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: Fri Nov 01, 2013 12:23 pm    Post subject: Reply with quote

NeddySeagoon wrote:
lcx,

emerge nvida-drivers then read
Code:
less /usr/share/doc/nvidia-drivers-331.17/README.bz2
Your version number may differ.

You don't need it all but its good reading.
I think its chapters 33 and 36 that are key


Thanks, I will try.
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 Previous  1, 2
Page 2 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