Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot startx, nvidia drivers new system kde-plasma profile
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 11, 2017 11:59 am    Post subject: Reply with quote

Amen, I know you speak the truth.

Argh, though,,, I've got the overwhelming feeling of too much broken stuff installed and wrong attempts to fix.

Kind of need to take a clean slate - but I hear you; I've not pushed the button yet - I've been staring at /etc and looking at stuff - like sddm.conf - and emerging fvwm-themes and getting more of the same errors.

I am also reading the wiki pages and trying to comprehend everything but I seem to have to open a thread at every step. Gentoo really makes you feel humble that's for sure. I feel like this level of new user high-maintenance is bad form but time is so limited.
_________________
]8P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jul 11, 2017 12:09 pm    Post subject: Reply with quote

stardotstar,

Lets make something simple work first.
Move your users .xinitrc out of the way, so startx starts twm, three xterms and an analogue clock.

If that doesn't work (it didn't last time) use wgetpaste to post your /var/log/Xor.0.log on the web and post the link to it.
Until Xorg works, nothing that needs Xorg will work either.

As you are using the binary blob nvidia-drivers, please share your xorg.conf file, or whatever you did to make the nvidia driver load.

Lastly, please post the output of
Code:
emerge --info
so we can see all of your global settings.

I doubt that anything is badly broken, we are missing the information needed for a diagnosis.
The above three items will go some way to addressing that.
_________________
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
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 11, 2017 12:26 pm    Post subject: Reply with quote

OK, let's do this - I appreciate your patience very much and I'll try to be deserving of it...

emerge --info

Code:
xps15 /etc/env.d # emerge --info
Portage 2.3.6 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r4, 4.9.34-gentoo x86_64)
=================================================================
System uname: Linux-4.9.34-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-gentoo-2.3
KiB Mem:    32655356 total,  30877756 free
KiB Swap:   29296636 total,  29296636 free
Timestamp of repository gentoo: Tue, 11 Jul 2017 12:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_AU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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 declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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="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-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  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


Here is xorg.conf - all I did was add the BusID to the device entry. The file itself was created by nvidia-setting.

Code:
xps15 /etc/X11 # cat xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 381.22  (buildmeister@swio-display-x86-rhel47-02)  Thu May  4 01:29:00 PDT 2017


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


I did various bits and pieces of modprobe nvidia after rebuilding the modules for the kernel that I built with care and attention to the nvidia-drivers and Xorg wiki pages (*though there may very well be errors in there for sure).

Code:
xps15 /etc/X11 # lsmod
Module                  Size  Used by
nvidia_drm             40960  0
nvidia_modeset        790528  1 nvidia_drm
nvidia              11522048  1 nvidia_modeset
x86_pkg_temp_thermal    16384  0
coretemp               16384  0
serio_raw              16384  0
pcspkr                 16384  0
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
ahci                   36864  0
libahci                32768  1 ahci


My laptop has intel onboard graphics as well - might it be worth trying to go back to that as a more vanilla approach?

And here is the Xorg.0.log
https://paste.pound-python.org/show/l19p7MP9FiEouuxpYRXL/

...and if it's of any import my kernel .config
https://paste.pound-python.org/show/N3qyHekmMGWWfAjSjx5H/

(BTW I'm in touch with Pappy and he has requested info for a kernel config - which I have provided from the SysRescCD environment) Probably my kernel is baulked too (but at least I got to the booting bit!)
W
_________________
]8P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jul 11, 2017 12:53 pm    Post subject: Reply with quote

stardotstar,

Your Xorg.0.log is very useful
Code:
[  7172.690] (--) PCI:*(0:0:2:0) 8086:591b:1028:07be rev 4, Mem @ 0xeb000000/16777216, 0x80000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[  7172.690] (--) PCI: (0:1:0:0) 10de:1c8d:1028:07be rev 161, Mem @ 0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288

