You are not logged in.

#1 2016-01-18 08:55:27

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Exiting x?

I want to install a NVIDIA graphic driver and I must move out of X.

I tried: sudo init 3 but this resulted in a black screen and a blinking cursor. But I wasn't able to type anything.

It seems that the solutions from other distros don't work here because I use openbox.

How do I exit X?

Offline

#2 2016-01-18 09:21:58

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Exiting x?

Switch to VC1 (Ctrl+Alt+F1)
Log in

sudo systemctl stop lightdm

Do whatever you need to do...

To restart X:

sudo systemctl start lightdm

Offline

#3 2016-01-18 09:44:08

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Exiting x?

Alternatively:

sudo systemctl isolate multi-user.target

You will have to switch to another TTY with <Ctrl>+<Alt>+F2 to login in.

To go back, either reboot or use:

sudo systemctl isolate graphical.target

The graphical desktop is on TTY7 in Debian in case it doesn't switch back automatically.

Offline

#4 2016-01-18 11:37:21

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Re: Exiting x?

The first solution of xaos52 didn't work but the solution of Head_on_a-Stick did.

But the installation procedure requires me to deinstall nouveau first.

How do I do that?

Offline

#5 2016-01-18 11:52:35

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Exiting x?

After stopping X, try

sudo modprobe -r nouveau

Strange that my proposal for stopping X did not work for you. I even tried it myself before posting and 'it worked for me'

Offline

#6 2016-01-18 12:58:41

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Re: Exiting x?

sudo modprobe -r nouveau gives:

FATAL: module nouveau is in use.

Last edited by CooKiECruNChEr43 (2016-01-18 12:59:06)

Offline

#7 2016-01-18 13:05:29

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Exiting x?

AFTER stopping X?
Again, 'this works for me'.

Offline

#8 2016-01-18 13:09:16

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: Exiting x?

@OP: although xaos' and hoas' advices certainly work, you may try to go the 'smxi route', i.e. by installing and running smxi script. It offer automatically stopping the X, and installing proper video driver ... and much more.

See Step 1 in How To: smxi Install and Setup (old, but still valid).

Last edited by iMBeCil (2016-01-18 13:10:33)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#9 2016-01-18 13:36:33

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Re: Exiting x?

Yes, after stopping x. After I had followed the instructions of Head on a Stick.

sudo systemctl isolate multi-user.target

and

<Ctrl>+<Alt>+F2

to switch TTY.

Offline

#10 2016-01-18 13:40:27

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Re: Exiting x?

Do I have to use su instead of sudo?

Btw, your solution to quit X works as well, xaos52. But here too I get the FATAL-error.

Last edited by CooKiECruNChEr43 (2016-01-18 13:52:22)

Offline

#11 2016-01-18 14:02:23

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Exiting x?

No.
sudo works for me.

After stopping X, can you catch a list of all processes still running:

sudo systemctl stop lightdm

Wait 5 seconds

ps -eF > ps.out

Then restart X and post the content of file ps.out.

Offline

#12 2016-01-18 14:07:17

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Re: Exiting x?

This is what I have done:
After I stopped X, I removed the nouveau server with this:

sudo apt-get remove xserver-xorg-video-nouveau

Then I tried to install the NVIDIA-driver, but I still got the warning that nouveau was still in operation.
I then tried to deinstall libdrm-nouveau2 (userspace interface) too. But that means uninstalling a WHOLE LOT MORE than just this file. So, I didn't do it.

Offline

#13 2016-01-18 14:12:08

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Re: Exiting x?

Here is ps.out
I made an error. Hold on.

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 12:22 ?        00:00:01 /sbin/init
root         2     0  0 12:22 ?        00:00:00 [kthreadd]
root         3     2  0 12:22 ?        00:00:54 [ksoftirqd/0]
root         5     2  0 12:22 ?        00:00:00 [kworker/0:0H]
root         6     2  0 12:22 ?        00:00:00 [kworker/u8:0]
root         7     2  0 12:22 ?        00:00:08 [rcu_sched]
root         8     2  0 12:22 ?        00:00:00 [rcu_bh]
root         9     2  0 12:22 ?        00:00:00 [migration/0]
root        10     2  0 12:22 ?        00:00:00 [watchdog/0]
root        11     2  0 12:22 ?        00:00:00 [watchdog/1]
root        12     2  0 12:22 ?        00:00:00 [migration/1]
root        13     2  0 12:22 ?        00:00:49 [ksoftirqd/1]
root        15     2  0 12:22 ?        00:00:00 [kworker/1:0H]
root        16     2  0 12:22 ?        00:00:00 [khelper]
root        17     2  0 12:22 ?        00:00:00 [kdevtmpfs]
root        18     2  0 12:22 ?        00:00:00 [netns]
root        19     2  0 12:22 ?        00:00:00 [khungtaskd]
root        20     2  0 12:22 ?        00:00:00 [writeback]
root        21     2  0 12:22 ?        00:00:00 [ksmd]
root        22     2  0 12:22 ?        00:00:00 [khugepaged]
root        23     2  0 12:22 ?        00:00:00 [crypto]
root        24     2  0 12:22 ?        00:00:00 [kintegrityd]
root        25     2  0 12:22 ?        00:00:00 [bioset]
root        26     2  0 12:22 ?        00:00:00 [kblockd]
root        29     2  0 12:22 ?        00:00:00 [kswapd0]
root        30     2  0 12:22 ?        00:00:00 [fsnotify_mark]
root        36     2  0 12:22 ?        00:00:00 [kthrotld]
root        37     2  0 12:22 ?        00:00:00 [ipv6_addrconf]
root        39     2  0 12:22 ?        00:00:00 [deferwq]
root        75     2  0 12:22 ?        00:00:00 [khubd]
root        76     2  0 12:22 ?        00:00:00 [firewire]
root        77     2  0 12:22 ?        00:00:00 [firewire_ohci]
root        78     2  0 12:22 ?        00:00:00 [ata_sff]
root        79     2  0 12:22 ?        00:00:00 [scsi_eh_0]
root        80     2  0 12:22 ?        00:00:00 [scsi_tmf_0]
root        81     2  0 12:22 ?        00:00:00 [scsi_eh_1]
root        82     2  0 12:22 ?        00:00:00 [scsi_tmf_1]
root        83     2  0 12:22 ?        00:00:00 [scsi_eh_2]
root        85     2  0 12:22 ?        00:00:00 [scsi_tmf_2]
root        87     2  0 12:22 ?        00:00:00 [scsi_eh_3]
root        88     2  0 12:22 ?        00:00:00 [scsi_tmf_3]
root        90     2  0 12:22 ?        00:00:00 [kworker/u8:5]
root        96     2  0 12:22 ?        00:00:01 [kworker/1:1H]
root        97     2  0 12:22 ?        00:00:01 [kworker/0:1H]
root        98     2  0 12:22 ?        00:00:00 [scsi_eh_4]
root        99     2  0 12:22 ?        00:00:00 [scsi_tmf_4]
root       100     2  0 12:22 ?        00:00:00 [usb-storage]
root       130     2  0 12:22 ?        00:00:00 [jbd2/sda1-8]
root       131     2  0 12:22 ?        00:00:00 [ext4-rsv-conver]
root       163     2  0 12:22 ?        00:00:00 [kauditd]
root       168     1  0 12:22 ?        00:00:00 /lib/systemd/systemd-journald
root       175     1  0 12:22 ?        00:00:00 /lib/systemd/systemd-udevd
root       289     2  0 12:22 ?        00:00:00 [hd-audio0]
root       292     2  0 12:22 ?        00:00:00 [kpsmoused]
root       381     2  0 12:22 ?        00:00:00 [ttm_swap]
root       434     1  0 12:22 ?        00:00:00 /usr/sbin/cron -f
root       435     1  0 12:22 ?        00:00:00 /usr/sbin/NetworkManager --no-daemon
root       436     1  0 12:22 ?        00:00:00 /usr/sbin/ModemManager
root       438     1  0 12:22 ?        00:00:00 /lib/systemd/systemd-logind
avahi      445     1  0 12:22 ?        00:00:00 avahi-daemon: running [debian2.local]
message+   447     1  0 12:22 ?        00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root       480     2  0 12:22 ?        00:00:00 [iprt]
avahi      624   445  0 12:22 ?        00:00:00 avahi-daemon: chroot helper
root       722     1  0 12:22 ?        00:00:00 /usr/sbin/minissdpd -i 0.0.0.0
root       745     1  0 12:22 ?        00:00:00 /usr/sbin/rsyslogd -n
root       748     1  0 12:22 ?        00:00:00 /usr/sbin/cupsd -f
root       749     1  0 12:22 ?        00:00:00 /usr/sbin/cups-browsed
root       762     1  0 12:22 tty1     00:00:00 /bin/login --      
Debian-+   810     1  0 12:22 ?        00:00:00 /usr/sbin/exim4 -bd -q30m
root       827     2  0 12:22 ?        00:00:00 [cfg80211]
root       866   435  0 12:22 ?        00:00:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-0ed0639d-431d-47ef-9249-4b07614c6c28-eth0.lease -cf /var/lib/NetworkManager/dhclient-eth0.conf eth0
root      1251     1  0 12:27 tty2     00:00:00 /bin/login --      
emile     1261  1251  0 12:27 tty2     00:00:00 -bash
emile     1581     1  0 12:31 ?        00:00:47 /usr/bin/pulseaudio --start
root      3179     1  0 14:03 ?        00:00:00 /usr/lib/policykit-1/polkitd --no-debug
root      3205     1  0 14:03 ?        00:00:00 /usr/lib/upower/upowerd
emile     3350   762  0 14:38 tty1     00:00:00 -bash
root      3359     2  0 14:38 ?        00:00:00 [kworker/0:0]
root      3622     2  0 14:46 ?        00:00:01 [kworker/1:4]
root      3630     1  0 14:46 ?        00:00:00 /usr/lib/udisks2/udisksd --no-debug
root      3635     2  0 14:46 ?        00:00:00 [kworker/0:2]
colord    4083     1  0 14:56 ?        00:00:00 /usr/lib/colord/colord
root      4148     2  0 14:58 ?        00:00:00 [kworker/1:1]
root      4593     2  0 15:03 ?        00:00:00 [kworker/0:4]
root      4690     2  0 15:08 ?        00:00:00 [kworker/0:1]
emile     4696  1261  0 15:10 tty2     00:00:00 /bin/sh /usr/bin/startx
emile     4718  4696  0 15:10 tty2     00:00:00 xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :1 vt2 -auth /tmp/serverauth.tn5noLBcCx
root      4719  4718  0 15:10 tty2     00:00:03 /usr/bin/X -nolisten tcp :1 vt2 -auth /tmp/serverauth.tn5noLBcCx
emile     4722  4718  0 15:10 tty2     00:00:00 /usr/bin/openbox --startup /usr/lib/i386-linux-gnu/openbox-autostart OPENBOX
emile     4752     1  0 15:10 tty2     00:00:00 dbus-launch --autolaunch=64c946fb6ee9480fa6ce00e28f134d07 --binary-syntax --close-stderr
emile     4753     1  0 15:10 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
emile     4756     1  0 15:10 ?        00:00:00 /usr/lib/i386-linux-gnu/xfce4/notifyd/xfce4-notifyd
emile     4758     1  0 15:10 ?        00:00:00 /usr/lib/i386-linux-gnu/xfce4/xfconf/xfconfd
emile     4759  4722  0 15:10 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager
emile     4762     1  0 15:10 tty2     00:00:00 /usr/bin/dbus-launch --exit-with-session x-session-manager
emile     4763     1  0 15:10 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
emile     4774     1  0 15:10 tty2     00:00:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
emile     4781     1  0 15:10 tty2     00:00:00 /usr/bin/python /usr/bin/volti
emile     4783     1  0 15:10 tty2     00:00:00 clipit
emile     4784     1  0 15:10 tty2     00:00:00 thunar --daemon
emile     4786     1  0 15:10 tty2     00:00:00 xscreensaver -no-splash
emile     4800     1  0 15:10 ?        00:00:00 xfce4-power-manager
emile     4801     1  0 15:10 ?        00:00:00 xfce4-volumed
emile     4803     1  0 15:10 ?        00:00:00 /usr/lib/i386-linux-gnu/xfce4/xfconf/xfconfd
emile     4807     1  0 15:10 ?        00:00:00 /usr/lib/i386-linux-gnu/xfce4/notifyd/xfce4-notifyd
emile     4811     1  0 15:10 tty2     00:00:00 nm-applet
emile     4821     1  0 15:10 ?        00:00:00 /usr/lib/gvfs/gvfsd
emile     4830     1  0 15:10 ?        00:00:00 /usr/lib/i386-linux-gnu/gconf/gconfd-2
emile     4840     1  0 15:10 tty2     00:00:01 conky -c /home/emile/.conkyrc
root      4971     2  0 15:14 ?        00:00:00 [kworker/0:3]
root      4977     2  0 15:15 ?        00:00:00 [kworker/1:0]
emile     5227  3350  0 15:17 tty1     00:00:00 ps -ef

