Skip to content

Commit

Permalink
Add bonw15-b
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Crawford <tcrawford@system76.com>
  • Loading branch information
crawfxrd committed Jul 19, 2024
1 parent c477599 commit 1eab3b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const EXTERNAL_DISPLAY_REQUIRES_NVIDIA: &[&str] = &[
"addw3",
"addw4",
"bonw15",
"bonw15-b",
"gaze14",
"gaze15",
"gaze16-3050",
Expand Down Expand Up @@ -524,6 +525,7 @@ impl Graphics {
fs::read_to_string("/sys/class/dmi/id/product_version").unwrap_or_default();
match (dmi_vendor.trim(), dmi_model.trim()) {
("System76", "bonw15") => true,
("System76", "bonw15-b") => true,
_ => false,
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/hotplug/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl HotPlugDetect {
],
}),
}),
"bonw15" => Ok(Self {
"bonw15" | "bonw15-b" => Ok(Self {
integrated: Integrated::Intel(Intel {
sideband: Sideband::new(0xE000_0000)?,
port: 0x6E,
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_pm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub fn runtime_pm_quirks() -> io::Result<()> {
let model = fs::read_to_string("/sys/class/dmi/id/product_version")?;

match (vendor.trim(), model.trim()) {
("System76", "bonw15") => {
("System76", "bonw15") | ("System76", "bonw15-b") => {
for dev in PciDevice::all()? {
match (dev.vendor()?, dev.device()?) {
(0x8086, 0x1138) => {
Expand Down

0 comments on commit 1eab3b7

Please sign in to comment.