Re: valgrind and XFree86

2004-01-29 Thread Ricardo Baratto
At some point in the past Suzy Deffeyes [EMAIL PROTECTED] wrote:

  Hi all,
  I'm trying to debug an xfree86 module i'm writing using valgrind and would
 really
  like to use the --gdb-attach=yes option. However, when valgrind asks if
  i'd like to launch gdb, no matter what I type, valgrind doesn't seem to be
 receiving
  the input, and so gdb is not launched. I've tried using --input-fd to no
 avail. It seems as
  if the X server just closes all open fds when it starts?
 
 Richardo-
 
hi suzy,

 I've found older versions of gdb don't work, so you might try a newer gdb.

true. But in this case, gdb does work, the problem is launching gdb from
valgrind. Valgrind wants confirmation from me, and I can't give it (i belive it's
because X is blocking user input).

 Also, did you try on the valgrind mailing list?

no, not yet. I decided to ask here first, since it appears to be a xfree86
specific problem. Other programs work fine :(

 Valgrind is an awesome tool, it's saved my rear end numerous times.

yes indeed, same here!!

thanks for your reply, 
ricardo

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


valgrind and XFree86

2004-01-28 Thread Ricardo Baratto
Hi all,
I'm trying to debug an xfree86 module i'm writing using valgrind and would really
like to use the --gdb-attach=yes option. However, when valgrind asks if
i'd like to launch gdb, no matter what I type, valgrind doesn't seem to be receiving 
the input, and so gdb is not launched. I've tried using --input-fd to no avail. It 
seems as 
if the X server just closes all open fds when it starts?

any hints on what to do would be greatly appreciated,
ricardo

ps: I'm running the X server on a remote machine through ssh.
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


xlib window resizing

2003-11-04 Thread Ricardo Baratto
hi all,

in an xlib app i'm using ResizeRequest events to figure out when the
user has changed the window size and then repaint the contents. 
(the contents of the window are scaled down to fit its current size, something like 
zoom-in and zoom-out). While
playing with the redraw code i noticed that when i resize the window
to its original size, the app doesn't receive any ResizeRequest messages. Only expose 
events are sent, and my app of course doesn't redraw the contents appropiately for the 
new (original) size

is this normal behavior? if yes, which event(s) do i need to listen for in order to 
know that the window is back to its original size?

thanks in advance,
ricardo
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


extension opcode list

2003-07-22 Thread Ricardo Baratto
hi all,

anyone knows where i can find the opcodes for X11 extensions? I have a
packet trace of an X11 session (running the gimp) from ethereal showing
up a bunch of 
Opcode:211 Unknown
Opcode:207 Unknown

I tried running xdpyinfo -queryExtensions on the X server but none of these
numbers show up in the list.

Are the opcodes #defined somewhere, or are they generated dinamically?

thanks,
ricardo

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: spoofing X-events input?

2003-07-22 Thread Ricardo Baratto
At some point in the past you (Peter \Firefly\ Lund [EMAIL PROTECTED]) said:
 On Tue, 22 Jul 2003, Roland Pabel wrote:
 
  I'd like to know if anyone ever thought of a way to spoof mouse/keyboards
  events, so you could send special events like clicked() to any application
  running...
 
 No, why would anyone ever want that? ;)
 
  If no one knows of an implementation, could you tell me with which of the
  X11/extensions/ header files to start with?
 
 Look for xtrap (and xtest).
 
 Some pointers:
 
 xc/programs/xtrap/
 xc/programs/Xserver/XTrap/
 
 xc/doc/specs/Xext/record.ms
 (has nice overview of the area)
 
 xc/doc/hardcopy/Xext/xtest.PS.gz
 
 
 And then there is XSendEvent, of course... ;)
 
