Commit 38a9aa1
platform/x86: asus-wmi: adjust screenpad power/brightness handling
[ Upstream commit 130d29c ]
Fix illogical screen off control by hardcoding 0 and 1 depending on the
requested brightness and also do not rely on the last screenpad power
state to issue screen brightness commands.
Fixes: 2c97d3e ("platform/x86: asus-wmi: add support for ASUS screenpad")
Signed-off-by: Denis Benato <denis.benato@linux.dev>
Signed-off-by: Luke Jones <luke@ljones.dev>
Link: https://patch.msgid.link/20260302174431.349816-2-denis.benato@linux.dev
Link: https://patch.msgid.link/20260326231154.856729-2-ethantidmore06@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 4584229 commit 38a9aa1
1 file changed
Lines changed: 13 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4154 | 4154 | | |
4155 | 4155 | | |
4156 | 4156 | | |
4157 | | - | |
4158 | | - | |
4159 | | - | |
| 4157 | + | |
| 4158 | + | |
4160 | 4159 | | |
4161 | | - | |
4162 | | - | |
4163 | | - | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
4164 | 4164 | | |
4165 | | - | |
4166 | | - | |
4167 | | - | |
4168 | | - | |
4169 | | - | |
4170 | | - | |
4171 | | - | |
4172 | | - | |
4173 | | - | |
4174 | | - | |
4175 | | - | |
4176 | | - | |
4177 | 4165 | | |
| 4166 | + | |
| 4167 | + | |
4178 | 4168 | | |
4179 | 4169 | | |
4180 | | - | |
4181 | | - | |
4182 | | - | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
4183 | 4175 | | |
4184 | 4176 | | |
4185 | 4177 | | |
| |||
0 commit comments