From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <381b243cd5e8491af8fad252219d464b@plan9.bell-labs.com> From: jmk@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] suspending screens (was: rotzoomer) In-Reply-To: <20030121120259.Q9171@fbsd.cpsc.ucalgary.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 21 Jan 2003 14:18:14 -0500 Topicbox-Message-UUID: 44db440e-eacb-11e9-9e20-41e7f4b1d025 although i have't tried it on the t21, the t23 has a similar problem when used in anything other that 8-bit mode. the bios apm code fails to set the depth bits correctly in crt register 0x90, e.g. for 16-bit mode it should be 0x81, not 0x80 (see /sys/src/cmd/vga/virge.c). i have a dumb little programme ('adjust') for poking registers directly when testing things and use this to reset the screen after the lid has been opened: /usr/jmk/src/v/adjust crt 0x90 0x81 if i could be bothered i'd figure ou how to get that run automatically on opening the lid. fyi, here's how to display on an external monitor on the t23: # turn on hsync/vsync to external monitor % adjust seq 0x0d 0 0x3C4[0x0D]: 0x50->0x00 # power up the DACs % adjust seq 0x18 0 0x3C4[0x18]: 0x20->0x00 # turn off the lcd % adjust seq 0x31 0 0x3C4[0x31]: 0x10->0x00 %