xnee (http://www.gnu.org/software/xnee/) may be useful too...

ricardo
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: module aware gdb

2003-06-26 Thread Ricardo Baratto
At some point in the past you (Egbert Eich [EMAIL PROTECTED]) said:
 The version of the module aware gdb on ftp.xfree86.org is 
 ancient and cannot deal with the debug informations of more
 recent versions of gcc.
 
 Is there a newer version around that is accessible thru ftp?
 Could we please update the version we have on our ftp server?
 
the other day i found this one:
http://www.logix.cz/~mic/devel/gdb-xfreemod/

it's based on gdb cvs of 2002-11-07

i remember being able to use it, but trying it now doesn't work
(segfaults) :(

but maybe a starting point?

ricardo
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: [Xpert]Spanish input Environment

2002-11-19 Thread Ricardo Baratto
At some point in the past you (sanal kumar [EMAIL PROTECTED]) said:
 Hello All ,
 
We are using 'Xfbdev' ( framebuffer based Tiny-X ) 
 ,
 and we intend to create a Spanish environment .
 
   Can anybody tell us how to create a Spanish
 input Environment , so that we can enter spanish
 using the Keyboard ?
 
hi, have you tried the keyboard switcher applets that come with 
gnome/kde? they work fine for me (they change the layout for all X 
apps)
i don't know exactly what they do to change the X keyb layout, but
shouldn't be too hard to find out.

hope it heps, 
ricardo
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]Hooking onto Xserver

2002-11-04 Thread Ricardo Baratto
that'd definitely depend on your code. afaik (conceptually) there's nothing 
there that's specific to any kind of machine.

ricardo

At some point in the past you (Anurag Palsule [EMAIL PROTECTED]) said:
 But will such an approach won't be portable across
 different platforms, hardware and flavours of linux ??
 
 - Anurag
 
 --- Ricardo Baratto [EMAIL PROTECTED] wrote:
   Hooking onto the Xserver might affect the
  performance,
   Can I go one level below the x server, sit
  somewhere
   in between the X server and the display driver ?
   
  yes, look at what xf4vnc does
  (xf4vnc.sourceforge.net).
  For what you want it's probably the best approach.
  You'll probably
  want to read the Definition of the Porting layer
  (look for ddx.ps
  in X's source distribution) and the Driver Writing
  Guide for Xfree86 4
  (don't have the link right now, but google should
  find it easily)
  
  ricardo
 
 _
  Xpert mailing list
  [EMAIL PROTECTED]
  http://XFree86.Org/mailman/listinfo/xpert
 
 
 __
 Do you Yahoo!?
 Y! Web Hosting - Let the expert host your web site
 http://webhosting.yahoo.com/
 ___
 Xpert mailing list
 [EMAIL PROTECTED]
 http://XFree86.Org/mailman/listinfo/xpert
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]Hooking onto Xserver

2002-10-24 Thread Ricardo Baratto
 Hooking onto the Xserver might affect the performance,
 Can I go one level below the x server, sit somewhere
 in between the X server and the display driver ?
 
yes, look at what xf4vnc does (xf4vnc.sourceforge.net).
For what you want it's probably the best approach. You'll probably
want to read the Definition of the Porting layer (look for ddx.ps
in X's source distribution) and the Driver Writing Guide for Xfree86 4
(don't have the link right now, but google should find it easily)

ricardo
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]xviddetect

2002-10-03 Thread Ricardo Baratto

Hi,
XFree86 v4 is now a single server, in debian is under /usr/X11R6/bin/XFree86,
which supports all video hardware through different modules
(see Section Device).. 
probably the easiest way to figure out which module to load is do
XFree86 -configure
it will generate a config file (/root/XF86Config.new i believe) for what it
was able to autodetect and you can take it from there.
hope this helps,
ricardo

At some point in the past you (savanna [EMAIL PROTECTED]) said:
 As part of my job, I install Linux on a lot of different machines. I've
 just moved to Debian Woody, which uses version 4 of XFree86, not version
 3 (like Debian Potato).
 
 One of the tools I used regularly was xviddetect, to try and work out
 what video hardware was on the machine. This doesn't appear to come in
 the version 4 server - is there something similar?
 
 I know xf86cfg autodetects hardware, but I'd prefer to get the server
 right the first time, rather than selecting the vga server, then
 fixing the server after the install has finished.
 
 --
 Savanna |  Free as in 'free speech',
 GnuPG Pub Key E40FAE08  |  not 'free beer'.
 
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]Opening socket in video driver

2002-04-28 Thread Ricardo Baratto

Hi again,
(I'm appending my previous message as background of what i'm trying to do)
My problem now is that i need to open a listening socket to wait for 
client connections. However, since drivers have limited #include capabilities
i can't find a way to get the driver to compile when I add in the socket 
calls. Looking around I found the libc wrapper, which seems to provide an
abstraction layer for many system calls, but socket() is not one of them. So
my question is: how much opposition would be to add wrapper functions for
socket() and friends (listen, bind, accept, etc)? 

I'll write the code and submit the patch, but i'd like to know first if this 
is the right approach (i.e. are there any other hooks in X for doing what I
want that I haven't found yet??) and if there's any chance of it getting
accepted. 

thanks,
ricardo

At some point in the past you (Ricardo Baratto [EMAIL PROTECTED]) said:
Hi all,
is it possible to write an xfree86 graphics driver that has similar 
functionality as Xvfb? (i.e. doesn't care/require graphics hw on the machine). 
I'm playing with writing a thin client (like vnc) that's transparent to X apps, 
and even though i could hack Xvfb to do what i want, it seems to me that a 
graphics driver would be a much nicer approach.
I've been looking through the drivers code and playing with it and it seems 
like there's no straighforward/clean way to tell X:
i don't care about the hw, just trust me, i can display anything.
The cleanest way seems to be to tell X that I'm a generic vga driver and 
can support any hw, so is this the only way to go? any problems that could 
arise from this?
 
 thanks,
 ricardo
 

---
Ricardo A. Baratto- [EMAIL PROTECTED]
Columbia UniversityGPG ID: A2E896ED
GPG Fingerprint: B02A ABD1 52D5 113A F900  5865 9784 0D61 A2E8 96ED



msg05830/pgp0.pgp
Description: PGP signature


Re: [Xpert]XServer Programming

2002-04-28 Thread Ricardo Baratto

i'd be interested in them too. any place to find them?
thanks,
ricardo

At some point in the past you (Geoffrey Broadwell [EMAIL PROTECTED]) said:
 I'd like to see those PDFs myself.  Are they online somewhere?
 
 
 -'f
 
 
 On Sat, Apr 27, 2002 at 04:16:50PM +0530, Balarama Chandra N R wrote:
  Hi,
  
  If you want to build X-Server, then go into hw/docs folder under xc
  directory structure and look for ServersOnly document. In case if you are
  looking for knowing the architectrual details of X-Server I have some PDF's,
  let me know I will forward the same.
 ___
 Xpert mailing list
 [EMAIL PROTECTED]
 http://XFree86.Org/mailman/listinfo/xpert


---
Ricardo A. Baratto- [EMAIL PROTECTED]
Columbia UniversityGPG ID: A2E896ED
GPG Fingerprint: B02A ABD1 52D5 113A F900  5865 9784 0D61 A2E8 96ED



msg05831/pgp0.pgp
Description: PGP signature


Re: [Xpert]Memory allocation code/kernel interfaces? (Resounding Silence!)

2002-04-28 Thread Ricardo Baratto

 Could someone point me in the right direction (e.g., module, file, line,
 whatever) to find the point at which XFree (or if application the ATI server
 code) is trying to find a memory range for the display adapter.

if i understand correctly, you may be looking for xf86MapPciMem(). If you
grep for that inside xfree86/drivers/ati you should have a good starting 
point..

 Also, any documentation or explanation as to the data structures used and
 the sequence of modules/functions called in initializing the PCI/AGP memory
 space for the device would be most useful.
 
xfree86/doc/DESIGN has a description of the structure of the drivers, not sure
if it has everything you need but it should give you something to start off.
It should also be online in xfree86.org and i know there's a pdf version (sorry, 
don't have the links right now.)

 JSN
 
good luck,
ricardo

---
Ricardo A. Baratto- [EMAIL PROTECTED]
Columbia UniversityGPG ID: A2E896ED
GPG Fingerprint: B02A ABD1 52D5 113A F900  5865 9784 0D61 A2E8 96ED



msg05832/pgp0.pgp
Description: PGP signature


Re: [Xpert]using two X servers for a single session

2002-03-30 Thread Ricardo Baratto

if you only care about opengl apps you could use wiregl 
http://graphics.stanford.edu/papers/wiregl/

ricardo

On Sat, 30 Mar 2002 12:52:50 +0100 you (martin f krafft [EMAIL PROTECTED]) wrote:

 also sprach Tom Panning [EMAIL PROTECTED] [2002.03.30.0101 +0100]:
  Just a heads-up: this program doesn't behave like a dual-head computer. Both 
  computers run their own instance of X, and applications can't be dragged from 
  one screen to another. Really, this program is closer to a software KVM 
  switch. It allows you to use one keyboard and mouse to control two computers. 
  Which definitely has its uses, but I'm not sure if it is what you were 
  looking for.
 
 i figured that much from reading the description, and it's definitely
 not what i am looking for. put it that way: i *know* that you can use
 Xinerama to make two heads behave like one bigger screen without the
 windowmanager or another Xclient worrying about it. i also know that
 UNIX and X don't really care whether something is local or through the
 network. ergo: i want a second head to be established through the
 network onto the Xserver which dominates the screen 2cm to the right
 of where i am typing this now. i doubt i'll need tools like x2x for
 that, what i am really looking for is a Screen entry for the
 ServerLayout section, which doesn't reference a Screen section, but
 rather something like 1.2.3.4:0.0 to make the 0.0 display of the
 machine at 1.2.3.4 behave just like a local screen. is this possible?
 or possible through other means?
 
 -- 
 martin;  (greetings from the heart of the sun.)
   \ echo mailto: !#^.*|tr * mailto:; net@madduck
   
 in just seven days, i can make you a man!
   -- the rocky horror picture show
 


---
Ricardo Baratto - [EMAIL PROTECTED]   Columbia University 
GPG Fingerprint: B02A ABD1 52D5 113A F900  5865 9784 0D61 A2E8 96ED



msg05189/pgp0.pgp
Description: PGP signature


Re: [Xpert]XFree86 driver question

2002-03-30 Thread Ricardo Baratto

thanks a lot.

ricardo

On Sat, 30 Mar 2002 05:37:46 + you (didier [EMAIL PROTECTED]) wrote:
 Ricardo Baratto wrote:
  
  Hi all,
  is it possible to write an xfree86 graphics driver that has similar functionality 
as Xvfb? (i.e. doesn't care/require graphics hw on the machine). I'm playing with 
writing a thin client (like vnc) that's transparent to X apps, and even though i 
could hack Xvfb to do what i want, it seems to me that a graphics driver would be a 
much nicer approach.
  I've been looking through the drivers code and playing with it and it seems like 
there's no straighforward/clean way to tell X:
  i don't care about the hw, just trust me, i can display anything.
  The cleanest way seems to be to tell X that I'm a generic vga driver and can 
support any hw, so is this the only way to go? any problems that could arise from 
this?
 One drawback is with VT switching.  
  
  thanks,
  ricardo
 
 http://didier.gautheron.free.fr/vfbdev.tgz
 
 It's the fbdev driver with hw calls removed. For multiple heads you need
 to define BusID in the isa name space
 
 Section Device
 Identifier  Virtual Frame buffer
 Driver  vfbdev
 BusID   isa:1
 Option  shm on
 EndSection
 
 Section Device
 Identifier  Virtual Frame buffer
 Driver  vfbdev
 BusID   isa:2
 Option  shm on
 Option  shadowfb on
 EndSection
 
 And it validates every screen modes
 Section Screen
 Identifier screen2
 Device  Virtual Frame buffer
 Monitor Adi microscan
 DefaultColorDepth 16
 Subsection Display
 Depth   16
 Modes   1024x768 800x600 640x480
 ViewPort0 0
 EndSubsection
 EndSection
 ___
 Xpert mailing list
 [EMAIL PROTECTED]
 http://XFree86.Org/mailman/listinfo/xpert


---
Ricardo A. Baratto- [EMAIL PROTECTED]
Columbia UniversityGPG ID: A2E896ED
GPG Fingerprint: B02A ABD1 52D5 113A F900  5865 9784 0D61 A2E8 96ED



msg05196/pgp0.pgp
Description: PGP signature


[Xpert]XFree86 driver question

2002-03-29 Thread Ricardo Baratto

Hi all,
is it possible to write an xfree86 graphics driver that has similar functionality as 
Xvfb? (i.e. doesn't care/require graphics hw on the machine). I'm playing with writing 
a thin client (like vnc) that's transparent to X apps, and even though i could hack 
Xvfb to do what i want, it seems to me that a graphics driver would be a much nicer 
approach.
I've been looking through the drivers code and playing with it and it seems like 
there's no straighforward/clean way to tell X:
i don't care about the hw, just trust me, i can display anything.
The cleanest way seems to be to tell X that I'm a generic vga driver and can support 
any hw, so is this the only way to go? any problems that could arise from this?

thanks,
ricardo

---
Ricardo A. Baratto- [EMAIL PROTECTED]
Columbia UniversityGPG ID: A2E896ED
GPG Fingerprint: B02A ABD1 52D5 113A F900  5865 9784 0D61 A2E8 96ED


msg05155/pgp0.pgp
Description: PGP signature