Re: Xorg and Cue Problems

2005-10-19 Thread Alex Deucher
On 10/19/05, Rick Knight <[EMAIL PROTECTED]> wrote:
> I've done some more testing and the problem seems to actually be with
> KDE. If I start Xorg in failsafe mode and scan in the Xterm window, I
> can see the Cuecat's output. Also, if I open an xterm in KDE, not a KDE
> term, I can still scan. It seems that KDE is grabbing the CueCat's
> input, but I can't find anything in the KDE control center, so I guess
> I'll try a KDE group.
>

KDE must be intercepting the Alt-F10 or whatever the cuecat sends first.

Alex

> Thanks,
> Rick Knight

___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: Xorg and Cue Problems

2005-10-19 Thread Thomas Dickey

On Wed, 19 Oct 2005, Rick Knight wrote:

I've done some more testing and the problem seems to actually be with KDE. If 
I start Xorg in failsafe mode and scan in the Xterm window, I can see the 
Cuecat's output. Also, if I open an xterm in KDE, not a KDE term, I can still 
scan. It seems that KDE is grabbing the CueCat's input, but I can't find 
anything in the KDE control center, so I guess I'll try a KDE group.


more likely than "grabbing" is that konsole is mis-parsing the control
responses.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: Xorg and Cue Problems

2005-10-19 Thread Rick Knight
I've done some more testing and the problem seems to actually be with 
KDE. If I start Xorg in failsafe mode and scan in the Xterm window, I 
can see the Cuecat's output. Also, if I open an xterm in KDE, not a KDE 
term, I can still scan. It seems that KDE is grabbing the CueCat's 
input, but I can't find anything in the KDE control center, so I guess 
I'll try a KDE group.


Thanks,
Rick Knight
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: Xorg and CueCat problems

2005-10-19 Thread Rick Knight

Alan Coopersmith wrote:


Rick Knight wrote:


I'm running Kubuntu 5.04, kernel 2.6.10 with Xorg 6.8.2. My xorg.conf is
attached.



Xorg and XFree86 are two different projects.   If you want to ask 
about xorg,
[EMAIL PROTECTED] is a MUCH better place to ask than any 
XFree86 mailing list.



Thanks Alan,

I didn't realize the two were different projects, I thought Xorg was 
just the newest XF86. I'll try the other list.


Thanks,
Rick Knight
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Drawing RGB data

2005-10-19 Thread Matthias Scheler
Hello,

I'm searching for a piece of example code for displaying a two dimensional
array of 32 bit words with RGB color values in a X11 window. I guess
I need to use XCreateImage(..., ZPixmap, ...) followed by XPutImage().
But I'm couldn't find an example for using XCreateImage() for that purpose.

Kind regards

-- 
Matthias Scheler  http://scheler.de/~matthias/
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: Xorg and CueCat problems

2005-10-19 Thread Christian Zietz
Rick Knight schrieb:

> I have been trying for some time to get my PS/2 Cuecat device to work
> with Linux and X. Just last night I was able to determine that the
> problem seems to be with X and not with Linux. If I scan in an Xterm
> window or within my X app (Readerware) I get a bunch of beeps and
> sometimes a line feed.

The CueCat sends Alt+F10 before sending data. Maybe something (X, window
manager etc.) gets confused by a simulated Alt+F10 keypress.

CU Christian
-- 
Christian Zietz  -  CHZ-Soft  -  [EMAIL PROTECTED]
WWW: http://www.chzsoft.com.ar/
PGP-Key-ID: 0x6DA025CA

___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: Xorg and CueCat problems

2005-10-19 Thread Alan Coopersmith

Rick Knight wrote:

I'm running Kubuntu 5.04, kernel 2.6.10 with Xorg 6.8.2. My xorg.conf is
attached.


Xorg and XFree86 are two different projects.   If you want to ask about xorg,
[EMAIL PROTECTED] is a MUCH better place to ask than any XFree86 
mailing list.


--
-Alan Coopersmith-   [EMAIL PROTECTED]
 Sun Microsystems, Inc. - X Window System Engineering
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Xorg and CueCat problems

2005-10-19 Thread Rick Knight

I hope someone on this list can offer a suggestion.

I have been trying for some time to get my PS/2 Cuecat device to work
with Linux and X. Just last night I was able to determine that the
problem seems to be with X and not with Linux. If I scan in an Xterm
window or within my X app (Readerware) I get a bunch of beeps and
sometimes a line feed. If I scan in a VT I get good output from the
Cuecat. Today, I installed an old dist of RH with XFree86-3.3.6 just for
testing and the Cuecat does scan under the older version of X. Has
anyone been able to get the Cuecat devices to work under the current X?
Is there some setting I can put in xorg.conf to allow the input from the
Cuecat device?

I'm running Kubuntu 5.04, kernel 2.6.10 with Xorg 6.8.2. My xorg.conf is
attached.

Thanks for any help.

Rick Knight

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands:
#
#   cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
#   sudo sh -c 'md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum'
#   sudo dpkg-reconfigure xserver-xorg

