libera/#maemo/ Tuesday, 2021-04-27

MaxdamantusHmm .. wonder if there's a shortcut to open the hildon-status-menu dialogue.. my digitiser seems to have gotten worse.12:55
Maxdamantus(or some dbus command that I can bind to a key combination)12:58
KotCzarnyyou can try xdo + location click13:01
MaxdamantusHeh.13:02
KotCzarnyor xdotool13:02
KotCzarnyand you can always hack the hildon source to add a shortcut13:03
MaxdamantusSeems that you can detect key presses specifically in the task switcher, with "/apps/osso/hildon-desktop/key-actions/dbus_launcher_navigator", which would be a convenient place to put the shortcut, but probably need some way other than xdo to open the menu from there.13:06
KotCzarnyyou can use xdotool to 'click' in 0,013:07
Maxdamantus0,0 will open the task switcher, which already has a keyboard shortcut (ctrl-escape; I already use that a lot)13:08
KotCzarnyhmm13:08
KotCzarnywhat is hildon status menu then13:09
Maxdamantusand in the task switcher you can't directly open the status menu dialogue.13:09
MaxdamantusThe dialogue with network connection, volume, etc.13:09
Maxdamantuser, ctrl-backspace*13:10
bencohwhat if you click on, say, 5,5 ?13:11
bencohor some other coordinate13:11
bencohah, not 5,5, nevermind13:11
bencohbasically the status-menu button coordinates, not sure what those would be13:11
KotCzarnyi still dont know what is hildon status menu, must be rusty memory13:12
KotCzarnybecause status panel applets all have specific coords then13:12
bencohKotCzarny: the thing with the clock and various status applet13:12
KotCzarnyi must find my n900 and check13:12
bencohKotCzarny:13:13
bencohhttps://tabletui.files.wordpress.com/2009/12/14.png13:13
KotCzarnythen yeah, most likely 240,0 click13:14
bencohdepends on the theme actually13:14
KotCzarnyor 64,013:14
bencoh(I think)13:15
KotCzarnystill, still would need additional clicks to do anything with it13:15
KotCzarnyxorg had mouse-emulation mode13:16
KotCzarnymaybe it's not completely disabled in maemo13:16
MaxdamantusI've been wanting to experiment with mouse emulation using the touchscreen.13:19
MaxdamantusWonder if there's something you can just tell to Xorg to make that happen.13:20
Maxdamantus(ie, basically use the touchscreen as a relative positioned device rather than absolute)13:20
KotCzarnyas in 'gamepad overlay' type of thingy? ;)13:20
MaxdamantusNo, as in just pretend it's a touchpad.13:21
Maxdamantuslike on a laptop.13:21
MaxdamantusSo you just have a regular mouse and you move the position of the mouse relatively.13:21
KotCzarny    MatchIsTouchpad "on"13:23
KotCzarny    Driver "evdev"13:23
KotCzarny    Option "Mode" "absolute"13:23
KotCzarnybut it might be set up differently on 2009's xorg13:24
KotCzarnyis xinput available on maemo?13:25
KotCzarnyxinput set-mode ABSOLUTE|RELATIVE13:26
bencohI don't think it is, but adding it shouldn't be too hard13:43
Maxdamantusxinput 1.6 or whatever I was trying to build is too recent for some of the packages in maemo, will try building an older version tomorrow. I have a feeling I've actually already tried just setting the mode to relative but it didn't work.13:47
MaxdamantusWill try on my laptop at work tomorrow, since that has a touchscreen.13:47
KotCzarnymaybe the driver code for touchscreen has some param13:47
KotCzarnyie. kernel module option13:48
KotCzarnywhich interface touchscreen uses in x for maemo?13:48
Maxdamantusinterface? it's just using evdev.13:49
KotCzarnyevdev is and interface13:49
KotCzarnythen maybe those options i've pasted earlier could work13:49
KotCzarnyreplacing absolute with relative or whatever is supported13:50
KotCzarnybut it would also need enabling mouse pointer13:50
KotCzarnyand disabling autoclicking on press13:50
MaxdamantusRight, so that's probably why you can't just set the mode.13:54
KotCzarnysome tap to click should be in touchscreen driver13:57
MaxdamantusSounds like that mode indeed isn't for controlling how the input driver is meant to handle the input but for setting some flag in events sent to clients.13:57
Maxdamantusso when an X client receives a "mouse" event, it just has a flag that says whether it was from an "absolute" device or from a "relative" device.13:57
KotCzarnystill a nice idea to make, and game emu folks would love it 10 years ago13:58
KotCzarny:)13:58
MaxdamantusI think I saw in a video that Pinephone was doing it.13:58
KotCzarnypinephone use recent software13:59
KotCzarnyso it's easier to pull off13:59
KotCzarny*uses14:19

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!