libera/#maemo/ Friday, 2019-08-09

brolin_empeyIf anyone else here uses an official application for Facebook Messenger, have you noticed an apparently significant part of a conversation missing when reading the backlog from months ago?  I noticed at least one of these gaps today and am wondering if it is caused by a software defect or if Facebook has intentionally deleted part of my archived conversation and thought I would not notice?08:38
brolin_empeyApparently thirteen days of the archived conversation with one of my contacts on Facebook Messenger is missing.  WTF?08:41
sicelocompare with the website ...08:43
brolin_empeyI am using the messenger.com Web application.08:43
siceloi haven't missed any messages in mine (so far)08:44
sicelodoes messenger allow one to delete a message for himself *and* the other party? if so, maybe that's what happened to you?08:50
brolin_empeyThe other party is a woman in this case but, regardless, I do not think they would have tried to delete part of the conversation.  Skype, at least with the official client, apparently allows a user to change and maybe also delete a message after sending it and have this change shown to the other party but, as far as I know, Facebook Messenger does not have this same capability of historical revisionism in the negative sense.  I mostly stopped using Skype08:56
brolin_empeybecause it became redundant.  The reason I mention that the other party is a woman in this case is because I do not think they would use a masculine pronoun to refer to theirself.08:56
brolin_empeyHeh, this seems to be Yet Another case of the messenger.com Web application being flaky because the messages that I thought were missing appear to still be there after I reloaded the page.09:19
brolin_empeyWell, they certainly were missing before I reloaded the page.  I even have a screenshot showing the missing messages because I was considering asking the other person if the same messages were missing for them too.  I mean that the screenshot shows that messages are missing;  obviously it does not show the messages that are missing.09:22
DocScrutinizer05hey hackers! how would I *disable* the touchscreen completely while keeping display and input from slide-out kbd operational?13:37
DocScrutinizer05modeprobe -r something?13:37
DocScrutinizer05purpose: I want to run N900 xchat in "kiosk mode"13:38
DocScrutinizer05bunus points for: whenopening camera door, allow taking photos. When closing camera app or door again, return focus to xchat immediately13:39
DocScrutinizer05bonus even13:39
brolin_empeyDisconnect the cable for the touch panel from the computer/motherboard?13:41
DocScrutinizer05nah, too invasive13:41
DocScrutinizer05also I need display13:41
Maxdamantusrm /dev/input/event313:41
MaxdamantusMight need to do that before starting Xorg.13:41
MaxdamantusCan probably actually just disable it within Xorg13:42
DocScrutinizer05I'd *think* I could disable/rmmod the digitizer driver13:42
brolin_empeyDocScrutinizer05: That is why I said the cable for the touch panel, not the cable for the display.13:42
MaxdamantusProbably not as long as Xorg has that file open.13:42
DocScrutinizer05hehe that's absolutely non-trivial13:43
DocScrutinizer05I *might* spoil the calibration so no matter what, each click on touchscreen is in center13:44
DocScrutinizer05;-P13:44
DocScrutinizer05but I guess it's way simpler to modprobe -r / rmmod the driver13:45
MaxdamantusI really doubt that's possible without getting Xorg to close the file.13:45
DocScrutinizer05more tricky: the bonus pack13:45
Maxdamantussince having that file open will be considered a use of the driver, so you won't be able to unload it.13:46
DocScrutinizer05need to learn how to bring a window on top via cmdline13:47
DocScrutinizer05so whenever something unique indictaes on dbus that camera been closed, bring xchat on top again via dbus-scripting13:48
DocScrutinizer05AAAAH WAIT! matan's HD should accept some simulated keypress to activate the only other app except camera again: which is xchat13:49
DocScrutinizer05is there xdotool on N900?13:50
MaxdamantusI think I might know a way to do it.14:02
Maxdamantusfd="$(ls -lh /proc/"$pid"/fd/ | sed 's:^.* \([0-9]\+\) -> /dev/input/event3:\1:; t; d')"; [ "$fd" != "" ] && gdb --batch -p "$pid" -ex 'p (int)dup2((int)open("/dev/null", 0), '"$fd"')'14:05
Maxdamantuswhere $pid is the PID of Xorg14:05
* Maxdamantus tries something similar on his desktop.14:06
MaxdamantusYeah, that seems to work on my desktop. I imagine it should work in Maemo too.14:10
* Maxdamantus doesn't want to have to restart Xorg on his phone atm14:10
MaxdamantusActually, don't do that.14:11
Maxdamantussince it doesn't end up actually closing the fd, so it just wastes CPU constantly reading the EOF.14:12
MaxdamantusOkay, here's a better way:14:24
Maxdamantusfd="$(ls -lh /proc/"$pid"/fd/ | sed 's:^.* \([0-9]\+\) -> /dev/input/event3:\1:; t; d')"; [ "$fd" != "" ] && gdb --batch -p "$pid" -ex 'p (int *)malloc(8)' -ex 'p (int)pipe($1)' -ex 'p (int)dup2(*$1, '"$fd"')'14:24
MaxdamantusThat way it just replaces the fd with a pipe that will never have any data to read.14:25
MaxdamantusMeant to have an end anchor in that sed command, though shouldn't make a difference unless you have 30 input devices for some reason14:30
Maxdamantusfd="$(ls -lh /proc/"$pid"/fd/ | sed 's:^.* \([0-9]\+\) -> /dev/input/event3$:\1:; t; d')"; [ "$fd" != "" ] && gdb --batch -p "$pid" -ex 'p (int *)malloc(8)' -ex 'p (int)pipe($1)' -ex 'p (int)dup2(*$1, '"$fd"')'14:30
DocScrutinizer05some very usual maemo porn: https://termbin.com/jzva16:28
brolin_empeyDocScrutinizer05: Interesting.17:12
esaym153👍21:30
ontimejust 'echo 1 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts' to disable touch screen on N900 and 'echo 0' to enable21:52
ontimeit21:52
ontimeit's simple as that21:52
brolin_empeyUnless you use a 2.4 kernel. ;-)22:22
sixwheeledbeastI was thinking something similar22:25
MaxdamantusAh, was wondering if you could just do something like that through sysfs, though I only looked in the directory corresponding to the "event3" input device.22:29
MaxdamantusThe OS already seems to read/write to that sysfs node, so you'll probably want to `chmod -r` it.22:33
Maxdamantuser, `chmod -w`22:33
Maxdamantusrather, `chmod ugo-w`22:35
sixwheeledbeastdone similar with cam button, change the state and lock it by making the file 44423:21

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