You mentioned a laptop, intel and nVidia all in the same breath. That's warning sign that you have an Optimus graphics system.

Its pretty much confirmed by
Code:
[  7172.927] (II) NVIDIA(0): Validated MetaModes:
[  7172.927] (II) NVIDIA(0):     "NULL"
[  7172.927] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480

The nVidia graphics is not actually connected to the display, so it can't read the EDID data.

You use an Optimus graphics system by using the Intel chip to refresh the display from the pixel buffer all the time but choose which graphics chip does the drawing.
The nVidia graphics used alone always results in a blank display - its not connected there.

Before you follow the Optimus wiki page, please check that you don't have one of the rare laptops that actually has two complete graphics systems.

Looking at emerge --info
Code:
VIDEO_CARDS="intel nvidia nouveau"
its very messy to make a kernel that supports nvidia and nouveau at the same time.
As the nvidia driver loads, you way as well use it. For Optimus, the intel driver is no longer required either, nvidia-drivers and Xorg can do it all between them.

Code:
INPUT_DEVICES="evdev synaptics"
is correct.

The xorg.conf that nvidia-settings wrote contains a lot af obsolete settings but you will be rewriting that when you follow the wiki.
_________________
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
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 11, 2017 10:30 pm    Post subject: Reply with quote

I will do this today! Thank you.

Going through the Optimus pages I find that the USE flags to be declared globally cause a problem for me:

When I add static-libs it is constrained with a not:

Code:
xps15 /etc/portage/make.profile # emerge --newuse --ask --deep @world

 * IMPORTANT: 14 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!

!!! The ebuild selected to satisfy "app-text/mupdf" has unmet requirements.
- app-text/mupdf-1.11-r1::gentoo USE="X curl opengl openssl static-libs -javascript (-libressl) -static -vanilla" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    opengl? ( !static-libs )

  The above constraints are a subset of the following complete expression:
    opengl? ( X !static !static-libs )

(dependency required by "net-print/cups-filters-1.13.5::gentoo[pdf]" [ebuild])
(dependency required by "net-print/cups-2.1.4::gentoo" [ebuild])
(dependency required by "x11-libs/gtk+-2.24.31-r1::gentoo[cups]" [installed])
(dependency required by "x11-themes/gtk-engines-adwaita-3.22.3::gentoo" [installed])

_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Wed Jul 12, 2017 2:09 am    Post subject: Reply with quote

So, I've waded on and emerged xrandr but am getting completely lost. The Xorg log seems to indicate that the various pieces are being discovered but I only get a black screen.

One comment in the nvidia manual says that I should look at getting the X server running in VGA and I think this is a very good advice before messing with the nvidia drivers.

Can you help me step back to running the most basic twm X session under vga or something?

Here's the current Xorg.3.log
https://paste.pound-python.org/show/BDn9LP25fkDfNy5jUzwc/
_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Wed Jul 12, 2017 6:03 am    Post subject: Reply with quote

I'm pretty sure read-edid is not producing useful output:
Code:

