If I save the ALSA state with the headphones unplugged to a file:
sudo alsactl --file=settings-out.txt store
And then plug in the headphones and restore it:
sudo alsactl --file=settings-out.txt restore
I still get no sound. But then diffing the final state against the unplugged state did find this:
control.175 { iface CARD name 'Headphone Jack' - value false + value true comment { access read type BOOLEAN count 1 } } control.176 { iface CARD name 'Headset Mic Jack' - value false + value true comment { access read type BOOLEAN count 1 } }
I need to convince ALSA to report/interpret those boolean jack states the other way around.
If I save the ALSA state with the headphones unplugged to a file:
sudo alsactl --file= settings- out.txt store
And then plug in the headphones and restore it:
sudo alsactl --file= settings- out.txt restore
I still get no sound. But then diffing the final state against the unplugged state did find this:
control.175 {
iface CARD
name 'Headphone Jack'
comment {
access read
type BOOLEAN
count 1
iface CARD
name 'Headset Mic Jack'
comment {
access read
type BOOLEAN
count 1
- value false
+ value true
}
}
control.176 {
- value false
+ value true
}
}
I need to convince ALSA to report/interpret those boolean jack states the other way around.