Safe switching computer?

Message
Author
arken
Posts: 9
Joined: Mon Apr 30, 2018 6:57 pm

Safe switching computer?

#1 Post by arken »

Hi,

I have a simple question (I think) and I would also like to report how the installation of MX 17.1 went, I'll try to be as brief as possible.

I am very new to linux and was looking for a distribution that would be portable and persistent foremost so I can plug my USB drive and go back into my browsing and coding, between my desktop and laptop mainly.

The install went fine overall (rootfs failed to create while homefs had no problem being created on first try, I had to select the option (3) on one of the options when asked -something like verify integrity (?) ...and also the nvidia driver install took 2 try to fully work via your app for whatever reason but a reboot solved the problem. Besides that the install went smooth).

At the end of the nvidia driver install I was told xorg.conf (I think) was created.

I understand this file tells X to use my gpu but I'm asking myself if that would not become a problem if I now boot my USB drive into my laptop (which does not have an nvidia ofc).

Thank you in advance for your time.

I'd also like to congratulate you on your distribution, I really like the down to earth choices you made with it.

User avatar
Stevo
Developer
Posts: 14888
Joined: Fri Dec 15, 2006 7:07 pm

Re: Safe switching computer?

#2 Post by Stevo »

Yes, that xorg.conf file will cause the X GUI to fail to start on the laptop.

However, the Debian wiki states
Debian 9 "Stretch"

As of stretch, you don't need nvidia-xconfig anymore, and a xorg.conf file is not needed either in most situations.
So I'd back up the file, remove it, and see if the two systems still boot correctly.

arken
Posts: 9
Joined: Mon Apr 30, 2018 6:57 pm

Re: Safe switching computer?

#3 Post by arken »

Ok so I removed the xorg.conf file and the OS fails to load.

To be more precise it loads normally until all the usual text has appeared on screen then hangs on a black screen with a cursor blinking top left whereas it used to start loading the desktop at that point previously.

So that makes it even less portable for now :p

Also I would like to know: if I had left the xorg.conf (the one pointing at my nvidia 1060 gpu) and plugged the usb drive and booted on my laptop, would have I burned the laptop?

Waiting to read from you when you find the time.

User avatar
dolphin_oracle
Developer
Posts: 22775
Joined: Sun Dec 16, 2007 12:17 pm

Re: Safe switching computer?

#4 Post by dolphin_oracle »

the nvidia driver I don't think will work on a live USB. not sure, but I think it wants to update the initramfs which isn't in use on the live side of things.

if you want to remove the nvidia-driver from the live, you can purge the nvidia-driver install with

Code: Select all

sudo ddm-mx -p nvidia
it will also undo he blacklisting of the nouveau driver, which is probably why your video didn't come up.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

arken
Posts: 9
Joined: Mon Apr 30, 2018 6:57 pm

Re: Safe switching computer?

#5 Post by arken »

dolphin_oracle wrote:the nvidia driver I don't think will work on a live USB.
It used to work, I even downloaded and ran a benchmark (Unigine Heaven Benchmark), which only started to work after the nvidia driver install.

User avatar
dolphin_oracle
Developer
Posts: 22775
Joined: Sun Dec 16, 2007 12:17 pm

Re: Safe switching computer?

#6 Post by dolphin_oracle »

arken wrote:
dolphin_oracle wrote:the nvidia driver I don't think will work on a live USB.
It used to work, I even downloaded and ran a benchmark (Unigine Heaven Benchmark), which only started to work after the nvidia driver install.
well, I'm wrong then :happy:

Its hard for me to tell as I don't have any nvidia hardware to test this stuff on.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

arken
Posts: 9
Joined: Mon Apr 30, 2018 6:57 pm

Re: Safe switching computer?

#7 Post by arken »

Confirm this to me though: let's say I use MX17 as portable and persistent on an USB flash drive, if I don't install the nvidia driver I'll be able to use the stick on any other of my computers safely? The os will check the computer's hardware it is being booted on and load the necessary drivers if possible right?

So if I understand correctly, X is on the way and what you have to do to make the system fully portable is to have X load different xorg.conf files depending on detection (previous nvidia driver installation etc). Or maybe you can imagine some other way (I'll be curious to hear what would be your take on correcting this)?

User avatar
dolphin_oracle
Developer
Posts: 22775
Joined: Sun Dec 16, 2007 12:17 pm

Re: Safe switching computer?

#8 Post by dolphin_oracle »

arken wrote:Confirm this to me though: let's say I use MX17 as portable and persistent on an USB flash drive, if I don't install the nvidia driver I'll be able to use the stick on any other of my computers safely? The os will check the computer's hardware it is being booted on and load the necessary drivers if possible right?

So if I understand correctly, X is on the way and what you have to do to make the system fully portable is to have X load different xorg.conf files depending on detection (previous nvidia driver installation etc). Or maybe you can imagine some other way (I'll be curious to hear what would be your take on correcting this)?

yes. We don't load multiple xorg.conf files. between the kernel and the X11 server, its all auto-detected.

generally speaking, most of the time you don't even need a xorg.conf file anymore. There are 2 notable exceptions. 1. Some nvidia users still need one (but quite a few do not). 2. If you need to force the generic VESA driver, as happens with our failsafe live boot mode.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

arken
Posts: 9
Joined: Mon Apr 30, 2018 6:57 pm

Re: Safe switching computer?

#9 Post by arken »

Can you answer the first question of my last post? ("let's say I use MX17 as portable and persistent on an USB flash drive, if I don't install the nvidia driver I'll be able to use the stick on any other of my computers safely?" )

I really need to make sure (and I'm a linux newbie).

Also can I ask if you'll consider 'fixing' the nvidia/portability issue in any distant future? (I don't mind if the answer is no, it's just to know how often I'll check for this particular update)

Thanks in advance.

User avatar
dolphin_oracle
Developer
Posts: 22775
Joined: Sun Dec 16, 2007 12:17 pm

Re: Safe switching computer?

#10 Post by dolphin_oracle »

arken wrote:Can you answer the first question of my last post? ("let's say I use MX17 as portable and persistent on an USB flash drive, if I don't install the nvidia driver I'll be able to use the stick on any other of my computers safely?" )

I really need to make sure (and I'm a linux newbie).

Also can I ask if you'll consider 'fixing' the nvidia/portability issue in any distant future? (I don't mind if the answer is no, it's just to know how often I'll check for this particular update)

Thanks in advance.
sorry, yes if you don't install nvidia you should be fine.

Here's the main issue with the xorg.conf file. If you are using persistence, its going to stick around. If your nvidia hardware is one of the ones that requires an xorg.conf file to be present, what should we do? Remove it or keep it? Unfortunately, keeping it means that other drivers won't load, and removing it means the nvidia driver won't work (and neither will the nouvaeu open source driver, because its blacklisted when one of the nvidia-drivers is installed).

There is a mechanism in place that might work, but we have it disabled at the moment, for reasons I don't quite remember, but probably because nvidia-driver is a spaghetti factory of conflicting drivers. We can set up things to save the /etc/X11/xorg.conf on a machine by machine basis. I just don't remember at the moment how to tell the machine to do that, but I'll check tonight. Even then you might get conflicts if you try to use the usb on machines that use different nvidia-drivers, because you can't have more than 1 installed at a time, and there are 3 different ones (nvidia-driver, plus 2 different nvidia-legacy-driver packages).
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

Post Reply

Return to “General”