Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[half solved] Nvidia not working on Acer laptop
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Wed Jul 26, 2017 3:04 pm    Post subject: [half solved] Nvidia not working on Acer laptop Reply with quote

Hi!

I'm facing some troubles with my laptop with nVidia card; pretty like this https://forums.gentoo.org/viewtopic-t-1066024.html but my case are still unsolved.

Code:
 # glxinfo
name of display: :0.0
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".

Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".


Readind the thread I've linked above, I'm thinking if this
Code:
 # glxgears
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual

may be because I have VIDEO_CARDS="nvidia intel" in my make.conf

Code:
# emerge --info
Portage 2.3.6 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, gcc-6.3.0, glibc-2.24-r3, 4.12.3-gentoo x86_64)
=================================================================
System uname: Linux-4.12.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-5500U_CPU_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:     8090256 total,   6968588 free
KiB Swap:    9081852 total,   9081852 free
Timestamp of repository gentoo: Sun, 23 Jul 2017 05:00:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.9.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
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"
CXXFLAGS="-march=native -fomit-frame-pointer -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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ http://gentoo.osuosl.org/"
LANG="pt_BR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif glamor gpm gstreamer gtk gtk3 iconv ipv6 jit jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput evdev mouse keyboard synaptics" KERNEL="linux" L10N="pt-BR pt" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pt_BR pt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia intel" XFCE_PLUGINS="brightness clock trash power" 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 have readed a lot about nvidia x nouveau, have followed wiki's order's and my card seems to be not properly configured.

So, I'm asking some directions. Thanks in advance.



EDIT____________________________________________________________________

I changed VIDEO_CARDS="nvidia" and recompiled @world, but get the same result: after a boot, just the text cursor blinking at upper left corner; ALT+F4 leads me to a 80 char screen (big big characters.
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton


Last edited by HerrSchafer on Tue Aug 22, 2017 7:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jul 27, 2017 4:37 pm    Post subject: Reply with quote

suggest running wgetpaste -t /usr/src/linux/.config and wgetpaste -t /var/log/Xorg.0.log and dmesg | wgetpaste -t and posting the url's returned here.
Are you booting in uefi or legacy bios mode.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 832
Location: Villach, Austria

PostPosted: Thu Jul 27, 2017 10:40 pm    Post subject: Reply with quote

Is the nvidia module being loaded?
Did you select nvidia's opengl implementation with eselect opengl?
Back to top
View user's profile Send private message
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Fri Jul 28, 2017 4:44 pm    Post subject: Reply with quote

DONAHUE wrote:
suggest running wgetpaste -t /usr/src/linux/.config and wgetpaste -t /var/log/Xorg.0.log and dmesg | wgetpaste -t and posting the url's returned here.
Are you booting in uefi or legacy bios mode.


wgetpaste -t /usr/src/linux/.config
https://paste.pound-python.org/show/IgrLx4DjZseF0Io5TDU0/


wgetpaste -t /var/log/Xorg.0.log
https://paste.pound-python.org/show/5E5nkSlxqIz8a3jr6Ljc/


dmesg | wgetpaste -t
https://paste.pound-python.org/show/GCNNxQvKzz4jpCN0IujN/


Booting in legacy bios mode.

By the way, thanks for this hint; wgetpaste is very usefull ! I have installed gentoo again because a new 1TB HDD.. 8) So, it is a brand new install.
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Fri Jul 28, 2017 4:56 pm    Post subject: Reply with quote

devilheart wrote:
Is the nvidia module being loaded?

How can I be sure?
devilheart wrote:
Did you select nvidia's opengl implementation with eselect opengl?

Yes! Both opengl and opencl.
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri Jul 28, 2017 10:13 pm    Post subject: Reply with quote

CONFIG_FB_EFI=y -> might be a problem, certainly not useful on a legacy bios booting system
_________________
Defund the FCC.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Sat Jul 29, 2017 1:46 pm    Post subject: Reply with quote

Code:
[  2316.637] (II) Server terminated successfully (0). Closing log file.

Your xorg is working, i know it sucks to say that when you have nothing on screen :)

Code:
[    26.599] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[    26.599] (II) NVIDIA(0): Validated MetaModes:
[    26.599] (II) NVIDIA(0):     "NULL"
[    26.599] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    26.599] (WW) NVIDIA(0): Unable to get display device for DPI computation.

Your card is not detecting any monitor

I think your answer is there:
Code:
[    26.599] (II) NVIDIA(0): NVIDIA GPU GeForce 820M (GF117) at PCI:4:0:0 (GPU-0)

Your card must use optimus nvidia tech, you need some guide about that, like https://wiki.gentoo.org/wiki/NVIDIA/Optimus
Back to top
View user's profile Send private message
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Sat Jul 29, 2017 1:56 pm    Post subject: Reply with quote

krinn,

I'll try it! It makes sense!


Edit__________

Following that thread, I could go one step further; there is no more error message, but I got a black screen (without backlight).

Code:
#xrandr
Can't open display

I have made the configuration for this situation, described in the article, but got no effective result. Where went I go wrong?

I have switched to nouveau drivers, and the machine seems to be ok; how can I be sure about 3D acceleration?
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Tue Aug 22, 2017 7:55 pm    Post subject: Reply with quote

I could get a result from GLXINFO but I don't know how to read it; my doubt was about being sure if things were working...

Code:
#glxinfo | grep rendering
direct rendering: Yes


So, I think things are working; GLXGEARS is also working, but as I´ve read somewehre else, it is not a valid benchmark.

I will keep trying NVIDIA, but for now, NOUVEAU is working; thanks for helping me.
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Aug 22, 2017 8:11 pm    Post subject: Reply with quote

HerrSchafer,

Code:
[    25.921] (--) PCI:*(0:0:2:0) 8086:1616:1025:0940 rev 9, Mem @ 0xc2000000/16777216, 0xd0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[    25.921] (--) PCI: (0:4:0:0) 10de:1140:1025:0941 rev 161, Mem @ 0xc3000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x00003000/128
...
[    26.599] (II) NVIDIA(0): Validated MetaModes:
[    26.599] (II) NVIDIA(0):     "NULL"


Looks like an Optimus graphics system, so the nVidia card is not actually connected to the display.
It shares a pixel buffer with the intel card and either can render images beut only the intel card can put them on the display.
_________________
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Tue Aug 22, 2017 8:34 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Looks like an Optimus graphics system, so the nVidia card is not actually connected to the display.
It shares a pixel buffer with the intel card and either can render images beut only the intel card can put them on the display.


Yep! But I couldn't make things work properly with NVIDIA drivers; I use NOUVEAU instead and things naturally worked.
As I can see, proprietary drivers are hard to set; many fine adjusts that lasts until the next update... Am I right?
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Aug 22, 2017 9:14 pm    Post subject: Reply with quote

HerrSchafer,

There is not much difference in the setup between the two drivers for an Optimus system.

Your Xorg.0.log shows only the nvidia chipset in use. That ensures you get a blank screen.
You must also configure the Intel chip set to refresh the display.
That's a feature of the Optimus hardware design.

Are you sure you ace actually using nouveau when you think you are?

Its not enough for nouveau/nvidia and intel/modesetting to appear is Xorg.0.log. That only shows the devices that are configured for use.
You need the xrandr commands to choose to use nouveau/nvidia when Xorg starts.

The nouveau set up is likely to fall back to intel/modesetting without telling you than the nvidia setup.

The main difference is at kernel update time. You must rebuild nvidia-drivers against your new kernel.
_________________
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Wed Aug 23, 2017 12:46 pm    Post subject: Reply with quote

NeddySeagoon wrote:
HerrSchafer,
Are you sure you ace actually using nouveau when you think you are?


Shame on me! Sorry, those files are outdated... please consider this ones:

wgetpaste -t /usr/src/linux/.config
https://paste.pound-python.org/show/Lw8etO2MWi9gFTAVzH2z/

wgetpaste -t /var/log/Xorg.0.log
https://paste.pound-python.org/show/aoAAZGQFdx5nLGmiFNgw/

dmesg | wgetpaste -t
https://paste.pound-python.org/show/8b78mS1rLJIFkRgjEBfY/

/etc/portage/make.conf
Code:
#   Compiling Stuff

CFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="mmx sse sse2 sse4 mmxext"
MAKEOPTS="-j5"

#   Portage Stuff

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

#   USE Flags

USEBAD="-bindist -bluetooth -branding -firefox -gnome -gnome-keyring -kde -phonon -qt3support -qt4 -qt5 -samba -systemd"
USESYS="dri dri3 egl ffmpeg gstreamer gtk gtk3 introspection networkmanager pulseaudio  vdpau xvmc"
USEOTH="infinality jit"
USE="${USESYS} ${USEOTH} ${USEBAD}"

#   User Stuff

ACCEPT_LICENSE="*"
ACCEPT_KEYWORDS="amd64"
ALSA_CARDS="hda-intel"
INPUT_DEVICES="evdev keyboard mouse synaptics"
FEATURES="parallel-fetch"
LINGUAS="pt_BR pt"
L10N="pt-BR pt"
SANE_BACKENDS="epson epson2"
VIDEO_CARDS="nouveau i915 i965 intel"
XFCE_PLUGINS="brightness clock trash power"

#   Gentoo Mirrors

GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ http://mirrors.evowise.com/gentoo/ http://gentoo.osuosl.org/"


Code:
# lspci
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
02:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
03:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
04:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)

_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 23, 2017 1:09 pm    Post subject: Reply with quote

HerrSchafer,

Your /var/log/Xorg.0.log shows that both the nouveau and intel drivers are configured for use.
That you don't get a black screen, shows that the intel chip is driving the display.

It says nothing about which chip is doing the image rendering though.

What do you have in your users ~/.xinitrc ?
What does xrandr --listproviders show?

If you don't select the nvidia chip in the Xorg startup sequence, it won't be used.

If you want to use nvidia-drivers, the wiki page tells how.
_________________
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Wed Aug 23, 2017 1:36 pm    Post subject: Reply with quote

NeddySeagoon wrote:
What do you have in your users ~/.xinitrc ?

Code:
acer /home/anselmo # less /home/anselmo/.xinitrc
/home/anselmo/.xinitrc: Arquivo ou diretório não encontrado

(file not found)

Quote:
What does xrandr --listproviders show?

Code:
# xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x88 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:Intel
Provider 1: id: 0x5f cap: 0x5, Source Output, Source Offload crtcs: 0 outputs: 0 associated providers: 0 name:nouveau


Quote:
If you don't select the nvidia chip in the Xorg startup sequence, it won't be used.

How can I do it? For OPENGL, I get just one option:
Code:
 # eselect opengl list
Available OpenGL implementations:
  [1]   xorg-x11 *


Quote:
If you want to use nvidia-drivers, the wiki page tells how.

But for this, I must use NVIDIA instead NOUVEAU; last time I did it, got a blank screen. I need this machine working beause of my job and for virtual classes.
I only have the time needed at weekends; to do so, I'll switch to NVIDIA drivers (what requires kernel changes) and test it; if things go wrong, I'll switch back to NOUVEAU, in order to use the machine. Am I right? Is it a good idea to have 2 kernel images (one for each driver)?

Last question: some days ago I found nouveau-firmware package, but now I can't find it anymore. I think nvidia-firmware will not work with nouveau drivers... What should I do?
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 23, 2017 3:09 pm    Post subject: Reply with quote

HerrSchafer,

Lets take the path of least resistance.

If you use startx to start Xorg, You heed a
Code:
 xrandr --setprovideroutputsource ...
command there to choose thu nvdia chip.
As you get Arquivo ou diretório não encontrado when you look at that file, its safe to assume that you start Xorg some other way.

You still need that xrandr --setprovideroutputsource ... in your startup sequence but it goes in a different file.
Without that, the intel graphics will be used.

Exactly where that command goes depends on how you start Xorg.

If you haven't added it anywhere, the nvidia chipset is not being used.
_________________
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Wed Aug 23, 2017 3:18 pm    Post subject: Reply with quote

I use lightdm to start XFCE.
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 23, 2017 4:30 pm    Post subject: Reply with quote

HerrSchafer,

I can't find a Gentoo Wiki page that describes Optimus, nouveau and lightdm set up.
Once you have it working, maybe you would like to contribute the solution to the wiki?

The Arch wiki will be fairly close.

There are some notable differences.
The page is written for the nvidia driver, so the part that says

arch wiki:
/etc/lightdm/display_setup.sh

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

will need to be changed to suit nouveau.
_________________
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Wed Aug 23, 2017 4:48 pm    Post subject: Reply with quote

NeddySeagoon,

Is it possible for Optimus to work with nouveau?

Just for testing, I tried the command:
Code:
# xrandr --setprovideroutputsource modesetting NOUVEAU-0
Could not find provider with name modesetting

I was expecting an error because of NOUVEAU, but then this happens... :(


Code:
# xrandr --setprovideroutputsource 1
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x5f
  Serial number of failed request:  16
  Current serial number in output stream:  17

(I tried this using the same thinking of eselect, based on output from --listproviders argument)
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 23, 2017 5:21 pm    Post subject: Reply with quote

HerrSchafer,

Code:
# xrandr --setprovideroutputsource modesetting NOUVEAU-0
Could not find provider with name modesetting

It did not like modesetting.

Depending on your Xorg version, its either built into Xorg, or its a driver that needs to be listed in VIDEO_CARDS.
It did not read NOUVEAU-0 because of the prior error.

Try
Code:
emerge -1 xf86-video-modesettting -av

If thats flagged as N for new, you probably need it. If its R for rebuild, you already have it and if its not available, you don't need it.
_________________
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Wed Aug 23, 2017 5:41 pm    Post subject: Reply with quote

Strange Things happening outside netflix... (LOL)

Code:
emerge -1 xf86-video-modesettting -av

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "xf86-video-modesettting".

emerge: searching for similar names...
emerge: Maybe you meant any of these: x11-drivers/xf86-video-modesetting, x11-drivers/xf86-video-tseng, x11-drivers/xf86-video-geode?


xf86-video-modesetting ebuild is there, but emerge complains wrong name...


Code:
 # emerge -s modesetting
 
[ Results for search key : modesetting ]
Searching...

*  x11-drivers/xf86-video-modesetting
      Latest version available: 0.9.0
      Latest version installed: [ Not Installed ]
      Size of files: 298 KiB
      Homepage:      https://www.x.org/wiki/
      Description:   Unaccelerated generic driver for kernel modesetting
      License:       MIT

[ Applications found : 1 ]

Ok, I found it! And it is not installed. Using CTRL+C CTRL+V I tried to emerge it:

Code:
# emerge -av x11-drivers/xf86-video-modesetting

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

Calculating dependencies... done!
[ebuild  N     ] x11-drivers/xf86-video-modesetting-0.9.0::gentoo  298 KiB
[blocks B      ] x11-drivers/xf86-video-modesetting ("x11-drivers/xf86-video-modesetting" is blocking x11-base/xorg-server-1.19.3)

Total: 1 package (1 new), Size of downloads: 298 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (x11-drivers/xf86-video-modesetting-0.9.0:0/0::gentoo, ebuild scheduled for merge) pulled in by
    x11-drivers/xf86-video-modesetting


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


May it be because of my make.conf?
Code:
VIDEO_CARDS="nouveau i915 i965 intel"

_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 23, 2017 6:09 pm    Post subject: Reply with quote

HerrSchafer,

Code:
Calculating dependencies... done!
[ebuild  N     ] x11-drivers/xf86-video-modesetting-0.9.0::gentoo  298 KiB
[blocks B      ] x11-drivers/xf86-video-modesetting ("x11-drivers/xf86-video-modesetting" is blocking x11-base/xorg-server-1.19.3)


That's fine, you have the built into Xorg version, so you cannot install the separate package.
_________________
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Wed Aug 23, 2017 6:16 pm    Post subject: Reply with quote

NeddySeagoon wrote:
HerrSchafer,

That's fine, you have the built into Xorg version, so you cannot install the separate package.


I think I don't understand this deeply...

xf86-video-modesetting is already there?
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 23, 2017 6:51 pm    Post subject: Reply with quote

HerrSchafer,

Correct. Its included in Xorg in the version of Xorg that you have.
The separate xf86-video-modesetting is only for older versions of Xorg.
Portage knows this and will not let you install it.

The rest of this is (educated) guesswork. At present, your Xorg is using the Intel driver for the intel chipset.
If you configure Xorg to use modesetting instead, the
Code:
# xrandr --setprovideroutputsource modesetting NOUVEAU-0
Could not find provider with name modesetting
may get past modesetting and fail at NOUVEAU instead. :)
_________________
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
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Mon Aug 28, 2017 12:54 pm    Post subject: Reply with quote

Well, I have done this Optimus Tutorial, but got the same blank screen; I checked if I missed some step, but all seemed to be ok.

So, I changed it back to nouveau drivers, in order to be able to use the machine.

I've tested the live CD from Sabayon (XFCE) and it recognizes my Nvidia card, but do not let configure it though configuration app.
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
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