Re: Consistent handling of USB device buttons

2012-08-20 Thread Peter Hutterer
On Mon, Aug 20, 2012 at 05:12:59AM +, Alex Dubov wrote:
> Sorry for my previous mis-posting, there appears to be some problem with gmane
> interface.
> 
> There exist considerable number of hot-pluggable USB devices with helper 
> buttons
> (cameras and headsets being the more prominent examples). The buttons in
> question are recognized by evdev as USB HID interfaces, so in theory they are
> considered as "supported".
> 
> In practice, however, there are 2 common problems:
> 
> 1. Buttons have session global effect and there's no easy, nor stable way to
> limit their effect to a particular device.

I don't understand this bit. can you paraphrase?
 
> 2. Sometimes device buttons are recognized as "mice", rather than "keyboards"
> and there's no much one can do with "mouse" buttons out of Xorg box (assorted
> third party programs of varying breed and maintenance status notwithstanding).

evdev will set up BTN_0...BTN_TASK as buttons on a device. anything else
should be a keyboard. especially KEY_CAMERA should be a key. what specific
device has the camera button set up as mouse button?

Cheers,
   Peter
 
> I tried to make some sense of the issue for myself, but it appears to be
> impossible to get through untold scores of various user complains on the
> inter-webs. :-)
> 
> Can somebody point me at an information or discussions regarding the issues
> above? After all, those devices are abundant and appear to work just fine even
> on older windows xp, without any extraneous effort.
> 
> It seems logical to me that USB buttons must represent a whole input device
> class on their own, with appropriate events defined. I suppose, it won't be a
> big deal to incorporate support for them into existing applications, because 
> the
> need for such arrangement is long and widely recognized by anybody who tried 
> to
> rely on such buttons on Linux.


___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: How to edit Drawable/XdbeBackBuffer data?...

2012-08-20 Thread Adam Jackson

On 8/20/12 2:08 PM, Lee Fallat wrote:

Hey,

I'm trying to darken/lighten the image data in a Drawable/XdbeBackBuffer.
Any ideas on how to get access to the data?...I've done an XGetImage() on
Drawable but that really slows down the application I'm editing...


That is, in fact, how you do it.  GetImage is not fast.  ShmGetImage is 
faster, and as fast as you're going to get, if you insist on doing this 
by pulling all the pixels down to the client and then pushing them back up.


You may instead wish to use the Render extension, which gives you the 
usual set of Porter-Duff blend operations, and which runs in the server 
so you're not copying all that data around.


- ajax

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Difficulty running X11 on Toshiba Satellite A10-S1692 running FreeBSD 9.0

2012-08-20 Thread Bernard Higonnet
There appeared to be no errors in any of the install, Xorg -configure is 
happy.


But when I run Xorg -config xorg.conf.new (with or without -retro) 
screen goes black, computer freezes and I can only restart it by first 
powering off...


I have searched for configuration files for this machine without success.

The output of pciconf says

vgapci0@pci0:0:2:0: class=0x03 card=0x00021179 chip=0x35828086 
rev=0x01 hdr=0x00
vgapci1@pci0:0:2:1: class=0x038000 card=0x00021179 chip=0x35828086 
rev=0x01 hdr=0x00



Note I have sent this to following mailing lists:
xorg@lists.x.org
freebsd-mob...@freebsd.org
freebsd-...@freebsd.org

Hope that's OK

TIA
Bernard Higonnet
PS May well ask same question soon about a SA10-S811...
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


How to edit Drawable/XdbeBackBuffer data?...

2012-08-20 Thread Lee Fallat
Hey,

I'm trying to darken/lighten the image data in a Drawable/XdbeBackBuffer.
Any ideas on how to get access to the data?...I've done an XGetImage() on
Drawable but that really slows down the application I'm editing...

Thanks,
Lee
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com

Re: why does -sharevts is so important for multseat setup?

2012-08-20 Thread Alexandre CONFIANT-LATOUR

On 20/08/2012 10:40, stompdagg...@yahoo.com wrote:

why would multiple X instances to share the same /dev/ttyx? what is the
gain in that?


I'm working in the desktop virtualization field and, in my case, it 
allowed me to start a lot of X.org instances on the same server without 
running out of tty.


___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: why does -sharevts is so important for multseat setup?

2012-08-20 Thread Alexandre CONFIANT-LATOUR

On 20/08/2012 11:32, stompdagg...@yahoo.com wrote:

I see, still why not increase the number in the kernel?


I needed it to be "on-the-fly" because i can't know in advance the 
number of concurrent users. Because X in not ran as root, its process 
can't add tty.


I saw a workaround in the Xdummy code 
. This hack uses LD_PRELOAD to 
change standard system "open" function behavior and create a fifo 
"on-the-fly". This fifo is opened in place of the tty. The fifo is only 
used to trick X and let some test pass.


In my case, -sharevts worked well so preferred to avoid this acrobatic 
hack.


___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: why does -sharevts is so important for multseat setup?

2012-08-20 Thread Alexandre CONFIANT-LATOUR

Hello.

On 18/08/2012 20:05, stompdagg...@yahoo.com wrote:

I'm using hotpluged (via udev) feature, what I do noticed that if I
press CRTL+ALT+F1on seat 2, seat1 goes to cli.


I dont know if that could help you but it seems to be a VT-Switch 
related problem. When you hit Ctrl-Alt-FX, a signal (SIGUSR1) is sent to 
X.org. This signal raise a flag that is handled by xf86Wakeup then 
xf86VTSwitch. This functions disable IO and framebuffer access for all 
screens. Then, an ioctl is sent to switch to cli.


I'm not familiar with multiseat, but this situation seems normal if your 
two seats share the same X instance. If not, it is a bit weird that the 
second X instance got notified.


On 18/08/2012 20:05, stompdagg...@yahoo.com wrote:

I wanted to know, why multiseat setup needs to share vts? why if I take
out this feature, one of the seats doesn't lights up?


I think that -sharevts is used to allows multiple X instances to share 
the same /dev/ttyx but i may be wrong or it can have other uses.


--
Alexandre Confiant-Latour
@ : a...@user-unfriendly.net
Jabber: chouke...@im.apinc.org
GPG Key ID: 0x18CA62CC (pgp.mit.edu)
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: why does -sharevts is so important for multseat setup?

2012-08-20 Thread stompdagg...@yahoo.com
From: Alexandre CONFIANT-LATOUR 

To: "stompdagg...@yahoo.com"  
Cc: "xorg@lists.x.org"  
Sent: Monday, August 20, 2012 1:03 PM
Subject: Re: why does -sharevts is so important for multseat setup?
 
On 20/08/2012 11:32, stompdagg...@yahoo.com wrote:
> I see, still why not increase the number in the kernel?

I needed it to be "on-the-fly" because i can't know in advance the number of 
concurrent users. Because X in not ran as root, its process can't add tty.

I saw a workaround in the Xdummy code . 
This hack uses LD_PRELOAD to change standard system "open" function behavior 
and create a fifo "on-the-fly". This fifo is opened in place of the tty. The 
fifo is only used to trick X and let some test pass.

In my case, -sharevts worked well so preferred to avoid this acrobatic hack.


I understand but in my case, it renders the second seat almost impossible to 
work on.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com

Re: why does -sharevts is so important for multseat setup?

2012-08-20 Thread stompdagg...@yahoo.com

From: Alexandre CONFIANT-LATOUR 

To: "stompdagg...@yahoo.com"  
Cc: "xorg@lists.x.org"  
Sent: Monday, August 20, 2012 12:01 PM
Subject: Re: why does -sharevts is so important for multseat setup?
 
On 20/08/2012 10:40, stompdagg...@yahoo.com wrote:
> why would multiple X instances to share the same /dev/ttyx? what is the
> gain in that?

I'm working in the desktop virtualization field and, in my case, it allowed me 
to start a lot of X.org instances on the same server without running out of tty.

I see, still why not increase the number in the kernel?___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com

Re: why does -sharevts is so important for multseat setup?

2012-08-20 Thread stompdagg...@yahoo.com
From: Alexandre CONFIANT-LATOUR 

To: "stompdagg...@yahoo.com"  
Cc: "xorg@lists.x.org"  
Sent: Monday, August 20, 2012 11:25 AM
Subject: Re: why does -sharevts is so important for multseat setup?
 
Hello.

On 18/08/2012 20:05, stompdagg...@yahoo.com wrote:
> I'm using hotpluged (via udev) feature, what I do noticed that if I
> press CRTL+ALT+F1on seat 2, seat1 goes to cli.

I dont know if that could help you but it seems to be a VT-Switch related 
problem. When you hit Ctrl-Alt-FX, a signal (SIGUSR1) is sent to X.org. This 
signal raise a flag that is handled by xf86Wakeup then xf86VTSwitch. This 
functions disable IO and framebuffer access for all screens. Then, an ioctl is 
sent to switch to cli.

I'm not familiar with multiseat, but this situation seems normal if your two 
seats share the same X instance. If not, it is a bit weird that the second X 
instance got notified.

On 18/08/2012 20:05, stompdagg...@yahoo.com wrote:
> I wanted to know, why multiseat setup needs to share vts? why if I take
> out this feature, one of the seats doesn't lights up?

I think that -sharevts is used to allows multiple X instances to share the same 
/dev/ttyx but i may be wrong or it can have other uses.

-- Alexandre Confiant-Latour
@         : a...@user-unfriendly.net
Jabber    : chouke...@im.apinc.org
GPG Key ID: 0x18CA62CC (pgp.mit.edu)

Hello,

Thanks for the replay,

I'm running X for each seat, meaning that any Ctrl-Alt-FX on a seat should not 
be passed to the other seat.
in my case, the signal is passed only to the other seat, not even to the origin 
seat.
why would multiple X instances to share the same /dev/ttyx? what is the gain in 
that?___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com

Re: why does -sharevts is so important for multseat setup?

2012-08-20 Thread Alexandre CONFIANT-LATOUR

Hello.

On 18/08/2012 20:05, stompdagg...@yahoo.com wrote:

I'm using hotpluged (via udev) feature, what I do noticed that if I
press CRTL+ALT+F1on seat 2, seat1 goes to cli.


I dont know if that could help you but it seems to be a VT-Switch 
related problem. When you hit Ctrl-Alt-FX, a signal (SIGUSR1) is sent to 
X.org. This signal raise a flag that is handled by xf86Wakeup then 
xf86VTSwitch. This functions disable IO and framebuffer access for all 
screens. Then, an ioctl is sent to switch to cli.


I'm not familiar with multiseat, but this situation seems normal if your 
two seats share the same X instance. If not, it is a bit weird that the 
second X instance got notified.


On 18/08/2012 20:05, stompdagg...@yahoo.com wrote:

I wanted to know, why multiseat setup needs to share vts? why if I take
out this feature, one of the seats doesn't lights up?


I think that -sharevts is used to allows multiple X instances to share 
the same /dev/ttyx but i may be wrong or it can have other uses.


--
Alexandre Confiant-Latour
@ : a...@user-unfriendly.net
Jabber: chouke...@im.apinc.org
GPG Key ID: 0x18CA62CC (pgp.mit.edu)
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


xorg siliconmotion driver

2012-08-20 Thread public
Hi guys, I have a problem with xorg siliconmotion driver.
With external VGA port monitor image compressed/stretched horizontally, panel 
size in xorg conf 1024x600, VGA port has 800x600
If I change panel size 800x600, VGA port has 960x600. Why I get this 
resolution? If I use dual head xrandr report vga 1280x1024, but I have same 
960x600.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com