MOD EDIT: use [ code] not [ quote ] for terminal output wink

Last edited by damo (2016-01-18 17:51:08)

Offline

#14 2016-01-18 14:24:13

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Exiting x?

Ah, you are using startx.
To stop X in your case:

1.switch to a vc
2. pkill -KILL startx
3. verify in the output of 'ps -eF' that there is no more '/usr/bin/X' process active.
4. sudo modprobe -r nouveau

Then you should be able to install the prop. nvidia driver.

Offline

#15 2016-01-18 14:49:07

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Re: Exiting x?

Switch to a vc? What is that?

Offline

#16 2016-01-18 15:08:03

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Exiting x?

vc = Virtual Console

Offline

#17 2016-01-18 15:54:52

CooKiECruNChEr43
Member
Registered: 2015-10-17
Posts: 86

Re: Exiting x?

ah yes, of course. I tried and it didn't work out. I get the same message: x is still running. I have had it for today. So I quit trying.

Thank you for your answers, xaos52.

Last edited by CooKiECruNChEr43 (2016-01-18 15:56:01)

Offline

#18 2016-01-18 17:54:17

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Exiting x?

I've always had great results with `smxi`. And btw it uses

sudo su -

If you do use smxi you need to run this afterwards, before restarting X:

sudo nvidia-xconfig

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#19 2016-01-18 20:04:04

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Exiting x?

To stop those pesky nouveau drivers from loading:

sudo tee /etc/modprobe.d/nouveau.conf <<< "blacklist nouveau"

and reboot wink

I would advise using the official Debian drivers rather than the NVIDIA versions, see https://wiki.debian.org/DontBreakDebian … ll_scripts

It is possible to install the latest drivers straight from the experimental repository in Debian jessie.

EDIT: Just to note, some fool has vandalised the Debian wiki NVIDIA page with moronic instructions for using the NVIDIA site installer and the SteamOS repositories (!) to install an older version of the driver than can be obtained from the experimental repositories roll

This should be ignored, I think I will be registering with the Debian wiki just so I can delete all that crap 8)

Offline

#20 2016-01-18 21:49:35

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: Exiting x?

damo wrote:

I've always had great results with `smxi`. And btw it uses

sudo su -

If you do use smxi you need to run this afterwards, before restarting X:

sudo nvidia-xconfig

+1 to this. It makes installing proprietary drivers so much simpler.

Offline

Board footer

Powered by FluxBB