Method: AmdgpuFan::Cli#status

Defined in:
lib/amdgpu_fan/cli.rb

#status(option = nil) ⇒ Object



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/amdgpu_fan/cli.rb', line 78

def status(option = nil)
  puts  if option == '--logo'
  puts ICONS[:gpu] + ' GPU:'.ljust(11) + amdgpu_service.name
  puts ICONS[:vbios] + ' vBIOS:'.ljust(11) + amdgpu_service.vbios_version
  puts "#{ICONS[:display]} Displays: #{amdgpu_service.display_names.join(', ')}"
  puts ICONS[:clock] + ' Clocks:'.ljust(11) + clock_status
  puts ICONS[:memory] + ' Memory:'.ljust(11) + mem_total_mibibyes
  puts ICONS[:fan] + ' Fan:'.ljust(11) + fan_status
  puts ICONS[:temp] + ' Temp:'.ljust(11) + "#{amdgpu_service.temperature}°C"
  puts ICONS[:power] + ' Power:'.ljust(11) +
       "#{amdgpu_service.profile_mode} profile in " \
       "#{amdgpu_service.performance_level} mode using " \
       "#{amdgpu_service.power_draw} / #{amdgpu_service.power_max} Watts " \
       "(#{amdgpu_service.power_draw_percent}%)"
  puts ICONS[:load] + ' Load:'.ljust(11) + percent_meter(amdgpu_service.busy_percent, 12)
end