LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-02-2022, 03:50 PM   #1
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Rep: Reputation: 15
Audio issues with razer blade 15 2022


Hey all,

Quick summery of what I am seeing before going into what I have tried...
After setting up Ubuntu, I noticed the speaker channels are reversed, the right channel plays out of the left speaker an left channel out of the right. I am also noticing the microphone is not picking up any audio, but is being recognized

Ubuntu 21.10 running 5.17.0-051700rc6-generic kernel (using latest since 12th gen Intel has some improvements in 5.16 and just went with latest...)
Upgraded SOC to 2.0
Code:
$ inxi -A                                                         
Audio:     Device-1: Intel driver: sof-audio-pci-intel-tgl 
           Device-2: NVIDIA driver: snd_hda_intel 
           Sound Server-1: ALSA v: k5.17.0-051700rc6-generic running: yes 
           Sound Server-2: PulseAudio v: 15.0 running: yes 
           Sound Server-3: PipeWire v: 0.3.32 running: yes
Code:
lshw -c multimedia
WARNING: you should run this program as super-user.
  *-multimedia              
       description: Audio device
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0.1
       bus info: pci@0000:01:00.1
       version: a1
       width: 32 bits
       clock: 33MHz
       capabilities: bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:17 memory:84080000-84083fff
  *-multimedia
       description: Multimedia audio controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 1f.3
       bus info: pci@0000:00:1f.3
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list
       configuration: driver=sof-audio-pci-intel-tgl latency=32
       resources: iomemory:640-63f iomemory:640-63f irq:175 memory:645c138000-645c13bfff memory:645c000000-645c0fffff
(more info can be found http://alsa-project.org/db/?f=bc38d4...e7dedd01c1cf26 )



So far for the channel issue, I have tried solutions to create a pulse remap sync to reverse the channels, this resulted in no audio as well as tried to reverse the channel-map in teh pulse alsa mixer profile but that also did not solve it.


Kinda at the end of my ability to debug this, I'm currently thinking its either a firmware issue or something in alsa, but not sure how I can figure out the cause. Any help would be appreciated to figure out the area of this problem (or if there is a solution/workaround)
 
Old 03-03-2022, 12:33 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Can you reverse your pulse swap amd install
hda-jack-retask it might be called something else on Ubuntu.....search forums on howvo use it pls
Or try https://www.linuxquestions.org/quest...2/#post6093205

Last edited by aus9; 03-03-2022 at 12:37 AM.
 
Old 03-04-2022, 02:59 AM   #3
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Original Poster
Rep: Reputation: 15
Thanks aus9,
I did try hda-hack-retask but could not get it to help in this case. While it did not make anything worse, I am unable to get the audio channel to work. I'm probably going to spend tomorrow trying to further debug the issue.
 
Old 03-05-2022, 04:36 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
no worries it might help before you play with it...to post the current output of
hdajacksensetest

for me, without swapping pins I need to know the true pin for left and right ....but I am using a desktop speaker system so I can just swap physical speakers if sound test for left channel is playing thru right etc
 
Old 03-05-2022, 11:27 PM   #5
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Original Poster
Rep: Reputation: 15
Haha, I too wish I could just switch the wires. I did verify Windows does play out of the right channel, so it does not appear to be a "wiring" issue.

Code:
sudo hdajacksensetest -c 1 -a
Pin 0x12 (Not connected): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Not connected): present = No
Pin 0x15 (Not connected): present = No
Pin 0x16 (Not connected): present = Yes
Pin 0x17 (Internal Speaker): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Black Mic, Right side): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x1f (Not connected): present = No
Pin 0x21 (Black Headphone, Right side): present = No
(just for completeness)
Code:
sudo hdajacksensetest -c 0 -a
Pin 0x04 ( Digital Out, HDMI): present = No
Pin 0x05 ( Digital Out, HDMI): present = No
Pin 0x06 ( Digital Out, HDMI): present = No
Pin 0x07 ( Digital Out, HDMI): present = No
Anyway I started looking at SOF/kernel (found the patch_realtek https://github.com/torvalds/linux/bl...atch_realtek.c ) and been using this to help understand this whole side of the kernel. From this, I did notice the alc274 aliases the alc269 (at least in the code). I found the datasheet for the 269 and did see the pin config mentions a L/R switch option. Based on the alsa-info output it appears the node does not have that capability, but at the same time, if windows is playing out of the right channel, it makes sense in my head that the chip has to be allowing L/R switching. So I am wondering if maybe the node is wrong (which retask should help figure this out) so I am wondering if there needs to be some fixup applied for this model.

Anyway slowly (hopefully) making progress, at least learning a lot in the process.

Edit: Noticing node 0x16 is present, so going to look into this node.


Tried reconfiguring to 0x16 and no audio with this configuration...
Code:
sudo hdajacksensetest -c 0 -a
Pin 0x12 (Not connected): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Not connected): present = No
Pin 0x15 (Not connected): present = No
Pin 0x16 (Internal Speaker): present = Yes
Pin 0x17 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Black Mic, Right side): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x1f (Not connected): present = No
Pin 0x21 (Black Headphone, Right side): present = No
Also just to post my initial attempt:
Code:
static void alc274_fixup_l_r_2(struct hda_codec *codec) {
	snd_hda_codec_write(codec, 0x14, 0,
			    0x70c, 0xf8);
}
which I called from the init,
I was hoping I could set the left/right swap register, but this did nothing. Thinking I just need to find the 274 datasheet

