No sound on headphones after suspend

Bug #1622730 reported by Karl Kastner
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

This seems to be a common problem on XMG Clevo W230SS there is no output on the headphone jack after suspend. The headphones are detected and the speakers are muted, but there is no output to the headphones. Init-headphones does not help:

sudo init-headphone
WARNING:root:Kernel parameter is missing: acpi_enforce_resources=lax
WARNING:root:Module is not loaded: i2c_dev
ERROR:root:Can't find i2c bus
ERROR:root:Operation failed

Any workaround beside reboot?

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: alsa-base 1.0.25+dfsg-0ubuntu5
ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: pia 23276 F.... pulseaudio
 /dev/snd/controlC0: pia 23276 F.... pulseaudio
CurrentDesktop: GNOME-Classic:GNOME
Date: Mon Sep 12 21:56:08 2016
InstallationDate: Installed on 2015-11-05 (312 days ago)
InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
PackageArchitecture: all
SourcePackage: alsa-driver
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/15/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.5
dmi.board.asset.tag: Tag 12345
dmi.board.name: W230SS
dmi.board.vendor: Notebook
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 9
dmi.chassis.vendor: Notebook
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.5:bd04/15/2014:svnNotebook:pnW230SS:pvrNotApplicable:rvnNotebook:rnW230SS:rvrNotApplicable:cvnNotebook:ct9:cvrN/A:
dmi.product.name: W230SS
dmi.product.version: Not Applicable
dmi.sys.vendor: Notebook
modified.conffile..etc.modprobe.d.alsa-base.conf: [modified]
mtime.conffile..etc.modprobe.d.alsa-base.conf: 2016-02-15T00:43:38.504815

Revision history for this message
Karl Kastner (kastner-karl) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
Karl Kastner (kastner-karl) wrote :

So, after a while tried it again and I finally managed to get the headphone jack working:

1) Update to grub2 if this has not yet been done.

2) Set the following acpi kernel parameter in /etc/default/grub

GRUB_CMDLINE_LINUX="uveau.modeset=0 acpi_enforce_resources=lax"

3) update-grub

4) Reboot

5) After suspending, run init-headphone to reactivate the headphones.

You can automate the headphone reactivation by adding the script /lib/systemd/system-sleep/init-headphone with content:

#!/bin/sh

if [ ! -x /usr/sbin/init-headphone ]; then
    exit 0
fi

case $1 in
     resume|thaw|post)
        /usr/sbin/init-headphone
        ;;
esac

This is similar to old workarounds found elsewhere on the web, but with xenial /lib/systemd/system-sleep/ has superseded by /etc/pm/sleep.d/ and the case "post" has to be added.

Changed in alsa-driver (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Fanjin Zeng (fanjin) wrote :

I can confirm this exact same problem still exists today. Is there any easy workaround for this?

Revision history for this message
Karl Kastner (kastner-karl) wrote :

Did you try the workaround posted on 2016-12-19? You may have to add modules i2c_dev and i2c_i801 before running init-headphone:
sudo modprobe --first-time i2c_dev
sudo modprobe --first-time i2c_i801

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.