You are not logged in.

#1 2024-02-15 12:55:19

NGStaph
Member
Registered: 2021-04-11
Posts: 34

[Solved] Help fixing laptop speakers.

I am attempting to get the top speakers working on my Dell Inspiron 16 Plus 7630.

I cloned torvalds/linux in order to make modifications to `sound/pci/hda/patch_realtek.c` as instructed here: relevant issue

however the source directory that i get on running

 
pkgctl repo clone --protocol=https linux
makepkg --nobuild

does not contain the file that i wish to patch viz. `sound/pci/hda/patch_realtek.c`

please advise on how i ought to proceed with building a custom kernel to get my speaker running.

sites referred:
  - https://wiki.archlinux.org/title/Kernel … ild_system
  - https://wiki.archlinux.org/title/Patching_packages

Last edited by NGStaph (2024-02-15 16:14:41)

Offline

#2 2024-02-15 13:19:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: [Solved] Help fixing laptop speakers.

It will have that file though the inital dir structure might be a bit different, jsut from package logistics should be src/linux-6.7.4/sound/pci/hda/patch_realtek.c or so no?

Last edited by V1del (2024-02-15 13:22:57)

Online

#3 2024-02-15 13:36:14

NGStaph
Member
Registered: 2021-04-11
Posts: 34

Re: [Solved] Help fixing laptop speakers.

my bad i was checking `sound/hda` instead of `sound/pci/hda`. I'll mark this issue as solved as soon as i get the patch working.

Offline

#4 2024-02-15 16:12:26

NGStaph
Member
Registered: 2021-04-11
Posts: 34

Re: [Solved] Help fixing laptop speakers.

Alright that worked. top speakers now work! thanks for your help!

quick question: why does adding MAKEFLAGS = '-j$(nproc)' to the terminal emulator work? but adding them to /etc/environment crashes my laptop on running `makepkg -s`?

could you help me submit a patch for this?

Offline

#5 2024-02-15 18:09:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: [Solved] Help fixing laptop speakers.

/etc/environment is not interpreted by a shell and $(nproc) is a shell construct (you create a subshell which in turn runs a command and prints the output of the command at the location), within /etc/environment makeflags will get set to the literal string you set. You might want to export something like that in /etc/profile if you want that globally which is going to be sourced by a shell.

You'd generally configure makeflags for makepkg in /etc/makepkg.conf instead of the global environment though: https://wiki.archlinux.org/title/Makepk … uild_times

As for submitting the patch, you'd have to send one to the linux kernel mailing lists, the general process is described here: https://www.kernel.org/doc/html/v6.7/pr … tches.html , recipient wise you should send it to tiwai@suse.de

Online

Board footer

Powered by FluxBB