xpeace
Posts: 8
Joined: Fri Sep 05, 2014 11:19 am

Kinetic Scrolling Touchscreen Input in Raspbian

Wed Nov 12, 2014 11:17 pm

Hi !

I`m trying to get kinetic scrolling working on a small raspbian pi b+ with a 320x240 TFT/Touchscreen.
I`m using the GTKMM / GTK3 ScrolledWindow class. There I set kinetic scrolling to true using its member function.

However the Touchscreen still reacts like a mouse. No event is triggered from the scrolledwindow class.

From the readme: Kinetic scrolling only applies to devices with source GDK_SOURCE_TOUCHSCREEN.
I think within the old xorg config this info was passed to GTK via xorg.conf

Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection

As Raspbian has no more etc/x11/conf settings, ... where can I tell raspbian that a touchscreen is connected ?

ddichev
Posts: 5
Joined: Sat Sep 13, 2014 10:12 pm

Re: Kinetic Scrolling Touchscreen Input in Raspbian

Thu Nov 13, 2014 10:12 am

If you know how to do it with an xorg.conf configuration file, you could just generate one with

Code: Select all

sudo Xorg :1 -configure
and then edit it accordingly (it will pop up as /root/xorg.conf.new, so you have to place it properly yourself). While autodetecting the configuration when X starts usually works, as you see this is not always the case.

hagrad
Posts: 1
Joined: Sun Oct 23, 2016 1:57 pm

Re: Kinetic Scrolling Touchscreen Input in Raspbian

Wed Oct 26, 2016 6:26 pm

Hi,

I think I am facing the same problem. I am using the official raspberry touch display.

I have set

gtk_scrolled_window_set_kinetic_scrolling
(GTK_SCROLLED_WINDOW(scrolled_window),
TRUE);
but there is no kinetic behaviour of the scrolled_window.

When I read the Xorg.1.log, I get

[ 4360.540] (II) config/udev: Adding input device FT5406 memory based driver (/dev/input/event0)
[ 4360.540] (**) FT5406 memory based driver: Applying InputClass "evdev touchscreen catchall"
[ 4360.540] (II) Using input driver 'evdev' for 'FT5406 memory based driver'
[ 4360.541] (**) FT5406 memory based driver: always reports core events
[ 4360.541] (**) evdev: FT5406 memory based driver: Device: "/dev/input/event0"
[ 4360.541] (--) evdev: FT5406 memory based driver: Vendor 0 Product 0
[ 4360.541] (--) evdev: FT5406 memory based driver: Found absolute axes
[ 4360.541] (--) evdev: FT5406 memory based driver: Found x and y absolute axes
[ 4360.541] (--) evdev: FT5406 memory based driver: Found absolute touchscreen
[ 4360.541] (II) evdev: FT5406 memory based driver: Configuring as touchscreen

Therefore I would have expected that, when I start my program via

"startx ./cppapplication_20"

it activates the touchscreen behaviour.

Have you been able to solve the problem by changing the xorg.conf?

rob_w
Posts: 1
Joined: Sat Feb 03, 2018 12:04 am

Re: Kinetic Scrolling Touchscreen Input in Raspbian

Sat Feb 03, 2018 12:07 am

So has anyone been able to find a solution for this? I am experimenting with GTK (mm) and I've reached a point where I too need to implement kinetic scrolling. This is a show stopper for me.

Return to “Raspbian”