amdgpu_fan 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fb09354467c6ffeb603c4cbc72b131c626e83d4403148ebeb5fac342222ac29
4
- data.tar.gz: b62420cbf660f704682f34565128c749216bb5605b3d57b843f4bc85671aa09c
3
+ metadata.gz: ad0c6af3e3dea6b56a0526203a603591583ea8184bd8e49f7efcdd2c3dab492b
4
+ data.tar.gz: 9ccb672107d73c822b31bd52d7c0048f0d79d175f02bca1c3b8a7df351f1b9b9
5
5
  SHA512:
6
- metadata.gz: f9a94891e8024c9e2c58c46feb4b7654e69978a9215278d9588065db177e8df447670cad9be726f608f16bd77f4a26e2a05fe16c536ce42bce0c9242489d2b43
7
- data.tar.gz: 8046858789272ed17ce75304f53ee3915973193bc81bd301335448456c99bd8d4d774962668b2b98388a24301e158d4cffb18a65a28d27c7fd45c130c639740d
6
+ metadata.gz: 34230d04f43087f2c81517bccb6e74a0f976b8909b67c287011143f016a06e54a7c7a02b32e33cc21221305473b30ab23d2af699d658410573fa702452dd05ff
7
+ data.tar.gz: 7162d533859e691610b73ac969ea4a87946bdfc5803b83f391e38f9070e2077fe1eefe415baa7a553f82ab39d21da9f4e59cf107dbcbd8085a0ddcb34970443e
data/config/icons.yml CHANGED
@@ -3,8 +3,8 @@ clock: ⏰
3
3
  display: 📺
4
4
  fan: 🌀
5
5
  gpu: 👾
6
- load: ""
6
+ load: "🚚"
7
7
  memory: 💾
8
8
  power: ⚡
9
- temp: "🌡 "
9
+ temp: "🧯"
10
10
  vbios: 📄
@@ -13,6 +13,10 @@ module AmdgpuFan
13
13
  .transform_keys(&:to_sym).freeze
14
14
  WATCH_FIELD_SEPARATOR = ' | '
15
15
 
16
+ def self.exit_on_failure?
17
+ true
18
+ end
19
+
16
20
  desc 'connectors', 'View the status of the display connectors.'
17
21
  def connectors
18
22
  amdgpu_service.connectors.each do |connector|
@@ -58,19 +62,19 @@ module AmdgpuFan
58
62
  desc 'status [--logo]', 'View device info, current fan speed, and temperature.'
59
63
  def status(option = nil)
60
64
  puts radeon_logo if option == '--logo'
61
- puts ICONS[:gpu] + ' GPU:'.ljust(9) + amdgpu_service.name
62
- puts ICONS[:vbios] + ' vBIOS:'.ljust(9) + amdgpu_service.vbios_version
63
- puts "#{ICONS[:display]} Displays:#{amdgpu_service.display_names.join(', ')}"
64
- puts ICONS[:clock] + ' Clocks:'.ljust(9) + clock_status
65
- puts ICONS[:memory] + ' Memory:'.ljust(9) + mem_total_mibibyes
66
- puts ICONS[:fan] + ' Fan:'.ljust(9) + fan_status
67
- puts ICONS[:temp] + ' Temp:'.ljust(9) + "#{amdgpu_service.temperature}°C"
68
- puts ICONS[:power] + ' Power:'.ljust(9) +
65
+ puts ICONS[:gpu] + ' GPU:'.ljust(11) + amdgpu_service.name
66
+ puts ICONS[:vbios] + ' vBIOS:'.ljust(11) + amdgpu_service.vbios_version
67
+ puts "#{ICONS[:display]} Displays: #{amdgpu_service.display_names.join(', ')}"
68
+ puts ICONS[:clock] + ' Clocks:'.ljust(11) + clock_status
69
+ puts ICONS[:memory] + ' Memory:'.ljust(11) + mem_total_mibibyes
70
+ puts ICONS[:fan] + ' Fan:'.ljust(11) + fan_status
71
+ puts ICONS[:temp] + ' Temp:'.ljust(11) + "#{amdgpu_service.temperature}°C"
72
+ puts ICONS[:power] + ' Power:'.ljust(11) +
69
73
  "#{amdgpu_service.profile_mode} profile in " \
70
74
  "#{amdgpu_service.power_dpm_state} mode using " \
71
75
  "#{amdgpu_service.power_draw} / #{amdgpu_service.power_max} Watts "\
72
76
  "(#{amdgpu_service.power_draw_percent}%)"
73
- puts ICONS[:load] + ' Load:'.ljust(9) + percent_meter(amdgpu_service.busy_percent)
77
+ puts ICONS[:load] + ' Load:'.ljust(11) + percent_meter(amdgpu_service.busy_percent, 12)
74
78
  end
75
79
 
76
80
  desc 'version', 'Print the application version.'
@@ -12,7 +12,7 @@ module AmdgpuFan
12
12
  end
13
13
 
14
14
  def stats
15
- { min: min, avg: avg, max: max, now: now }
15
+ { min:, avg:, max:, now: }
16
16
  end
17
17
 
18
18
  ##
@@ -2,5 +2,5 @@
2
2
 
3
3
  module AmdgpuFan
4
4
  # Current version of RSpec Core, in semantic versioning format.
5
- VERSION = '0.8.0'
5
+ VERSION = '0.8.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amdgpu_fan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin McCormack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-04 00:00:00.000000000 Z
11
+ date: 2022-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -30,70 +30,70 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '0.14'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '0.14'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '3.10'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '3.10'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.8'
75
+ version: '1.24'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.8'
82
+ version: '1.24'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.1'
89
+ version: '2.7'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.1'
96
+ version: '2.7'
97
97
  description: A CLI for interacting with the amdgpu Linux driver
98
98
  email: harlemsquirrel@gmail.com
99
99
  executables:
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.3.3
139
+ rubygems_version: 3.3.7
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: A CLI to view and set fan speeds for AMD graphics cards running on the open