diff --git a/scripts/game_controler.sh b/scripts/game_controler.sh index 901fe20..9742043 100755 --- a/scripts/game_controler.sh +++ b/scripts/game_controler.sh @@ -19,7 +19,7 @@ batteryName="" if [[ "$batteryName" == "" ]]; then - batteryName="$(find /sys/class/power_supply -name 'sony_controller_battery_*' | cut -d/ -f5)" + batteryName="$(find /sys/class/power_supply -name 'sony_controller_battery_*' -or -name 'ps-controller-battery-*' | cut -d/ -f5)" fi # If there's no file, we don't check it.