Last edited by brianmay27; 03-06-2022 at 12:52 AM.
 
Old 03-06-2022, 03:42 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Yikes I forgot to check correctly your loaded modules. You have IMHO interference.

OK so if I understand you correctly....these speakers are analog and not hdmi.
so it looks like you need to blacklist the hdmi kernel module for nvidia device.
and you are almost the opposite of another member I have yet to help
https://www.linuxquestions.org/quest...ch-4175708469/

so do you have sof firmware?

I think the main sound module = sof-hda-dsp

Now there is some strangeness in your alsa.info output at the bottom....notice that alc274.

we have
Quote:
ALC22x/23x/25x/269/27x/28x/29x (and vendor-specific ALC3xxx models)
29 ======
30 laptop-amic Laptops with analog-mic input
31 laptop-dmic Laptops with digital-mic input
32 alc269-dmic Enable ALC269(VA) digital mic workaround
33 alc271-dmic Enable ALC271X digital mic workaround
34 inv-dmic Inverted internal mic workaround
35 headset-mic Indicates a combined headset (headphone+mic) jack
36 headset-mode More comprehensive headset support for ALC269 & co
37 headset-mode-no-hp-mic Headset mode support without headphone mic
38 lenovo-dock Enables docking station I/O for some Lenovos
39 hp-gpio-led GPIO LED support on HP laptops
40 dell-headset-multi Headset jack, which can also be used as mic-in
41 dell-headset-dock Headset jack (without mic-in), and also dock I/O
42 alc283-dac-wcaps Fixups for Chromebook with ALC283
43 alc283-sense-combo Combo jack sensing on ALC283
44 tpt440-dock Pin configs for Lenovo Thinkpad Dock support
ref
https://mjmwired.net/kernel/Document...dio-Models.txt

none of them seem to have specific alc274 model=string that we can use. Except for laptop-*mic.
You may notice for alsa.info for the ARECORD section that
a) no capture for hdmi....which is normal
b) mic appears to be digital so....

you could have a separate /etc/modprobe.d/model.conf (with contents)
Quote:
options sof-hda-dsp model=laptop-dmic
2) also with your alsa.info....notice at the top a lot of mixer controls mention hdmi.

I think blacklist of snd_hda_intel with a full reboot might change and any change could be good
/etc.modprobe.d/blacklist.conf (with contents)
Quote:
blacklist snd_hda_intel
3) You can combine modprobe.d *conf files into one file....but it makes troubleshooting harder rather than you say I am not using conf x or conf y etc

Last edited by aus9; 03-06-2022 at 03:52 AM.
 
