@@ -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
8688var 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