Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 861f5ac

Browse files
authored
add ideapad support
1 parent e858f50 commit 861f5ac

File tree

1 file changed

+10
-0
lines changed
  • gr.ictpro.jsalatas.plasma.pstate/contents/code

1 file changed

+10
-0
lines changed

gr.ictpro.jsalatas.plasma.pstate/contents/code/utils.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,16 @@ var sensors = {
7979
'lg_battery_charge_limit': {'value': undefined, 'unit':'', 'print': to_bool},
8080
'lg_usb_charge': {'value': undefined, 'unit':'', 'print': to_bool},
8181
'lg_fan_mode': {'value': undefined, 'unit':'', 'print': to_bool},
82+
'ideapad_battery_conservation': {'value': undefined, 'unit':'', 'print': to_bool},
83+
'ideapad_fn_lock': {'value': undefined, 'unit':'', 'print': to_bool},
8284
'powermizer': {'value': undefined, 'unit':'', 'print': to_string},
8385

8486
}
8587

8688
var vendors = {
8789
'dell': {'provides': ['thermal_mode']},
8890
'lg-laptop': {'provides': ['lg_battery_charge_limit', 'lg_usb_charge', 'lg_fan_mode']},
91+
'ideapad-laptop': {'provides': ['ideapad_battery_conservation', 'ideapad_fn_lock']},
8992
'nvidia': {'provides': ['powermizer']}
9093
}
9194

@@ -146,6 +149,13 @@ var model = [
146149
{'type': 'switch', 'text': 'Silent Mode', 'sensor': 'lg_fan_mode'}
147150
]
148151
},
152+
{'type': 'header', 'text': 'Ideapad Laptop', 'icon': 'm',
153+
'vendors': ['ideapad-laptop'],
154+
'items': [
155+
{'type': 'switch', 'text': 'Battery Conservation', 'sensor': 'ideapad_battery_conservation'},
156+
{'type': 'switch', 'text': 'Hotkey Mode', 'sensor': 'ideapad_fn_lock'}
157+
]
158+
},
149159
{'type': 'header', 'text': 'Nvidia Settings', 'icon': 'o',
150160
'vendors': ['nvidia'],
151161
'items': [

0 commit comments

Comments
 (0)