Old 03-07-2022, 09:57 PM   #7
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Original Poster
Rep: Reputation: 15
No luck, I blocked the snd module before at some point, the options I also tried (but I used options snd-hda-intel model instead). Anyway with it blocked and model set to laptop-dmic I still have reversed output and no input.

Code:
➜  ~ lsmod | grep intel
snd_soc_intel_hda_dsp_common    20480  1 snd_soc_skl_hda_dsp
intel_tcc_cooling      16384  0
intel_powerclamp       20480  0
kvm_intel             417792  0
kvm                  1028096  1 kvm_intel
ghash_clmulni_intel    16384  0
aesni_intel           376832  9
crypto_simd            16384  1 aesni_intel
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel
snd_sof_pci_intel_tgl    16384  0
snd_sof_intel_hda_common   102400  1 snd_sof_pci_intel_tgl
soundwire_intel        40960  1 snd_sof_intel_hda_common
soundwire_generic_allocation    16384  1 soundwire_intel
soundwire_cadence      36864  1 soundwire_intel
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
snd_sof_pci            20480  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
snd_sof               163840  2 snd_sof_pci,snd_sof_intel_hda_common
snd_soc_hdac_hda       24576  1 snd_sof_intel_hda_common
snd_hda_ext_core       32768  4 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda
snd_soc_acpi_intel_match    61440  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_intel_dspcfg       32768  1 snd_sof_intel_hda_common
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec         155648  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_soc_skl_hda_dsp
snd_hda_core          106496  10 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda
soundwire_bus          94208  3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
snd_soc_core          339968  7 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_dmic,snd_soc_skl_hda_dsp
intel_rapl_msr         20480  0
snd_pcm               147456  11 snd_hda_codec_hdmi,snd_usb_audio,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
btintel                40960  1 btusb
intel_cstate           20480  0
bluetooth             774144  34 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
intel_rapl_common      36864  2 intel_rapl_msr,processor_thermal_rapl
intel_vsec             20480  0
intel_hid              24576  0
sparse_keymap          16384  1 intel_hid
intel_lpss_pci         28672  0
intel_lpss             16384  1 intel_lpss_pci
➜  ~ lspci -s 00:1f.3 -v
00:1f.3 Multimedia audio controller: Intel Corporation Device 51c8 (rev 01)
	DeviceName: Onboard - Sound
	Subsystem: Razer USA Ltd. Device 201b
	Flags: bus master, fast devsel, latency 32, IRQ 175, IOMMU group 14
	Memory at 645c138000 (64-bit, non-prefetchable) [size=16K]
	Memory at 645c000000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: sof-audio-pci-intel-tgl
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
Not sure why lspci still shows the snd_hda_intel module even though it is unloaded (maybe thats expected?)

As for the sof firmware, I do have sof firmeware, I upgraded to 2.0 manually using their sof-bin repo.

Here is the kernel logs grepped "sof"
Code:
Mar  7 18:48:16 brian-Blade kernel: [    0.941637] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Mar  7 18:48:16 brian-Blade kernel: [    0.941638] software IO TLB: mapped [mem 0x0000000039474000-0x000000003d474000] (64MB)
Mar  7 18:48:16 brian-Blade kernel: [    1.166885] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
Mar  7 18:48:16 brian-Blade kernel: [    1.166893] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
Mar  7 18:48:16 brian-Blade kernel: [    3.783806] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
Mar  7 18:48:16 brian-Blade kernel: [    3.783828] sof-audio-pci-intel-tgl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
Mar  7 18:48:16 brian-Blade kernel: [    3.783845] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
Mar  7 18:48:16 brian-Blade kernel: [    3.784038] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
Mar  7 18:48:16 brian-Blade kernel: [    4.524958] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Mar  7 18:48:16 brian-Blade kernel: [    4.603694] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
Mar  7 18:48:17 brian-Blade kernel: [    5.567109] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
Mar  7 18:48:17 brian-Blade kernel: [    5.567113] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
Mar  7 18:48:17 brian-Blade kernel: [    5.567118] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
Mar  7 18:48:17 brian-Blade kernel: [    5.567906] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:0:0-b678a
Mar  7 18:48:17 brian-Blade kernel: [    5.567909] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:20:0 Kernel ABI 3:18:0
Mar  7 18:48:17 brian-Blade kernel: [    5.567911] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
Mar  7 18:48:17 brian-Blade kernel: [    5.567914] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
Mar  7 18:48:18 brian-Blade kernel: [    5.661968] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:0:0-b678a
Mar  7 18:48:18 brian-Blade kernel: [    5.661972] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:20:0 Kernel ABI 3:18:0
Mar  7 18:48:18 brian-Blade kernel: [    5.661974] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
Mar  7 18:48:18 brian-Blade kernel: [    5.667129] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:20:0 Kernel ABI 3:18:0
Mar  7 18:48:18 brian-Blade kernel: [    5.667132] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: topology ABI is more recent than kernel
Mar  7 18:48:18 brian-Blade kernel: [    6.156830] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31
Mar  7 18:48:18 brian-Blade kernel: [    6.192686] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input32
Mar  7 18:48:18 brian-Blade kernel: [    6.192711] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input33
Mar  7 18:48:18 brian-Blade kernel: [    6.192735] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input34
Mar  7 18:48:18 brian-Blade kernel: [    6.192792] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input35
I ended up not making much progress anyway over the weekend, ended up spending time trying to add support to openrazer for the mouse that shipped with the computer.

Thanks again for your continued help with this.

Last edited by brianmay27; 03-07-2022 at 09:58 PM.
 
Old 03-08-2022, 07:53 PM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi your second box for sof shows digital mic which confirms the arecord output.

what concerns me, other than the fact I have yet to help.....your sof output shows hdmi showing up....and I was hoping to see analog stuff.

I don't have a module called sof-audio-pci-intel-tgl
and I only just noticed you have soundwire* modules too.....which I have no experience of.

hmmm so a quick look at
https://static.sched.com/hosted_file..._ELC_EU_18.pdf

soundwire....is looking like a competitor to snd hda stuff. Looks like pin related too.

but you seem to have a lots of sound modules loading. Has the system got confused with all the routing options between modules?


2) since you are on Gentoo....ignore that difference in hardware and look at the firmware issue in this post please
https://forums.gentoo.org/viewtopic-...5fdb6fcdfbfd71

my understanding....the fw needs correct kernel compile. poster is using module=sof-audio-pci-intel-tgl
but that link second post and third post....discuss the need for the firmware to work correctly with sound. that poster does get sound while your sound was just wrong pin.

What are your thoughts.....could it be a firmware issue?

Last edited by aus9; 03-08-2022 at 08:04 PM.
 
Old 03-08-2022, 08:51 PM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
yep we may have progress...so separate post for your consideration....as it has one gotcha.
we have a match for bus id....bus ID: 00:1f.3 see your first post. The brand is same but model may differ.

2) https://archived.forum.manjaro.org/t...ly-2020/147396

3) Notice extra blacklist for the snd_soc_skl which is showing in your output. You may need to be careful with the hardware config used in solution. Looking at your alsa-info the only analog I can see for aplay -l.....appears to be card 1 device 0 or when you get to solution (3) I suggest you use hw:1,0 and not hw:0,7

it might help to post current
Code:
aplay -l
4) now altho this is a solution to a diff question....no soundcard detected while you had detection....I think the fw tweak is what makes this a possible solution for you.

5) you may lose pulseaduio, which is the gotcha. But that is easily solved by installing apulse and running your web browser with a new desktop entry or action line like
Quote:
apulse firefox
Incidently I have pulseaudio installed, I can not remove it without breaking stuff....so I disable mine and run the brave web browser without needing apulse command as brave runs fine on alsa (only)
 
Old 03-09-2022, 10:48 PM   #10
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Original Poster
Rep: Reputation: 15
Hey Aus9

