Closed Thread
Thread Tools
Darken's Avatar
Posts: 17 | Thanked: 5 times | Joined on Jul 2008 @ Brno
#131
I successfully modifed xmodmap from .icewm/startup file.

But I still have a problem with stylus and applications running in debian chroot. I can't simulate rightclick.

I installed tslib, libgtkstylus and add export GTK_MODULES=libgtkstylus.so into /usr/bin/xpice

Then I tried to start xephyr with -mouse tslib argument, but I got this error message:

Couldn't find pointer driver tslib

It even does not work in debian, where Xomap runs well.

It seems to me, that Xephyr just can't handle pointer drivers, but Xomap can. Is that right?

If yes, I was able to start second Xomap on screen :1. It should be possible to somehow define exotic combination of characters to switch among xservers. Is that right?

Last edited by Darken; 2008-07-20 at 01:55.
 
Darken's Avatar
Posts: 17 | Thanked: 5 times | Joined on Jul 2008 @ Brno
#132
Or, another way I found now: When you don't need IceWM and you only need to launch app on maemo desktop, you should run app this way (in chroot)

export DISPLAY=:0
export GTK_MODULES=libgtkstylus.so
abiword

And right click works fine, at least in Xomap
 

The Following 4 Users Say Thank You to Darken For This Useful Post:
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#133
Originally Posted by Darken View Post
export GTK_MODULES=libgtkstylus.so
Thanks for this neat trick to get right click in gtk apps! Unfortunately, in thoose only it seems.

EDIT: however, quite luckily, new versions of openoffice.org seem to do nicely without the right mouse key, because every menu voice in the right click menu appears to be duplicated in the main menus.
__________________
Ernesto de Bernardis


Last edited by debernardis; 2008-07-20 at 10:49.
 
Darken's Avatar
Posts: 17 | Thanked: 5 times | Joined on Jul 2008 @ Brno
#134
You are right, I was too busy playing with gtk apps, I forget that are that there are also other widgets . Anyway, I hope, it will be usefull.

What about the idea with two Xomap servers and switching among then? Does anybody know where this key combinations are defined?
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#135
The question is not, "how do I switch between X servers," but, "how do I switch between displays?" I was using Xephyr because it puts a virtual display :1 on top of display :0 ... is there another way to get to :1?

The only other way I'm aware of is starting a VNC server in the chroot and then using maemo VNC from the garage. You can then use the + hardware button as right-click. You can also define a desktop that is vertically larger than the tablet's screen using the -geometry parameter. (I like -geometry 770x770 because you get a single vertical scrollbar when you are fullscreen)

Darken, I am going to include your GTK right-click tip in my next version.

As far as I know, there is no way to simulate right click in non-GTK apps without some kind of hack. Somebody suggested using evrouter from the usbmouse package, others have come up with solutions involving a script that toggles right-click when you press a button, but there really is no nice solution for this. It is a problem that is far bigger than which X server you are using...
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#136
The mention of VNC reminds me that I should thank the mysterious "megami" for getting me into the whole Debian chroot thing in the first place, back in January.

Here is his teaser screenshot post, and then here's his explanation post. He even wrote up a wiki article on the subject.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Darken's Avatar
Posts: 17 | Thanked: 5 times | Joined on Jul 2008 @ Brno
#137
Well, when you lauch new Xomap server on :1, displays on tablet are change. So you can do something simular like this

in maemo:

Xomap -mouse tslib (--other params) :1

in debian chroot:

export GTK_MODULES=libgtkstylus.so
export DISPLAY=:1
xsetroot
icewm

And you can enjoy maemo X server without xephyr. After you exit :1 server, you are back in default maemo enviroment.

Problem I found:

2] I tried to enable display switch, using xmodmap and I mapped switch signal to +/- button on top of tablet.
keycode 73 = XF86_Switch_VT_7
keycode 74 = XF86_Switch_VT_8
According to xev, action si send, but Xomap ignore it. Maybe it's somehow connected with Xomap paratemer -switchCmd Command to execute on vt switch but I am not able to find more about this argument.

Advantage is, you can use your window manager with stylus support (at least in apps which support them. XFCE and other gtk2 managers should be fine. Who will try to install gnome? )

It's quite dirty solution now, I will try to wrap it into some nice script
 
Darken's Avatar
Posts: 17 | Thanked: 5 times | Joined on Jul 2008 @ Brno
#138
Originally Posted by qole View Post
Darken, I am going to include your GTK right-click tip in my next version.
Then don't forget add libgtkstylus package to default image
 

The Following User Says Thank You to Darken For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#139
Originally Posted by Darken View Post
I tried to start xephyr with -mouse tslib argument, but I got this error message:

Couldn't find pointer driver tslib

It even does not work in debian, where Xomap runs well.

It seems to me, that Xephyr just can't handle pointer drivers, but Xomap can. Is that right?
I did a lot of research (at 3am) on this, maybe you're not using the right format? There are a lot of multi-seat tutorials that have a script that can use the -mouse parameter in Xephyr... Everything I've seen suggests that the -mouse parameter doesn't enable any new features (except enabling extra mouse buttons), it just selects between inputs listed here:
Code:
cat /proc/bus/input/devices
On the other hand, lots of people seem to be complaining, as you do, of missing support for mouse features, so maybe you're right, Xephyr just won't be able to do it without patches...

Originally Posted by Darken View Post
Advantage is, you can use your window manager with stylus support (at least in apps which support them. XFCE and other gtk2 managers should be fine. Who will try to install gnome?
Has anyone tried setting up libgtkstylus.so and then running xfce4 on Xephyr? Maybe the problem is the WM?


Anyway, this is definitely a conversation for the advanced thread.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post:
Darken's Avatar
Posts: 17 | Thanked: 5 times | Joined on Jul 2008 @ Brno
#140
Thank you for your help. It seems that mouse parameter for Xephyr mean something different that mouse parameterThe parameter -mouse tslib works fine for Xomap.

In xomap, the argument port mouse parameter, is mouse driver (touch screen in our case). The xephyr help screen says also:

-mouse driver [,n,,options] Specify the pointer driver and its options (n is the number of buttons)
But in tutorials you sent, they uset input device file instead of driver

Has anyone tried setting up libgtkstylus.so and then running xfce4 on Xephyr? Maybe the problem is the WM?
WM is not the problem, because I was able to use stylus in gtk2 apps in icewm under Xomap

Last edited by Darken; 2008-07-20 at 15:37.
 
Closed Thread

Tags
debian, easy debian, obsolete

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:33.