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

Commit

Permalink
add ideapad support
Browse files Browse the repository at this point in the history
  • Loading branch information
mar04 authored Oct 22, 2019
1 parent e858f50 commit 861f5ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gr.ictpro.jsalatas.plasma.pstate/contents/code/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,16 @@ var sensors = {
'lg_battery_charge_limit': {'value': undefined, 'unit':'', 'print': to_bool},
'lg_usb_charge': {'value': undefined, 'unit':'', 'print': to_bool},
'lg_fan_mode': {'value': undefined, 'unit':'', 'print': to_bool},
'ideapad_battery_conservation': {'value': undefined, 'unit':'', 'print': to_bool},
'ideapad_fn_lock': {'value': undefined, 'unit':'', 'print': to_bool},
'powermizer': {'value': undefined, 'unit':'', 'print': to_string},

}

var vendors = {
'dell': {'provides': ['thermal_mode']},
'lg-laptop': {'provides': ['lg_battery_charge_limit', 'lg_usb_charge', 'lg_fan_mode']},
'ideapad-laptop': {'provides': ['ideapad_battery_conservation', 'ideapad_fn_lock']},
'nvidia': {'provides': ['powermizer']}
}

Expand Down Expand Up @@ -146,6 +149,13 @@ var model = [
{'type': 'switch', 'text': 'Silent Mode', 'sensor': 'lg_fan_mode'}
]
},
{'type': 'header', 'text': 'Ideapad Laptop', 'icon': 'm',
'vendors': ['ideapad-laptop'],
'items': [
{'type': 'switch', 'text': 'Battery Conservation', 'sensor': 'ideapad_battery_conservation'},
{'type': 'switch', 'text': 'Hotkey Mode', 'sensor': 'ideapad_fn_lock'}
]
},
{'type': 'header', 'text': 'Nvidia Settings', 'icon': 'o',
'vendors': ['nvidia'],
'items': [
Expand Down

0 comments on commit 861f5ac

Please sign in to comment.