9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Peter Kosyh <p.kosyh@gmail.com>
To: 9front@9front.org
Subject: [PATCH] EeePC graphics
Date: Fri, 25 Sep 2020 10:23:00 +0300	[thread overview]
Message-ID: <87ft762ucr.fsf@factor-ts.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

Hello!
I am playing with my old EeePC 1000px and 9front.
Here is the patch to make default mode 1024x600x32 work. Without that,
only 800x600 is supported.

aux/vga -m eeepc -l 1024x600x32


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: eeepc-graphics.diff --]
[-- Type: text/x-patch, Size: 1353 bytes --]

diff -r 5ca47d85e288 lib/vgadb
--- a/lib/vgadb	Mon Sep 21 11:43:31 2020 -0700
+++ b/lib/vgadb	Fri Sep 25 10:12:00 2020 +0300
@@ -442,6 +442,7 @@
 	ctlr=igfx linear=1
 
 ctlr
+	vid=0x8086 did=0xa011   # PineView Graphics
 	vid=0x8086 did=0x2592	# Intel 915GM
 	vid=0x8086 did=0x27a2	# Intel GM945/82940GML (hardware cursor broken)
 	vid=0x8086 did=0x2a02	# Intel GM965/GL960/X3100 (hardware cursor broken)
@@ -484,6 +485,7 @@
 # An attribute 'alias=val' means continue using another monitor type. It can
 # be used to chain classes together. (bad explanation, i know).
 #
+
 include=640x480					# 60Hz, 31.5KHz
 	clock=25.175
 	shb=664 ehb=760 ht=800
@@ -1854,3 +1856,10 @@
 	shb=1664 ehb=1856 ht=2160
 	vrs=1201 vre=1204 vt=1250
 	hsync=+ vsync=+
+
+eeepc=1024x600
+	clock=54.2
+	shb=1048 ehb=1184 ht=1344
+	vrs=603 vre=609 vt=670
+	hsync=- vsync=-
+	lcd=1
diff -r 5ca47d85e288 sys/src/cmd/aux/vga/igfx.c
--- a/sys/src/cmd/aux/vga/igfx.c	Mon Sep 21 11:43:31 2020 -0700
+++ b/sys/src/cmd/aux/vga/igfx.c	Fri Sep 25 10:12:00 2020 +0300
@@ -375,6 +375,7 @@
 	case 0x0102:	/* Dell Optiplex 790 */
 	case 0x0126:	/* Thinkpad X220 */
 		return TypeSNB;
+	case 0xa011:    /* PineView Graphics */
 	case 0x27a2:	/* GM945/82940GML - ThinkPad X60 Tablet */
 	case 0x29a2:	/* 82P965/G965 HECI desktop */
 	case 0x2a02:	/* GM965/GL960/X3100 - ThinkPad X61 Tablet */

             reply	other threads:[~2020-09-25  7:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25  7:23 Peter Kosyh [this message]
2020-09-27  3:48 ` [9front] " ori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft762ucr.fsf@factor-ts.ru \
    --to=p.kosyh@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).