445 std::vector<std::string>
warnings()
const;
482 return kernel.supportsFsync;
486 return kernel.supportsNTSync &&
kernel.ntsyncModuleLoaded;
490 return tools.gameMode;
504 return gpu.isRDNA2OrNewer();
508 return gpu.isRTXCapable();
512 return gpu.isArcGPU();
518 return memory.is16GBOrMore();
522 return memory.is32GBOrMore();
526 return memory.hasEnoughRAM(requiredMB);
543 if (m.isHighRefresh())
576 if (c.type ==
"xbox")
585 if (c.type ==
"playstation")
594 return power.onBattery;
598 return power.isLaptop;
623 if (
gpu.vramMB >= 12000)
624 return 12ULL * 1024 * 1024 * 1024;
625 if (
gpu.vramMB >= 8000)
626 return 8ULL * 1024 * 1024 * 1024;
627 if (
gpu.vramMB >= 4000)
628 return 4ULL * 1024 * 1024 * 1024;
629 return 2ULL * 1024 * 1024 * 1024;
797 std::string
getToolPath(
const std::string& toolName);
804 void detectGPUModelFromLspci(
const std::string& pciSlot,
GPUInfo& gpu);
805 void detectGPUGeneration();
806 void detectDriverVersion();
808 void detectCPUGovernor();
809 void detectScheduler();
811 void detectKernelParams();
815 void detectRunners();
816 void detectDisplayServer();
817 void detectMonitors();
818 void detectControllers();
819 void detectStorage();
821 void detectSystemReadiness();
829 GPUGeneration detectAMDGenerationFromModel(
const std::string& model);
830 GPUGeneration detectNVIDIAGenerationFromModel(
const std::string& model);
831 GPUGeneration detectIntelGenerationFromModel(
const std::string& model);
834 std::string detectControllerType(uint16_t vendorId, uint16_t productId);
837 StorageType detectStorageType(
const std::string& device);
840 mutable std::mutex mutex_;
841 bool initialized_ =
false;
844 std::chrono::steady_clock::time_point lastFullRefresh_;
845 std::chrono::steady_clock::time_point lastRunnerRefresh_;
846 static constexpr auto CACHE_DURATION = std::chrono::minutes(5);
std::string getToolPath(const std::string &toolName)
Get path to tool binary.
static SystemInfoService & instance()
Get singleton instance.
std::string getRecommendedSyncMethod()
Get recommended sync method as string.
const std::vector< RunnerInfo > & getInstalledRunners()
Get all installed runners (Proton/Wine versions).
GPUVendor getGPUVendor()
Get GPU vendor.
const SystemCapabilities & getCapabilities()
Get complete system capabilities.
const std::vector< MonitorInfo > & getMonitors()
Get connected monitors.
const ToolAvailability & getToolAvailability()
Get available performance tools.
const SystemReadiness & getSystemReadiness()
Get system readiness checks.
const MemoryInfo & getMemoryInfo()
Get memory information.
bool isCachyOS()
Check if running on CachyOS.
void refresh()
Force refresh of all cached data.
void refreshRunners()
Refresh only runner list (faster than full refresh).
bool isToolAvailable(const std::string &toolName)
Check if tool is available by name.
SystemInfoService & operator=(const SystemInfoService &)=delete
bool supportsFsync()
Check if fsync is supported.
const KernelInfo & getKernelInfo()
Get kernel information.
SystemInfoService(const SystemInfoService &)=delete
DisplayServer getDisplayServer()
Get display server type.
const GPUInfo & getGPUInfo()
Get full GPU information.
bool supportsNTSync()
Check if NTSync is supported (kernel 6.2+ with module loaded).
const std::vector< StorageInfo > & getStorageInfo()
Get storage information.
std::string getGPUVendorName()
Get GPU vendor name as string.
const PowerInfo & getPowerInfo()
Get power/battery information.
const CPUInfo & getCPUInfo()
Get full CPU information.
const std::vector< ControllerInfo > & getControllers()
Get connected controllers.
Detected CPU information.
bool isPerformanceGovernor() const
bool isSchedExtActive() const
bool isGamingOptimal() const
bool hasOptimalGovernor() const
Connected game controller information.
Detected GPU information.
bool isPolarisOrNewer() const
bool isGCNArchitecture() const
bool hasVulkanSupport() const
bool isRTXCapable() const
bool isRDNA3OrNewer() const
bool isRDNA2OrNewer() const
std::string driverVersion
std::string vulkanVersion
Kernel version and feature support.
System memory information.
double usagePercent() const
bool is32GBOrMore() const
bool is16GBOrMore() const
bool hasEnoughRAM(uint64_t requiredMB) const
Display/monitor information.
bool isHighRefresh() const
Power and thermal information.
std::string activeProfile
Information about an installed runner (Proton/Wine).
Storage device information for game paths.
Complete system capabilities summary.
bool hasHighRefreshMonitor() const
DisplayServer displayServer
bool hasHDRMonitor() const
bool hasController() const
bool hasEnoughRAMFor(uint64_t requiredMB) const
std::vector< RunnerInfo > runners
bool hasNVIDIAGPU() const
const MonitorInfo * getPrimaryMonitor() const
StorageType getStorageTypeForPath(const std::string &path) const
bool hasVRRMonitor() const
SystemReadiness systemReadiness
uint64_t getRecommendedShaderCacheSize() const
bool isOptimalForGaming() const
bool canUseGameMode() const
std::string getRecommendedSyncMethod() const
bool hasRDNA2OrNewer() const
std::vector< ControllerInfo > controllers
bool hasRTXCapable() const
std::vector< StorageInfo > storage
bool canUseNTSync() const
bool hasPlayStationController() const
bool isPerformancePowerProfile() const
std::vector< MonitorInfo > monitors
bool hasXboxController() const
bool hasOptimalKernelParams() const
System readiness checks for optimal gaming.
std::vector< std::string > warnings() const