Discussion:
Broke Arch trying to change graphics driver
Add Reply
Junayeed Ahnaf via arch-general
2018-05-04 17:33:44 UTC
Reply
Permalink
Raw Message
Hi,

So here's what happened, I was facing issue with proprietary nVidia driver (screen tearing) so I thought I want to switch to the free one, so I uninstalled nvidia with "pacman -Rs nvidia" , then I thought might as well try a different kernel and installed zen. Now when I boot into either kernel I am seeing "Starting display manager" then a black screen. I can login to tty2 , but no display comes up.

I want to switch back to free driver, with preferably zen kernel. What should I do? Thanks in advance.

J

Sent from Mailspring<https://link.getmailspring.com/link/1525455037.local-ac8782b6-7fb0-v1.2.1-***@getmailspring.com/0?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=YXJjaC1nZW5lcmFsQGFyY2hsaW51eC5vcmc%3D>
Eric Blau
2018-05-04 18:00:01 UTC
Reply
Permalink
Raw Message
On Fri, May 4, 2018 at 1:34 PM Junayeed Ahnaf via arch-general <
Post by Junayeed Ahnaf via arch-general
So here's what happened, I was facing issue with proprietary nVidia driver
(screen tearing) so I thought I want to switch to the free one, so I
uninstalled nvidia with "pacman -Rs nvidia" , then I thought might as well
try a different kernel and installed zen. Now when I boot into either
kernel I am seeing "Starting display manager" then a black screen. I can
login to tty2 , but no display comes up.
I want to switch back to free driver, with preferably zen kernel. What
should I do? Thanks in advance.
I just hit a similar issue when trying to switch from nvidia to nouveau. I
was trying to switch from i3/Xorg to sway/Wayland. The proprietary nvidia
driver is unsupported with sway. I uninstalled the nvidia modules like you
did, disabled the lightdm display manager, and booted into nouveau. It
worked but was much too slow to be usable with my 4K display. I was getting
major lag. It was like getting 1 HZ refresh rate moving my mouse pointer
around.

I switched back to i3/Xorg with the nvidia modules but when rebooting to
test, it failed with a black screen like you got. When I tried "sudo
modprobe nvidia" I got an "exec format error" message and the nvidia
module refused to load.

The nvidia module installed to the extramodules directory so I expected it
to work with the 4.16.4 kernel I'm running even though it was built on
4.16.1, but apparently that is not the case. Uninstalling and reinstalling
nvidia and nvidia-utils did not fix things.

Eventually I gave up and did a "zfs rollback" to restore the previous
system state and everything was fine after that. Sorry I don't have good
solution for you, but I wanted to chime in that I also encountered the same
problem and it was related to the nvidia modules not being loadable.

Regards,
Eric
Junayeed Ahnaf via arch-general
2018-05-05 05:01:19 UTC
Reply
Permalink
Raw Message
I did a rollback too , seems like there's no easy way to go back from nonfree to free drivers.

On May 5 2018, at 12:00 am, Eric Blau <***@eblau.com> wrote:

On Fri, May 4, 2018 at 1:34 PM Junayeed Ahnaf via arch-general <
arch-***@archlinux.org> wrote:


So here's what happened, I was facing issue with proprietary nVidia driver
(screen tearing) so I thought I want to switch to the free one, so I
uninstalled nvidia with "pacman -Rs nvidia" , then I thought might as well
try a different kernel and installed zen. Now when I boot into either
kernel I am seeing "Starting display manager" then a black screen. I can
login to tty2 , but no display comes up.

I want to switch back to free driver, with preferably zen kernel. What
should I do? Thanks in advance.


I just hit a similar issue when trying to switch from nvidia to nouveau. I
was trying to switch from i3/Xorg to sway/Wayland. The proprietary nvidia
driver is unsupported with sway. I uninstalled the nvidia modules like you
did, disabled the lightdm display manager, and booted into nouveau. It
worked but was much too slow to be usable with my 4K display. I was getting
major lag. It was like getting 1 HZ refresh rate moving my mouse pointer
around.

I switched back to i3/Xorg with the nvidia modules but when rebooting to
test, it failed with a black screen like you got. When I tried "sudo
modprobe nvidia" I got an "exec format error" message and the nvidia
module refused to load.

The nvidia module installed to the extramodules directory so I expected it
to work with the 4.16.4 kernel I'm running even though it was built on
4.16.1, but apparently that is not the case. Uninstalling and reinstalling
nvidia and nvidia-utils did not fix things.

