Re: [9fans] Mouse inverted Y-axis

2013-02-22 Thread Pavel Klinkovsky
> something's wrong, but is it the code or the comment?

Code.

Pavel



Re: [9fans] Mouse inverted Y-axis

2013-02-22 Thread Pavel Klinkovsky
> i generally rebuild everything from the top directory.

I see, good to know. Thanks.

In any case I think there is a bug in kb.c.
The function 'ptrbootpvals' seems correct:

if(c > 3 && ch->buf[3] == 1)/* up */
b |= 0x08;
if(c > 3 && ch->buf[3] == 0xff) /* down */
b |= 0x10;

Wheel-up should set the flag 0x08.
Wheel-down should set the flag 0x10.


But the function 'ptrrepvals' seems buggy:
if(c > 3 && hidifcval(&kd->templ, KindWheel, 0) > 0)/* up */
b |= 0x10;
if(c > 3 && hidifcval(&kd->templ, KindWheel, 0) < 0)/* down */
b |= 0x08;

Wheel-up sets the flag 0x10.
Wheel-down sets the flag 0x08.

Pavel



Re: [9fans] Mouse inverted Y-axis

2013-02-22 Thread Pavel Klinkovsky
Hi all,

> I still have opposite scrolling direction when scrolling my mouse wheel (even 
> with my patched kb.c). :(

I have found a problem - as usually placed between keyboard and chair. ;)

I made such sequence to install my modification in kb.c:
- cd /sys/src/cmd/usb/kb
- mk
- mk install
- /sys/src/9/pc
- mk 'CONF=pcf'
- cp 9pcf /n/9fat
- reboot
The modification in kb.c was not used.

So I made such sequence to install my modification in kb.c:
- cd /sys/src/cmd/usb (not into kb subdirectory!)
- mk
- mk install
- /sys/src/9/pc
- mk 'CONF=pcf'
- cp 9pcf /n/9fat
- reboot

The modification in kb.c was used.

Sorry for noice... :(

Pavel



Re: [9fans] Mouse inverted Y-axis

2013-02-21 Thread Pavel Klinkovsky
Hi all,

was not something changed in Plan9 kernel(?) in the near past related to the 
mouse wheel scrolling direction?

I still have opposite scrolling direction when scrolling my mouse wheel (even 
with my patched kb.c). :(

Thanks for any help.

Pavel



Re: [9fans] Mouse inverted Y-axis

2012-12-17 Thread Pavel Klinkovsky
> Ok recompiling the kernel after modifying kb.c did the job,
Great.

> nusb was documented as userspace program so I never thought of it
I discovered it a some time ago when I had needed to fix the wheel direction of 
my IBM mouse.

Pavel



Re: [9fans] Mouse inverted Y-axis

2012-12-14 Thread Pavel Klinkovsky
> Even if i set x and y to 0 before they get printed to mousein the
> mouse still works.
Have you recompiled the kernel with your modification and installed it in 9fat 
partition?

Pavel



Re: [9fans] QTEXCL/DMEXCL redundancy

2012-12-05 Thread Pavel Klinkovsky
Thank you for the explanation.

Pavel



[9fans] QTEXCL/DMEXCL redundancy

2012-12-05 Thread Pavel Klinkovsky
Hi all,

first time I am trying to create a "synthetic" file system.

I want to have "synthetic" files with the exclusive flag.

In my getdirent (called from dirread9p) function I have:

>d->qid = (Qid){n, 0, QTFILE|QTEXCL};
>d->mode = 0666;

This does not work (ls -l did not show 'l' flag).


When I made a modification:

>d->qid = (Qid){n, 0, QTFILE|QTEXCL};
>d->mode = DMEXCL|0666;

This works (ls -l shows 'l' flag).


I thought the DMEXCL in 'mode' is a unnecessary since QTEXCL is already present 
in 'Qid'. I was apparently wrong...

Can you recommend me e.g. the manual page or document explaining such matter?
I really do not understand why such a redundancy (QTEXCL/qid and DMEXCL/mode) 
is there...

Thanks.

Pavel



Re: [9fans] c++

2012-11-22 Thread Pavel Klinkovsky
> and even that aside, can you cite studies that show that the choice of 
> programming
> language is the dominant term in determining the error rate of the resulting
> code?

Could it help?
http://archive.adaic.com/intro/ada-vs-c/cada_art.html

Pavel



Re: [9fans] unicode fonts in troff

2012-11-07 Thread Pavel Klinkovsky
> Can you describe the process or at least where did you get all the
> 
> info for doing this thing?

I used the utility ttp2pt1:
http://ttf2pt1.sourceforge.net/

Using this I generated sets of 256 glyphs and metrics, which I
manually copied into the troff and postscript directories in Plan9.

I must think more what precisely I did... ;)

Pavel



Re: [9fans] unicode fonts in troff

2012-11-06 Thread Pavel Klinkovsky
> I'd like to use it under plan9 but sadly i don't have the knowhow.
> Maybe someone smarter will fix it.

To allow the "special" characters (different from latin-1) in Plan9's troff you 
need to create tables of glyphs and the font metrics.

I have already made such a laborious conversion process when porting TTF 
containing czech characters to Plan9's troff.
Now I write the czech documents in Plan9's troff.

Pavel



Re: [9fans] Kernel panic when allocating a huge memory

2012-11-05 Thread Pavel Klinkovsky
> you dont need a dedicated swap partition. just swap to a /tmp file.

Oh, yes.
I forgot such a possibility.

Pavel



Re: [9fans] Kernel panic when allocating a huge memory

2012-11-05 Thread Pavel Klinkovsky
> > But in my case, it is easier, faster and cheaper to reinstall Plan 9 with 
> > larger (if working) swap partition than increase the RAM size.
> it would be far easier for you to just remove the *experimental* go package.

Already done, and my work continues... ;)

