Tuesday, 2020-10-13

T42stone %lastname% was added by: stone %lastname%02:05
PeperJohnnyhey guys, I want to build a kernel for the pinetab with the sfdk but if I try to build it, it says that I'm missing packages. I'm using the docker build engine, so I connected to it and installed the missing packages. Still it tells me that I'm missing them07:54
PeperJohnnyCan you maybe point me to some doc, I'm not finding anything07:54
PeperJohnnyor am too dumb to find :D07:55
PeperJohnnyhttps://sailfishos.org/wiki/Tutorial_-_Building_packages_manually this what I'm going along to build the packages07:56
PeperJohnnyHad luck so far with easier ones07:56
PeperJohnnyI found it myself thanks. "sfdk tools package-install SailfishOS-3.3.0.16-armv7hl packagename" is the way to go07:59
PeperJohnnyhmm cross-aarch64-binutils is missing from the repos. any idea where I can get it?08:24
PeperJohnnymissing in sfdk and on my xperia x as well08:24
PeperJohnnymal: any idea about the missing cross-aarch packages?09:14
maladaptation related packages are usualy built following the instruction in hadk pdf https://sailfishos.org/wiki/Hardware_Adaptation_Development_Kit09:21
PeperJohnnyI'll check it out thanks09:22
T42<edp_17> @elros34 : Hi, I just wanted to let you know that the right-click also works with the S-pen! I finally could get the Debian Sid installed on the device and I tested the S-pen in there. As the device detect how close the pen to the screen I don't even need to touch the screen with it. The cursor is there and when I press the button at t09:22
T42he side, it works as a right-click.09:22
malmaybe talk to piggz about building for pinetab09:22
T42<edp_17> So, thank you so much for your help with this!09:22
PeperJohnnyI'll do that09:23
T42<elros34> @edp_17 sounds nice10:29
T42<elros34> PeperJohnny: You probably can built it on your host system. Some instruction but I  am not sure whether it is up to date10:36
T42<elros34> https://github.com/sailfish-on-dontbeevil/droid-hal-kernel-pine10:37
PeperJohnnyI'll try it, thank you10:37
Mister_Magisterdo i need anything special to upgrade to 3.4?12:23
ThaodanI upgraded a community port before that flawless the release variant should be no different12:24
Mister_Magisteri don't understand what you just said but ok12:28
ThaodanYou do that quite often when I say something. The point is I updated the community port that I used before the official release of 3.4 with earlier releases of it and it went fine. So the release variant sould also be fine.12:30
Mister_Magisterokay12:31
PeperJohnny@elros34 the building went fine. Thank you very much12:34
PeperJohnnypiggz: I went and build the kernel from pine that has the driver for the pinetab, but still screen is not working. droid-hal-init crashes12:35
PeperJohnnyI have a uart cable and am connected over console12:35
piggzPeperJohnny: droid-hal-init should be masked as its not required on pine12:36
PeperJohnnythat is good to know12:38
PeperJohnnypiggz: anything in particular I should look at? journalctl -xe shows me a wall of text, I don't understand most of it12:40
PeperJohnnyhttps://gitlab.com/pine64-org/linux/-/tree/pine64-kernel-5.7.y-pinetabpanel I used this kernel12:40
piggzyou have the logs from uart?12:42
piggzjust paste the whole journal somewhere12:42
PeperJohnnyok12:42
PeperJohnnypiggz: https://pastebin.com/XVPnD2bX12:44
PeperJohnnyI installed connman-tools myself and edited /etc/shadow to get in the system. If something strikes in that way12:45
T42<elros34> @PeperJohnny for sure you should disabled droid-hal-init so: ln -s /dev/null /etc/systemd/system/droid-hal-init.service13:07
Thaodansystemctl mask13:08
PeperJohnnydid that13:08
PeperJohnnyI guess I can mask droid-late-start.service as well? crashed too13:16
Mister_Magisteraaaaand my phone stopped working13:23
T42peperjohnny %lastname% was added by: peperjohnny %lastname%13:23
Mister_Magisterohno wait it booted13:24
T42<edp_17> Hi all! Is there a way to listen to a input event and do something if an action happened? If so, could somebody give me an example please?13:46
Mister_Magistertho fingerprint stopped working. piggz you know anything about that?13:59
piggzMister_Magister: not without logs!14:00
Mister_Magisterwas just wondering if you experienced it14:00
mal@edp_17 which input event code are you thinking about?14:00
T42<edp_17> mal: I am not sure which one is the event code but when this "0x05/EV_SW - 0x013/SW_0013" gets a 0 or 1, I'd like to run a command.14:02
malwhen is that event sent?14:25
T42<edp_17> When the S-Pen is pulled out/put back in.14:31
malwhat would you like to do in that case?14:32
T42<edp_17> For now, I'd like to start a command. Later, who knows. 😁14:33
T42Sasank %lastname% was added by: Sasank %lastname%15:10
PeperJohnnyI did something very unholy but look at this beauty https://iznimbgux5rdbvcb.myfritz.net/s/So9biqCD54YysWj15:29
PeperJohnnyalso apart from working display, I have nothing else :D15:29
*** ahjolinna_ is now known as ahjolinna15:32
T42virginioscotti was added by: virginioscotti18:29
T42崔萱棉 %lastname% was added by: 崔萱棉 %lastname%19:32
T42thephotogenic_bug was added by: thephotogenic_bug20:44
T42<edp_17> mal: do you have idea how to capture that event and how to react on that?21:39
Mister_Magisterpiggz: false alarm seems to work fine now21:48
Mister_Magistermaybe first unlock was needed21:48
mal@edp_17 maybe somehow abusing hacking the gesture code in mce21:54
T42<edp_17> mal: That doesn't sound good. I thought there was a similar way like an udev rule or something.21:58
malnot sure if that can be done, I'm not that familiar what things udev can do22:00
T42<edp_17> Yeah, me neither. 😁 There should be something as the phone listens to that event as it displays that with evdev_trace.22:18
ThaodanThat works on specific action but not something like touchscreen event.22:20
ThaodanBut libinput has tools to trace those I think22:20
T42<elros34> it's quite easy write app with qsocketnotifier and read() to listen to those events but I hardly can see any use case for that. What you want to achieve (mysterious script)?22:21
T42<edp_17> Nope, nothing mystery in here. I just wanted to start with something easy. I explain.22:24
T42<edp_17> On these devices (Galaxy Note family) there is a function collection for the S-Pen.22:24
T42<edp_17> So, on Android (original Samsung one) if I pull out the pen, a little menu appears where I can select different apps.22:25
T42<edp_17> Not all of those apps are available without the pen.22:25
ThaodanIf you want to have a list of udev action open man 8 udevadm and search for --action=22:25
T42<edp_17> In that menu then I can create a screen shot, write a note to the screen, create a note with hand writing, ...etc...22:26
T42<edp_17> And I thought to create something similar. For start, display an overlay with two options: screenshot and notes (handwriting)22:27
ThaodanBut what you want is to wait for a touchscreen event (libinput) and then add a layer on top of the compositor22:27
ThaodanOr hack it into lipstick22:28
T42<edp_17> For the overlay, I could use coderus' screentapshot (this also could be used for creating the screen shot)22:28
T42<edp_17> For the handwriting note I could utilise a modified papocchio by Andrea Scarpino - ilpianista.22:28
T42<edp_17> This was my idea.22:29
T42<edp_17> Thaodan: At that point when I pull out the pen, there is no touchscreen event.22:29
T42<edp_17> There is only an event: "/dev/input/event3: 148.185 - 0x05/EV_SW - 0x013/SW_0013 - 1"22:30
T42<edp_17> whatever it means. :)22:30
T42<elros34> screentapshot and all overlay apps doesn't work anymore on 3.4.0.x, not sure whether coderus figure out how to fix22:30
T42<edp_17> I am still on 3.3.0.16. :)22:30
T42<edp_17> Understand that I need to upgrade to 3.4 at some point but if this proof of concept works ... :)22:31
T42<edp_17> The reason I don't want to write a program that listens to the event when I pull out the pen is, without an app there is no battery consumption. As I need to start an app (the menu overlay) only when that even happens, it doesn't use any resources (memory, battery, whatever).22:34
T42<edp_17> So, if I can run a command when that event happens, I could start a program too. :)22:35
T42<elros34> but something most listen for that event and starting application would take too long time in my opinion22:37
T42<elros34> something about 1s delay between event and overlay22:39
T42<edp_17> True.22:39
T42<edp_17> In that case the app should be loaded and waiting in the memory to be able to instantly appear.22:39
T42<edp_17> But with this I'll lose the benefits I listed.22:39
T42<edp_17> However, the it depends on the delay. If that is not big, I don't mind.22:40
T42<edp_17> Okay, I wrote a script that listens and logs the event when the pen is out or back in. 😁 The first step is done, although this is not battery friendly.23:19
*** Oksana_ is now known as Oksana23:23

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