9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Mouse cursor is too large.
@ 2002-10-02 16:09 Russ Cox
  0 siblings, 0 replies; 11+ messages in thread
From: Russ Cox @ 2002-10-02 16:09 UTC (permalink / raw)
  To: 9fans

You should be able to apply the same cursor fix that
I posted yesterday (adding the pci did to the
switches in /sys/src/9/pc/vgas3.c:/^s3load).
Running "pci" should tell you the PCI did -- the
vid/did that looks like 5333/xxxx is the one you
want.

Getting going in better resolutions is a bit
trickier.

Russ




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
@ 2002-10-03 14:25 Vester Thacker
  0 siblings, 0 replies; 11+ messages in thread
From: Vester Thacker @ 2002-10-03 14:25 UTC (permalink / raw)
  To: 9fans


From: "Russ Cox" <rsc@plan9.bell-labs.com>

> When you move the mouse over a window border,
> does the cursor change at all?  (On a system with a
> working cursor, the cursor changes to indicate that
> you can drag the window border to resize the window.)

Yes, but maybe not like you might expect. I`ve taken a
short series of picture to show you the changes.

The first picture depicts the mouse cursor just after
bootstrap. Note the two vertical black bars with
horizontal lines in the top left corner of the screen.
See the following link:
http://www.0xfe.org/plan9/1-mouse-after-bootstrap.jpg.

The second picture depicts the mouse cursor while
selecting a menu item. Note the distance between
the cursor and the menu. See the following link:
http://www.0xfe.org/plan9/2-mouse-selecting-menu-item.jpg.

The third picture depicts the mouse cursor while resizing
the window. Note the change in the cursor. The lines are now
vertical. See the following link:
http://www.0xfe.org/plan9/3-mouse-resizing-window.jpg.

The last picture depicts the mouse cursor after resizing
the window. The vertical lines are now gone. See the following
link:
http://www.0xfe.org/plan9/4-mouse-after-resizing-window.jpg.

I hope these pictures help.

Thanks,

Vester Thacker


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
  2002-10-02 16:26 Russ Cox
@ 2002-10-03  8:46 ` Adrian Tritschler
  0 siblings, 0 replies; 11+ messages in thread
From: Adrian Tritschler @ 2002-10-03  8:46 UTC (permalink / raw)
  To: 9fans

Russ Cox wrote:
> You're right -- there's only one switch in s3load.
> There used to be identical redundant ones.  I forgot
> that the second got replaced by the dolock variable.

Phew, I'm not going crazy.  8904 seems to be the ID for the S3 83C366, but
adding it to vgas3.c doesn't make any difference.

> When you move the mouse over a window border,
> does the cursor change at all?  (On a system with a
> working cursor, the cursor changes to indicate that
> you can drag the window border to resize the window.)

Yep, I always get the correct cursor, it changes when it should, its just that
it is the top-left 16x16 pixels in the 64x64 block of noise.  The remaining
block never changes.  I'm guesing that somewhere there is a registry setting
for a 64x64 hardware cursor, and it was never initialised to all be transparent.

Um, as asci-fied below.  + is the cursor, the spaces are transparent, X is the
black and white noise.

+X X
 X X

	Adrian

---------------------------------------------------------------
Adrian Tritschler    mailto:Adrian.Tritschler@its.monash.edu.au
---------------------------------------------------------------


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
@ 2002-10-02 16:26 Russ Cox
  2002-10-03  8:46 ` Adrian Tritschler
  0 siblings, 1 reply; 11+ messages in thread
From: Russ Cox @ 2002-10-02 16:26 UTC (permalink / raw)
  To: 9fans

You're right -- there's only one switch in s3load.
There used to be identical redundant ones.  I forgot
that the second got replaced by the dolock variable.

When you move the mouse over a window border,
does the cursor change at all?  (On a system with a
working cursor, the cursor changes to indicate that
you can drag the window border to resize the window.)

Russ



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
  2002-10-01 23:16 Russ Cox
@ 2002-10-02 16:17 ` Vester Thacker
  0 siblings, 0 replies; 11+ messages in thread
From: Vester Thacker @ 2002-10-02 16:17 UTC (permalink / raw)
  To: 9fans

From: "Russ Cox" <rsc@plan9.bell-labs.com>

> Edit /sys/src/9/pc/vgas3.c to add "case 0x8D02:"
> to both switches in s3load.  Then do:

I only see one switch in the s3load section. I added the case 0x8D02 to the
switch
and recompiled. The compile went well. After reboot my mouse problem still
persists.
I might have made a mistake by not understanding where to add the second
case
statement. I apologize. I`ll review the file again after getting some rest.
I`ll post
my vgas3.c to http://www.0xfe.org/plan9/vgas3.c.txt as an example of my
changes.

Thanks,

Vester Thacker





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
  2002-10-01 15:22 Russ Cox
  2002-10-01 23:04 ` Vester Thacker
@ 2002-10-02  9:01 ` Adrian Tritschler
  1 sibling, 0 replies; 11+ messages in thread
From: Adrian Tritschler @ 2002-10-02  9:01 UTC (permalink / raw)
  To: 9fans

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

The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Type: multipart/mixed;

[-- Attachment #2: file.suspect --]
[-- Type: application/octet-stream, Size: 3503 bytes --]

This is a multi-part message in MIME format.
--------------090209070104090508060303
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Russ Cox wrote:
> Your mouse cursor is uninitialized.  After you've
> installed, see if the problem persists.  If it does,
> then let us know what kind of video card you have
> (what does aux/vga -p print?).

Same problem here with an IBM 300pl, I can remember having problems installing
Xfree on the machine in a previous incarnation.  It has an onboard S3 Trio3D

Under WinXP I can run it to 1600x1200x16bit, the best (and only) mode I can
get in Plan9 is 1024x768x8bit.

I have the normal 16x16 cursor in the top-left sixteenth of a 64x64 blob.

The addition that I had to make to vgadb in order to install and run was:

>        0xC004B="S3 86C366 Video BIOS"  # ajft
	link=vga
	hwgc=s3hwgc
	ctlr=trio64 linear=1
	link=ibm8514

I tried to muddle my way through some docs I had on the Trio3d chips and edit
the driver and only succeded in making things much worse!

Hope this helps.

	Adrian

---------------------------------------------------------------
Adrian Tritschler    mailto:Adrian.Tritschler@its.monash.edu.au
---------------------------------------------------------------

--------------090209070104090508060303
Content-Type: text/plain;
 name="vgainfo.txt"
Content-Disposition: inline;
 filename="vgainfo.txt"
Content-Transfer-Encoding: 7bit

vga->attr: 0xC004B=S3 86C366 Video BIOS
vga misc             EF
vga feature          00
vga sequencer        03 01 0F 00 0A
vga crt              A3 7F 88 9A 86 1A 24 FD - 00 60 00 00 00 00 FF 00
                     03 29 FF 80 60 03 04 A3 - FF
vga graphics         00 00 00 00 00 50 05 0F - FF
vga attribute        00 01 02 03 04 05 06 07 - 08 09 0A 0B 0C 0D 0E 0F
                     41 FF 0F 00 00
vga virtual         0 0
vga panning         off
vga clock[1] f      135000000
vga clock[1] d i m          0        0       -      127
vga clock[1] n p q r       31        0       -        0        3
vga vmz               3145728
vga apz                     0
vga linear                  1
virge Crt30          E1 8D 40 20 10 00 5F 0B - 4B AD 11 95 00 01
virge Crt40          03 08 00 00 00 01 02 1A - 1A 9E 00 FF F3 00 00 00
virge Crt50          00 00 80 00 A8 00 00 00 - 9B F4 00 00 03 00 40 00
virge Crt60          30 10 10 00 00 04 88 00 - F3 E0 C0 09 07 00 EF 17
virge hde           400  1024
virge shb           448  1096
virge ehb           45A  1114
virge ht            540  1344
virge vde           300   768
virge vrs           303   771
virge vre           309   777
virge vt            326   806
virge Crt70          01 01 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
                     11 14 10 DB 00 00 00 00 - 01 01 01 01 01 01 01 01
                     00 00 00 00 00 00 00 00 - 03
virge Seq08          06 00 C0 00 0C 00 00 00
virge Seq10          41 52 29 71 00 02 0C 64 - 40 00 2F 02 02 00 1E 1F
                     00 02 82 5B 00 00 26 27 - 28 29 2A 2B 2C 2D 2E 2F
                     30 31 32 33 34 35 36 37 - 38 39 3A 3B 3C 3D 3E 3F
                     03 01 0F 00 0A 05 06 07 - 06 00 C0 00 0C 00 00 00
virge Crt2D          89 04 01
virge dclk m n r     74845031      113       -        9        1
virge mclk m n r    100227260       82       -        1        2
ibm8514 Advfunc          FFFF
ibm8514 Subsys           FFFF


--------------090209070104090508060303--

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
@ 2002-10-01 23:16 Russ Cox
  2002-10-02 16:17 ` Vester Thacker
  0 siblings, 1 reply; 11+ messages in thread
From: Russ Cox @ 2002-10-01 23:16 UTC (permalink / raw)
  To: 9fans

You have to recompile your kernel.

Edit /sys/src/9/pc/vgas3.c to add "case 0x8D02:"
to both switches in s3load.  Then do:

	cd /sys/src/9/pc
	mk 'CONF=pcdisk'

That builds 9pcdisk.  Run

	9fat:
	acme -c1 /n/9fat/plan9.ini

and, right after the bootfile=sdC0!fs!/386/9pcdisk
line, add

	bootfile=sdC0!fs!/sys/src/9/pc/9pcdisk

Then when you boot again, you'll get a choice
of kernel.  If the changed kernel works, you can
then copy /sys/src/9/pc/9pcdisk to /386/9pcdisk
and remove the extra line.

Russ



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
  2002-10-01 15:22 Russ Cox
@ 2002-10-01 23:04 ` Vester Thacker
  2002-10-02  9:01 ` Adrian Tritschler
  1 sibling, 0 replies; 11+ messages in thread
From: Vester Thacker @ 2002-10-01 23:04 UTC (permalink / raw)
  To: 9fans

From: "Russ Cox" <rsc@plan9.bell-labs.com>

> Your mouse cursor is uninitialized.  After you've
> installed, see if the problem persists.  If it does,
> then let us know what kind of video card you have
> (what does aux/vga -p print?).

Since my video card wasn`t listed in VGADB on the boot floppy nor within
the lib/vgadb file, I have added the following to both files:

vid=0x5333 did=0x8D02  # ProSavage Twister.

The problem persists after installation. The following was displayed after
executing
aux/vga -p:

vga ->attr: vid=0x5333
vga ->attr: did=0x8D02
vga misc                        E3
vga feature                    00
vga sequencer               03  01  0F  00  0A
vga crt                          5F  4F  52  9F  53  1F  0B  3E  -  00  40
00 00 00 00 FF  00
vga graphics                 00  00  00  00  00  00  50  05  0F  - FF
vga attributes                01  02  03  04  05  06  07  -  08  09  0A  0B
0C  0D  0E  0F
                                    41  FF  0F  00  00
vga virtual                    0  0
vga panning                 off
vga clock[1]  f            135000000
vga clock[1] d i m                       0        0        -        127
vga clock[1]  n p q r                  31        0        -        0
3
vga vmz                           2097152
vga apz                                        0
vga linear                                     1
virge Crt30                E1  8D  40  28  10  00  9F  DB -  5B  BD  14  59
00  00
virge Crt40                01  03  00  00  00  01  02  5B  -  59  14  00  FF
01  2C  00  00
virge Crt50                40   00  00  00  E8  00  00  00  - 9A  90  00  00
00  00  40  00
virge Crt60                00  00  00  00  00  04  88  00  -  FF  00  00  02
00  22  00  EE
virge hde                   280    640
virge shb                   298    664
virge ehb                   29F    671
virge ht                      320    800
virge vde                   1E0    480
virge vrs                    1EB    491
virge vre                    1ED    493
virge vt                      20D    525
virge Crt70                10  C0 07 1F 1F  1F  00  1F  -  01  01  1F  1F
17  17  17  17
                                 00  3C  10  22  00  10  00  00  -  00  00
00  00  00  00  00  00
                                 80  50  00  00  00  00  00  00  - 00
virge Seq08               06  00  0A  00  0C  50  0E  0F
virge Seq10               00  00  C5  FC  00  02  93  C6  -  60  02  02  82
00  F8  0A  00
                                 20  21  22  23  24  25  26  04  -  0C  00
2A  02  1E  00  2E  2F
                                 10  17  41  63  00  00  00  00  -  00  00
3A  3B  3C  00  3E  00
                                 40  41  42  43  44  45  46  47  -  48  49
4A  4B  4C  4D  4E  00
virge Crt2D                8D  02  01
virge dclk m n r           64431810    124    -    5    2
virge mclk m n r          14318180        0    -    0    0

Thanks,

Vester Thacker




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
@ 2002-10-01 15:22 Russ Cox
  2002-10-01 23:04 ` Vester Thacker
  2002-10-02  9:01 ` Adrian Tritschler
  0 siblings, 2 replies; 11+ messages in thread
From: Russ Cox @ 2002-10-01 15:22 UTC (permalink / raw)
  To: 9fans

Your mouse cursor is uninitialized.  After you've
installed, see if the problem persists.  If it does,
then let us know what kind of video card you have
(what does aux/vga -p print?).

Thanks.
Russ


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] Mouse cursor is too large.
  2002-10-01 13:11 Vester Thacker
@ 2002-10-01 14:51 ` Philippe Anel
  0 siblings, 0 replies; 11+ messages in thread
From: Philippe Anel @ 2002-10-01 14:51 UTC (permalink / raw)
  To: 9fans

Vester Thacker wrote:
> How do you change the size of the mouse cursor under rio? My mouse
> cursor currently appears as two black bars. A picture of the cursor
> can be found at: http://www.0xfe.org/plan9/cursor.jpg.
>
> Thanks in advance,
>
> Vester Thacker
> Yamato, Japan
>
>

Hi,
     I had the same problem with a S3 Virge video card. It seems to be
a bug in the driver.

    Philippe,






^ permalink raw reply	[flat|nested] 11+ messages in thread

* [9fans] Mouse cursor is too large.
@ 2002-10-01 13:11 Vester Thacker
  2002-10-01 14:51 ` Philippe Anel
  0 siblings, 1 reply; 11+ messages in thread
From: Vester Thacker @ 2002-10-01 13:11 UTC (permalink / raw)
  To: 9fans

How do you change the size of the mouse cursor under rio? My mouse
cursor currently appears as two black bars. A picture of the cursor
can be found at: http://www.0xfe.org/plan9/cursor.jpg.

Thanks in advance,

Vester Thacker
Yamato, Japan



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-10-03 14:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 16:09 [9fans] Mouse cursor is too large Russ Cox
  -- strict thread matches above, loose matches on Subject: below --
2002-10-03 14:25 Vester Thacker
2002-10-02 16:26 Russ Cox
2002-10-03  8:46 ` Adrian Tritschler
2002-10-01 23:16 Russ Cox
2002-10-02 16:17 ` Vester Thacker
2002-10-01 15:22 Russ Cox
2002-10-01 23:04 ` Vester Thacker
2002-10-02  9:01 ` Adrian Tritschler
2002-10-01 13:11 Vester Thacker
2002-10-01 14:51 ` Philippe Anel

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).