Closed utterances-bot closed 1 year ago
I'm still having issues on a brand new Dell Precision 5570 running Ubuntu 22.04 with X11 (not Wayland) for which I've already done my own recommendations above. So, here are some more things I'm trying:
From my answer here: Ask Ubuntu: ucsi_acpi PPM init failed (-110):
Also try
- NVIDIA Settings: change to "Performance mode" instead of "On-Demand" mode.
- Manually make your AMDgpu NOT primary (
Option "PrimaryGPU" "no"
), and your NVIDIA GPU primary (Option "PrimaryGPU" "yes"
): Unix & Linux: Mint 19.3 Cinnamon: ucsi_acpi USBC000:00: PPM init failed (-110)
See my answer above for more details on these 2 other things to try.
See also my comment here.
Alright, here is my test process:
My Dell Precision 5570 laptop won't suspend.
Ubuntu 22.04 OS. NVIDIA graphics card with the driver chosen and "step 1" done, as explained in my answer here: Ask Ubuntu: ucsi_acpi PPM init failed (-110)
X11 Window manager.
As it begins to wake up, I also see these errors. I recorded a video to catch it in time, then paused on the frame with these errors:
Here are the errors (with an extra line added at the end from a later screenshot I took from the same video):
[ 9376.997917] i915 0000:00:02.0: [drm] *ERROR* [ENCODER:271:DDI TC2/PHY TC2] [DPRX] Failed to enable link training
[ 9399.622716] ucsi_acpi USBC000:00: failed to re-enable notifications (-110)
[ 9429.834129] ucsi_acpi USBC000:00: failed to re-enable notifications (-110)
[ 9439.529120] ucsi_acpi USBC000:00: failed to re-enable notifications (-110)
[ 9458.178700] ucsi_acpi USBC000:00: failed to re-enable notifications (-110)
[ 9505.841380] ucsi_acpi USBC000:00: failed to re-enable notifications (-110)
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1970957
Liam Coogan (lcoogan) said:
I was able to fix this problem on 22.04 LTS by disabling 'Always on USB' in the BIOS.
The same fix does NOT work on 22.10. Why? Beats me.
https://gist.github.com/bmcbm/375f14eaa17f88756b4bdbbebbcfd029
More potential fixes that did not fix my failure-to-suspend issue:
This did not fix the suspend issue either :(:
See: https://unix.stackexchange.com/a/597882/114401
Note: in the commands below, subl
is my text editor (Sublime Text 3).
# Back up all files at `/usr/share/X11/xorg.conf.d`.
mkdir -p ~/bak/usr__share__X11
cp -ai /usr/share/X11/xorg.conf.d ~/bak/usr__share__X11
# create an empty file with a note to contain the backup date
touch ~/bak/usr__share__X11/backed_up_2023.06.11
cd /usr/share/X11/xorg.conf.d
sudo subl 10-amdgpu.conf
Change this:
Section "OutputClass"
Identifier "AMDgpu"
MatchDriver "amdgpu"
Driver "amdgpu"
EndSection
to this:
Section "OutputClass"
Identifier "AMDgpu"
MatchDriver "amdgpu"
Driver "amdgpu"
Option "PrimaryGPU" "no"
EndSection
sudo subl /usr/share/X11/xorg.conf.d/10-nvidia.conf
Change this:
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection
to this:
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection
Let's try downgrading the graphics driver. In "Software & Updates" --> Additional Drivers, I have the 530 (proprietary)
driver selected:
Let's try 530-open (proprietary, tested)
, then 525 (proprietary)
, 525-server (proprietary)
, 525-open (proprietary)
, etc. etc.
530 (proprietary)
- boots; external monitors work; laptop screen brightness buttons work; it will not properly suspend (pressing a key wakes it up).530-open (proprietary, tested)
- will NOT boot. When I tried to boot, I typed in my LUKS-encryption password, and it successfully decrypted, but then it got stuck on a type of Ubuntu loading screen. Pressing Ctrl + Alt + Delete revealed this text output on the screen, with the given errors at the bottom of that output:
470 (proprietary)
- [same behavior as 530 (proprietary)
] boots; external monitors work; laptop screen brightness buttons work; it will not properly suspend (pressing a key wakes it up).470-server (proprietary)
- [same behavior as 530 (proprietary)
] boots; external monitors work; laptop screen brightness buttons work; it will not properly suspend (pressing spacebar wakes it up).
nvidia-settings
utility to change the settings. I haven't been thoroughly checking this with the other drivers, so I don't know exactly which do vs don't have the NVIDIA settings GUI application.525 (proprietary)
- [same behavior as 530 (proprietary)
] boots; external monitors work; laptop screen brightness buttons work; it will not properly suspend (pressing spacebar wakes it up). The NVIDIA settings GUI application is there.515 (proprietary)
- [same behavior as 530 (proprietary)
] boots; external monitors work; laptops screen brightness buttons work; it will not properly suspend (pressing spacebar wakes it up). The NVIDIA settings GUI application is there.510 (proprietary)
nouveau (open source)
Ok, so I've learned a lot over the last couple weeks, and absolutely nothing is wrong with my brand new Dell Precision 5570 laptop running Ubuntu 22.04 with X11 (not Wayland).
The fact that pressing any key wakes up the laptop from sleep does not mean it wasn't properly asleep, or that sleep wasn't working! Rather, this laptop simply supports a shallower s2idle
sleep mode, rather than the deeper deep
sleep mode. Apparently, all of my main Linux laptops in the past have supported the deep
sleep mode, so I just got used to that behavior is all, and expected it on this laptop too. This laptop is fine.
I'll write a follow-up article about it.
Meanwhile, I am doing the following:
/usr/share/X11/xorg.conf.d/10-amdgpu.conf
and /usr/share/X11/xorg.conf.d/10-nvidia.conf
files.530 (proprietary)
one which works perfectly and is the latest proprietary NVIDIA video driver provided by Ubuntu.And here are some links to get me started on my next article about Linux sleep modes:
If you need a USB-C or USB-A video adapter to HDMI, DP, etc., see also my answer here:
Common ways to fix video driver (and related) issues in Linux Ubuntu | GabrielStaples.com home
…in case you are experiencing any of these issues:
https://gabrielstaples.com/common-ways-to-fix-linux-video-driver-issues/