View previous topic :: View next topic |
Author |
Message |
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Tue Oct 29, 2013 10:25 pm Post subject: |
|
|
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 |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Tue Oct 29, 2013 10:44 pm Post subject: |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Wed Oct 30, 2013 12:38 am Post subject: |
|
|
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 |
|
|
lcx n00b
Joined: 23 Sep 2013 Posts: 40
|
Posted: Wed Oct 30, 2013 3:15 am Post subject: |
|
|
VoidMage wrote: | eyoung100 wrote: |
- 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 |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
lcx n00b
Joined: 23 Sep 2013 Posts: 40
|
Posted: Wed Oct 30, 2013 5:42 am Post subject: |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Wed Oct 30, 2013 11:40 am Post subject: |
|
|
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 |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Oct 30, 2013 2:03 pm Post subject: |
|
|
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:
- Remove the nouveau driver, and leave nomodeset=1, and have no X.
- 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.
- 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.
- 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 |
|
|
lcx n00b
Joined: 23 Sep 2013 Posts: 40
|
Posted: Wed Oct 30, 2013 2:22 pm Post subject: |
|
|
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 |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Oct 30, 2013 2:36 pm Post subject: |
|
|
Based on the output, set:
Code: | USE="<other useflags> libkms xorg"
VIDEO_CARDS="intel intel915 -nouveau nvidia"
INPUT_DEVICES="evdev" |
Then:
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 |
|
|
lcx n00b
Joined: 23 Sep 2013 Posts: 40
|
Posted: Wed Oct 30, 2013 3:31 pm Post subject: |
|
|
eyoung100 wrote: | Based on the output, set:
Code: | USE="<other useflags> libkms xorg"
VIDEO_CARDS="intel intel915 -nouveau nvidia"
INPUT_DEVICES="evdev" |
Then:
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 , and didn't pass nomodeset.
Unsurprisingly, black screen... |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Oct 30, 2013 4:33 pm Post subject: |
|
|
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
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 |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Wed Oct 30, 2013 10:24 pm Post subject: |
|
|
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 |
|
|
lcx n00b
Joined: 23 Sep 2013 Posts: 40
|
Posted: Thu Oct 31, 2013 2:51 am Post subject: |
|
|
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 |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Thu Oct 31, 2013 11:40 am Post subject: |
|
|
You can also do `emerge @x11-module-rebuild` to rebuild them. |
|
Back to top |
|
|
lcx n00b
Joined: 23 Sep 2013 Posts: 40
|
Posted: Thu Oct 31, 2013 3:16 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Thu Oct 31, 2013 8:52 pm Post subject: |
|
|
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 |
|
|
lcx n00b
Joined: 23 Sep 2013 Posts: 40
|
Posted: Fri Nov 01, 2013 12:23 pm Post subject: |
|
|
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 |
|
|
|