Alright so I may have made a wrong statement earlier, with the links you sent I eventually was able to get the pulse remap working which corrected the reversed audio by using
Code:
load-module module-remap-sink sink_name=speakers master=alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink master_channel_map=front-left,front-right channel_map=front-right,front-left remix=no
inside /etc/pulse/default.pa

However this is not quite perfect since its a virtual sink and the main audio volume is still on the non-virtual sink. The other issue is I have not been able to get this to reload after a reboot and require a pulseaudio -k to load the setting. I did try adding the module to system.pa too but with no luck. I think this is why I thought it was not working last time is I would reboot over restarting pulse.

I also did try manually defining the sink with
Code:
load-module module-alsa-sink device=hw:1,0 channel_map=right,left
(and removing the load-module module-udev-detect) which also worked, but the volume appeared muted.

The mic still does not work, but I think at this point ill treat this separately since ive been mainly focused on the speakers.

Anyway let me know if you have any ideas with this info. Ill keep playing around with pulse as it seems this will serve my purpose.
 
Old 03-10-2022, 12:13 AM   #11
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Original Poster
Rep: Reputation: 15
Huh, well adding myself to the audio group fixes the reboot issue. So guess I'm down to a solution which does not involve a virtual sink. I was thinking a profile, but have not spent much timing looking at what it takes to add a profile.
 
Old 03-12-2022, 10:36 AM   #12
YouHaveMySword
LQ Newbie
 
Registered: Mar 2022
Posts: 2

Rep: Reputation: 0
I'm very sorry for a slightly off-topic question but apparently I can't send you a private message.
Since you appear to be the only person running Linux on the new Razer Blade 15 on the Internet right now, would you be so kind to list the IOMMU groups? https://wiki.archlinux.org/title/PCI...oups_are_valid
There is some information about PCI devices in your first post but I don't think I can map that to IOMMU groups. I'd like to confirm the discrete GPU is isolated from the rest.

And how is the Linux support so far? Anything annoying or broken (besides the audio :))?
 
Old 03-13-2022, 02:28 PM   #13
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by YouHaveMySword View Post
I'm very sorry for a slightly off-topic question but apparently I can't send you a private message.
Since you appear to be the only person running Linux on the new Razer Blade 15 on the Internet right now, would you be so kind to list the IOMMU groups? https://wiki.archlinux.org/title/PCI...oups_are_valid
There is some information about PCI devices in your first post but I don't think I can map that to IOMMU groups. I'd like to confirm the discrete GPU is isolated from the rest.

And how is the Linux support so far? Anything annoying or broken (besides the audio )?
No worries, Ill have to double check, initially I was using Intel Optimus enabled however I am currently only using the discreet GPU.

Code:
IOMMU Group 0:
	00:00.0 Host bridge [0600]: Intel Corporation Device [8086:4641] (rev 02)
IOMMU Group 1:
	00:01.0 PCI bridge [0604]: Intel Corporation Device [8086:460d] (rev 02)
IOMMU Group 2:
	00:04.0 Signal processing controller [1180]: Intel Corporation Device [8086:461d] (rev 02)
IOMMU Group 3:
	00:06.0 PCI bridge [0604]: Intel Corporation Device [8086:464d] (rev 02)
IOMMU Group 4:
	00:06.2 PCI bridge [0604]: Intel Corporation Device [8086:463d] (rev 02)
IOMMU Group 5:
	00:08.0 System peripheral [0880]: Intel Corporation Device [8086:464f] (rev 02)
IOMMU Group 6:
	00:0a.0 Signal processing controller [1180]: Intel Corporation Device [8086:467d] (rev 01)
IOMMU Group 7:
	00:14.0 USB controller [0c03]: Intel Corporation Device [8086:51ed] (rev 01)
	00:14.2 RAM memory [0500]: Intel Corporation Device [8086:51ef] (rev 01)
IOMMU Group 8:
	00:14.3 Network controller [0280]: Intel Corporation Device [8086:51f0] (rev 01)
IOMMU Group 9:
	00:15.0 Serial bus controller [0c80]: Intel Corporation Device [8086:51e8] (rev 01)
