How to change system volume

Hi I’m currently making a new UI to use the project in my dodge grand caravan while setting it up to my liking I currently changed the tab to navigate and I have added 3 buttons to control the RPI5 system volume (volume up/down and mute/unmute) but all the modules that i found like loudness or volume_supervisor or another one that i cant remember all require child_process which is a module that have been removed from npm and github for malicious uses.

How can I control the system volume

thank you

For those who are interested here is how I changed the UI and I also want to remove the ‘Car’ icon that redirect to the settings tab since I can navigate without problem to any tabs while the carplay is active

For the settings tab i only changed the background color for now but I plan on adding other settings like screen brightness adjustment for day/night, sound equalizer and maybe other settings that I will think later

The camera tab didnt change much since I am working elsewhere

the problem solved by itself … child_process does not need to be installed since it is part of nodejs default packages then to be able to use the volume_supervisor code it has to be outside a browser (i tried to use it inside the Nav.ts) so I put it inside the /main/index.ts so now I think I just need to make an api request inside the preload

1 Like