From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31344 invoked from network); 19 Apr 2021 19:14:45 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 19 Apr 2021 19:14:45 -0000 Received: from mail-ed1-f52.google.com ([209.85.208.52]) by 1ess; Mon Apr 19 15:08:19 -0400 2021 Received: by mail-ed1-f52.google.com with SMTP id w18so42126840edc.0 for <9front@9front.org>; Mon, 19 Apr 2021 12:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=offblast-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0e/uM+47Nnh3YKxhHVLpZMtHYeLnUBtV4gLSZ/BPRo0=; b=UhKQrPJMxxnLugmma6sSTnHFQW8s0U5wXMi08hynw0k3DWkWv8/yFxYdzlO1iihbOj ASNNrK6tABCbguqaAVtlQn6YUPEIOrhgKExQpDobkbLeeGx3ra4Hwmjqsn/F+0L99FlA Uuk4jcH9G32kDvNLiht6JbTqxsasEoXSUbf6tZdbX1Ks/hrVTi6teq0YyUTmbjreRSgJ Yz1KrZjPNH6wi9gvWGKyh0ccXVWVyRKD8sEATJUynCcS6IuBx/bWIpLHTIGkHjeAcPYk 6i8xHQ281UV2In81Zh/lxywGdbispjbrkcECKUpAb2TgasXoLQtqmXHNt7NAs41iegN8 bv1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0e/uM+47Nnh3YKxhHVLpZMtHYeLnUBtV4gLSZ/BPRo0=; b=CrCuE6uhJY7jlLlvXbKAzTkmKfoubnIkhw7oicbqjX2BtjNNSRfNV0g9TqNs0iRia+ rAKWYboyr6V91xe4B/hZKyZrWNy8b60bbe84Ec9rAAKRa4JANIOg90W25daB1H7ekQ/N 5IFpK1Jvh4+wGR8alYBx+msSahidiNZfKUw8XHmWPP/BiNhJs6clah/1GdJd2QKoIwae l0SYTNLg8RJG0NLXkGbgIxiHvpR3oMRLpYSYRiId76pNc1MzBUYeSP+60qDFXr8m72QC 01razCYj7PLm6yt5T74G9ns55/J13rWryQy6W9EaZF8u9NLq9LkX1wR1/FF+2MemAoTb 94wQ== X-Gm-Message-State: AOAM532RiS4+I0S1BJRmXVUWMks403o+boF+EBl4ZHRIYbjm5t0IWnQr xNKnK/pqwSIi6maXL1OvAYN4wVqaQHCv78IPvLFYPMUuQj0zPw== X-Google-Smtp-Source: ABdhPJyR775Us82MqmIIfePFPK7AmL0TadAEOoaPDu8cukc4QSp3PMo7nffG9CFBh9QBW7bwsjd4VRgPvdIIUmFFk8s= X-Received: by 2002:adf:e790:: with SMTP id n16mr15764708wrm.278.1618858836761; Mon, 19 Apr 2021 12:00:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nick Owens Date: Mon, 19 Apr 2021 12:00:25 -0700 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: overflow-preventing leveraged just-in-time cache Subject: Re: [9front] MB Pro early-2011 support status Reply-To: 9front@9front.org Precedence: bulk On Sun, Apr 18, 2021 at 10:42 PM wrote: > > I have written a description about what works and does not work on an > early-2011 macbook pro. The post is @ > https://blog.fallglow.com/2021/04-13/blog > > I have a few patches that have made it more reasonable to use 9front > on a macbook from the get-go (most notably the new keymap and pc64mb > conf file in the pc64 kernel directory) and have setup up a new branch > to keep track of the changes. It's not ready for merging to default > but my hope is to get multi-touch working along with some of the other > hardware (audio, camera, monitor blanking). The branch is now hosted > at https://fallglow.com/p9/mb : my plan is to track default and merge > default into this branch every so often. > > One of my next steps that I'd like to do is to try to resolve is the > lack of monitor blanking. The current status of Sandy Bridge mentions > it being unfinished (changeset 4713:3e7542933175 ). There's code in > the igfx for sandy bridge to blank, but it's not working for me when I > set 'echo hwblank on >/dev/vgactl' and do 'echo blank >/dev/mousectl'. > So I figure there's something that isn't implemented yet. This is a > new area of programming for me so I figure looking at the 9front code, > the corresponding drivers for OpenBSD and Linux, and the programmer's > manuals is what I should do. Cinap--since you committed changeset > 4713, do you recall anything I should be looking at for this? (Or > anyone else who is still reading this long, drawn-out message?) I am > currently wading through the 2011 Intel Core Processor Family docs > found at > https://01.org/linuxgraphics/documentation/hardware-specification-prms > i added blanking for some cards in this commit: changeset: 6686:2f61fba90cd1 user: mischief date: Tue Aug 21 11:31:45 2018 -0700 summary: igfx: support blanking by turning off panel power and backlight it should (in theory) work for your chip. you have the 0x0126 did (from your sysinfo): case 0x0126: /* SNB */ case 0x0166: /* IVB */ off = 0xC7204; break; } /* toggle PP_CONTROL backlight & power state */ if(blank) scr->mmio[off/4] &= ~0x5; else scr->mmio[off/4] |= 0x5; you can also see the value of PP_CONTROL in the aux/vga -p output in your sysinfo. maybe double check the programming manual for the PP_CONTROL register location and value to see if those bits are correct. IIRC this code worked for me and others on thinkpads, but it's possible that this register isn't hooked up in this hardware.