Open nexus511 opened 7 years ago
This should happen anyway without the ACPI event as far as I'm aware.
The last time I talked to @jwrdegoede we managed to get this working perfectly with his kernel - that was only about a month ago now. Did something change?
It may depend on desktop environment used?
Il 31 ott 2017 19:40, "cawilliamson" notifications@github.com ha scritto:
This should happen anyway without the ACPI event as far as I'm aware.
The last time I talked to @jwrdegoede https://github.com/jwrdegoede we managed to get this working perfectly with his kernel - that was only about a month ago now. Did something change?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nexus511/gpd-ubuntu-packages/issues/42#issuecomment-340862415, or mute the thread https://github.com/notifications/unsubscribe-auth/AFZFV-5AfzUCdLcF_HOhJQqIP-_yTFr5ks5sx2m5gaJpZM4QHDfy .
I'm almost certain it was handled at a kernel level since the audio should switch at a kernel level when headphones are plugged in and switch back when removed - it did work on my GPD Pocket - perhaps just some missing pulse config or something.
I certainly wasn't using any kind of ACPI hook and had the same results using i3wm as I did using fully-fledged GNOME DE.
Running Xubuntu and sticking with XFCE I've yet to see this work on 4.14, I'm having to use pavucontrol to change it manually.
Anywhere you guys want me to check on and report back?
Hello,
Headphone switch works on ubuntu 17.10 (I think I'm using unity desktop, I've choosed the default lightdm when I did the upgrade from 17.04-Nexus).
However the headphone is not detected if plugged while the device is in sleep mode, or plugged before booting.
Hi all,
In order for the headphone switch to work, you need the right ucm files, you need to copy the chtrt5645 directory from: https://github.com/plbossart/UCM to: /usr/share/alsa/ucm
Then edit: /usr/share/alsa/ucm/chtrt5645/HiFi.conf and around line 230 uncomment the JackControl and JackHWMute lines.
After that logout and login again and the headphone switch should work (works for me with 4.14-rc5+). Note that as before we still need to set realtime-scheduling = no in /etc/pulse/daemon.conf.
Regards,
Hans
No success here following those instructions, I took an additional punt and tried replacing the existing HiFi.conf.gpdpocket-audio and chtrt5645.conf.gpdpocket-audio files but only succeeded in breaking audio altogether. ¯_(ツ)_/¯. I'll wait for someone far more intelligent than me to figure this out :).
@jwrdegoede
That's odd, because it is what we already have in place there:
$ diff Hifi.conf.original HiFi.conf
230,231c230,231
< #JackControl "Headphone Jack"
< #JackHWMute "Speaker"
---
> JackControl "Headphone Jack"
> JackHWMute "Speaker"
383c383
< }
---
> }
The files are actually provided from https://github.com/nexus511/gpd-ubuntu-packages/tree/master/packages/gpdpocket-audio/files
So there is something else that is currently wrong on my packages.
The headphone switch causes an ACPI event. This can be used to switch the audio output as seen on the stockmind respin scripts.
This should be integrated here as well.