Pavel



Re: [9fans] Kernel panic when allocating a huge memory

2012-11-05 Thread Pavel Klinkovsky
> there are good reasons for dropping swap all together - 
> it is very slow, rarely used, and ram is cheap these days.

It seems true.

But in my case, it is easier, faster and cheaper to reinstall Plan 9 with 
larger (if working) swap partition than increase the RAM size.
However it is just a theory since official Plan 9 does not have a working 
swap...

Pavel



Re: [9fans] Kernel panic when allocating a huge memory

2012-11-02 Thread Pavel Klinkovsky
>> It really seems as a problem with swap. :( 
>
> this is well known, and solutions are available 
> even if you don't care to use them. 

Oh, does it mean the official Plan 9 distribution contains non-working swap? :O
It is clear I missed something...

Sorry for the noise.

Pavel



Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Pavel Klinkovsky
> > Here's another solution ;)
> > http://www.crucial.com/store/mpartspecs.aspx?mtbpoid=09E2BA19A5CA7304

Yeah, it really can help!
...until golang guys multiply the compilation memory needs again. ;)

Pavel



Re: [9fans] Kernel panic when allocating a huge memory

2012-11-02 Thread Pavel Klinkovsky
I prepared the very simple program sequentially allocating 1 MB blocks of 
memory.
When it reached the end of RAM, the kernel panic occured.

It really seems as a problem with swap. :(

Pavel



Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Pavel Klinkovsky
> Just 'rm -rf' the exp/locale/collate directory and
> run you should be good.

Thank you for the hint.
I confirm such work-around helps. ;)

Pavel



Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Pavel Klinkovsky
> i might give the 9front kernel a go.  i think that cinap spent
> some time trying to make swap work a little bit.

Well, actually I prefer to follow the main trunk (bell-labs) version.

Pavel



Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Pavel Klinkovsky
> > I am running the Plan 9 on the single CPU only (old IBM T30).
> 
> Sorry, that means we are looking at two different panics.

Yes.
My panic occurs inside 'fault' (search for 'faultarm' string) function of 
/sys/src/9/port/fault.c.
It seems as an unfixable page fault.

I thought I have a problem with the swap disk region.
I tried 'cat /dev/sdC0/swap | wc -c' but it was ok.

Pavel



Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Pavel Klinkovsky
> Are you running a recent (since 24 August) kernel on a multiprocessor?

I am running the latest kernel (pulled from the bell-labs repository).
I am running the Plan 9 on the single CPU only (old IBM T30).

> If so, try booting with *nomp=1 in plan9.ini and see if running on
> just one cpu prevents the panic.

I have got such option set by default.

> I've just updated my kernel, and I'm getting a panic on opening
> a particular email message in acme.  Just debugging it now.

I saw the problem occured a couple of seconds after the RAM was full,
and swapping was started.

Pavel



Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Pavel Klinkovsky
> How much memory does your system have?

- 512 MB RAM
- 512 MB swap

> Changeset 14739 grew the Unicode collation tables
> in the exp/locale/collate package by a considerable
> amount. The compiler's memory usage now goes above
> 400 MB when building that package, almost 2.5x the
> amount used to compile the second heavyweight and
> 15x the average.

I see.
I can confirm when the kernel panic occured I saw (in stats):
- full RAM
- small portion of swap occupied

Pavel



Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Pavel Klinkovsky
I made another test.
I compared compilation of exp/locale/collate of the Go build 14738 and
14739 (and later).

Compilation of 14738 does not consume RAM a lot.
Compilation of 14739 (and later) consume a huge amount of RAM
(involving swap).

So it seems the Plan 9 has a problem with the virtual memory
management (when using swap), IMO.

Pavel



