You are not logged in.

#1 2018-03-04 21:27:29

pspencil
Member
Registered: 2017-10-05
Posts: 19

Headphone misconfigured to S/PDIF?

I have a MSI laptop with Realtek ALC898. The internal speaker works fine. The headphone has no sound (but alsamixer does detect it).

I searched for some methods online. When I was playing around with alsamixer, today I tried to unmute the S/PDIF bar from "MM" to "00" and magically the headphone has sound. However, it is always at maximum volume and cannot be turned down.

I thought the system mistakenly think the headphone port is the S/PDIF port and tried to use

hdajackretask

to override the SPDIF port to headphone (I am not sure if this is correct btw).

When I am using sudo (and pressing apply), it tells me device is busy. When I am not using sudo, it gives me this output

==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/tmp/hda-jack-retask-4QK9EZ/script.sh' as the super user
Authenticating as: pspencil
Password: 
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

This incident has been reported.

However, the hdajackretask thinks the "apply" succeeded. I am not sure what I should search to continue debugging this.

Offline

#2 2018-03-06 06:35:16

argyrys
Member
Registered: 2018-03-02
Posts: 8

Re: Headphone misconfigured to S/PDIF?

This may be similar to my issue, in that you need to supply a kernel module argument pertaining to your soundcard. Might be a longshot, my issue did not have alsamixer detecting the headphones at all.

My issue: https://bbs.archlinux.org/viewtopic.php?id=234965

Thread that helped solve it: https://bbs.archlinux.org/viewtopic.php?id=222322

Link to kernel module arguments: https://git.kernel.org/pub/scm/linux/ke … v4.9.5#n28

Excerpt from previous link that may pertain to your soundcard:

ALC88x/898/1150
======================
  acer-aspire-4930g	Acer Aspire 4930G/5930G/6530G/6930G/7730G
  acer-aspire-8930g	Acer Aspire 8330G/6935G
  acer-aspire		Acer Aspire others
  inv-dmic		Inverted internal mic workaround
  no-primary-hp		VAIO Z/VGC-LN51JGB workaround (for fixed speaker DAC)

If this diesn't solve your issue I would suggest searching the forums for your specific audio card. That's how I solved my problem. Just put ALC898 into the search, maybe include MSI if the results are too vague. Good luck.

Edit: also, read this, which you've probably read: https://wiki.archlinux.org/index.php/Ad … leshooting

Last edited by argyrys (2018-03-06 06:58:59)

Offline

#3 2018-03-06 14:29:10

pspencil
Member
Registered: 2017-10-05
Posts: 19

Re: Headphone misconfigured to S/PDIF?

argyrys wrote:

This may be similar to my issue, in that you need to supply a kernel module argument pertaining to your soundcard. Might be a longshot, my issue did not have alsamixer detecting the headphones at all.

My issue: https://bbs.archlinux.org/viewtopic.php?id=234965

Thread that helped solve it: https://bbs.archlinux.org/viewtopic.php?id=222322

Link to kernel module arguments: https://git.kernel.org/pub/scm/linux/ke … v4.9.5#n28

Excerpt from previous link that may pertain to your soundcard:

ALC88x/898/1150
======================
  acer-aspire-4930g	Acer Aspire 4930G/5930G/6530G/6930G/7730G
  acer-aspire-8930g	Acer Aspire 8330G/6935G
  acer-aspire		Acer Aspire others
  inv-dmic		Inverted internal mic workaround
  no-primary-hp		VAIO Z/VGC-LN51JGB workaround (for fixed speaker DAC)

If this diesn't solve your issue I would suggest searching the forums for your specific audio card. That's how I solved my problem. Just put ALC898 into the search, maybe include MSI if the results are too vague. Good luck.

Edit: also, read this, which you've probably read: https://wiki.archlinux.org/index.php/Ad … leshooting

Hey argyrys, thanks for the reply. When I want to try the commands, it always tells me it is in use. However, lsmod does not tell me what is using it. I thought it is pulseaudio and tried many different ways to kill it (pulseaudio --kill, systemctl ..etc) but the mod is still in use. Do you have any suggestions?

Offline

#4 2018-03-06 20:46:44

argyrys
Member
Registered: 2018-03-02
Posts: 8

Re: Headphone misconfigured to S/PDIF?

You're referring to the rmmod commands and that?

I'm probably more a newbie than you are, so don't rely solely on my advice. I would personally try uninstalling pulse and get the hardware working with just alsa first. Also perhaps try those commands on the command line before entering a graphical environment. I don't know if that would help.

Offline

#5 2018-03-06 21:30:11

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

Re: Headphone misconfigured to S/PDIF?

If you want to disable pulse for testing purposes you will have to mask the socket that launches it

systemctl --user mask pulseaudio.socket #unmask to revert
systemctl --user stop pulseaudio.service

however sound drivers might be finicky to reload either way, the safest bet would be to add a corresponding line to modprobe.d

Offline

#6 2018-03-07 00:04:13

pspencil
Member
Registered: 2017-10-05
Posts: 19

Re: Headphone misconfigured to S/PDIF?

That does enables me to reload the module. However, none of the models work.

Also, I found similar posts https://bbs.archlinux.org/viewtopic.php?id=229296 and https://bbs.archlinux.org/viewtopic.php?id=219383 and none of them are solved.

However, they did not mention the effect of unmuting the SPDIF channel. Given that my sound card seems to have a 2-in-1 headphone and SPDIF jack, that may give some intel.

Offline

Board footer

Powered by FluxBB