Nouveau Archive mirror
 help / color / mirror / Atom feed
From: Linux User #330250 <linuxuser330250@gmx.net>
To: marc_nouveau@merlins.org, nouveau@lists.freedesktop.org
Subject: Re: [Nouveau] Thinkpad P17 gen 2 kernel 6.4 and 6.6 lack of support for nvidia GA104GLM [RTX A5000 Mobile] and missing module firmware
Date: Wed, 31 Jan 2024 21:06:04 +0100	[thread overview]
Message-ID: <f5e55792-522d-441f-89d2-0bfddc4f8515@gmx.net> (raw)
In-Reply-To: <20231202171326.GB24486@merlins.org>

On 12/02/23 Marc MERLIN wrote:
> Howdy,

Howdy!

> I'm trying a Thnkpad P17 gen2, the last thinkpad that still comes in 17"
> 4K (newer ones are 16" only, so I'm looking for other worthwhile linux
> laptops with 17" or bigger LCD that also does 4K, the alienware I saw
> was 18" but not 4K)
>
> Unfortunately I seem to need the nouveau driver to turn off the nvidia
> chip I don't plan on using (intel graphics is fine for me), and bios
> only allows 'bybrid' or nvidia only)
> On my P73, nouveau never really worked in the 3 years I've had it, but
> it could at least turn off the nvidia chip. On P17gen2 it does not seem
> to be able to do so.

At the moment you'd have to use the proprietary Nvidia driver for
graphics support. But there are, and have been for a long time, ways to
disable the additional dedicated graphics device completely and save
power, which is nice thing on a laptop...

> sauron:~# lspci | grep VGA
> 00:02.0 VGA compatible controller: Intel Corporation Tiger Lake-H GT1 [UHD Graphics] (rev 01)
> 01:00.0 VGA compatible controller: NVIDIA Corporation GA104GLM [RTX A5000 Mobile] (rev a1)

Note the Nvidia card's PCI address is 01:00.0...

> What is the next recommended step?

STEP #1: disable nouveau by blacklisting the module.

There's more than one way to do this:

* Add it to /etc/modprobe.d/<someconfigfilename>.conf
E.g. /etc/modprobe.d/blacklist-nouveau.conf, run in a root shell (if the
file doesn't already exist!):
echo "blacklist nouveau" > /etc/modprobe.d/blacklist-nouveau.conf

* Add a kernel command line parameter: modprobe.blacklist=nouveau
How you do this depends on which Linux (distribution) you're running.
E.g. GRUB's command line may be used, if GRUB /is/ used, or dracut and
so on...

STEP #2: you could power down the PCI device (only after you've disabled
the driver in step #1).

Try it out first by disabling the PCI device you noted above on a
running system (as root!), e.g. like this:

echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/remove

If that works, you'd do something like adding a new udev rule in e.g.
/etc/udev/rules.d/00-remove-nvidia.rules with contents of the sort:
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de",
ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"

Take a full example from the Arch Wiki:
https://wiki.archlinux.org/title/Hybrid_graphics

Other resouces:
https://github.com/bayasdev/nvidia-gpu-off
https://unix.stackexchange.com/questions/702774/how-to-disable-pcie-device-at-boot

> Thanks,
> Marc

Welcome! Hope this helps, and I also hope it's not too late. I just saw
your posting and thought, better late than never...
Linux User #330250

      parent reply	other threads:[~2024-01-31 20:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-02 17:13 [Nouveau] Thinkpad P17 gen 2 kernel 6.4 and 6.6 lack of support for nvidia GA104GLM [RTX A5000 Mobile] and missing module firmware Marc MERLIN
2023-12-02 18:08 ` Timur Tabi
2023-12-02 22:14 ` Marc MERLIN
2024-01-31 20:06 ` Linux User #330250 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f5e55792-522d-441f-89d2-0bfddc4f8515@gmx.net \
    --to=linuxuser330250@gmx.net \
    --cc=marc_nouveau@merlins.org \
    --cc=nouveau@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).