…in case you are experiencing any of these issues:
- black screen, computer won’t wake up, can’t log in after the screen locks, can’t log in after suspend
- multiple monitors won’t work, external monitor won’t work, computer won’t detect external monitor; external monitor glitches
- screen brightness buttons won’t work, can’t adjust screen brightness
- mouse scroll wheel is slow, can’t adjust mouse scroll wheel speed,
xdotoolwon’t work, Python
pynputcan’t detect mouse scroll wheel in certain applications, Shutter snipping tool won’t work, “show desktop” icon doesn’t work
This is knowledge I’ve acquired via hundreds of hours of troubleshooting over the last 5+ years of using Linux Ubuntu for 12+ hours per day, both at work and home, on my computers, and on my kids’ computers.
If you have any of the problems above, try these things:
- Check the BIOS/UEFI settings. Use “Discrete Graphics” instead of “Hybrid Graphics”.
- Use the latest LTS (Long-Term Support) version of Ubuntu, rather than a short-term support version.
- Install the latest non-open-source NVIDIA driver (in Ubuntu’s “Software & Updates” app) which works with external monitors and your brightness keys.
- Use the X11 window manager, NOT Wayland
- Use a USB-C to DP (Display Port) [best], or USB-C to HDMI [ok] video cable, rather than a USB-C to USB-C cable to your monitor.
- Check the BIOS/UEFI settings.
In particular if you have an NVIDIA graphics card:
Boot into your BIOS/UEFI and Ensure you have “Discrete Graphics” selected instead of “Hybrid Graphics”.
NVIDIA graphics drivers aren’t [always] compatible with “Hybrid Graphics”, which uses your internal graphics card built into your CPU, as well.
(From my answer here).
See my answers:
- Use the latest LTS (Long-Term Support) version of Ubuntu (ex: Ubuntu 20.04, 22.04, etc.), rather than the short-term support versions like Ubuntu 21.04, 23.04, etc.).
- You may not want to explore into the short-term support versions, as they aren’t as well-supported.
- Install the latest non-open-source NVIDIA driver that 1) comes with Ubuntu and is available in your “Software & Updates” app, 2) works with an external monitor, and 3) still allows your brightness buttons to work.
- See this question here: Ask Ubuntu: Installed Ubuntu 22.04 and I experience frequent freezes and crashes (when using NVIDIA graphics card)
The fix is to go to Ubuntu’s “Software & Updates” app –> “Additional Drivers” tab. Then, try the latest non-open-source video driver, one at a time, until you find one which works with an external monitor and doesn’t stop your screen brightness buttons from working. Sometimes, the latest NVIDIA driver introduces bugs, so it’s not always the latest one you should use. Also, the list of drivers in this menu is NOT in order, so pay attention to them.
In this screenshot, I have labelled the drivers from 1 through 7, in the order that I would try the drivers, or with an “x” to indicate “open kernel” or “Nouveau…open source” drivers which I wouldn’t use unless nothing else worked. In other words, I’d try the latest driver, which I labelled “1”, first, and if it had problems, I’d then try “2”, then “3”, etc, on down the list, stopping on and keeping the first one that works. In this case, I stopped on “3” because it worked with external monitors and didn’t mess up my brightness buttons. I don’t really know what the “server” versions of the drivers do, and I didn’t try them when I had first made this screenshot, but I’ve numbered them this time and would give them a shot too next time I have this issue.
- Use the X11 window manager, NOT Wayland
I present 3 fixes there.
Wayland is the new window manager, replacing X11 eventually, and it has a bunch of problems still. As far as I know, Ubuntu 22.04 is the first LTS Linux Ubuntu version to have Wayland turned on by default. I wanted to use it, but it just has too many issues. See the top of my answer above for what some of those issues are, and see my answer there for how to turn off Wayland.
In short, log out [of Ubuntu], click your name, click the gear in the bottom-right, choose the non-Wayland window manager option.
Use a USB-C to DP (Display Port) [best], or USB-C to HDMI [ok] video cable, rather than a USB-C to USB-C cable to your monitor.
USB-C to USB-C video/monitor cables may be trying to provide power into your laptop (to charge your laptop) at the same time as they are providing a video signal out of your laptop, to the monitor. This new double-feature seems to have problems on other OSs (like Windows) too, not just on Linux. So, disabling this “charge while displaying” type feature can help.
There are frequently two ways to disable it:
- Via a setting in the BIOS, or
- By using a cable that doesn’t support charging at the same time. Ex: a USB-C to DP (Display Port) or USB-C to HDMI cable.
- Of those two types of cables, I’d choose USB-C to DP if given the option, because the older versions of HDMI cannot support 4k signals at 60 Hz, but DP can. See my answer here: Ask Ubuntu: No 60Hz Refresh Rate option on my 32” 4k external monitor in Ubuntu 20.04.
That’s it! I suspect one of the above things will fix it for you.
I’m trying to future-proof myself for the day I do have to use Wayland, by preparing to replace Shutter (for screenshots),
imwheel (to fix my mouse scroll speed), and
xdotool (for my “show desktop” button, and automating keypresses like Super + D).
Here are some links or tools I need to be aware of:
- My question: How can I write a program to press keys, such as Windows + D, in Wayland? (replace
- Equivalent to xdotool for Wayland
- My question: pynput library not working as expected in Python to press Windows + D key
- How to detect key presses? [in Python]
- See also a couple of the links above.
- pywinauto - is working on Linux support too, even though it started with Windows I think
- My instructions to add a “Show Desktop” icon to your launcher
- My instructions to speed up your mouse scroll wheel speed
Share onTwitter Facebook LinkedIn
Leave a comment
Comments are powered by Utterances. A free GitHub account is required. Comments are moderated. Be respectful. No swearing or inflammatory language. No spam.
I reserve the right to delete any inappropriate comments. All comments for all pages can be viewed and searched online here.
To edit or delete your comment: click the "Comments" link at the top of the comments section below where it says how many comments have been left (this will take you to a GitHub page with all comments for this page) --> find your comment on this GitHub page and click the 3 dots in the top-right --> click "Edit" or "Delete". Editing or adding a comment from the GitHub page also gives you a nicer editor.