[9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Pavel Klinkovsky
Hi all,

I have troubles to compile Go on my native Plan 9 - Go revision 14739
and later.
I do have a kernel panic when compiling exp/locale/collate.

Does anyone else have the same problem?
Thank you.

Pavel



Re: [9fans] bell plan9 stuff offline ?

2012-10-31 Thread Pavel Klinkovsky
> can anyone tell me where i can find the whole bell-labs.com stuff about plan9 
> ?

I think it is a subsequence of Sandy... :(

Pavel



Re: [9fans] off-topic: why linux lost the desktop

2012-10-18 Thread Pavel Klinkovsky
Dne čtvrtek, 18. října 2012 14:23:03 UTC+2 Oleksandr Iakovliev napsal(a):
>>   1) Lack of modern GUI and GUI development kit
>>   ...
> But that's the list of benefits, isn't? :)

I mostly agree except the browser.
I would appreciate a well working browser in the P9 too. ;)

Pavel



Re: [9fans] troff and times roman, need for accented characters

2012-09-03 Thread Pavel Klinkovsky
> Has somebody ever fought with this? (probably not...)
I have already "imported" some font to Plan9 troff containing Czech characters.
It is pretty boring work... ;)

But I think I can help you.

Pavel



Re: [9fans] Intel atom system

2011-08-31 Thread Pavel Klinkovsky
> Without me having to try a zillion different kernel/bootloader
> combinations, would the people who use the D510MO sound off what
> kernel/loader they are using?  I'd be much obliged.

I am using Erik's 9atom on my D510MO without troubles.

Content of kmesg:
Plan 9
E820:  0008f000 memory
E820: 0009 0009ec00 memory
E820: 0010 7eebd000 memory
E820: 7eebf000 7ef41000 memory
E820: 7efbf000 7eff1000 memory
E820: 7efff000 7f00 memory
meminit - lost 4096 bytes
126 holes free
00018000 0009e000 548864
00454000 06d47000 110047232
110596096 bytes free
cpu0: 1661MHz GenuineIntel Atom (cpuid: AX 0x106CA DX 0xBFEBFBFF)
pat: 0107040600070406
ELCR: 0E00
pcirouting: ignoring south bridge PCI.0.31.0 8086/27BC
nomp LAPIC: fee0 e000 64 0
oui 0x732 phyno 1, macv = 0x2800 phyv = 0x0002
#l0: rtl8169: 100Mbps port 0x1000 irq 11 tu 1514: 00270e03ef27
sdata: blind probe 1f0
sdata: blind probe 170
2031M memory: 109M kernel data, 1922M user, 2547M swap
root is from (tcp, il, local)[local!#S/sdC0/fossil]: set sdC0 dma
time...
venti...2011/0829 19:35:06 venti: conf.../boot/venti: mem -1 bcmem 0
icmem 0...httpd tcp!127.1!8000...init...icache 0 bytes = 1,000
entries; 4 scache
sync...2011/0829 19:35:09 arenas00: indexing 87 clumps...
announce tcp!127.1!17034...serving.
fossil(#S/sdC0/fossil)...fsys: dialing venti at tcp!127.1!17034
version...time...
i8042: fe returned to the f5 command

init: starting /bin/rc

Content of 9fat:
--rw-rw-rw- M 194 bill trog   0 May 19  2010 /n/9fat/4e
alrw-rw-rw- M 194 bill trog  243192 May 19  2010 /n/9fat/9LOAD
--rw-rw-rw- M 194 bill trog 3323188 Jun 14  2010 /n/9fat/9pccpuf
--rw-rw-rw- M 194 bill trog 3286720 May 19  2010 /n/9fat/9pcf
--rw-rw-rw- M 194 bill trog 411 Jul  6  2010 /n/9fat/plan9.ini

Could it help?

Pavel



Re: [9fans] dns SRV records

2011-05-04 Thread Pavel Klinkovsky
On 3 kvě, 10:33, roo...@gmail.com (Sergey Kornilovich) wrote:
> So far, everything looks like a bug in the dns ...
> Does anyone have ideas how to fix the situation?

The behavior is very similar to my problematic situation:
http://groups.google.com/group/comp.os.plan9/browse_thread/thread/a6aeb2ea51aad59a/a995246515877b86?lnk=gst&q=DNS+problem#a995246515877b86

I think the DNS in plan9 has a problem. But up to now, I did not find
where...

Pavel



Re: [9fans] sound, graphics, tuner

2011-01-17 Thread Pavel Klinkovsky
> There exist two different AC97 drivers; look at the port of Doom to plan9
> for pointers to one of them.
I have my IBM Think Pad with AC'97 running Plan9.
The AC'97 driver supports only output mode.
Any link to some different driver supporting also input mode?

Pavel



Re: [9fans] DNS problem

2010-11-23 Thread Pavel Klinkovsky
On 23 lis, 10:48, Pavel Klinkovsky  wrote:
>         dns.ar(ip name=xmpp-server2.l.google.com ttl00)
>         dns.ar(ip name=xmpp-server3.l.google.com ttl00)
> 

Interesting, I checked the 'status' after the 'snoopy' failure:
snoopy 28077: Killed: Insufficient physical memory

Pavel



Re: [9fans] DNS problem

2010-11-23 Thread Pavel Klinkovsky
> i can't replicate this now.  not saying you don't have
> a problem, just that i can't replicate this right now.
Interesting.
Some mistake in my NDB configuration?

Pavel



[9fans] DNS problem

2010-11-23 Thread Pavel Klinkovsky

Hi all,

I am using Plan9 server as my home server (ip=192.168.15.20)
controlling DNS names in my LAN and relaying other requests to the
public DNS server (ip=88.146.135.10).
Up to now everything worked fine.


I discovered a problem with SRV request type from my Linux workstation
(ip=192.168.15.207):

$ nslookup -type=srv _xmpp-server._tcp.google.com
;; Warning: Message parser reports malformed message packet.
Server: 192.168.15.20
Address:192.168.15.20#53

*** Can't find _xmpp-server._tcp.google.com: No answer


I monitored DNS traffic on my server using 'snoopy':

091714 ms
ether(s=6cf0490d4ac0 d=00270e03ef27 pr=0800 ln=88)
ip(s=192.168.15.207 d=192.168.15.20 id=5a54 frag= ttl= 64 pr=17
ln=74)
udp(s=44912 d=53 ck=a748 ln=  54)
dns(id=49429 flags=0x100)
dns.qd(srv name=_xmpp-server._tcp.google.com ttl=0)
091730 ms
ether(s=00270e03ef27 d=0013101df6b6 pr=0800 ln=88)
ip(s=192.168.15.20 d=88.146.135.10 id=f122 frag= ttl=255 pr=17
ln=74)
udp(s=40364 d=53 ck=6987 ln=  54)
dns(id=374 flags=0x100)
dns.qd(srv name=_xmpp-server._tcp.google.com ttl=0)
091755 ms
ether(s=0013101df6b6 d=00270e03ef27 pr=0800 ln=458)
ip(s=88.146.135.10 d=192.168.15.20 id=ad4c frag= ttl=126 pr=17
ln=444)
udp(s=53 d=40364 ck=6873 ln= 424)
dns(id=374 flags=0x8500)
dns.qd(srv name=_xmpp-server._tcp.google.com ttl=0)
dns.an(srv name=_xmpp-server._tcp.google.com ttl=900)
dns.an(srv name=_xmpp-server._tcp.google.com ttl=900)
dns.an(srv name=_xmpp-server._tcp.google.com ttl=900)
dns.an(srv name=_xmpp-server._tcp.google.com ttl=900)
dns.an(srv name=_xmpp-server._tcp.google.com ttl=900)
dns.ar(ip name=xmpp-server1.l.google.com ttl=1800)
dns.ar(ip name=xmpp-server4.l.google.com ttl=1800)
dns.ar(ip name=xmpp-server.l.google.com ttl=300)
dns.ar(ip name=xmpp-server2.l.google.com ttl=1800)
dns.ar(ip name=xmpp-server3.l.google.com ttl=1800)



You can see that:
- request is delivered from Linux to the server,
- relayed to the public server,
- answer is received from the public server,
- nothing is sent to the Linux.

This is not fully true, I monitored the IP traffic on Linux using
'wireshark'.
Linux received an answer, but as a malformed (cut) packet.
(Just note: This 'wireshark' dump does not match preciselly since the
the 'snoopy' dump was from different test.
But the behavior is always the same.)

  6c f0 49 0d 4a c0 00 27  0e 03 ef 27 08 00 45 00
l.I.J..' ...'..E.
0010  01 25 53 db 00 00 ff 11  c6 b8 c0 a8 0f 14 c0 a8   .
%S. 
0020  0f cf 00 35 cd c2 01 11  8f a0 53 4e 84 80 00 01   ...
5 ..SN
0030  00 05 00 00 00 00 0c 5f  78 6d 70 70 2d 73 65 72   ..._ xmpp-
ser
0040  76 65 72 04 5f 74 63 70  06 67 6f 6f 67 6c 65 03
ver._tcp .google.
0050  63 6f 6d 00 00 21 00 01  c0 0c 00 21 00 01 00 00
com..!.. ...!
0060  01 0a 00 20 00 14 00 00  14 95 19 78 6d 70 70
2d   ...  ...xmpp-
0070  73 65 72 76 65 72 32 2e  6c 2e 67 6f 6f 67 6c 65   server2.
l.google
0080  2e 63 6f 6d c0 0c 00 21  00 01 00 00 01 0a 00
20   .com...! ...
0090  00 14 00 00 14 95 19 78  6d 70 70 2d 73 65 72 76   ...x mpp-
serv
00a0  65 72 33 2e 6c 2e 67 6f  6f 67 6c 65 2e 63 6f 6d   er3.l.go
ogle.com
00b0  c0 0c 00 21 00 01 00 00  01 0a 00 20 00 14 00
00   ...! ... 
00c0  14 95 19 78 6d 70 70 2d  73 65 72 76 65 72 34 2e   ...xmpp-
server4.
00d0  6c 2e 67 6f 6f 67 6c 65  2e 63 6f 6d c0 0c 00 21
l.google .com...!
00e0  00 01 00 00 01 0a 00 20  00 14 00 00 14 95 19
78   ...  ...x
00f0  6d 70 70 2d 73 65 72 76  65 72 31 2e 6c 2e 67 6f   mpp-serv
er1.l.go
0100  6f 67 6c 65 2e 63 6f 6d  c0 0c 00 21 00 01 00 00
ogle.com ...!
0110  01 0a 00 1f 00 05 00 00  14 95 18 78 6d 70 70
2d    ...xmpp-
0120  73 65 72 76 65 72 2e 6c  2e 67 6f 6f 67 6c 65 2e
server.l .google.
0130  63 6f 6d
com


It seems to me the DNS in Plan9 has a problem... ;-)

Can anyone help me?

Thanks in advance.

Pavel



Re: [9fans] P9p on Fedora 12

2010-09-07 Thread Pavel Klinkovsky
> > I can confirm that:
> > - P9p on Fedora 10 does not echo the input,
> > - P9p on Fedora 12 (13) echoes the input.
>
> Are you using the latest version of 9term?
>
Delay along the path...
I inserted this report one week ago (before you patched the
problem). :-/

Now it works fine. Thanks.

Pavel



Re: [9fans] P9p on Fedora 12

2010-09-06 Thread Pavel Klinkovsky
> 3.  9term still rechoes its input:
>         ; echo 9term
>         echo 9term
>         9term
I can confirm that:
- P9p on Fedora 10 does not echo the input,
- P9p on Fedora 12 (13) echoes the input.

Pavel



[9fans] [plan9mod] Re: P9p on Fedora 12

2010-09-06 Thread Pavel Klinkovsky
> I haven't found any resolution to Pavel's original problem, hence this email.
I am sorry I forgot to write the solution here.
As expected, the problem was between my keyboard and chair... ;-)