Section "Files"
FontPath"unix/:7100"# local font server
# if the local font server has problems, we can fall back on these
FontPath"/usr/lib/X11/fonts/misc"
#   FontPath"/usr/lib/X11/fonts/cyrillic"
FontPath"/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath"/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath"/usr/lib/X11/fonts/Type1"
#   FontPath"/usr/lib/X11/fonts/CID"
FontPath"/usr/lib/X11/fonts/100dpi"
FontPath"/usr/lib/X11/fonts/75dpi"
# paths to defoma fonts
FontPath"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
Load"bitmap"
Load"dbe"
Load"ddc"
#   Load"dri"
Load"extmod"
Load"freetype"
Load"glx"
Load"int10"
Load"record"
Load"type1"
Load"vbe"
EndSection

Section "InputDevice"
Identifier  "Generic Keyboard"
Driver  "keyboard"
Option  "CoreKeyboard"
Option  "XkbRules"  "xorg"
Option  "XkbModel"  "pc104"
Option  "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier  "Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device""/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "Emulate3Buttons"   "true"
Option  "ZAxisMapping"  "4 5"
EndSection

Section "Device"
Identifier  "NVIDIA Corporation NV15 [GeForce2 GTS/Pro]"
Driver  "nvidia"
BusID   "PCI:1:0:0"
EndSection

Section "Monitor"
Identifier  "Generic Monitor"
Option  "DPMS"
#   HorizSync   31.5 - 57.0
#   VertRefresh 50-100
HorizSync   30.0 - 69.0
VertRefresh 50.0 - 160.0
EndSection

Section "Screen"
Identifier  "Default Screen"
Device  "NVIDIA Corporation NV15 [GeForce2 GTS/Pro]"
Monitor "Generic Monitor"
DefaultDepth24
SubSection "Display"
Depth   1
Modes   "1280x1024" "1024x768" "800x600" "720x400" 
"640x480"
EndSubSection
SubSection "Display"
Depth   4
Modes   "1280x1024" "1024x768" "800x600" "720x400" 
"640x480"
EndSubSection
SubSection "Display"
Depth   8
Modes   "1280x1024" "1024x768" "800x600" "720x400" 
"640x480"
EndSubSection
SubSection "Display"
Depth   15
Modes   "1280x1024" "1024x768" "800x600" "720x400" 
"640x480"
EndSubSection
SubSection "Display"
Depth   16
Modes   "1280x1024" "1024x768" "800x600" "720x400" 
"640x480"
EndSubSection
SubSection "Display"
Depth   24
Modes   "1280x1024" "1024x768" "800x600" "720x400" 
"640x480"
EndSubSection
EndSection

Section "ServerLayout"
  

Re: Sun Creator and XRender

2005-10-19 Thread Marc Aurele La France

On Tue, 18 Oct 2005, Michael wrote:


The problem is definitely in the Xserver:
- sparc64 client with X in ARGB running on a powerpc box - text colours
 are right
- sparc64 client and X with FFB/ABGR - wrong text colours
- sparc64 client and X with mach64 or mga in ARGB - text colours are
 right
- client on powerpc, X on sparc64 with FFB/ABGR - text colours are
 wrong
- sparc64 without Xrender support - text colours are right
... so it should be somewhere in Xrender.



There's a bug ( or at least an inconsistency ) in xf86Helper /
xf86SetWeight():



scrp->offset.red = ffs(mask.red);
scrp->offset.green = ffs(mask.green);
scrp->offset.blue = ffs(mask.blue);



this sets 1-based offsets while the rest of the code ( or at least
Xrender's PictureCreateDefaultFormats() ) expects 0-based ones.


That's already been fixed in our repository.

Marc.

+--+---+
|  Marc Aurele La France   |  work:   1-780-492-9310   |
|  Academic Information and|  fax:1-780-492-1729   |
|Communications Technologies   |  email:  [EMAIL PROTECTED]  |
|  352 General Services Building   +---+
|  University of Alberta   |   |
|  Edmonton, Alberta   | Standard disclaimers apply|
|  T6G 2H1 |   |
|  CANADA  |   |
+--+---+
XFree86 developer and VP.  ATI driver and X server internals.
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


rewriting touch driver from XFree86 3.3.6 to 4.2.0

2005-10-19 Thread Stefan Strobl

Hello

I just joined this mailinglist and hope this topic hasn't been discussed 
to many times before.


I've got an existing touch driver for the touch controller UR7HCTS2 from 
semtech (which is connected via the PS/2 interface) for Linux kernel 2.4 
and XFree86 3.3.6. Now I need to rewrite the driver for XFree86 4.2.0 
and have some problems. It starts with include files such as 
"xf86Procs.h" and "xf86_Config.h" that don't seem to exist in 4.2.0 
anymore. This is my first attempt to write a driver for XFree86 at all.


Can anybody point out a good documentation on how to rewrite a driver 
from 3.3.6 to 4.2.0?


Usually, is it a lot of work to rewrite such a driver?

Has anybody experience with the UR7HCTS2 controller?

Any comments are appreciated.
Thanks
Stefan
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel