Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved][Optimus/Bumblebee] Impossible to load nvidia module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Sat Sep 26, 2015 6:01 pm    Post subject: [Solved][Optimus/Bumblebee] Impossible to load nvidia module Reply with quote

Hello everyone,

It's my first Gentoo and i'm not able to load nvidia module...
I've a Optimus Card:
Code:
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
   DeviceName:  Onboard IGD
   Subsystem: Micro-Star International Co., Ltd. [MSI] 3rd Gen Core processor Graphics Controller
   Flags: bus master, fast devsel, latency 0, IRQ 25
   Memory at f6400000 (64-bit, non-prefetchable) [size=4M]
   Memory at d0000000 (64-bit, prefetchable) [size=256M]
   I/O ports at f000 [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
   Kernel driver in use: i915

01:00.0 VGA compatible controller: NVIDIA Corporation GK104M [GeForce GTX 675MX] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Micro-Star International Co., Ltd. [MSI] GK104M [GeForce GTX 675MX]
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Memory at f5000000 (32-bit, non-prefetchable) [size=16M]
   Memory at e0000000 (64-bit, prefetchable) [size=256M]
   Memory at f0000000 (64-bit, prefetchable) [size=32M]
   I/O ports at e000 [size=128]
   Expansion ROM at f6000000 [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: nvidia
   Kernel modules: nvidia


So i try to use Bumblebee, but ...
Code:
X.Org X Server 1.16.4
Release Date: 2014-12-20
[   886.554] X Protocol Version 11, Revision 0
[   886.554] Build Operating System: Linux 3.14.48-std454-amd64 x86_64 Gentoo
[   886.554] Current Operating System: Linux Eternal-Storm 4.0.5-gentoo #1 SMP Sat Sep 26 17:42:55 CEST 2015 x86_64
[   886.554] Kernel command line: \EFI\Gentoo\kernel-gentoo-x86_64-4.0.5-gentoo ro root=UUID=47bf98bc-6072-4449-88b2-c4402e8fd1e5 initrd=EFI\Gentoo\initramfs-gentoo-x86_64-4.0.5-gentoo
[   886.554] Build Date: 06 August 2015  03:16:06AM
[   886.554] 
[   886.554] Current version of pixman: 0.32.8
[   886.554]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   886.554] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   886.555] (==) Log file: "/var/log/Xorg.7.log", Time: Sat Sep 26 18:02:50 2015
[   886.555] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[   886.555] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[   886.555] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   886.555] (==) ServerLayout "Layout Nvidia"
[   886.555] (**) |-->Screen "Screen Nvidia" (0)
[   886.555] (**) |   |-->Monitor "<default monitor>"
[   886.555] (**) |   |-->Device "DiscreteNvidia"
[   886.555] (==) No monitor specified for screen "Screen Nvidia".
        Using a default monitor configuration.
[   886.555] (**) Option "AutoAddDevices" "false"
[   886.555] (**) Option "AutoAddGPU" "false"
[   886.555] (**) Not automatically adding devices
[   886.555] (==) Automatically enabling devices
[   886.555] (**) Not automatically adding GPU devices
[   886.555] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[   886.555]    Entry deleted from font path.
[   886.555] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   886.555]    Entry deleted from font path.
[   886.555] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   886.555]    Entry deleted from font path.
[   886.555] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   886.555]    Entry deleted from font path.
[   886.555] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[   886.555]    Entry deleted from font path.
[   886.555] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[   886.555]    Entry deleted from font path.
[   886.555] (==) FontPath set to:
       
[   886.555] (++) ModulePath set to "/lib64/modules/4.0.5-gentoo/video/"
[   886.555] (==) |-->Input Device "<default pointer>"
[   886.555] (==) |-->Input Device "<default keyboard>"
[   886.555] (==) The core pointer device wasn't specified explicitly in the layout.
        Using the default mouse configuration.
[   886.555] (==) The core keyboard device wasn't specified explicitly in the layout.
        Using the default keyboard configuration.
[   886.555] (II) Loader magic: 0x7f3b62b9fc80
[   886.555] (II) Module ABI versions:
[   886.555]    X.Org ANSI C Emulation: 0.4
[   886.555]    X.Org Video Driver: 18.0
[   886.555]    X.Org XInput driver : 21.0
[   886.555]    X.Org Server Extension : 8.0
[   886.555] (II) xfree86: Adding drm device (/dev/dri/card1)
[   886.555] (II) xfree86: Adding drm device (/dev/dri/card0)
[   886.555] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[   886.556] (--) PCI:*(0:1:0:0) 10de:11a7:1462:10d9 rev 161, Mem @ 0xf5000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[   886.556] (II) LoadModule: "glx"
[   886.556] (WW) Warning, couldn't open module glx
[   886.556] (II) UnloadModule: "glx"
[   886.556] (II) Unloading glx
[   886.556] (EE) Failed to load module "glx" (module does not exist, 0)
[   886.556] (II) LoadModule: "nvidia"
[   886.556] (WW) Warning, couldn't open module nvidia
[   886.556] (II) UnloadModule: "nvidia"
[   886.556] (II) Unloading nvidia
[   886.556] (EE) Failed to load module "nvidia" (module does not exist, 0)
[   886.556] (II) LoadModule: "mouse"
[   886.556] (WW) Warning, couldn't open module mouse
[   886.556] (II) UnloadModule: "mouse"
[   886.556] (II) Unloading mouse
[   886.556] (EE) Failed to load module "mouse" (module does not exist, 0)
[   886.556] (II) LoadModule: "kbd"
[   886.556] (WW) Warning, couldn't open module kbd
[   886.556] (II) UnloadModule: "kbd"
[   886.556] (II) Unloading kbd
[   886.556] (EE) Failed to load module "kbd" (module does not exist, 0)
[   886.556] (EE) No drivers available.
[   886.556] (EE)
Fatal server error:
[   886.556] (EE) no screens found(EE)
[   886.556] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   886.556] (EE) Please also check the log file at "/var/log/Xorg.7.log" for additional information.
[   886.556] (EE)


The best part is that i can modprobe nvidia, and it's work (i can see nvidia with lsmod).
When i launch optirun xorg can't load nvidia but with lsmod i can see that it's really load (i have remove it before).
I have reset my kernel to the generic kernel (+EFI, +wireless card, +modeseting intel).
I have emerge nvidia-drivers after that.

This is my make.conf :
Code:
MAKEOPTS="-j9"

CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -msse2 -msse3 -mmmx"
CXXFLAGS="${CFLAGS}"

CHOST="x86_64-pc-linux-gnu"

USE="acpi alsa -bindist bluetooth cairo connman css curl cxx dbus dvd flac jpeg git -gnome gtk gtk3 hardened hidpi -ios -ipod ipv6 jack -java -kde latex ncurses opengl png -qt4 -qt5 strong-optimization strong-security sockets sqlite threads truetype udev unicode vim-syntax wifi X zsh-completion"

PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"

## (For mouse, keyboard, and Synaptics touchpad support)
INPUT_DEVICES="evdev synaptics"
## Graphic card
VIDEO_CARDS="nvidia intel i915 i965"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

FEATURES="${FEATURES} metadata-transfer"


Any clue about this problem? I tried a lot of things since one week.

Thanks !


Last edited by Celes_Eternal on Tue Sep 29, 2015 8:20 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Sep 26, 2015 6:36 pm    Post subject: Reply with quote

Celes_Eternal,

First a little advice about the way the forums software works.

The is a search called 'unanswered posts'. It shows up all new topics with no responses.
When you post further information in a new post' answering yourself, your topic drops out of the 'unanswered posts' search.
You should edit your original post until you get a response.

By way of help, Optimus is a graphics card and a half, not two complete graphics systems.
Only the intel graphics is complete. You must always use the Intel graphics for the screen refresh.

The intel chip set must be configured, usually with the modesetting driver. Its not mentioned in your logs.
Nor is it in
Code:
VIDEO_CARDS="nvidia intel i915 i965"

Once the intel card is set up to drive the display, you can choose to use either chip to draw the images into the pixel buffer.

If you want some easy steps, make Xorg work with the intel driver.
When that works, make the Intel work with the modesetting driver.
After that, add nVidia.

Xorg should work with no xorg.conf at all if your Intel set up is complete and correct.
You will get a USA keyboard map and a right handed mouse.
_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Sat Sep 26, 2015 6:46 pm    Post subject: Reply with quote

Thanks for your answer, i have miss click edit sorry.
About modesetting, it's the native way to run Optimus, not with Bumblebee i think no?
Actually intel is running on my laptop (and before that i tried the native way and modesetting worked too)

Bumblebee try to run this :

Code:
Section "ServerLayout"
  Identifier  "Layout Nvidia"
  Screen      0 "Screen Nvidia"
  Option      "AutoAddDevices" "false"
  Option      "AutoAddGPU" "false"
EndSection


Section "Screen"
  Identifier    "Screen Nvidia"
  Device        "DiscreteNvidia"
  DefaultDepth  24

  Option        "Monitor-LVDS" "Internal Panel"
  Option        "Monitor-VGA" "External VGA Monitor"
  Option         "UseDisplayDevice"  "none

  SubSection "Display"
    Depth  24
    Modes  "nvidia-auto-select"
  EndSubSection
EndSection

Section "Device"
  Identifier  "DiscreteNvidia"
  Driver      "nvidia"
  VendorName  "NVIDIA Corporation"
  BusID       "PCI:1:0:0"

  Option      "ProbeAllGpus" "false"
  Option      "NoLogo" "true"
  Option      "UseEDID" "false"
  Option      "UseDisplayDevice" "none"
EndSection


That's where i can't load nvidia module.
I tried to test in my main xorg.conf with just a section module, but still can't load (doesn't exist).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Sep 26, 2015 7:18 pm    Post subject: Reply with quote

Celes_Eternal,

I don't understand how that Bumblebee config works. I'm not saying it doesn't. Just I don't understand it.

The nVidia graphics chip has no connection to the display whatever. No EDID, so it cannot determine the display capabilities.
No graphics output, so it cannot refresh the screen either.

So how does Bumblebee set up the nVidia chip to draw the image the right size and how does it transfer the image to the display surface?

There are two parts to the nVidia driver. The kernel part which you see in lsmod, when its loaded and an Xorg part, also called nVidia, whic you see Xorg claim as missing in your log.

What does
Code:
eselect opengl list
show?
The * should be next to nVidia.
_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Sun Sep 27, 2015 1:27 am    Post subject: Reply with quote

Yes, i think i didn't try to learn enought about Bumblebee itself.. That's a good idea.

About opengl :
Code:
[1]   xorg-x11 *


It's the only things that i can see.
But i don't think it's a Bumblebee problem, because xorg never succeed to load nvidia even in my main xorg.conf.
That's why i posted here, because it seems to be a "system" problem, but i don't really find information on it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Sep 27, 2015 8:02 am    Post subject: Reply with quote

Celes_Eternal,

nvidia shouldbe listed in
Code:
eselect opengl list

That its not listed suggests that nvidia-drivers is not installed.
That suggestion is contradicted by the fact that you see nvidia in lsmod.

Did you emerge nvidia-drivers or get the .run file file from the nvidia site?
The .run file alone will not work on gentoo. emerge nvidia-drivers uses the .run file and does a lot more besides.
One ot the things it does is set up symbolic links and choose the nvidia OpenGL.

If you installed the .run file from the nvidia site, you must remove it then do
Code:
emerge -1 nvidia-drivers

_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Sun Sep 27, 2015 7:00 pm    Post subject: Reply with quote

Infortunatly i didn't use nvidia installer, i did emege -avq nvidia-drivers.

When i run emerge -1 nvidia-drivers, it seems that i have some errors:

Code:
>>> Source compiled.
>>> Test phase [not enabled]: x11-drivers/nvidia-drivers-355.11