IOMMU Group 10:
	00:16.0 Communication controller [0780]: Intel Corporation Device [8086:51e0] (rev 01)
IOMMU Group 11:
	00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:51bc] (rev 01)
IOMMU Group 12:
	00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:51b0] (rev 01)
IOMMU Group 13:
	00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:5182] (rev 01)
	00:1f.3 Multimedia audio controller [0401]: Intel Corporation Device [8086:51c8] (rev 01)
	00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:51a3] (rev 01)
	00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:51a4] (rev 01)
IOMMU Group 14:
	01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:2420] (rev a1)
	01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:2288] (rev a1)
IOMMU Group 15:
	03:00.0 Non-Volatile memory controller [0108]: Sandisk Corp WD Black SN850 [15b7:5011] (rev 01)
IOMMU Group 16:
	04:00.0 PCI bridge [0604]: Intel Corporation Device [8086:1133] (rev 02)
IOMMU Group 17:
	05:00.0 PCI bridge [0604]: Intel Corporation Device [8086:1133] (rev 02)
IOMMU Group 18:
	05:01.0 PCI bridge [0604]: Intel Corporation Device [8086:1133] (rev 02)
IOMMU Group 19:
	05:02.0 PCI bridge [0604]: Intel Corporation Device [8086:1133] (rev 02)
IOMMU Group 20:
	05:03.0 PCI bridge [0604]: Intel Corporation Device [8086:1133] (rev 02)
IOMMU Group 21:
	06:00.0 USB controller [0c03]: Intel Corporation Device [8086:1134]
IOMMU Group 22:
	3a:00.0 USB controller [0c03]: Intel Corporation Device [8086:1135]
IOMMU Group 23:
	6e:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8520] (rev 01)
Looks like the GPU is correctly added and isolated.


So far its been great, obviously the setup has not been as smooth as my Dell XPS which preceded this laptop, but I was expecting to have to put some time into getting things to work.
More or less the steps I took to get this setup was to update the kernel to 5.16+ for the Alder lake improvements, updated linux-firmware to support the wifi (which there is still one issue I need to trackdown with is first boot after power off, the card does not initialize until a reboot), update to latest nvidia graphics and deal with the audio.
Beyond from that, I added support to openrazer for the keyboard and installed howdy to add facial recognition. All of which went smoothly.
 
Old 03-13-2022, 10:03 PM   #14
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
rebooting wifi is simple but since OP is Ubuntu you may like to consider these winners
https://itsfoss.com/restart-network-ubuntu/
 
Old 04-03-2022, 09:45 PM   #15
Astro96
LQ Newbie
 
Registered: Jul 2003
Distribution: Ubuntu 6.06 and Fedora Core 5
Posts: 12

Rep: Reputation: 0
brianmay27, I have the same laptop (early 2022 Razer Blade 15, 3070 Ti, Alder Lake) and really appreciate your work in getting OpenRazer to support it. I've been struggling to get suspend (S3/deep) to work well. I'm running Ubuntu 21.10, so a 5.13 kernel, which might be part of my issues.

I have been able to get Optimus to work only on the nvidia 470 driver (blank/black screen on 510). With that driver, I am able to use s2idle sleep, but when I switch to deep sleep, the display never comes back on resume. I also do not have any brightness controls. I was able to get brightness to work by switching the BIOS to be only-discrete graphics, but then couldn't get a display back with even s2idle.

Code:
$ cat /sys/power/mem_sleep
[s2idle] deep
What are you running? If you have that working I'd really appreciate some details so I can copy your setup.


Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Razer Blade (2016) + Debain zoelee4 Linux - Hardware 43 09-26-2016 12:16 PM
Razer diamonback drivers everyonebleeds Linux - Hardware 0 12-01-2005 12:13 AM
Razer Diamondback mousewheel not working kryptobs2000 Slackware 7 02-28-2005 03:06 PM
USB to PS2 Adapter Mice How To / Razer Boomslang 2.6 transeunt Linux - Hardware 0 12-26-2003 02:49 PM
Razer Boomslang nihility Linux - Hardware 0 01-10-2003 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration