unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Blacklist Nouveau permanentely and no sound hda-intel
@ 2021-09-28 20:46 Marco Menne via
  2021-09-29 13:02 ` Tobias Geerinckx-Rice
  2021-09-29 14:44 ` Marco Menne
  0 siblings, 2 replies; 3+ messages in thread
From: Marco Menne via @ 2021-09-28 20:46 UTC (permalink / raw)
  To: help-guix

Hello together, this is my first post in your mailing list.

I searched a lot in the net but did'nt find an useful answer for Guix system.
I know to blacklist the nouveau graphics driver on boot but how can I blacklist it permanentely?
My second question is about the hda-intel sound driver. 
I have hda-intel and nvidia-hdmi sound modules. On Slackware I cloud blacklist the Nvidia driver and could get the intel driver working.
But as in Guix system there is no /etc/modprobe.d/ folder I don't know how to get my sound working.

cat /proc/asound/card*/codec* | grep Codec
Codec: Nvidia GPU 84 HDMI/DP

sudo dmesg | grep -i snd_hda_intel
[ 29.243097] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 29.243111] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[ 29.243171] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[ 29.243267] snd_hda_intel 0000:01:00.1: Disabling MSI
[ 29.243270] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 29.725366] snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops nv50_audio_component_bind_ops [nouveau])

lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)

Any advice would be great.
--
Mameka

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Blacklist Nouveau permanentely and no sound hda-intel
  2021-09-28 20:46 Blacklist Nouveau permanentely and no sound hda-intel Marco Menne via
@ 2021-09-29 13:02 ` Tobias Geerinckx-Rice
  2021-09-29 14:44 ` Marco Menne
  1 sibling, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2021-09-29 13:02 UTC (permalink / raw)
  To: Marco Menne; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1807 bytes --]

Marco,

Hullo and welcome!

"Marco Menne" via 写道:
> I searched a lot in the net but did'nt find an useful answer for 
> Guix system.
> I know to blacklist the nouveau graphics driver on boot but how 
> can I blacklist it permanentely?

You don't mention how you do so on boot.

I assume you're talking about adding 
‘modprobe.blacklist=nouveau[,…]’ to the kernel command line[0] in 
GRUB.

You can easily ask[1] Guix to add it to the default kernel command 
line at each boot, like so:

  (operating-system
    […]
    (kernel-arguments
      (cons* "modprobe.blacklist=nouveau[,…]"
             […]
             %default-kernel-arguments))
    […])

Don't forget to reconfigure and optionally reboot.

> My second question is about the hda-intel sound driver. 
> I have hda-intel and nvidia-hdmi sound modules. On Slackware I 
> cloud blacklist the Nvidia driver and could get the intel driver 
> working.
> But as in Guix system there is no /etc/modprobe.d/ folder I 
> don't know how to get my sound working.

You forgot to mention how you'd use /etc/modprobe.d to do so… ;-) 
So here too I can only guess an answer.

If you just want to add default module options, you can do so on 
the kernel command line as well: either manually in GRUB (to test) 
or the kernel-arguments field mentioned above.

For a random example plucked from ‘modinfo snd_hda_intel’: to 
disable power saving, simply add "snd_hda_intel.power_save=0", and 
the kernel will set this option for you whenever snd_hda_intel is 
loaded, no matter when or how or who loads it.

Kind regards,

T G-R

[0]: 
https://guix.gnu.org/manual/devel/en/guix.html#Initial-RAM-Disk
[1]: 
https://guix.gnu.org/manual/devel/en/guix.html#operating_002dsystem-Reference

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Blacklist Nouveau permanentely and no sound hda-intel
  2021-09-28 20:46 Blacklist Nouveau permanentely and no sound hda-intel Marco Menne via
  2021-09-29 13:02 ` Tobias Geerinckx-Rice
@ 2021-09-29 14:44 ` Marco Menne
  1 sibling, 0 replies; 3+ messages in thread
From: Marco Menne @ 2021-09-29 14:44 UTC (permalink / raw)
  To: help-guix

Oh sorry, I didn't wrote that.
Your solution is exactly what I mean. Thank you.

29. September 2021 15:02, "Tobias Geerinckx-Rice" <me@tobias.gr> schrieb:

> Marco,
> 
> Hullo and welcome!
> 
> "Marco Menne" via 写道:
> 
>> I searched a lot in the net but did'nt find an useful answer for
>> Guix system.
>> I know to blacklist the nouveau graphics driver on boot but how
>> can I blacklist it permanentely?
> 
> You don't mention how you do so on boot.
> 
> I assume you're talking about adding
> ‘modprobe.blacklist=nouveau[,…]’ to the kernel command line[0] in
> GRUB.
> 
> You can easily ask[1] Guix to add it to the default kernel command
> line at each boot, like so:
> 
> (operating-system
> […]
> (kernel-arguments
> (cons* "modprobe.blacklist=nouveau[,…]"
> […]
> %default-kernel-arguments))
> […])
> 
> Don't forget to reconfigure and optionally reboot.
> 
>> My second question is about the hda-intel sound driver.
>> I have hda-intel and nvidia-hdmi sound modules. On Slackware I
>> cloud blacklist the Nvidia driver and could get the intel driver
>> working.
>> But as in Guix system there is no /etc/modprobe.d/ folder I
>> don't know how to get my sound working.
> 
> You forgot to mention how you'd use /etc/modprobe.d to do so… ;-)
> So here too I can only guess an answer.
> 
> If you just want to add default module options, you can do so on
> the kernel command line as well: either manually in GRUB (to test)
> or the kernel-arguments field mentioned above.
> 
> For a random example plucked from ‘modinfo snd_hda_intel’: to
> disable power saving, simply add "snd_hda_intel.power_save=0", and
> the kernel will set this option for you whenever snd_hda_intel is
> loaded, no matter when or how or who loads it.
> 
> Kind regards,
> 
> T G-R
> 
> [0]:
> https://guix.gnu.org/manual/devel/en/guix.html#Initial-RAM-Disk
> [1]:
> https://guix.gnu.org/manual/devel/en/guix.html#operating_002dsystem-Reference


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-29 14:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 20:46 Blacklist Nouveau permanentely and no sound hda-intel Marco Menne via
2021-09-29 13:02 ` Tobias Geerinckx-Rice
2021-09-29 14:44 ` Marco Menne

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).