So this exact script was already there when checked, so I just added display-setup-script=/usr/local/bin/optimus.sh
to lightdm.conf where you indicated and rebooted. Same result, same lightdm status from systemd
I am honestly getting into territory that is beyond me. Can you try to boot into “Intel” mode? From a TTY, type: sudo set-intel.sh reboot and see what happens. I have a feeling with all the mucking about trying to fix this, we may have “borked” something.
Gave it a shot, no black screen, cursor is blinking again…
lightdm failed its boot, similar to the reasons earlier in the debug process, can’t talk to Xorg. Looks like Xorg is trying to load Nvidia drivers and fails saying no devices detected/ no screens found.
Posting log for xorg, thats the only interesting one here
Doing a re-install, at this point in time, I think is the best option. I am honestly at the extreme limits of my knowledge. I would suggest some things.
That you choose SDDM instead of Lightdm.
That before you reboot into your newly installed system, you chroot into it, and do the install process for Optimus-Switch then. Make DOUBLY sure that you are following the guide I linked. Read through it a couple of times to make sure you have it down.
Add the apci_osi='Windows 2018' parameter to grub BEFORE you reboot into the newly installed system as well.
That is what I do when installing a new system with Arch or an Arch based distro.
That being said, I am sorry, but I have to go. It is 2am where I am at and I have to renew my Visa in the morning. 7am is going to come waay too early, and Immigration can be a %#%@.
I will check back in the morning and see what is going on.
@linesma Thank you extensively for your patience with this. Needless to say I’d be in trouble without you.
And thanks to everyone else in this thread who has been helping.
Besides, I really only get mornings to work on this and I have to get started on work anyway. I don’t think I’ll get a chance to do all that until Friday morning with my schedule tomorrow. Besides, with all the issues we’ve encountered here, it probably best to do that so we know exactly what the solution was at the end of it all.
@linesma
Thanks for helping so much. I probably would not have gotten this far with my lesser knowledge related to xorg and conf files. So it takes me longer with a slower approach & researching things. I’m also not that familiar with the setup of window managers. These Hybrid laptops with Intel seem to always be the ones that give issues. The bright side of it is @GeekTea learns more in the process. I also would have suggested maybe reinstalling too but I might have said go with Xfce and get it all working first. Understand the hardware issues and then add i3. But maybe this time around it will be better with a different approach.
@GeekTea and @ricklinux Thank you both for your kind words. I only know what I do because I had issues with my OWN laptop, Asus FX-504GD, setting up Linux. Two years ago, It took me almost 3 months, with help from others, to have Linux run properly on my laptop. I had more problems than just the Optimus GPU stuff. I had Touchpad, Networking, and other minor glitches to deal with.
Much of Linux for me is still “arcane knowledge”, and I am still learning. How the graphics stack works with the system is one of them. As I said before, we were pushing the limits of what I know. I am not afraid to help, but I am also not afraid to tell you that I do not know something. Every time I help someone, I am learning as well.
@GeekTea I agree with ricklinux, it may be a good idea for you to install a full DE, such as XFCE first. Then you can always install i3 later and choose to run it by default from the login screen.
I have been fortunate that i haven’t had to deal with these issues myself using desktops mostly. I helped numerous others get nvidia drivers installed & optimus-manager running but not on i3 and haven’t had the black screen issues. Lucky i guess to not have run into that. I just try to help where i can.
I’m glad I’m not the only one in the community who has contemplated throwing things over Nvidia drivers, I just wish my case looked like everyone else’s!
But sounds good. I’ll do my installation with XFCE and sddm tomorrow (if the installer lets me do that combo) and do the steps you just outlines @linesma. I just use Linux for software development, and I’ve modified some linux drivers in my time for work. But, this type of system debugging is all new to me. I couldn’t tell you what a display manager was before this thread… I just wanted to do some projects with CUDA
I doubt people ever talk about C programming in this forum, but thats the kind of help I can provide
@GeekTea if you are going to install XFCE, stay with the default DM of lightdm. Telling you to install SDDM was only if you were going to reinstall i3 from the start.
I’ve been running Xfce for years on Arch based systems, and both sddm and lightdm have been working well.
But mileage may vary, and hardware is usually different… It is trial, error, and finally success.
Been busy with real life, so I have some time to work on getting this up and running. Here are the actions I have taken…
Re-install EOS w/ XFCE and lightdm (default configuration). There is now a fresh system, and I have not boot-up at this point.
sudo mount /dev/nvme0n1p2 /mnt and sudo arch-chroot /mnt. (main system partition)
Install Optimus-Switch for lightdm using @linesma’s guide. Note: I did not do the steps for the Powering down the nVidia card in Intel Mode or Installing the GUI Indicator/ Switcher Optimus-Indicator.
Add apci_osi='Windows 2018' to the grub bootup instructions. This replaced ‘quiet’.