13.1 cannot boot into X

hello,
I had a problem today which transformed into a no-graphical interface. I use my machine to connect to a monitor and a TV.(lots of times). Today I lost access to it and I try to reboot it via CTRL-ALT INS(or is it CTRL_lt_del??) anyway throgu a soft reboot. I lost after that the X window. I do have a nvidia card . I included in hash tags a set of commands to give you a better understanding of what I have right now. I removed the nvidia drivers as an error would show that the driver and the kernel are not the same. i can reproduce it if needed. I just need to reinstall nvidia drivers. as i searched a lot to find a solution i don’t know what else would be needed but i will provide any details as per your request.


aruba:~ # lspci |grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
aruba:~ #

aruba:~ # systemctl -l status display-manager
xdm.service - LSB: X Display Manager
   Loaded: loaded (/etc/init.d/xdm)
   Active: active (running) since Sun 2014-11-09 22:01:03 EST; 10min ago
  Process: 723 ExecStart=/etc/init.d/xdm start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/xdm.service
           └─861 /usr/bin/kdm

Nov 09 22:01:03 aruba.site kdm_config[862]: Multiple occurrences of section [General] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 09 22:01:03 aruba.site kdm_config[862]: Multiple occurrences of section [Xdmcp] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 09 22:01:03 aruba.site kdm_config[862]: Multiple occurrences of section [X-*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 09 22:01:03 aruba.site kdm_config[862]: Multiple occurrences of section [X-*-Greeter] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 09 22:01:03 aruba.site kdm_config[862]: Multiple occurrences of section [X-:*-Core] in /usr/share/kde4/config/kdm/kdmrc. Consider merging them.
Nov 09 22:01:03 aruba.site kdm[861]: plymouth is running
Nov 09 22:01:03 aruba.site xdm[723]: Starting service kdm..done
Nov 09 22:01:03 aruba.site systemd[1]: Started LSB: X Display Manager.
Nov 09 22:01:03 aruba.site kdm[861]: plymouth is active on VT 7, reusing for :0
Nov 09 22:01:03 aruba.site kdm[861]: plymouth should quit after server startup
Nov 09 22:01:03 aruba.site kdm[861]: X server died during startup
Nov 09 22:01:03 aruba.site kdm[861]: X server for display :0 cannot be started, session disabled
Nov 09 22:01:03 aruba.site kdm[861]: Quitting Plymouth without transition
Nov 09 22:01:04 aruba.site kdm[861]: plymouth is NOT running
aruba:~ #


aruba:~ # fdisk -l

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0007d596

   Device Boot      Start         End      Blocks   Id  System
/dev/sda3            2048  3907024895  1953511424   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0004bb22

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048    63408127    31703040   83  Linux
/dev/sdb2        63408128    80189439     8390656   82  Linux swap / Solaris
/dev/sdb3        80189440  1953523711   936667136   83  Linux
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sdc: 3000.6 GB, 3000558944256 bytes, 732558336 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt


#         Start          End    Size  Type            Name
 1          256    244140543  931.3G  Microsoft basic primary
 2    244140544    488281343  931.3G  Microsoft basic primary
 3    488281344    610351615  465.7G  Microsoft basic primary
 4    610351616    732558079  466.2G  Microsoft basic primary
aruba:~ #

aruba:~ # rpm -qa |grep -e nvidia
aruba:~ #

aruba:~ # rpm -qa |grep -e nouveau
libdrm_nouveau2-2.4.46-3.2.2.x86_64
xorg-x11-driver-video-nouveau-1.0.9-3.1.2.x86_64
libdrm_nouveau2-32bit-2.4.46-3.2.2.x86_64

aruba:~ # rpm -qa |grep -e Mesa
Mesa-libglapi0-9.2.3-61.9.1.x86_64
Mesa-demo-x-8.1.0-4.1.2.x86_64
Mesa-libglapi0-32bit-9.2.3-61.9.1.x86_64
Mesa-libGL1-32bit-9.2.3-61.9.1.x86_64
libOSMesa9-9.2.3-61.9.1.x86_64
Mesa-32bit-9.2.3-61.9.1.x86_64
Mesa-libGLESv2-2-9.2.3-61.9.1.x86_64
Mesa-libEGL1-32bit-9.2.3-61.9.1.x86_64
Mesa-9.2.3-61.9.1.x86_64
DirectFB-Mesa-1.6.3-4.1.3.x86_64
Mesa-libEGL1-9.2.3-61.9.1.x86_64
Mesa-libGL1-9.2.3-61.9.1.x86_64

aruba:~ # startx
hostname: Name or service not known
xauth:  file /root/.serverauth.1339 does not exist


This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.14.3.901 (1.14.4 RC 1)
Release Date: 2013-10-26
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux aruba.site 3.11.10-21-desktop #1 SMP PREEMPT Mon Jul 21 15:28:46 UTC 2014 (9a9565d) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.11.10-21-desktop root=UUID=5d3f0558-00e4-489a-8b7c-b8e61a644cec resume=/dev/disk/by-id/ata-WDC_WD1002FAEX-00Y9A0_WD-WCAW35795252-part2 splash=silent quiet showopts
Build Date: 17 April 2014  05:37:34AM

Current version of pixman: 0.30.2
        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.0.log", Time: Sun Nov  9 21:31:15 2014
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
VGA Arbitration: Cannot restore default device.
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Network is unreachable
xinit: server error
-------------------------------------------------------------------------------------------
xinit failed. /usr/bin/Xorg is not setuid, maybe that's the reason?
If so either use a display manager (strongly recommended) or adjust /etc/permissions.local

thank you in advance for helping me.

Remove all the NVIDIA drivers (leave the nouveau drivers in, untouched).

Then, after a cold boot, install the correct latest NVIDIA drivers (you probably already know this, but make sure you use the correct version, G02 or G03, to match your card).

Test.

If it does not work at first, you might try a couple of cold boots, in case it does not work on the first reboot.

You cannot run startx as user. Try it as root.
And your /var/log/Xorg.0.log would be helpful (or the output of startx). KDM seems to be getting starting at boot.

But probably installing the proprietary nvidia drivers would solve your problem anyway.
https://en.opensuse.org/SDB:NVIDIA

If you already installed the nvidia driver via the .run file from the nvidia homepage, this might be part of your problem.
You should remove it first, before you install the packages.

NVIDIA-xxx.run --uninstall

I think running “nvidia-installer --uninstall” should work as well, if it is installed.

thank you guys for the support(Fraser_Bell, wolfi323). well the problem was that after removing all the nvidia drivers I added a repository for the nvidia from 13.2(which I didn’t realize until today when i tried to review what i did and what you suggested). I tried reinstalling the drivers yesterday but some errors occurred and they persisted even today after removing the 13.2 repository(G02 which I had prior to this problem). I downloaded a new driver(NVIDIA-Linux-x86_64-340.58.run) from the nvidia site and after installing it manually I was successful.
Just as a comment in the initial post everything was run under root, but i didn’t specified it in the comments and the output of startx was also there buried between the commands.
For wolfi323, the startx command was ran as root and i still got that xinit failed error(even tried startx kdm). Then I removed the comment in the /etc/permissions.local file to set the setuid, still w/o any effect. Should I comment it back now that it works? i would appreciate a feedback on this.
I will disable the updates for the nvidia repository so i don’t get an update which might not be working properly. Thank you.

Do I understand you correctly that you are running 13.1 and added the nvidia repo for 13.2?
Your Mesa packages above are indeed from 13.1.

The nvidia repo is available for 13.1 as well. Add it in YaST->Software Repositories->Add->Community Repositories.
But uninstall the .run driver first if you want to install the packages from the repo.
As the 340.58 seems to work fine for you, you should install the G03 driver then (5 packages are needed).

Just as a comment in the initial post everything was run under root, but i didn’t specified it in the comments and the output of startx was also there buried between the commands. For wolfi323, the startx command was ran as root and i still got that xinit failed error(even tried startx kdm).

Yeah, right. I only noticed the last error, which would indicate otherwise.
But X would have complained about missing permissions to create the log file before that, if you ran it as user.

Btw, “startx kdm” is nonsense. startx cannot be used to start a display manager.
Actually it is the other way round: you start the display manager, kdm e.g., (normally done automatically during boot) and this in turn starts X.

Then I removed the comment in the /etc/permissions.local file to set the setuid, still w/o any effect. Should I comment it back now that it works? i would appreciate a feedback on this.

Yes. This is a security risk.

I will disable the updates for the nvidia repository so i don’t get an update which might not be working properly.

You should disable/remove the nvidia repo completely, if you are using the .run installer.
But be aware, that you have to re-install it whenever there’s any update to the kernel, Xorg, or Mesa.
That’s why I would rather recommend to use the packages from the repo.

Those should work fine as well (in the end they contain the exact same driver anyway, as it is closed-source), provided you add the correct repo, and install the correct packages.
Can you post your repo list? (before you remove the nvidia repo)

zypper lr -d

hi wolfi323, sorry for late reply.

Do I understand you correctly that you are running 13.1 and added the nvidia repo for 13.2?
Your Mesa packages above are indeed from 13.1.

The nvidia repo is available for 13.1 as well. Add it in YaST->Software Repositories->Add->Community Repositories.
But uninstall the .run driver first if you want to install the packages from the repo.
As the 340.58 seems to work fine for you, you should install the G03 driver then (5 packages are needed).

yes. I had the 13.1 repository and then in command line trying to correct my problem i added the repository for 13.2(i was under the impression that is 13.1 and i didn’t verify it).

Btw, “startx kdm” is nonsense. startx cannot be used to start a display manager.

found this with google, but now i think i got your explanation and learned something.thanks.

Then I removed the comment in the /etc/permissions.local file to set the setuid, still w/o any effect. Should I comment it back now that it works? i would appreciate a feedback on this.

corrected.
i will uninstall *.run and add the packages one of these days.

dan@aruba:~> zypper lr -d
#  | Alias                                | Name                                                | Enabled | Refresh | Priority | Type   | URI                                                                             | Service
---+--------------------------------------+-----------------------------------------------------+---------+---------+----------+--------+---------------------------------------------------------------------------------+--------
 1 | Packman Repository                   | Packman Repository                                  | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/                        |        
 2 | download.opensuse.org-Virtualization | openSUSE BuildService - Virtualization (VirtualBox) | No      | No      |   99     | rpm-md | http://download.opensuse.org/repositories/Virtualization/openSUSE_13.1/         |        
 3 | google-talkplugin                    | google-talkplugin                                   | No      | No      |   99     | rpm-md | http://dl.google.com/linux/talkplugin/rpm/stable/i386                           |        
 4 | home:maxge73                         | home:maxge73                                        | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/maxge73/openSUSE_12.3/          |        
 5 | home:opensuse_zh                     | ace_stream                                          | No      | No      |   99     | rpm-md | http://pmbs-api.links2linux.org:8080/home%3a/dap/openSUSE_12.3/                 |        
 6 | libdvdcss repository                 | libdvdcss repository                                | No      | No      |   99     | rpm-md | http://opensuse-guide.org/repo/13.1/                                            |        
 7 | nvidia_drivers                       | nvidia drivers                                      | No      | No      |   99     | rpm-md | http://download.nvidia.com/opensuse/13.1                                        |        
 8 | openSUSE-13.1-1.10                   | openSUSE-13.1-1.10                                  | No      | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-Optiarc_DVD_RW_AD-7260S,/dev/sr0             |        
 9 | repo-debug                           | openSUSE-13.1-Debug                                 | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.1/repo/oss/                  |        
10 | repo-debug-update                    | openSUSE-13.1-Update-Debug                          | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1/                                 |        
11 | repo-debug-update-non-oss            | openSUSE-13.1-Update-Debug-Non-Oss                  | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1-non-oss/                         |        
12 | repo-non-oss                         | openSUSE-13.1-Non-Oss                               | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/non-oss/                    |        
13 | repo-oss                             | openSUSE-13.1-Oss                                   | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/oss/                        |        
14 | repo-source                          | openSUSE-13.1-Source                                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.1/repo/oss/                 |        
15 | repo-update                          | openSUSE-13.1-Update                                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1/                                       |        
16 | repo-update-non-oss                  | openSUSE-13.1-Update-Non-Oss                        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1-non-oss/                               |        
17 | sopcast                              | sopcast                                             | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/opensuse_zh/openSUSE_12.3/      |        
18 | system:packagemanager                | system:packagemanager                               | No      | No      |   99     | rpm-md | http://download.opensuse.org/repositories/system:/packagemanager/openSUSE_13.1/ |        

thank you

Did you add the URL manually?

You can add the nvidia repo just by clicking on “Add” and choosing “Community Repositories” in YaST->Software Repositories.
This way, you should always get the correct version… :wink:

didn’t know about communities repository. again I learned something today. great. thank you