Closed jackpot51 closed 3 years ago
Dang, it's not working even though I see the "Line volume toggle for thelio-r2" message in logs. I assume since system76-driver is running it, the action is being run with elevated privileges? The fix I had working was running the commands from a shell script with regular user permissions (I scheduled it with Startup Applications).
It seems to be more issues with amixer needing the commands in goofy sequences, as well as the Line channel starting at 0% volume by default. I'm going to futz with it some more, and I think I can tweak it to make it work.
I believe since PulseAudio runs as the user rather than root, this would also run before pulseaudio starts.
I'm not sure, it seems like I got it working reliably after running amixer -c 1 set Line 70%
as the user just one time. The trick will be finding out whether or not it works from a clean install. I'll make a branch off this one to fool around with if it looks promising.
PulseAudio runs after this and probably re-breaks it. If the issue is the Audio device going into RTD3, maybe we can disable that instead.
Rebase and make release when approved