summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-02-28 09:35:13 -0800
committerMike Crute <mike@crute.us>2023-02-28 09:35:13 -0800
commit696a17f13fb8392b541e338d82c3bb907f2466b5 (patch)
tree4ee255fd7a5acf0d7debfa9adda456e4bae26599
parent901dfe88f834654ba8da851f119f5dfde5353031 (diff)
downloaddotfiles-696a17f13fb8392b541e338d82c3bb907f2466b5.tar.bz2
dotfiles-696a17f13fb8392b541e338d82c3bb907f2466b5.tar.xz
dotfiles-696a17f13fb8392b541e338d82c3bb907f2466b5.zip
Add support for Framework laptop
-rw-r--r--.config/awesome/mcrute.lua7
-rw-r--r--.linux/etc/modprobe.d/framework-laptop.conf16
2 files changed, 23 insertions, 0 deletions
diff --git a/.config/awesome/mcrute.lua b/.config/awesome/mcrute.lua
index b6e1e91..deee212 100644
--- a/.config/awesome/mcrute.lua
+++ b/.config/awesome/mcrute.lua
@@ -57,6 +57,7 @@ local internal_display_ids = {
57 BOE_51207 = true, 57 BOE_51207 = true,
58 SHP_20757 = true, 58 SHP_20757 = true,
59 SDC_20289 = true, 59 SDC_20289 = true,
60 BOE_24329 = true,
60} 61}
61 62
62-- Good clear zoom stops for the Dell XPS 13 93{7,8}0 63-- Good clear zoom stops for the Dell XPS 13 93{7,8}0
@@ -104,11 +105,16 @@ local edp_display_modes_9310 = {
104 "1280x800", 105 "1280x800",
105} 106}
106 107
108local edp_display_modes_framework = {
109 "2256x1504",
110}
111
107local default_edp_display_modes = { 112local default_edp_display_modes = {
108 BOE_51207 = edp_display_modes_9380[3], -- Dell XPS 13 93{7,8}0 113 BOE_51207 = edp_display_modes_9380[3], -- Dell XPS 13 93{7,8}0
109 AUO_11048 = edp_display_modes_9380[3], -- X1 Carbon Display 114 AUO_11048 = edp_display_modes_9380[3], -- X1 Carbon Display
110 SHP_20757 = edp_display_modes_9380[5], -- Dell XPS 13 9320 115 SHP_20757 = edp_display_modes_9380[5], -- Dell XPS 13 9320
111 SDC_20289 = edp_display_modes_9310[1], -- Dell XPS 13 9310 116 SDC_20289 = edp_display_modes_9310[1], -- Dell XPS 13 9310
117 BOE_24329 = edp_display_modes_framework[1], -- Framework Laptop
112} 118}
113 119
114local default_edp_zoom_modes = { 120local default_edp_zoom_modes = {
@@ -116,6 +122,7 @@ local default_edp_zoom_modes = {
116 AUO_11048 = edp_zoom_modes_9380, 122 AUO_11048 = edp_zoom_modes_9380,
117 SHP_20757 = edp_display_modes_9320, 123 SHP_20757 = edp_display_modes_9320,
118 SDC_20289 = edp_display_modes_9310, 124 SDC_20289 = edp_display_modes_9310,
125 BOE_24329 = edp_display_modes_framework,
119} 126}
120 127
121-- Preferred daily driver mode 128-- Preferred daily driver mode
diff --git a/.linux/etc/modprobe.d/framework-laptop.conf b/.linux/etc/modprobe.d/framework-laptop.conf
new file mode 100644
index 0000000..bb33a52
--- /dev/null
+++ b/.linux/etc/modprobe.d/framework-laptop.conf
@@ -0,0 +1,16 @@
1# vim:ft=modconf
2#
3# Intel 12th Gen Framework Laptop
4#
5
6# Prevent GPU stalls that freeze the whole laptop
7# This is an Intel driver bug in the kernel
8#
9# Reference: https://community.frame.work/t/20675/146
10options i915 enable_psr=0
11
12# Enable function keys but disable ambient light sensor
13# This is a Framework EC firmware bug
14#
15# Reference: https://community.frame.work/t/20605/55
16blacklist hid-sensor-hub