pop-os / system76-driver

System76 Driver for Pop!_OS
Other
112 stars 29 forks source link

thelio-r2 audio fixup #194

Closed jackpot51 closed 3 years ago

jackpot51 commented 3 years ago

Rebase and make release when approved

leviport commented 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).

leviport commented 3 years ago

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.

ids1024 commented 3 years ago

I believe since PulseAudio runs as the user rather than root, this would also run before pulseaudio starts.

leviport commented 3 years ago

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.

jackpot51 commented 3 years ago

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.