[maemo-developers] disabling pressure information (for x11vnc)

From: Eero Tamminen eero.tamminen at nokia.com
Date: Wed Apr 18 11:41:02 EEST 2007
Hi,

ext Mike Cowlishaw wrote:
> Hi, I am going to have to try this before the weekend -- x11vnc seems to be
> the only game in town for a demo of N800 apps to an audience using a
> projector.  I'm happy for this to be a one-off 'turn off pressure
> information' as I never use that feature anyway (I tried it, but the screen
> got so mucky so fast...).
> 
> Your instructions are a bit vague, however.  When you say:
> 
>   If you want to disable pressure information usage, you need to run
>   the device X server with XInput protocol/extension disabled.  Just
>   add  "-extension XInputExtension" to the /etc/init.d/x-server file
>   X server options and reboot the device.  
> 
> It's not clear where to add it.  I would add it to the end of the
> ARGS="...." string, preceded by a space.  Is that correct?

Yes.  You can test what Xserver thinks about it with:
  Xomap -mouse tslib -nozap -wr -nolisten tcp -extension XInputExtension

If you use something else, you can see what kind of an error X server
would give (at startup) if the X server argument is not correct.


> [Subsidiary question .. is there a way to use maemopad to edit files on the
> internal filesystem?  Copying to an mmc card and editing there or on another
> machine sounds a bad idea for system files...]

Applications are run under "user" user, so it cannot edit files that are
not writable by "user".


	- Eero


> 
> Thanks!   Mike
> 
> 
>> -----Original Message-----
>> ext Mike Cowlishaw wrote:
>>>>> I get the same problem as you with the x11vnc not responding to clicks
>>>>> on
>>>>> the docking/application bar. It's frustrating as heck because it was
>>>>> inversely so neat to even find a vnc server for this. It is definately
>>>>> an
>>>>> x11vnc issue as I tried 2 different VNC viewers, and if I maximize
>>>>> applications I can still register clicks in that area.
>>>> I think the issue is that x11vnc uses the XTest protocol/extension to
>>>> simulate the events at the device and XTest doesn't support pressure
>>>> information.  Pressure information is needed for detecting whether
>>>> the device is used with fingers or stylus.
>>>>
>>>> If you want to disable pressure information usage, you need to run
>>>> the device X server with XInput protocol/extension disabled.  Just
>>>> add  "-extension XInputExtension" to the /etc/init.d/x-server file
>>>> X server options and reboot the device.  Note that if you make a
>> mistake
>>>> and X server doesn't start, your device could end up in a reboot loop.
>>> That sounds promising!  Is there a 'safe' way to disable this
>>> (e.g., via an installable applet)?
>> To disable X server extensions/protocols you need to start X server
>> without them.  Only way X server provides for this is the command line
>> options (in the kdrive build configuration, with the Linux Desktop
>> X server you can change the configuration also from the
>> /etc/X11/xorg.conf file and then restart the X server).
>>
>> I think Gtk/Gdk check the extensions availability also only at process
>> startup.
>>
>>
>> 	- Eero
> 


More information about the maemo-developers mailing list