Eventually I gave up and did a "zfs rollback" to restore the previous
system state and everything was fine after that. Sorry I don't have good
solution for you, but I wanted to chime in that I also encountered the same
problem and it was related to the nvidia modules not being loadable
mar77i via arch-general
2018-05-05 06:45:12 UTC
Reply
Permalink
Raw Message
When I tried "sudo modprobe nvidia" I got an "exec format error"
message and the nvidia module refused to load.
You need to build your driver for each kernel separately. That's why you can get [0] as a package.

cheers!
mar77i

[0] https://www.archlinux.org/packages/testing/x86_64/nvidia-dkms/


​Sent with ProtonMail Secure Email.​

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
I did a rollback too , seems like there's no easy way to go back from nonfree to free drivers.
On Fri, May 4, 2018 at 1:34 PM Junayeed Ahnaf via arch-general <
So here's what happened, I was facing issue with proprietary nVidia driver
(screen tearing) so I thought I want to switch to the free one, so I
uninstalled nvidia with "pacman -Rs nvidia" , then I thought might as well
try a different kernel and installed zen. Now when I boot into either
kernel I am seeing "Starting display manager" then a black screen. I can
login to tty2 , but no display comes up.
I want to switch back to free driver, with preferably zen kernel. What
should I do? Thanks in advance.
I just hit a similar issue when trying to switch from nvidia to nouveau. I
was trying to switch from i3/Xorg to sway/Wayland. The proprietary nvidia
driver is unsupported with sway. I uninstalled the nvidia modules like you
did, disabled the lightdm display manager, and booted into nouveau. It
worked but was much too slow to be usable with my 4K display. I was getting
major lag. It was like getting 1 HZ refresh rate moving my mouse pointer
around.
I switched back to i3/Xorg with the nvidia modules but when rebooting to
The nvidia module installed to the extramodules directory so I expected it
to work with the 4.16.4 kernel I'm running even though it was built on
4.16.1, but apparently that is not the case. Uninstalling and reinstalling
nvidia and nvidia-utils did not fix things.
Eventually I gave up and did a "zfs rollback" to restore the previous
system state and everything was fine after that. Sorry I don't have good
solution for you, but I wanted to chime in that I also encountered the same
problem and it was related to the nvidia modules not being loadable.
Regards,
Eric
mar77i via arch-general
2018-05-05 06:49:51 UTC
Reply
Permalink
Raw Message
Oh wow, please apologize the original message there making my mail look like a top post. I intended to be smarter than my email client, only to forget about it.

cheers!
mar77i


​Sent with ProtonMail Secure Email.​
Eric Blau
2018-05-05 13:04:37 UTC
Reply
Permalink
Raw Message
On Sat, May 5, 2018 at 2:45 AM mar77i via arch-general <
Post by mar77i via arch-general
When I tried "sudo modprobe nvidia" I got an "exec format error"
message and the nvidia module refused to load.
You need to build your driver for each kernel separately. That's why you
can get [0] as a package.
cheers!
mar77i
[0] https://www.archlinux.org/packages/testing/x86_64/nvidia-dkms/
Hmm, I never had to do that before. The nvidia modules get installed in the
4.16 extramodules directory so they only need to be compiled once for all
4.16 kernels. At least that is my understanding. I was running the nvidia
package with 4.16.4 with no problems until I tried to reinstall.

-Eric
SET
2018-05-04 19:02:15 UTC
Reply
Permalink
Raw Message
Post by Junayeed Ahnaf via arch-general
I want to switch back to free driver,
A shot in the dark ( I don't use nvidia at all) :

Try replacing nvidia-utils or nvidia-libgl by libglvnd. AFAI remember, nvidia
module requires custom OpenGL libs formerly provided by nvidia-libgl.

No gaurantee.
Alexander Kapshuk via arch-general
2018-05-06 16:53:16 UTC
Reply
Permalink
Raw Message
On Fri, May 4, 2018 at 8:33 PM, Junayeed Ahnaf via arch-general
Post by Junayeed Ahnaf via arch-general
Hi,
So here's what happened, I was facing issue with proprietary nVidia driver (screen tearing) so I thought I want to switch to the free one, so I uninstalled nvidia with "pacman -Rs nvidia" , then I thought might as well try a different kernel and installed zen. Now when I boot into either kernel I am seeing "Starting display manager" then a black screen. I can login to tty2 , but no display comes up.
I want to switch back to free driver, with preferably zen kernel. What should I do? Thanks in advance.
J
Your original post did not say what steps you took to switch from the
proprietary driver to the opensource one.
Did you follow the instructions given here [1], and ended up with the
black screen as a result?
[1] https://wiki.archlinux.org/index.php/Nouveau

I too had to switch from the proprietary nvidia driver to the nouveau
one some time ago and I did not bump into any trouble there.

Care to elaborate a bit on what else you did besides uninstalling the
proprietary driver?

Loading...