pinebookpro-audio issueshttps://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-audio/-/issues2020-11-24T22:18:33Zhttps://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-audio/-/issues/3makpkg failed at md5sum2020-11-24T22:18:33ZMatúš Frickmakpkg failed at md5sumI failed to build this package using `makepkg`.
Output of `makepkg`:
```
==> Making package: pinebookpro-audio 1-2 (Fri 20 Nov 2020 20:30:45 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrievin...I failed to build this package using `makepkg`.
Output of `makepkg`:
```
==> Making package: pinebookpro-audio 1-2 (Fri 20 Nov 2020 20:30:45 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found audio_jack_plugged_in
-> Found audio_jack_plugged_in.sh
-> Found sync.sh
-> Found pinebookpro-audio.service
==> Validating source files with md5sums...
audio_jack_plugged_in ... Passed
audio_jack_plugged_in.sh ... FAILED
sync.sh ... Passed
pinebookpro-audio.service ... Passed
==> ERROR: One or more files did not pass the validity check!
```
You probably forgot to update md5sum with the last commit.
I generated and appended new md5sum array with `makepkg -g >> PKGBUILD` and build it that way.https://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-audio/-/issues/2Keyboard mute+unmute unmutes both speakers AND headphones2020-05-07T09:23:00ZPeter FeerickKeyboard mute+unmute unmutes both speakers AND headphonesIf headphones are in plugged in, if you press the FN+F4 shortcut to mute the volume, it works as expected. When you press it again to unmute... it unmutes *both* the speakers and the headphones, requiring either a unplug/replug of the he...If headphones are in plugged in, if you press the FN+F4 shortcut to mute the volume, it works as expected. When you press it again to unmute... it unmutes *both* the speakers and the headphones, requiring either a unplug/replug of the headphones, or manual run of the `sync.sh` script.
I was hoping there was some sort of event that could be hooked into in order to re-run the sync script on mute/unmute events, but it doesn't seem like there is anything like that :(https://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-audio/-/issues/1Logging in to GUI/KDE unmutes speakers2020-05-07T09:25:21ZPeter FeerickLogging in to GUI/KDE unmutes speakerstl;dr After logging in to the desktop, *something* is over-riding the speaker volume state, making it so even though headphones are plugged in, the speakers are also active, until they are un-plugged/re-plugged or sync script manually ru...tl;dr After logging in to the desktop, *something* is over-riding the speaker volume state, making it so even though headphones are plugged in, the speakers are also active, until they are un-plugged/re-plugged or sync script manually run.
Even though this seems like it *should* correctly [sync the initial headphone state on power up](https://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-audio/-/blob/master/sync.sh#L9), it is not the case. If headphones are connected whilst the PBP is booting, 'Playback Polarity' is correctly set, but 'Speaker' is not. If I restart with the headphones connected the whole time, it is again wrong (i.e. like the below 1 instead of 3), so doesn't appear to linked to the save state. I thought after 4 that it was a case of the sync script not running properly, but I then checked the service output (5), and it had, and had apparently synced correctly. I did one final test, and instead of logging in to the desktop logged into tty2, and speaker state was what it was supposed to be. But as soon as I logged into the desktop, it was wrong. i.e. Something is happening during login that un-mutes the speakers. Perhaps a post-login hook would fix that up? Sorry for rambling... several reboots were involved, and understanding of what was really happening as I wrote this ;)
1) bootup with headphones plugged in, after logging in:
```
[pfeerick@pinebookpro ~]$ sudo amixer sget 'Speaker' && sudo amixer sget 'Playback Polarity'
Simple mixer control 'Speaker',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Playback Polarity',0
Capabilities: enum
Items: 'Normal' 'R Invert' 'L Invert' 'L + R Invert'
Item0: 'Normal'
```
2) after unplugging the headphones:
```
[pfeerick@pinebookpro ~]$ sudo amixer sget 'Speaker' && sudo amixer sget 'Playback Polarity'
Simple mixer control 'Speaker',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Playback Polarity',0
Capabilities: enum
Items: 'Normal' 'R Invert' 'L Invert' 'L + R Invert'
Item0: 'R Invert'
```
3) after re-plugging the headphones back in:
```
[pfeerick@pinebookpro ~]$ sudo amixer sget 'Speaker' && sudo amixer sget 'Playback Polarity'
Simple mixer control 'Speaker',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Playback Polarity',0
Capabilities: enum
Items: 'Normal' 'R Invert' 'L Invert' 'L + R Invert'
Item0: 'Normal'
```
4) after a restart, headphones plugged in the whole time, and then manually running the sync script
```
[pfeerick@pinebookpro ~]$ sudo amixer sget 'Speaker' && sudo amixer sget 'Playback Polarity'
Simple mixer control 'Speaker',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Playback Polarity',0
Capabilities: enum
Items: 'Normal' 'R Invert' 'L Invert' 'L + R Invert'
Item0: 'Normal'
[pfeerick@pinebookpro ~]$ sudo /usr/bin/sync.sh
Simple mixer control 'Speaker',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Playback Polarity',0
Capabilities: enum
Items: 'Normal' 'R Invert' 'L Invert' 'L + R Invert'
Item0: 'Normal'
```
6) and more confusingly... it seems that it *did* sync to the correct values at boot as the headphones were plugged in during the boot.
```
May 07 18:40:57 pinebookpro systemd[1]: Starting Sync initial headphone plug state...
May 07 18:40:57 pinebookpro sync.sh[841]: Simple mixer control 'Speaker',0
May 07 18:40:57 pinebookpro sync.sh[841]: Capabilities: pswitch pswitch-joined
May 07 18:40:57 pinebookpro sync.sh[841]: Playback channels: Mono
May 07 18:40:57 pinebookpro sync.sh[841]: Mono: Playback [off]
May 07 18:40:57 pinebookpro sync.sh[844]: Simple mixer control 'Playback Polarity',0
May 07 18:40:57 pinebookpro sync.sh[844]: Capabilities: enum
May 07 18:40:57 pinebookpro sync.sh[844]: Items: 'Normal' 'R Invert' 'L Invert' 'L + R Invert'
May 07 18:40:57 pinebookpro sync.sh[844]: Item0: 'Normal'
May 07 18:40:57 pinebookpro systemd[1]: Finished Sync initial headphone plug state.
```