Skip to content

Commit 50b702c

Browse files
committed
Handle internal display being powered down
Can't detect refresh rate like this right now... but also this case is reportedly dangerous too, so refusing to install is probably the right call. Signed-off-by: Hector Martin <[email protected]>
1 parent 129bdec commit 50b702c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/system.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,7 @@ def get_refresh_rate(self):
183183
assert main_display is None
184184
main_display = disp
185185

186+
if main_display is None:
187+
return "(Unknown or off)"
188+
186189
return main_display["_spdisplays_resolution"].split()[-1]

0 commit comments

Comments
 (0)