@@ -85,6 +85,7 @@ static int wlan_status = 1;
85
85
static int bluetooth_status = 1 ;
86
86
static int wimax_status = -1 ;
87
87
static int wwan_status = -1 ;
88
+ static int als_status ;
88
89
89
90
module_param (wlan_status , int , 0444 );
90
91
MODULE_PARM_DESC (wlan_status , "Set the wireless status on boot "
@@ -106,6 +107,11 @@ MODULE_PARM_DESC(wwan_status, "Set the wireless status on boot "
106
107
"(0 = disabled, 1 = enabled, -1 = don't do anything). "
107
108
"default is 1" );
108
109
110
+ module_param (als_status , int , 0444 );
111
+ MODULE_PARM_DESC (als_status , "Set the ALS status on boot "
112
+ "(0 = disabled, 1 = enabled). "
113
+ "default is 0" );
114
+
109
115
/*
110
116
* Some events we use, same for all Asus
111
117
*/
@@ -1472,7 +1478,7 @@ static int __devinit asus_acpi_init(struct asus_laptop *asus)
1472
1478
asus -> ledd_status = 0xFFF ;
1473
1479
1474
1480
/* Set initial values of light sensor and level */
1475
- asus -> light_switch = 0 ; /* Default to light sensor disabled */
1481
+ asus -> light_switch = !! als_status ;
1476
1482
asus -> light_level = 5 ; /* level 5 for sensor sensitivity */
1477
1483
1478
1484
if (asus -> is_pega_lucid ) {
0 commit comments