Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound is broken after suspend / resume #144

Open
adriaandegroot opened this issue Jun 27, 2018 · 4 comments
Open

Sound is broken after suspend / resume #144

adriaandegroot opened this issue Jun 27, 2018 · 4 comments

Comments

@adriaandegroot
Copy link

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
Copy link

@adriaandegroot
Copy link
Author

Scenario 1: Fresh Flash, Cold Reboots

  • With a freshly flashed SD card (16GB, Lexar, one I've used a lot before for PB testing),
  • Cold boot first time. Wait for desktop to show up,
  • Alt-space, "konsole",
  • In konsole, aplay /usr/lib/libreoffice/share/gallery/sounds/*.wav plays sounds as expected,
  • (Connect to wifi, to save log files)
  • Close konsole, K-menu, choose power off (this takes surprisingly long .. I ended up hard-power-off)

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

  • After that hard-power-off, wait a minute, then power on again
  • After this cold boot, sound is ok
  • Power off again (this didn't hang this time), wait a minute, power on again
  • Sound is still ok

Scenario 1b: suspend and resume

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

  • alt-space, "sleep", and pick "Suspend to RAM". I still have a konsole open at this point.
  • Suspends in a few seconds. Wait a minute. Hit the power button.
  • Comes up with SDDM(?) lock screen; unlock the live user
  • Now, no sound at all. The output of aplay -l and amixer is unchanged.
  • After running aplay again to listen (not really) to the sounds, I start getting underrun!!! messages
  • Power off machine

Scenario 1d: post-suspend-resume cold boot

  • From powered-off state, hit button, watch cold boot
  • Start konsole, use aplay to play sounds. Nothing to hear. Underrun!!! messages. amixer and aplay -l output as before.

@adriaandegroot
Copy link
Author

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants