Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] just X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Vieri
Guru
Guru


Joined: 18 Dec 2005
Posts: 528

PostPosted: Thu Jun 05, 2014 9:38 am    Post subject: [SOLVED] just X Reply with quote

Hi,

I installed a light Gentoo system and I'd like run X with just one application at a time.

My /etc/X11/xinit/xinitrc basically calls a custom bash script which in turn launches a custom GUI application (FLTK) or rdesktop.

Whichever application is launched (FLTK app or rdesktop) X log shows that the mouse device is detected:

Code:

[  1306.121] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
[  1306.122] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0)
[  1306.122] (**) ETPS/2 Elantech Touchpad: Ignoring device from InputClass "touchpad ignore duplicates"


However, if the script ONLY launches the FLTK app then there's no way the user can move the mouse pointer.
If I launch rdesktop then exit it and start the FLTK app from within the same X session then the mouse works.
So I don't know what is activating the touchpad but rdesktop seems to do something that X/xinitrc isn't.

What could I do to find out what's activating the device?
How can I increase verbosity for X? (where should I set "-logverbose"?)

Code:

# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input0
U: Uniq=
H: Handlers=event0
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=3
B: KEY=4000 0 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
U: Uniq=
H: Handlers=kbd event3
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input4
U: Uniq=
H: Handlers=sysrq kbd event4
B: PROP=0
B: EV=120013
B: KEY=500f 2000403 3803078 f870d001 feffffdf fbefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=000e Version=0000
N: Name="ETPS/2 Elantech Touchpad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input5
U: Uniq=
H: Handlers=mouse0 event5
B: PROP=9
B: EV=b
B: KEY=e420 0 30000 0 0 0 0 0 0 0 0
B: ABS=2608000 11000003

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input6
U: Uniq=
H: Handlers=kbd event6
B: PROP=0
B: EV=3
B: KEY=3e000b 0 0 0 0 0 0 0


Thanks,

Vieri


Last edited by Vieri on Tue Jun 17, 2014 6:41 am; edited 1 time in total
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 594
Location: Oslo, Norway

PostPosted: Sat Jun 14, 2014 1:12 pm    Post subject: Reply with quote

What if you launch xev -geometry 1024x678 (or whatever your screen size is) as the only application from your xinitrc can you observe MotionNotify events when moving the mouse?
Back to top
View user's profile Send private message
Vieri
Guru
Guru


Joined: 18 Dec 2005
Posts: 528

PostPosted: Mon Jun 16, 2014 8:59 am    Post subject: Reply with quote

If I launch xev ONLY then I DO get MotionNotify events such as:

Code:

MotionNotify event, serial 28, synthetic NO, window 0x400001,
      root 0x43, subw 0x0, time 1201608, (285,65), root:(287,67),
      state 0x0, is_hint 0, same_screen YES


However, the "X" mouse pointer does NOT appear on screen and as a user "I don't see the mouse move".

If I configure xinitrc to first launch rdesktop and then xev, I get the same MotionNotify events AND the mouse pointer moves on-screen.

In fact, I've noticed that all mouse events are OK (even mouse clicks) so maybe the only thing missing is the mouse pointer/cursor.

I finally tried to run
Code:
xsetroot -cursor_name hand2
right before running xev and I could finally see the mouse cursor. So I guess rdesktop was calling an X function to load a mouse cursor if one wasn't loaded already.
With a cursor defined via "xsetroot", the mouse pointer shape is preserved even after quitting rdesktop.

Thanks for the hint that got me on the right track.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum