Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

  1. #11
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

    Quote Originally Posted by MAFoElffen View Post
    Code:
    sudo nano /usr/lib/udev/rules.d/61-gdm.rules
    At the above line (above in red), near the end of the file...
    Code:
    LABEL="gdm_prefer_xorg"
    #RUN+="/usr/lib/gdm-runtime-config set daemon PreferredDisplayServer xorg"
    GOTO="gdm_end"
    
    LABEL="gdm_disable_wayland"
    #RUN+="/usr/lib/gdm-runtime-config set daemon WaylandEnable false"
    GOTO="gdm_end"
    Add # to the two lines like what is shown above (scroll all the way down, both are at the bottom, to comment those two lines out. Save, then reboot. At the graphical login, select the gear Icon again, to see if you have the Wayland Option to login from...

    Note that is was nVidia themselves, that asked Canonical, right before Ubuntu 22.04's release, to prefer Xorg over Wayland.
    Once again MAFoElffe thanks for covering in my absence, it's like we are of one mind at times.
    If this don't work I have one more suggestion to offer.
    To the OP, this may seem/feel like taking a hammer to turn a radio off.....LOL
    Last edited by 1fallen; May 18th, 2023 at 06:13 PM.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  2. #12
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

    Quote Originally Posted by 1fallen View Post
    Once again MAFoElffe thanks for covering in my absence, it's like we are of one mind at times.
    If this don't work I have one more suggestion to offer.
    To the OP, this may seem/feel like taking a hammer to turn a radio off.....LOL
    LOL. I knew where you were going with that.

    Mine works and offers up different options to use Wayland, because I do not use GDM3. I use LightDM as a DM, so mine does not hit the logic in that rule for GDM3. Installing LightDM would be another option.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #13
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

    Quote Originally Posted by MAFoElffen View Post
    LOL. I knew where you were going with that.

    Mine works and offers up different options to use Wayland, because I do not use GDM3. I use LightDM as a DM, so mine does not hit the logic in that rule for GDM3. Installing LightDM would be another option.
    Bingo, I'm telling or reporting to the staff you have mind reading powers, scary.
    (Clarity Joke)
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  4. #14
    Join Date
    Jul 2013
    Beans
    91

    Re: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

    Well, yes, that hack might force Wayland. Or break something.

    But why is Wayland disabled? None of the tests that take control to "gdm_disable_wayland" should be true.

    Code:
    # disable Wayland if modesetting is disabled
    IMPORT{cmdline}="nomodeset", GOTO="gdm_disable_wayland
    Not sure about this.

    Code:
    # disable wayland if nvidia-drm modeset is not enabled
    ATTR{parameters/modeset}!="Y", GOTO="gdm_disable_wayland"
    Not sure about this.

    Code:
    # disable wayland for nvidia drivers versions lower than 470
    ATTR{version}=="4[0-6][0-9].*|[0-3][0-9][0-9].*|[0-9][0-9].*|[0-9].*", GOTO="gdm_disable_wayland"
    Should not take the goto for for driver 470.182.03.

    It may be that modesetting is disabled:
    Code:
    $ inxi -Gxx
    Graphics:
      Device-1: NVIDIA GK107 [GeForce GT 640] vendor: eVga.com. driver: nvidia
        v: 470.182.03 pcie: speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.0
        chip-ID: 10de:0fc1
      Display: x11 server: X.Org v: 1.21.1.4 compositor: gnome-shell v: 42.5
        driver: X: loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa
        gpu: nvidia display-ID: :1 screens: 1
      Screen-1: 0 s-res: 1920x1080 s-dpi: 101
      Monitor-1: HDMI-0 res: 1920x1080 dpi: 102 diag: 546mm (21.5")
      OpenGL: renderer: NVIDIA GeForce GT 640/PCIe/SSE2
        v: 4.6.0 NVIDIA 470.182.03 direct render: Yes
    $ grep modesetting /var/log/Xorg.0.log
    [155004.672] (==) Matched modesetting as autoconfigured driver 2
    [155004.802] (II) LoadModule: "modesetting"
    [155004.802] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
    [155004.834] (II) Module modesetting: vendor="X.Org Foundation"
    [155004.884] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    [155004.901] (WW) Falling back to old probe method for modesetting
    [155005.857] (II) UnloadModule: "modesetting"
    [155005.857] (II) Unloading modesetting
    Does that mean modesetting is disabled? And if so, why?

  5. #15
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

    Do you want to use "Wayland"? If so, then try the change...

    As your first post said, my machine has
    Code:
    mafoelffen@Mikes-ThinkPad-T520:~$ grep -a1 'Wayland' /etc/gdm3/custom.conf
    # Uncomment the line below to force the login screen to use Xorg
    WaylandEnable=false
    But my machine does not use GDM3. Yet mine has "Ubuntu on Wayland" offered as a Desktop and starts Wayland through LightDM.

    You could keep asking "Why?"... Or you could try it and see if it works. That is your choice.

    You don't have to do anything you do not want to. Nor do I "need" to recommend more. Right? I am here to help people who want and need help.

    I am not in any way connected with Canonical, nor is any else here. We are all just volunteers helping each other. I cannot say why Canonical does things. I can only look at what is there, test what does and doesn't work. We are given what is there to work with, and to try to make the best of it. Given the way it is presented to us, the "Why" is not important, as we cannot change their reasons behind those. We can only change what "we have."

    Does that make sense to you? Just trying to help you.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  6. #16
    Join Date
    Jul 2013
    Beans
    91

    Re: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

    Turns out this is a known Ubuntu bug: https://bugs.launchpad.net/ubuntu/+s...3/+bug/1968929

    It was supposedly fixed, but comments after the fix indicate it is still broken, at least in LTS releases.

  7. #17
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

    You responded to a closed bug report, without opening a new bug (?) and referred back to this thread.

    ...and yet (in this thread), you still didn't try anything we suggested. LOL. They can now see your commitment. I can see this is not going to get anywhere. Oh, well. On to other things.

    +1 = Do as they asked you to do: File a new bug report.

    If that is what you would like to pursue.. I hope you follow their instructions and try the things they suggest.

    Hopefully you will commit to your own participation in your solution. People cannot do that for you.

    Just with trying to help you here-- You did not do so "here." When we asked you for information by posting output to commands, you fought it and resisted. When asked to try things, and see if it worked, you just didn't. We can't force you to participate. And you would have to pay me lots to do it for you, without you involved in the solution. (I am an IT Consultant.) And "Not all money is good money."

    I hope you will post back here with updates on your progress.

    Sincerely and honestly-- I wish you well.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  8. #18
    Join Date
    Jul 2013
    Beans
    91

    Re: Does Wayland work on Ubuntu 22.04 LTS with an NVidia GPU?

    OK. Created new bug report, with all the details: https://bugs.launchpad.net/ubuntu/+s...3/+bug/2020249

    Commenting out all those tests for not using Wayland is the big-hammer approach. I'd expect that to have side effects. Ones not reportable as bugs, since checks had been bypassed.
    So that's not a permanent solution.

    Wayland vs. NVidia has been a problem since 2019, and has been "fixed" several times. The problem still keeps coming up in some configurations.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •