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.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1622730

Title:
  No sound on headphones after suspend

Status in alsa-driver package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1622730/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to