>>> Install nvidia-drivers-355.11 into /var/tmp/portage/x11-drivers/nvidia-drivers-355.11/image/ category x11-drivers
 * Installing nvidia module
>>> Completed installing nvidia-drivers-355.11 into /var/tmp/portage/x11-drivers/nvidia-drivers-355.11/image/

ecompressdir: bzip2 -9 /usr/share/man
ecompressdir: bzip2 -9 /usr/share/doc

>>> Installing (1 of 1) x11-drivers/nvidia-drivers-355.11::gentoo
 * >>> SetUID: [chmod go-r] /opt/bin/nvidia-modprobe ...                                                                                                                                                     [ ok ]
 * Removing x11-drivers/nvidia-drivers-355.11 from moduledb.
 * Updating module dependencies for 4.0.5-gentoo ...                                                                                                                                                         [ ok ]
 * Adding module to moduledb.
!!! Error: Unrecognized option: nvidia
exiting
 * You have elected to not install the X.org driver. Along with
 * this the OpenGL libraries and VDPAU libraries were not
 * installed. Additionally, once the driver is loaded your card
 * and fan will run at max speed which may not be desirable.
 * Use the 'nvidia-smi' init script to have your card and fan
 * speed scale appropriately.
 *
 * USE=tools controls whether the nvidia-settings application
 * is installed. If you would like to use it, enable that
 * flag and re-emerge this ebuild. Optionally you can install
 * media-video/nvidia-settings
 *

 * Messages for package x11-drivers/nvidia-drivers-355.11:

 * You have elected to not install the X.org driver. Along with
 * this the OpenGL libraries and VDPAU libraries were not
 * installed. Additionally, once the driver is loaded your card
 * and fan will run at max speed which may not be desirable.
 * Use the 'nvidia-smi' init script to have your card and fan
 * speed scale appropriately.
 *
 * USE=tools controls whether the nvidia-settings application
 * is installed. If you would like to use it, enable that
 * flag and re-emerge this ebuild. Optionally you can install
 * media-video/nvidia-settings
 *
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: dev-libs/nettle-3.1.1
 *  - /usr/lib64/libnettle.so.4
 *  - /usr/lib64/libnettle.so.4.7
 *      used by /usr/bin/qemu-img (app-emulation/qemu-2.4.0-r1)
 *      used by /usr/bin/qemu-io (app-emulation/qemu-2.4.0-r1)
 *      used by /usr/bin/qemu-nbd (app-emulation/qemu-2.4.0-r1)
 *      used by 4 other files
 *  - /usr/lib64/libhogweed.so.2
 *  - /usr/lib64/libhogweed.so.2.5
 *      used by /usr/lib64/libgnutls-openssl.so.27.0.2 (net-libs/gnutls-3.3.17.1)
 *      used by /usr/lib64/libgnutls.so.28.41.9 (net-libs/gnutls-3.3.17.1)
 *      used by /usr/lib64/libgnutlsxx.so.28.1.0 (net-libs/gnutls-3.3.17.1)
Use emerge @preserved-rebuild to rebuild packages using these libraries


Is it normal? I still don't see nvidia with eselect opengl list.
Maybe i need to reinstall my gentoo?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Sep 27, 2015 7:49 pm    Post subject: Reply with quote

Celes_Eternal,

It all built into
Code:
>>> Completed installing nvidia-drivers-355.11 into /var/tmp/portage/x11-drivers/nvidia-drivers-355.11/image/
correctly.

Something happesed with the install.
Code:
 * You have elected to not install the X.org driver. Along with
 * this the OpenGL libraries and VDPAU libraries were not
 * installed.

That means you don't have the Xorg part of nvidia-drivers installed, nor do you have the OpenGL drivers, which would appear in
Code:
eselect opengl list


Reinstalling will not fix anything. Gentoo is not a binary distro, so it does not respond to that approach.
All a reinstall will do is give you the opportunity to make different errors.
What you have done is not in fact an error, or you would have an error log in your emerge output. Its something you have chooen to do.

We now have the problem localised to the build and install of nvidia drivers. Lets fix it.

Please post the output of
Code:
emerge -uDNpv nvidia-drivers
so we can see the USE flags you have set.
Hmm maybe not.

Reading the ebuild, it contains
Code:
         if ! use X; then
                elog "You have elected to not install the X.org driver. Along with"
                elog "this the OpenGL libraries and VDPAU libraries were not"
                elog "installed. Additionally, once the driver is loaded your card"
                elog "and fan will run at max speed which may not be desirable."
                elog "Use the 'nvidia-smi' init script to have your card and fan"
                elog "speed scale appropriately."
                elog
        fi

Which translates as if you have USE="-X" set on this ebuild, do not install the things needed to support Xorg.
That means you are building nvidia-drivers without support for Xorg.

What does
Code:
eselect profile list
show the * against?
_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Sun Sep 27, 2015 8:29 pm    Post subject: Reply with quote

Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/mesa-10.3.7-r1::gentoo  USE="classic dri3 egl gallium gbm gles2 llvm nptl pax_kernel udev xa -bindist -debug -gles1 -opencl -openmax -openvg -osmesa -pic (-selinux) -vdpau -wayland -xvmc" VIDEO_CARDS="i915 i965 intel (-freedreno) -ilo -nouveau* -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

x11-libs/libdrm:0

  (x11-libs/libdrm-2.4.59:0/0::gentoo, ebuild scheduled for merge) conflicts with
    >=x11-libs/libdrm-2.4.34[video_cards_nouveau] required by (x11-drivers/xf86-video-nouveau-1.0.11:0/0::gentoo, installed)
                             ^^^^^^^^^^^^^^^^^^^

sys-devel/llvm:0

  (sys-devel/llvm-3.5.0:0/3.5::gentoo, ebuild scheduled for merge) conflicts with
    ~sys-devel/llvm-3.5.0[clang(-),-debug,static-analyzer,abi_x86_64(-)] required by (sys-devel/clang-3.5.0-r100:0/3.5::gentoo, installed)


The use flag about nouveau is not good here, i need to update that (but i did a full update last days).

eselect profile list show exactly the same thing.

Just to be sure, my USE flags:

Code:
net-wireless/bluez test-programs
sys-libs/zlib minizip
dev-libs/libxml2 icu
media-libs/libvpx postproc
www-plugins/lightspark ffmpeg
media-libs/speex ogg
x11-misc/dzen xft
media-gfx/feh jpeg png
sys-devel/gcc graphite
sys-fs/udev gudev
x11-libs/libxcb xkb
x11-libs/cairo xcb
media-gfx/imagemagick jpeg jpeg2k png
net-misc/iputils -caps -filecaps
app-text/texlive extra xetex
app-text/texlive-core xetex
net-nds/openldap cxx sasl
app-text/ghostscript-gpl cups
media-libs/harfbuzz icu
media-sound/mpd  ogg vorbis wavpack
media-libs/flac  ogg
media-sound/ncmpcpp outputs visualizer taglib clock
x11-drivers/nvidia-drivers -pax_kernel
dev-lang/python sqlite
x11-terms/rxvt-unicode 256-color unicode3 xft
media-video/vlc dvd bluray directfb ffmpeg mpeg mad wxwindows aac a52 ogg flac theora oggvorbis matroska freetype truetype bidi xv svga gnutls stream vlm httpd cdda vcd cdio live lua
media-libs/libdrm libkms
media-libs/mesa xa gles2


maybe -pax_kernel is really bad? I need it because i'm on an hardened profile.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Sep 27, 2015 8:50 pm    Post subject: Reply with quote

Celes_Eternal,

That looks like your world file, rather than eselect profile list
Code:
$ eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/13.0
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop
  [4]   default/linux/amd64/13.0/desktop/gnome
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/kde
  [7]   default/linux/amd64/13.0/desktop/kde/systemd
  [8]   default/linux/amd64/13.0/desktop/plasma
  [9]   default/linux/amd64/13.0/desktop/plasma/systemd
  [10]  default/linux/amd64/13.0/developer
  [11]  default/linux/amd64/13.0/no-multilib *
  [12]  default/linux/amd64/13.0/systemd
  [13]  default/linux/amd64/13.0/x32
  [14]  hardened/linux/amd64
  [15]  hardened/linux/amd64/selinux
  [16]  hardened/linux/amd64/no-multilib
  [17]  hardened/linux/amd64/no-multilib/selinux
  [18]  hardened/linux/amd64/x32
  [19]  hardened/linux/musl/amd64
  [20]  hardened/linux/musl/amd64/x32
  [21]  default/linux/uclibc/amd64
  [22]  hardened/linux/uclibc/amd64


I was looking for your USE flags for nvidia-drivers rather than media-libs/mesa too.
_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Sun Sep 27, 2015 10:33 pm    Post subject: Reply with quote

I didn't see that you wanted my profile sorry. I have an amd64 no multilib hardened:

Code:
  [1]   default/linux/amd64/13.0
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop
  [4]   default/linux/amd64/13.0/desktop/gnome
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/kde
  [7]   default/linux/amd64/13.0/desktop/kde/systemd
  [8]   default/linux/amd64/13.0/desktop/plasma
  [9]   default/linux/amd64/13.0/desktop/plasma/systemd
  [10]  default/linux/amd64/13.0/developer
  [11]  default/linux/amd64/13.0/no-multilib
  [12]  default/linux/amd64/13.0/systemd
  [13]  default/linux/amd64/13.0/x32
  [14]  hardened/linux/amd64
  [15]  hardened/linux/amd64/selinux
  [16]  hardened/linux/amd64/no-multilib *
  [17]  hardened/linux/amd64/no-multilib/selinux
  [18]  hardened/linux/amd64/x32
  [19]  hardened/linux/musl/amd64
  [20]  hardened/linux/musl/amd64/x32
  [21]  default/linux/uclibc/amd64
  [22]  hardened/linux/uclibc/amd64


About nvidia-drivers USE flags, i think i have only this one :
Code:
x11-drivers/nvidia-drivers -pax_kernel
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Sep 28, 2015 4:33 pm    Post subject: Reply with quote

Celes_Eternal,

Please check your USE flags.
Code:
$ emerge -pv nvidia-drivers
x11-drivers/nvidia-drivers-355.11-r2::gentoo USE="X tools -acpi -gtk2 -gtk3 (-multilib) -pax_kernel -uvm"


Your
Code:
[16]  hardened/linux/amd64/no-multilib *
profile is minimal.
You need to add all the USE flags you need for a desktop install yourself.
That includes X.

Your
Code:
$ emerge -pv nvidia-drivers
will show -X, which is how you build nvidia-drivers without Xorg support.

For a desktop install you will need X in your USE flags in make.conf, since you will probably want GUI support wherever it is optional.
_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Mon Sep 28, 2015 5:44 pm    Post subject: Reply with quote

You're right, but i have th X flag in my make.conf, and even if i add
Code:
x11-drivers/nvidia-drivers -pax_kernel X
:

Code:
Calculating dependencies... done!
[ebuild   R    ] x11-drivers/nvidia-drivers-355.11::gentoo  USE="acpi gtk3 (-X) -gtk2 (-multilib) -pax_kernel (-tools) -uvm" 0 KiB


I have some error like that when i try to install bumblebee. Do you know why?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Sep 28, 2015 5:58 pm    Post subject: Reply with quote

Celes_Eternal,

The (-X) in
Code:
[ebuild   R    ] x11-drivers/nvidia-drivers-355.11::gentoo  USE="acpi gtk3 (-X) -gtk2 (-multilib) -pax_kernel (-tools) -uvm" 0 KiB

Means that Xorg support is off in your profile, thats what the brackets around a use flag means. You cannot turn it on.

It may be just for x11-drivers/nvidia-drivers, it may be everywhere. Be sure that USE="X" is in make.conf then post the output of
Code:
emerge --info

As nvidia-drivers is a precompiled binary, its quite possible that it will not work on a hardened install.

You can adjust your profile if you really want to but I suspect that USE=-X on nvidia-drivers on a hardened profile is done for a reason.
_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Mon Sep 28, 2015 6:05 pm    Post subject: Reply with quote

That's sad, but it's strange because i have the USE flag X here :

Code:
Portage 2.2.20.1 (python 3.4.3-final-0, hardened/linux/amd64/no-multilib, gcc-4.8.5, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    12197976 total,   9760060 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 26 Sep 2015 14:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

bumblebee
    location: /var/lib/layman/bumblebee
    masters: gentoo
    priority: 0

Installed sets: @dev
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -msse2 -msse3 -mmmx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -msse2 -msse3 -mmmx"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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"
USE="X acl acpi alsa amd64 berkdb bluetooth bzip2 cairo cli connman cracklib crypt css curl cxx dbus dri dvd flac gdbm git gtk gtk3 hardened hidpi iconv ipv6 jack jpeg justify latex mmx mmxext modules ncurses nls nptl opengl openmp pam pax_kernel pcre pie png readline seccomp session sockets sqlite sse sse2 ssl ssp strong-optimization strong-security tcpd threads truetype udev unicode urandom vim-syntax wifi xattr xtpax zlib zsh-completion" 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 ublox 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="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


I can see than my nvidia in VIDEO CARD is not working here.
I'll switch profile and update my system, if it's allow me to use my graphic card i'm ok.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Sep 28, 2015 6:36 pm    Post subject: Reply with quote

Celes_Eternal,

How did you install Gentoo?

Did you use the normal nomultilib stage3 then select the hardened/linux/amd64/no-multilib profile or the hardened stage3 ?
Code:
ls -l /
may tell you. The stage3 may still be there.

What does
Code:
gcc-config -l
show?

Your kernel is 4.0.5-gentoo. That tells that its missing the hardened patch set.

A hardened system requires a hardened gcc, glibc, kernel and that all the programs be compiled with the hardened gcc.
I know its possible to migrate from non hardened to hardened but I am unsure about the other way.
_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Mon Sep 28, 2015 8:12 pm    Post subject: Reply with quote

I have directly dowload the hardened no multilib stage3 (i deleted the archive).

about gcc-config -l you're right:
Code:
gcc-config -l
 [1] x86_64-pc-linux-gnu-4.8.5 *
 [2] x86_64-pc-linux-gnu-4.8.5-hardenednopie
 [3] x86_64-pc-linux-gnu-4.8.5-hardenednopiessp
 [4] x86_64-pc-linux-gnu-4.8.5-hardenednossp
 [5] x86_64-pc-linux-gnu-4.8.5-vanilla


I don't know why, i have update gcc, maybe i had switch my profile at this moment? It seems strange.
And sorry chromium is affected by my update, it will take some time.

About my kernel, it's really strange because i have dowload gentoo-source a lot of time and my hardened profile was on. Maybe gcc config interfere?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Sep 28, 2015 8:52 pm    Post subject: Reply with quote

Celes_Eternal,

Thats a hardened gcc you have there.
gentoo-sources does not contain the hardening patch set. For that you need hardened-sources.

If you wish to attempt the conversion to non hardened, choose the
Code:
[11]  default/linux/amd64/13.0/no-multilib
profile.
Set gcc to
Code:
[5] x86_64-pc-linux-gnu-4.8.5-vanilla
follow the on screen instructions.

Then run
Code:
/usr/portage/scripts/bootstrap.sh
If it completes, you are probably good to do the rest.
This script builds your toolchain. Its actually the stage1 of a stage1 install.

Do not interrupt it as it has no resume facility.

When that completes, choose your new gcc and try
Code:
emerge -e @world
to rebuild your install with your new gcc.
You can add -av into the emerge command if you would like to check USE flags first.

Don't forget to rebuild your kernel too.
_________________
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
Celes_Eternal
n00b
n00b


Joined: 23 Dec 2014
Posts: 46

PostPosted: Tue Sep 29, 2015 8:07 pm    Post subject: Reply with quote

Thanks for your time!

It works pretty nice, you really saved my life. I can work now!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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