You are not logged in.

#1 2019-01-05 12:53:51

chueewowee
Member
Registered: 2012-03-14
Posts: 6

loss of tty exiting X11-i3 with NVIDIA-340xx

The Problem: I cannot suspend and exit i3 with ctl-alt Fn(1-6) without loss of tty. I get merely a black screen, and monitor with orange light (ie not green).

I can get back to i3 with ctl-alt+Fn1
I can enter tty1-6  at boot,and then go onto startx - no problems there

This problem appeared after I installed the NVIDIA-340xx graphics module.
I greatly appreciate your useful advice.


Observations:
-----------------------
Running 4.20.0-arch1-1-ARCH, X11, i3-wm:
Hardware: Mac Pro 4.1

Power suspend works fine - the system sleeps and then starts back up in i3.

When I freshly installled Arch in December 2018 , I was able to get from X11/i3 to tty; That is, until I installed the nvidia-340xx driver.  I'm not sure of what was initially and  automatically configured as a graphics driver.

 
 lspci | grep VGA
06:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1)

I've followed to no avail,  the following advice in the Archwiki's 'NVIDIA troubleshooting'

I have re-installed nvidia, nvidia-utils-340xx, Xorg-server, in that order; Added "xrandr --auto" to  xinitrc; executed $modprobe nvidia; Also,

Added to  /etc/modprobe.d/blacklist.conf

    
install i915 /usr/bin/false
    install intel_agp /usr/bin/false 

I  tried adding to /etc/X11/xorg.conf.d/10-nvidia.conf;

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

However, this produces X fails with "no screens found" - the problem it is given to solve!

My Xorg.0.log

[ 99382.904]    compiled for 1.20.3, module version = 1.0.0
[ 99382.904]    ABI class: X.Org Server Extension, version 10.0
[ 99382.904] (==) Matched nouveau as autoconfigured driver 0
[ 99382.904] (==) Matched nv as autoconfigured driver 1
[ 99382.904] (==) Matched modesetting as autoconfigured driver 2
[ 99382.904] (==) Matched fbdev as autoconfigured driver 3
[ 99382.904] (==) Matched vesa as autoconfigured driver 4
[ 99382.904] (==) Assigned the driver to the xf86ConfigLayout
[ 99382.904] (II) LoadModule: "nouveau" 
[ 99382.904] (WW) Warning, couldn't open module nouveau
[ 99382.904] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 99382.904] (II) LoadModule: "nv" 
[ 99382.905] (WW) Warning, couldn't open module nv
[ 99382.905] (EE) Failed to load module "nv" (module do es not exist, 0)
 99382.905] (II) LoadModule: "modesetting"
[ 99382.905] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 99382.926] (II) Module modesetting: vendor="X.Org Foundation"
[ 99382.926]    compiled for 1.20.3, module version = 1.20.3
[ 99382.926] (II) Module modesetting: vendor="X.Org Foundation"
[ 99382.926]    compiled for 1.20.3, module version = 1.20.3
[ 99382.926]    Module class: X.Org Video Driver
[ 99382.926]    ABI class: X.Org Video Driver, version 24.0
[ 99382.926] (II) LoadModule: "fbdev"
[ 99382.926] (WW) Warning, couldn't open module fbdev
[ 99382.926] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 99382.926] (II) LoadModule: "vesa"
[ 99382.926] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 99382.936] (II) Module vesa: vendor="X.Org Foundation"
[ 99382.936]    compiled for 1.20.0, module version = 2.4.0
[ 99382.936]    Module class: X.Org Video Driver
[ 99382.936]    ABI class: X.Org Video Driver, version 24.0
[ 99382.936] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 99382.936] (II) VESA: driver for VESA chipsets: vesa
[ 99382.937] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not 
permitted)
[ 99382.937] (II) modeset(0): using drv /dev/dri/card0
[ 99382.937] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 99382.937] (II) modeset(0): Creating default Display subsection in Screen section

My /etc/X11/Xorg.conf

 nano 3.2             /etc/X11/xorg.conf                       

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 340.107  (buildmeister@swio-display-x64-$


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

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    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"
EndSection

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

Form $systemctl status:

● archchuee
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Sat 2019-01-05 10:36:36 UTC; 2h 3min ago
   CGroup: /
           ├─user.slice
           │ └─user-1001.slice
           │   ├─session-2.scope
           │   │ ├─ 616 login -- chuee
           │   │ ├─ 645 -bash
           │   │ ├─ 901 /bin/sh /usr/bin/startx
           │   │ ├─ 923 xinit /home/chuee/.xinitrc -- /home/chuee/.xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.POFh2qiWMR
           │   │ ├─ 924 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.POFh2qiWMR -keeptty
           │   │ ├─ 932 i3 -d all

Thanks for reading this post.

Last edited by chueewowee (2019-01-13 17:17:31)

Offline

#2 2019-01-13 17:18:16

chueewowee
Member
Registered: 2012-03-14
Posts: 6

Re: loss of tty exiting X11-i3 with NVIDIA-340xx

I'm going to bumpt this post because it was posted at new year, and I couldn't really expect a reply at that time!

Offline

#3 2019-01-13 18:45:24

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: loss of tty exiting X11-i3 with NVIDIA-340xx

I'm going to bumpt this post

Please don't do that.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#4 2019-01-17 00:00:54

chueewowee
Member
Registered: 2012-03-14
Posts: 6

Re: loss of tty exiting X11-i3 with NVIDIA-340xx

OK now. I ditched the nvidia module and opted for nouveau in its place because after checking my tty configs, I narrowed the problem down to the graphics driver.
I had to make sure I removed the /etc/Xorg.conf file that I had generated in orrder to run the nvidia module.
Now I can get to tty from X11, and that's a boon of course.

BTW. I've found the nouveau module works fine with this set up, but launching qutebrowser failed with graphics driver problems in rendering QT; to solve that I adjusted the user config.py as follows to 'qt-quick' instead of 'chromium' I.E.,

 c.qt.force_software_rendering = 'qt-quick' 

I can't  say the problem is solved, but it is  better specified, and worked around.

Offline

Board footer

Powered by FluxBB