From c12ad8177a7e06ed714c4ae89cdfd1a36e7595a9 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 12 Feb 2016 16:30:01 -0500 Subject: Fix the "amixer" command used to set the volume in the generic "Linux" support class. This was based on a fix posted in Github issue #180 (by texstar). --- libLumina/LuminaOS-Linux.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libLumina/LuminaOS-Linux.cpp') diff --git a/libLumina/LuminaOS-Linux.cpp b/libLumina/LuminaOS-Linux.cpp index 7d618b14..43bcb242 100644 --- a/libLumina/LuminaOS-Linux.cpp +++ b/libLumina/LuminaOS-Linux.cpp @@ -103,12 +103,9 @@ QString info = LUtils::getCmdOutput("amixer get Master").join("").simplified();; void LOS::setAudioVolume(int percent){ if(percent<0){percent=0;} else if(percent>100){percent=100;} - QString info = "amixer -c 0 sset Master,0 " + QString::number(percent) + "%"; - if(!info.isEmpty()){ - //Run Command - LUtils::runCmd(info); - } - + QString info = "amixer set Master " + QString::number(percent) + "%"; + //Run Command + LUtils::runCmd(info); } //Change the current volume a set amount (+ or -) -- cgit