xps15 /etc/X11/xorg.conf.d # get-edid
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 2
No EDID on bus 4
No EDID on bus 5
No byte reading on this bus...
Problem requesting slave address: Bad file descriptor
2 potential busses found: 3 6
Will scan through until the first EDID is found.
Pass a bus number as an option to this program to go only for that one.
256-byte EDID successfully retrieved from i2c bus 3
??????Mv1?#x?<?U5?&
                   JTM???p>?0 5Z??Y2XND?LQ156D1A(

Looks like i2c was successful. Have a good day.
  ???????


xps15 /etc/X11/xorg.conf.d # cat /lib/firmware/edid/xps15-sharp-4k.bin
??????Mv1?#x?<?U5?&
                   JTM???p>?0 5Z??Y2XND?LQ156D1A(

  ???????

_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Wed Jul 12, 2017 6:45 am    Post subject: Reply with quote

OK, I may be getting somewhere (or going somewhere else)

I have thoroughly gone through my xorg.conf, which I have in xorg.conf.d under 10nvidia and played with the edid and carefully naming the sections for devices, monitors, screens etc...

here is the conf
Code:
xps15 /etc/X11/xorg.conf.d # cat 10-nvidia.conf
Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0"
    Inactive "intel"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
EndSection

Section "InputDevice"
    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "1@0:0:0"
    Option "ConectedMonitor" "DFP-0"
    Option "CustomEDID" "DFP-0:/lib/firmware/edid/xps15-sharp-4k.bin"
    Option "UseEDID" "True"
    Option "ModeValidation" "NoVirtualSizeCheck"
    Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    Option "RenderAccel" "True"
    Option "NoRenderExtension" "False"
    Option "AllowGLXWithComposite" "True"
    Option "AddARGBGLXVisuals" "True"
    Option "DamageEvents" "True"
    Option "ConnectoToAcpid" "True"
    SubSection "Display"
       Depth 24
   Modes "1920x1080"
    EndSubSection
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    Option "CustomEDID" "DFP-0:/lib/firmware/edid/xps15-sharp-4k.bin"
EndSection

Section "Monitor"
   Identifier "Monitor0"
   VendorName "Sharp"
   ModelName "Unknown"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
    SubSection "Display"
      Depth 24
      Modes "1920x1080"
    EndSubSection
    Monitor "Monitor0"
EndSection

Section "Extensions"
   Option   "Composite" "Enable"
EndSection


and I added, as instructed the xrandr commands to my users' home .xinitrc

Code:
xps15 /etc/X11/xorg.conf.d # cat /home/will/.xinitrc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto


now the display blinks a couple of times as it seems to be trying to initialise but crashes back to the console;

Code:
will@xps15 ~ $ startx
hostname: Unknown host
xauth:  file /home/will/.serverauth.23857 does not exist


X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.34-gentoo x86_64 Gentoo
Current Operating System: Linux xps15 4.9.34-gentoo #5 SMP PREEMPT Tue Jul 11 14:44:00 AEST 2017 x86_64
Kernel command line: root=PARTUUID=77d93d41-4384-4c12-b22a-74f0dbb417f5
Build Date: 11 July 2017  01:48:12AM
 
Current version of pixman: 0.34.0
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.3.log", Time: Wed Jul 12 16:24:41 2017
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
randr: falling back to unsynchronized pixmap sharing
xinit: connection to X server lost

waiting for X server to shut down .(II) Server terminated successfully (0). Closing log file.

Couldn't get a file descriptor referring to the console
will@xps15 ~ $


here is the pasteup of my xorg log file

https://paste.pound-python.org/show/4hDe3PazZWehWTDxk4ih/

OMG!

I put exec startkde at the end of my .xinitrc and it started!

A win! @LAST A WIN!

I still don't know why TWM wouldn't run and there seems to be masses of errors but its running pointer and all!
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Wed Jul 12, 2017 7:20 am    Post subject: Reply with quote

stardotstar wrote:
here is the pasteup of my xorg log file

https://paste.pound-python.org/show/4hDe3PazZWehWTDxk4ih/

You should be able to help yourself looking for lines with (EE) and searching the internet for keywords behind (EE).

stardotstar wrote:
I still don't know why TWM wouldn't run and there seems to be masses of errors but its running pointer and all!

Are you sure you have x11-wm/twm installed?

Next step if you like to get up to date: https://wiki.gentoo.org/wiki/Libinput
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jul 12, 2017 8:05 am    Post subject: Reply with quote

stardotstar,

Code:
[ 84780.588] (EE) modeset(G0): eglGetDisplay() failed
[ 84780.588] (EE) modeset(G0): glamor initialization failed

I'm not sure it that is a real problem or not.

What does
Code:
$ glxinfo | head
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
show for you?

glxinfo is part of mesa-progs

Is your normal user in the video group?
Notice that
Code:
ls /dev/dri* -l
total 0
crw-rw---- 1 root video 226,  0 Feb 16  2014 card0
crw-rw---- 1 root video 226, 64 Feb 16  2014 controlD64
only users in the video group have access to the hardware for hardware acceleration.

Your previous setup was correct for an nVidia graphics card, which cannot work on your hardware. A reinstall would have got you to the exactly the same place.
Now you have overcome the real problem, the rest is easy.

To know why twm did not start' we need the Xorg log after a failed twm start.
_________________
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
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Wed Jul 12, 2017 9:15 am    Post subject: Reply with quote

OK, guys, thank you - I know I was posting a lot of update detail - I really should be blogging and being more focused with my questions but then again as I work on these problems things are fluid.

I have it working. exec startkde worked after I faffed around with xrandr and xconf - sorry catch up is at end of my last post.

I'm emerging kde meta apps now and just emerged mesa-apps but with the display running it can't seem to work:

Code:

xps15 /etc/env.d # glxinfo |head
Error: unable to open display


I should say that this is while an X session in KDE/Plasma is running on the laptop and my console sessions are via ssh - XTerm is running on the X session emerging 206/248 kde-apps meta.

This is the working xorg.conf config

Code:
xps15 /etc/X11/xorg.conf.d # cat 10-nvidia.conf
Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0"
    Inactive "intel"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
EndSection

Section "InputDevice"
    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "1@0:0:0"
    Option "ConectedMonitor" "DFP-0"
    Option "CustomEDID" "DFP-0:/lib/firmware/edid/xps15-sharp-4k.bin"
    Option "UseEDID" "True"
    Option "ModeValidation" "NoVirtualSizeCheck"
    Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    Option "RenderAccel" "True"
    Option "NoRenderExtension" "False"
    Option "AllowGLXWithComposite" "True"
    Option "AddARGBGLXVisuals" "True"
    Option "DamageEvents" "True"
    Option "ConnectoToAcpid" "True"
    SubSection "Display"
       Depth 24
   Modes "3840x2160"
    EndSubSection
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    Option "CustomEDID" "DFP-0:/lib/firmware/edid/xps15-sharp-4k.bin"
EndSection

Section "Monitor"
   Identifier "Monitor0"
   VendorName "Sharp"
   ModelName "Unknown"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
    SubSection "Display"
      Depth 24
      Modes "3840x2160"
    EndSubSection
    Monitor "Monitor0"
EndSection

Section "Extensions"
   Option   "Composite" "Enable"
EndSection


and the finishing touch was the .xrcinit that made it all work:
Code:
xps15 /etc/X11/xorg.conf.d # cat /home/will/.xinitrc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startkde


I'm pretty sure that if I instructed it to launch TWM or fvwm there they would also work now (@Charles - yes I have twm per NS' recommendation)

I'm stoked to have hacked out a working desktop but still feel completely ignorant of what I've done ;)
W
_________________
]8P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jul 12, 2017 9:46 am    Post subject: Reply with quote

stardotstar,

You have configured Xorg for an Optimus graphic system using the nVidia binary video driver.
Most of the bits were already installed.

Code:
glxinfo | head
needs to be run from a terminal inside of Xorg.
_________________
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
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Wed Jul 12, 2017 10:40 am    Post subject: Reply with quote

Here it is:
Code:
will@xps15 ~ $ glxinfo | head
name of display: :3
display: :3  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
    GLX_ARB_context_flush_control, GLX_ARB_create_context,
    GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness,
    GLX_ARB_fbconfig_float, GLX_ARB_multisample, GLX_EXT_buffer_age,
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,


roudly posted from Konqueror(even though I can barely see the text in HiDPI - set dpi to 192 and enlarged the fonts but Konqueror and XTerm are infintesimally small lol)
Great progress...
_________________
]8P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jul 12, 2017 11:30 am    Post subject: Reply with quote

stardotstar,

The important lines are
Code:
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
and they are correct.
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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