blue-systems / netrunner-pinebook

Todos for Pinebook product
0 stars 0 forks source link

Sound is broken after suspend / resume #144

Open adriaandegroot opened 6 years ago

adriaandegroot commented 6 years ago

This was reported by vhasus in #Pine64, but it is reproducible for me. I'm using netrunner-pinebook-1803-arm64.img, with a SHA256 of 49433e213944f4b8e439173c6bdad62f12c680a9e3036998735e77d7c1b4a26f .

Basically, the first boot with an not-yet-installed, freshly-flashed, SD card has sound. After doing suspend/resume just once, sound stops working with that card, forever -- even after cold reboot. I'll write out some scenario's in this ticket.

shadeslayer commented 6 years ago

Already fixed thanks to https://github.com/netrunner-pine64/pine64-linux/blob/master/debian/pine64-linux-image.on-resume.service

adriaandegroot commented 6 years ago

Scenario 1: Fresh Flash, Cold Reboots

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC codec-aif1-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 1: bb Voice codec-aif2-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 2: bb-bt-clk codec-aif2-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 3: bt Voice codec-aif3-3 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

amixer

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 65536
  Mono: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 65536
  Mono: Capture 65536 [100%] [on]

Scenario 1a: second cold boot

Scenario 1b: suspend and resume

(Note: I still haven't run the installer; this is all from the "live" user)

Scenario 1d: post-suspend-resume cold boot

adriaandegroot commented 6 years ago

@shadeslayer: It might be "already fixed" but that linked file isn't on the 18.03 image (which is possibly the whole point)

I've now run the installer and rebooted. That doesn't add the unit(? service) file you mention, and sound remains broken.

shadeslayer commented 6 years ago

@adriaandegroot it'll land on the next Netrunner image we spin for the pinebook.