> After installing the packages libX11-devel, libXt-devel and
> libXext-devel, INSTALL produced the expected result, all programs work
> correctly.
This was my mistake.
I forgot to install *-devel libraries.

Pavel



[9fans] Timesync problem...?

2010-07-15 Thread Pavel Klinkovsky
Hi all,

I experienced such strange behavior of timesync (using
europe.pool.ntp.org server):

/sys/log/timesync
...
server Jul 12 12:31:39 Ξ΄ 5577831 avgΞ΄ 5722272 hz 305452795
server Jul 12 12:32:39 Ξ΄ -1391083 avgΞ΄ 3556677 hz 305452749
server Jul 12 12:33:39 Ξ΄ -937290 avgΞ΄ 2246983 hz 305452536
server Mar  1 01:34:43 Ξ΄ -547984795507673122 avgΞ΄ 2246983 hz 305452536
server Mar  1 01:35:43 Ξ΄ 754028 avgΞ΄ 1500505 hz 305452536
server Mar  1 01:36:44 Ξ΄ 921782 avgΞ΄ 1211143 hz 305452536
...

Do you think the public NTP server had a persistent problem?
Or did some problem occured in my Plan9 server (Intel D510MO)?

Regards,

Pavel



Re: [9fans] 9atom hw support

2010-05-11 Thread Pavel Klinkovsky
You can add Intel Desktop Board D510MO into your HW compatibility
list,
but "one core only" is supported now. ;-)

Pavel



Re: [9fans] Almost immediate ISO Boot Failure

2010-05-04 Thread Pavel Klinkovsky
> maybe it is time to try to pack-port some of Erik's stuff to the canonical 
> source.
I fully agree.

Pavel



Re: [9fans] Almost immediate ISO Boot Failure

2010-04-30 Thread Pavel Klinkovsky
> And all activity seems to stop with cursor blinking.  Keyboard unresponsive
> to CTL-R.
It starts to be typical...
Try Erik's 9atom.iso. ;-)

Pavel



[9fans] Venti problem...?

2010-04-30 Thread Pavel Klinkovsky
Hi all,

I installed Erik's 9atom.iso (official distribution fails to perform
the bios boot):
- fossil+venti
- disk structure (proposed by installation process)
100 MB 9fat
512 B nvram
38057 MB fossil
190288 MB arenas
9514 MB isect
512 MB swap

After the reboot I can see:
2010/0427 20:53:40 err 4: read /dev/sdC0/isect offset 0xe70c8000 count
65536 buf 20ae000 returned 0:
/boot/venti: part /dev/sdC0/isect addr 0xe6c68000: icachewritesect
readpart: read /dev/sdC0/isect offset 0xe70c8000 count 65536 buf
20ae000 returned 0:

If I install fossil-only version, everything is ok.

Any idea?

Thanks in advance.

Pavel



Re: [9fans] how about intel D510MO

2010-04-26 Thread Pavel Klinkovsky
> Is intelD510MOa good choise?
I am trying to make intel D510MO to be my home server now.

Here are several notes (to save your time):
- Configure SATA to IDE mode in BIOS.
- Install Erik's 9atom.iso.
- Set *sdC0dma=on in plan9.ini.
- Disable automatic blanking of the screen.

The Plan9 works on this MB, but running just one core (instead of 4) -
missing MP table.

That's all for now.

Pavel



Re: [9fans] P9p on Fedora 12

2010-03-01 Thread Pavel Klinkovsky
> pavel's error was:
> > [pavel]$ 9term rc
> > usage: devdraw (don't run  directly)

That is true.
But muxrpc error is also there. A consequence?

[pavel]$ 9term rc
usage: devdraw (don't run  directly)
9term: initdraw: muxrpc: unexpected eof

Pavel



Re: [9fans] P9p on Fedora 12

2010-03-01 Thread Pavel Klinkovsky
Hello,

> so, can you use other programs X programs?
Yes, I can (e.g. gedit).


> do you have a DISPLAY variable?
Yes, I have:
[pa...@localhost ~]$ echo $DISPLAY
:0.0

> are you trying to execute 9term using ssh x11 forwarding?
No.

Pavel



Re: [9fans] P9p on Fedora 12

2010-03-01 Thread Pavel Klinkovsky
Sorry, I was not precise enough.
The compilation itself succeeds but I cannot rung 9term:

[pavel]$ 9term rc
usage: devdraw (don't run  directly)
9term: initdraw: muxrpc: unexpected eof

I must do something wrong but I do not know what...?

Pavel



Re: [9fans] P9p on Fedora 12

2010-03-01 Thread Pavel Klinkovsky
> I'll try again today, but I don't
> like to run Fedora in general.  I typically like archlinux these days, as
> it's small and fairly sane.
Strange, I tried to compile p9p on the latest (9.10) Ubuntu, and no
success too.

Pavel



Re: [9fans] P9p on Fedora 12

2010-02-24 Thread Pavel Klinkovsky
> usage: devdraw (don't run  directly)
> 9term: initdraw: muxrpc: unexpected eof

No one other experiencing this problem?

Pavel



[9fans] P9p on Fedora 12

2010-02-22 Thread Pavel Klinkovsky
Hi all,

I use p9p on my older Linux (Fedora 10).
I tried to compile and run it on my new PC with Fedora 12, but without
success:

[pavel]$ 9term rc
usage: devdraw (don't run  directly)
9term: initdraw: muxrpc: unexpected eof

Any idea?

Thanks.

Pavel



Re: [9fans] New User with Problems

2010-02-22 Thread Pavel Klinkovsky
> If you try Erik's 9atom ISO, you may have better luck.
I tried Erik's 9atom ISO.
I was able to reach the menu - install, start etc. - but another
install progress failed...

init: starting /bin/rc
i8259enable: irq 11 shared but not level
intrenable: couldn't enable irq 11, tbdf 0xC00FA00 for sdD (ata)

Any idea?

Thanks.

Pavel



Re: [9fans] Speed of 9pfuse on Linux

2010-02-12 Thread Pavel Klinkovsky
> this is not surprising if you consider what's happening underneath:
Clear.

Understandable but very unpleasant.

Pavel



Re: [9fans] Speed of 9pfuse on Linux

2010-02-12 Thread Pavel Klinkovsky
Results of my measurements ('ls' in sources repository)

Native Plan9:
1.05 s - very stable results

Native Linux:
40-75 s - very spread results

My "10x slower" estimation was too optimistic.

Pavel



Re: [9fans] Speed of 9pfuse on Linux

2010-02-10 Thread Pavel Klinkovsky
> Also - which file server are you using?
As I wrote above I tested it with 'sources.cs.bell-labs.com'.

Pavel



Re: [9fans] Speed of 9pfuse on Linux

2010-02-10 Thread Pavel Klinkovsky
> 1) real plan9 to the same place
> 2) qemu plan9 on Fedora to the same place
As I wrote above, I made exactly the same test on exactly the same HW
(and internet connection).
1. Native Plan9.
2. Native Fedora 10 with p9p.

> "It's slow, what's wrong" is perhaps a little vague.
Not precisely measured (I can do it today).
My estimation of the time spent by 'ls' command in contrib directory:
- 9pfuse on Fedora was more than 10 times slower.

Pavel



Re: [9fans] Speed of 9pfuse on Linux

2010-02-10 Thread Pavel Klinkovsky
> Maybe yes, maybe no. What is the latency to your file server?
I tested it with 'sources.cs.bell-labs.com'.

My tests are performed on the same HW.
If I boot into the native Plan9, the access is fast enough.
If I boot into the Fedora 10, the access is extremly slow...

Pavel



[9fans] Speed of 9pfuse on Linux

2010-02-10 Thread Pavel Klinkovsky
Hi all,

I am trying 9pfuse (p9p) on my Linux (Fedora 10), and the access to
remote directories/files is extremly slow.
Do I make something wrong?

Thanks in advance.

Pavel



Re: [9fans] vgaradeon (was Re: Problem of last update?)

2010-01-28 Thread Pavel Klinkovsky
> Remember that, on the pc, you should always be able to revert to
> monitor=vesa

Thank you very much for your hint!
In vesa mode my plan9 lives again... ;-)

Pavel



Re: [9fans] vgaradeon (was Re: Problem of last update?)

2010-01-27 Thread Pavel Klinkovsky
> On 1/19, the Radeon driver made it into the Plan 9 distribution; anyone with
> a Radeon R100 (7000, 7500, Mobility M6, M7), some R200 (8500, 9000) or
> some R300s (9500, 9700) is encouraged to try them out, see if they feel faster
> or work for you or whatnot.

Mine does not work at all (see above).
My ThinkPad T30 has got 7500 one...

Pavel



Re: [9fans] Problem of last update?

2010-01-27 Thread Pavel Klinkovsky
> i'm sorry.  that's to your kernel configuration
> file *not* plan9.ini.  you'll need to compile a
> kernel, too.

Oh, thanks. Going to try...

Does it mean they removed the support of Radeon card from the kernel
in last update?

Pavel



Re: [9fans] Problem of last update?

2010-01-27 Thread Pavel Klinkovsky
> you need to add vgaradeon  +cur to your plan9.ini...
> ...i'm sorry.  that's to your kernel configuration
> file *not* plan9.ini.

This line is already present in the kernel configuration file.
Nevertheless, I rebuilt the kernel and the situation is a little bit
different...

aux/vga: short bios read 5 at c006f got -1

Well...

Pavel



Re: [9fans] Problem of last update?

2010-01-27 Thread Pavel Klinkovsky
> Try to edit plan9.ini

plan9.ini seems untouched by the last update...

Pavel



[9fans] Problem of last update?

2010-01-27 Thread Pavel Klinkovsky
Hi all,

the last update damaged my Plan9 installation.
After the logging in the rio should be started but it fails:

aux/vga: vgactlw: : bad VGA control message "type radeon"
...
rio: can't open display: initdisplay: /dev/draw/new: no frame buffer
init: rc exit status: rio 23: display open

I am running my Plan9 on ThinkPad T30.

Can anyone help, please?

Thanks.

Pavel



Re: [9fans] Shall we fix the use of Up/Dn arrows?

2010-01-25 Thread Pavel Klinkovsky
> What I'd appreciate, from the user's point of view, would be some kind
> of history mechanism tied to the up/down keys in rio/win (where I
> interact with a shell),

http://9fans.net/archive/2009/01/356

Pavel



Re: [9fans] troff and latin2, devpost

2009-11-10 Thread Pavel Klinkovsky
> Since only the Lucida fonts have the characters you want,
> the solution is to write the whole document in Lucida.

Yes, since I did not find any other way how to solve it, I am using
Lucida.

On the other hand, Times-Roman is more pleasant to read (especially
longer documents)...

Thanks.

Pavel



[9fans] troff and latin2, devpost

2009-11-09 Thread Pavel Klinkovsky
I am a newbie in the troff world.
Trying to make a document in Czech I discovered a strange font
problem.

Searching in 9fans archive I found this topic already present, but
without useful (at least for me) feedback-hint:
http://9fans.net/archive/2004/03/1548

Can anyone provide me a help?

Thanks in advance.

Pavel



Re: [9fans] Using proportional fonts in Acme for Programming

2009-08-14 Thread Pavel Klinkovsky
> Speaking of which (or may be not ;-)) is there anybody using Lua
> on Plan9?
I am "playing" with Lua on my Plan9 computer...

BTW I have found a difference between Linux and Plan9 version:
- Linux version can handle "dividing by 0" without crash of Lua
interpretter,
- Plan9 version cannot. ;-)

