Open altendky opened 4 years ago
Resetting BIOS to OS optimized defaults.
It was suggested to use legacy boot but that is not selectable with secure boot enabled.
Disabling Secure Boot.
Legacy is still unselectable but now because of kernel DMA protection.
Disabling kernel DMA protection.
This additionally will change Thunderbolt security level to user authentication and disables Thunderbolt support in the pre boot environment.
Now switching to legacy only.
Switching to legacy only set CSM support to yes.
Before saving and exiting, checking BIOS versions. Lenovo lists 1.27 as the latest.
BIOS reports as 1.27.
Exiting and saving changes...
Since the GPT or NVME or... isn't directly supported in the (non-default) legacy BIOS mode I am going to switch back to UEFI for now. If the legacy path is to be explored more later there's not much overhead it getting back to those settings.
parted -l &| nc termbin.com
(with I<enter>
) showing GPT partition tables
sudo journalctl --boot | nc termbin.com 9999
https://gist.github.com/altendky/ca207def1c39ccaad1b4c359706e8cb4
sudo lspci | nc termbin.com 9999
https://gist.github.com/altendky/e88eff2f5e18e85f34888f3132338c11
sudo lshw -C video | nc termbin.com 9999
https://gist.github.com/altendky/e824ed8429dc4c4971b92296e50471b0
sudo lshw | nc termbin.com 9999
https://gist.github.com/altendky/8a21f256a6e1d5f9c292aed06a7df74f
sudo xrandr | nc termbin.com 9999
https://gist.github.com/altendky/cf58cba071505a7a36f154ae51e48164
ubuntu-drivers list | tee log && cat log | nc termbin.com 9999
nvidia-driver-435
nvidia-driver-430
sudo ubuntu-drivers install --gpgpu nvidia:435 | tee log && cat log | nc termbin.com 9999
https://gist.github.com/altendky/23aa41ffe09b9be873332e959b0e80c3
sudo lshw -C video | nc termbin.com 9999
https://gist.github.com/altendky/c12e95fd498fe8d4d606a8b1b8bb06dd
Nvidia card still shows unclaimed.
sudo apt update | tee log && cat log | nc termbin.com 9999
https://gist.github.com/altendky/0c43210ca6c11d31400552489fbce464
sudo apt upgrade --yes | tee log && cat log | nc termbin.com 9999
https://gist.github.com/altendky/c73f1162344e5f4cd81a40d7c95860db
Then powered down...
sudo lshw -C video | tee log && cat log | nc termbin.com 9999
https://gist.github.com/altendky/615aceafda6fdab51e36ec7c4faea3ac
Nvidia is still unclaimed.
sudo lspci -k | tee log && cat log | nc termbin.com 9999
https://gist.github.com/altendky/5e4df33fed8ae3526f62b5510e93e7fe
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1fb8 (rev a1)
Subsystem: Lenovo Device 22a8
Kernel modules: nvidiafb, nouveau
apt search nouveau | tee log && cat log | nc termbin.com 9999
https://gist.github.com/altendky/6ed168d9debff2b826cdb15eae4cfece
ubuntu-drivers debug | nc termbin.com 9999
https://gist.github.com/altendky/f3f09ecedda4a68fa097cd587baea1df
nvidia-driver-435: installed: <none> available: 435.21-0ubuntu0.18.04.2 (auto-install) [distro] non-free modalias: pci:v000010DEd00001FB8sv000017AAsd000022A8bc03sc00i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation
Perhaps it didn't actually install?
sudo ubuntu-drivers install --gpgpu nvidia:435
https://gist.github.com/altendky/c6995e7228b74f8099561a1f25d03f0a
ubuntu-drivers debug | nc termbin.com 9999
https://gist.github.com/altendky/6705f9335a1f64493f374b67c7d7aaf8
Then a power down...
Boots ok and shows login screen. I enter the password and press enter to sign in. The screen goes black except the cursor for a moment then returns to the login screen.
ubuntu-drivers debug | nc termbin.com 9999
(in a virtual console)
https://gist.github.com/altendky/9789d6fec3a16dd9ae45a9d131880bff
sudo journalctld --boot | nc termbin.com 9999
(in a virtual console)
https://gist.github.com/altendky/a49b3c0283eae564d2e127171852ea6d
sudo lspci -k | tee log && cat log | nc termbin.com 9999
(in a virtual console)
https://gist.github.com/altendky/1f8da152eab30ac6bac37b12d7ef9451
Don't we want to not have nouveau anymore?
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1fb8 (rev a1)
Subsystem: Lenovo Device 22a8
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
sudo lshw -C video | tee log && cat log | nc termbin.com 9999
(in a virtual console)
https://gist.github.com/altendky/8b638dc3dd4f2b46685eeb11aadb921a
The nvidia card is no longer unclaimed.
sudo lshw | tee log && cat log | nc termbin.com 9999
(in a virtual console)
https://gist.github.com/altendky/07c8fcb7c3585fdef8b251e8fc14f4e1
sudo cat /var/log/Xorg.0.log | tee log && cat log | nc termbin.com 9999
(in a virtual console)
https://gist.github.com/altendky/b1eb563c783d7137196d0811546f52cd
[ 512.187] (EE) Failed to load module "nvidia" (module does not exist, 0)
Perhaps this is saying it wants https://packages.ubuntu.com/bionic-updates/xserver-xorg-video-nvidia-435? Though if it does you would think it should have gotten it already. Maybe I misused ubuntu-drivers
? https://packages.ubuntu.com/bionic-updates/nvidia-driver-435 depends on xserver-xorg-video-nvidia-435
so installing it directly with apt
would have gotten the dep... Let's give ubuntu-drivers auto-install
a try.
sudo journalctl --follow --lines 0 > log
(in a virtual console)
https://gist.github.com/altendky/1de2fa0a4bf3a8759c5d58fa62c9ec4a
Above is just the messages from switching back to the login screen, trying to login, and switching back to the virtual console.
Dec 01 14:54:09 p1 /usr/lib/gdm3/gdm-x-session[2236]: (EE) Failed to load module "nvidia" (module does not exist, 0)
apt search '.*xorg.*nvidia.*' | nc termbin.com 9999
(in a virtual console)
https://gist.github.com/altendky/8eb4408b712bcbc1c4e48a90e88e9ef1
xserver-xorg-video-nvidia-435/bionic-updates 435.21-0ubuntu0.18.04.2 amd64
sudo ubuntu-drivers autoinstall |& nc termbin.com 9999
(in a virtual console)
<ugh, I managed to lose the output>
sudo ubuntu-drivers autoinstall |& nc termbin.com 9999
(in a virtual console)
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apt search '.*xorg.*nvidia.*' | nc termbin.com 9999
(in a virtual console)
https://gist.github.com/altendky/9eb9a9b362abafc1d0878f96eb4a7413
xserver-xorg-video-nvidia-435/bionic-updates,now 435.21-0ubuntu0.18.04.2 amd64 [installed,automatic]
That looks better. Apparently how I called ubuntu-drivers
above was a bad idea.
Let's shutdown and see.
Yep, login works again.
sudo journalctl --boot | nc termbin.com 9999
https://gist.github.com/altendky/edb6404835415fb28cc637e614524d39
xrandr | nc termbin.com 9999
https://gist.github.com/altendky/bcd10fbc4ad9ceef066c05b409377f11
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
eDP-1-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
And there's the HDMI... :] Brightness control does not have any effect other than the OSD. Black screen after suspend and resume. Plugging in the HDMI cable recovered the laptop display... long enough to type this then it went blank again. Unplug and replug had no effect. Short press power button has no apparent effect. Holding power button to force power off.
Started up again, logged in, just plugging in the HDMI cable extended the display and both the laptop and external monitor are active.
Previously I've both flailed a lot and found fixes for a couple issues (black screen on resume and brightness control) for running Kubuntu 19.10 on my ThinkPad Lenovo P1 Gen 2. The primary remaining user-apparent issue is the lack of HDMI output. While I did at one point get this working, I have been unable to recreate that scenario.
There is a lot of uncertainty in the present setup and lots of errors even in a Kubuntu 19.10 live boot
journalctl
log so I am attempting a 'fresh start'.