Fix battery issue on Linux