Pavel



Re: [9fans] restricted remote address

2009-07-10 Thread Pavel Klinkovsky
I have the same problem.
Yesterday I changed my ISP, and the problem immediately appeared...

Pavel



Re: [9fans] Unmount of /mnt directory

2009-06-24 Thread Pavel Klinkovsky
> it might be surprising that, e.g.,
>         mount -c '#D/ssl/2/data' /mnt/term
> is not unmounted, but the mntpt isn't /mnt,
> it's /mnt/term.  things below /mnt are not
> accessable because we must walk from the
> root.
In fact, this is the most confusing point... ;-)

Thanks for explanation.

Pavel



[9fans] Unmount of /mnt directory

2009-06-24 Thread Pavel Klinkovsky
Hi all,

it seems I still do not fully understand namespaces.
But this sequence seems strange to me:

cdfs -d /dev/sdD0
unmount /mnt/cd

...everything is OK.

cdfs -d /dev/sdD0
unmount /mnt

...I unmounted wrong directory...

cdfs -d /dev/sdD0
cdfs: openscsi '/dev/sdD0': '/dev/sdD0/raw' device or object already
in use

...this situation is persistent.

What happened in the system when I unmounted /mnt directory?

Thanks for explanation beforehand.

Pavel



Re: [9fans] AC97 driver

2009-06-23 Thread Pavel Klinkovsky
> http://plan9.bell-labs.com/wiki/plan9/Installing_in_Parallels_Desktop...
It works. ;-)

Thanks a lot.

Pavel



[9fans] AC97 driver

2009-06-23 Thread Pavel Klinkovsky
Hi all,

I am trying to install AC97 driver but without success.
Is there any manual somewhere how to do it?

Thanks in advance.

Pavel



Re: [9fans] new usb implementation

2009-06-10 Thread Pavel Klinkovsky
> I'll write a variant of the driver using the report protocol just to be
> sure that's the problem, but It'll have to wait a few days.
No problem, touchpad could be (uncomfortably) used. ;-)

Pavel



Re: [9fans] new usb implementation

2009-06-10 Thread Pavel Klinkovsky
> I am going to try Linux on the same noteboot with the same mouse. I
Works without troubles.

Pavel



Re: [9fans] new usb implementation

2009-06-09 Thread Pavel Klinkovsky
> did the mouse work before?
I do not know, I used just touchpad...
I am going to try Linux on the same noteboot with the same mouse. I
will inform you.

The same mouse works without troubles in the other computer with
WinXP.

Pavel



Re: [9fans] new usb implementation

2009-06-08 Thread Pavel Klinkovsky
I install the newest Plan9 image (2009-06-08) in my old IBM ThinkPad
T30.
I connected a USB mouse. But it works crazy (gliding just vertically,
randomly, no effect of buttons).

Can you someone help me? Thanks in advance.

Pavel



Re: [9fans] fossil caching venti errors

2009-03-30 Thread Pavel Klinkovsky
> md5sum: error reading /n/sources/plan9/sys/src/boot/pc/ether82563.c: venti 
> i/o error or wrong score, block 72804bdc64d1a772cd4b2eaeda6f1e1b8f175b21
I have got similar problem with 'pull'.
And the last update even ruined binaries of NDB... :-(

Pavel



Re: [9fans] Fwd: New Chip (SEAforth 40C18) - New Challenge

2009-03-19 Thread Pavel Klinkovsky
I am playing with the FORTHdrive (SEAforth-24 chip) for half a year.
We are testing it for a signal processing.

I can confirm it is a wonderful chip.
But it needs a little bit different view to the programming. ;-)

Pavel



Re: [9fans] 'cd' into non-existent directory?

2009-02-13 Thread Pavel Klinkovsky
Alternatively, if '9fs' would 'mkdir' automatically, the sequence
would be:
- 9fs (automatic 'mkdir' and 'mount')
- ...usage...
- user 'unmounts' the fs...
- ...and the directory is still present... :-(

Clear, thanks for explanation.

Pavel



Re: [9fans] 'cd' into non-existent directory?

2009-02-13 Thread Pavel Klinkovsky
Thanks a lot.

"It is intended to supply mount points automatically."
What is it good for?

Pavel



[9fans] 'cd' into non-existent directory?

2009-02-13 Thread Pavel Klinkovsky
Hello all,

it seems I missed something but...

If I enter the /n directory, I can make 'cd' command into non-existent
(not mounted) 'directory' (or filesystem) successfully.

% cd /n
% ls
9
9fat
...
% cd blahblah
% pwd
/n/blahblah

Can you explain me, why it happens?

Thanks in advance.

Pavel



Re: [9fans] Small program "PlanKey" (paraphrase of DOSKey)

2009-01-27 Thread Pavel Klinkovsky
> What's -0x11 ?
The ugly way how to filter-out the key "Insert".

Pavel