Wednesday, 2024-06-12

*** phlixi is now known as Guest930001:41
*** phlixi_ is now known as phlixi01:41
T42_<edp_17> Hi all. How can I read light sensor value on XA2?12:21
malfor what use?12:21
T42_<edp_17> mal: experiment. :)12:46
T42_<edp_17> mal: I'd like to trigger an event (execute a script) at certain levels (below or above).12:48
malqt is easiest, dbus of course if also possible12:56
mal*is also possible12:56
T42_<Lukapanio> Hi mal, agin my vk ot. I got vk to somewhat wotk, but VK_KHR_surface seems to be a big issue for linux apps13:03
T42_<Lukapanio> is there any wrapper to use VK_KHR_android_surface?13:04
malhow did you get it working?13:06
mal@Lukapanio libhybris wraps those surfaces so to outside is looks like it uses wayland surface but it's really using that android surface within libhybris13:08
T42_<Lukapanio> just did clean setup without mesa junk (re @SailfishFreenodeIRCBridgeBot: <mal>how did you get...)13:09
T42_<Lukapanio> well vkcube dont agree with that (re @SailfishFreenodeIRCBridgeBot: <mal>@Lukapanio libh...)13:09
T42_<Lukapanio> vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_xcb_surface extension.13:10
T42_<Lukapanio> 13:10
T42_<Lukapanio> Do you have a compatible Vulkan installable client driver (ICD) installed?13:10
T42_<Lukapanio> Please look at the Getting Started guide for additional information.13:10
T42_<Lukapanio> vulkaninfo is fine tho13:10
T42_<Lukapanio> ahh ok vkube wayland is better13:13
T42_<Lukapanio> vkcube-wayland13:13
T42_<Lukapanio> library "libadreno_app_profiles.so" not found13:13
T42_<Lukapanio> Selected GPU 0: Adreno (TM) 650, type: IntegratedGpu13:13
T42_<Lukapanio> vkcube-wayland: ./cube/cube.c:1369: demo_prepare_buffers: Assertion `!err' failed.13:13
T42_<Lukapanio> Aborted13:13
malare you using wayland or xcb, libhybris only supports waylan13:15
T42_<Lukapanio> yes sorry used wrong vkcbe initially (re @SailfishFreenodeIRCBridgeBot: <mal>are you using w...)13:15
T42_<Lukapanio> as you can see already tried wayland one13:15
malyeah13:16
malbut is wayland the default on your platform13:16
T42_<Lukapanio> yes i am running wayland kde13:16
malhow does it fail now? any more information than that error13:18
T42_<Lukapanio> seems like eperm on some ioctl13:21
T42_<Lukapanio> 06-12 02:20:29.917 24376  6600 W Adreno-GSL: <gsl_ldd_control:553>: ioctl fd 6 code 0xc0200948 (IOCTL_KGSL_GPUOBJ_IMPORT) failed: errno 1 Operation not permitted13:21
T42_<Lukapanio> 06-12 02:20:29.917 24376  6600 I AdrenoVK-0: MapGrallocBuffer: Map memory failed!13:21
T42_<Lukapanio> witch is odd considering that i did run vkcube as root (re @SailfishFreenodeIRCBridgeBot: <mal>how does it fai...)13:21
T42_<Walid> @edp_17 sorry for ping, dose audio call work in hammaerhead (nexus 5), bullhead still blocked, audio work when change rington, but no audio in call, also camera can't understand how start fix it14:38
T42_<elros34> have you tried debug anything about it? You can see edp changes in his repo https://github.com/edp17/droid-config-hammerhead14:45
T42_<Walid> is pulseaudio-modules-droid-hidl requied only for newer device ? its included in pattern inc file14:47
T42_<Walid> Requires: pulseaudio-modules-droid-hidl14:47
T42_<elros34> this might give some idea based on your android version https://github.com/droidian/audiosystem-passthrough15:54
T42_<edp_17> Walid : Hi, yes, audio call works in Hammerhead (Nexus 5). What android base are you using?16:01
T42_<Walid> android 9.0 pie (re @edp_17: Walid : Hi, yes, aud...)16:09
T42_<elros34> so according to linked github you need pulseaudio-modules-droid-hidl and audiosystem-passthrough (maybe -dummy-af too I am not sure)16:28
T42_<elros34> obviously use mer-hybris one, I copied wrong url by accident16:35
T42_<edp_17> mal: can you give me exaple for reading the light sensor value with qt and/or dbus? (I'd like to use it in command line.)17:50
mal@edp_17 qml or c++?18:20
T42_<edp_17> mal: I guess the c++ can be used better in command line than qml.18:34
T42_<edp_17> mal: can you please give me both? :)18:34
malhttps://github.com/Bytewerk/Messwerk/blob/master/src/light.cpp18:46
malqml is probably trivial using qt documentation18:46
T42_<edp_17> mal: Thanks. Isn't that possible with a shell script?19:23
malwell the dbus interface is quite annoying to use19:37
TofeI'm currently looking at hammerhead and sensorfw using iioadapter for ALS, and I think there's something incorrect or missing in the way the device is detected19:45
Tofebasically for hammerhead we have this attibutes: https://paste.tofe.me/p/65c854.txt but sensorfw will look for "illuminance.*raw$", and there's no such thing. However, there is an "intensity.*raw$", so I wonder if updating the driver is needed19:47
TofeI mean, update sensorfw's driver. But maybe the issue is in the kernel's driver, though I'm doubtful19:48
Tofeok, after reading some documentation in the kernel, it looks like I mixed things up. intensity isn't in lux, contrary to illuminance. So it cannot be taken as-is by sensorfw, or the output will be incorrect.20:02
malsensorfw iio support is a bit work in progress, I have some pathces for it but not related to that specific issue20:02
malTofe: what does sensorfw print?20:05
Tofemal: not much, but I didn't activate debug output; one moment, let me see how to do that20:08
mal@adampigg how does als look in pinephone does it have the raw one?20:09
T42_<adampigg> mal: you have one!20:10
maltoo lazy to boot it :)20:11
malit's in another room20:11
T42_<adampigg> its booted, what am i looking for?20:12
Tofeon hammerhead I did "udevadm info --attribute-walk /sys/bus/i2c/drivers/tsl2772/2-0039/iio:device0" to get my output20:13
Tofeof course the driver and iio device will vary slightly20:13
Tofehere's a debug output for sensorfw on hammerhead: https://paste.tofe.me/p/NgJGFx.log (with following .conf: https://paste.tofe.me/p/8q2mA2.ini )20:15
Tofe^ I didn't read it yet, discovering now20:16
T42_<adampigg> [defaultuser@PinePhone ~]$ cat /sys/bus/iio/devices/iio:device1/20:16
T42_<adampigg> dev                                        in_illuminance_scale                       in_proximity_raw                           power/20:16
T42_<adampigg> events/                                    in_illuminance_scale_available             in_proximity_scale                         subsystem/20:16
T42_<adampigg> in_illuminance_integration_time            in_proximity_integration_time              in_proximity_scale_available               uevent20:16
T42_<adampigg> in_illuminance_integration_time_available  in_proximity_integration_time_available    name                                       waiting_for_supplier20:16
T42_<adampigg> in_illuminance_raw                         in_proximity_nearlevel                     of_node/20:16
T42_<adampigg> yes, has _raw20:16
Tofeyup20:18
TofeI guess the kernel driver tls2772 is a bit incomplete, and doesn't provide it.20:19
Tofebut still, in sensorfw the line https://github.com/sailfishos/sensorfw/blob/master/adaptors/iioadaptor/iioadaptor.cpp#L223 puts "ok2" to true a bit too soon, as we don't know yet if we'll find a raw channel20:23
malI wonder about this in that debug output  "alsadaptor" bool SysfsAdaptor::addPath(const QString&, int) "/sys/bus/i2c/drivers/tsl2772/2-0039/iio:device0/in_intensity0_raw"20:24
Tofeah, this looks like a previous path I put in my config file, but I removed it before restarting sensorfw, so I don't know why it still appears20:24
Tofelet me double check20:25
Tofeok, my bad, I messed up my logs: https://paste.tofe.me/p/tgy7BY.log20:30
Tofebut wait, it's still there ? wtf20:32
Tofeooh it created a user config ".config/Unknown\ Organization/sensorfwd.conf"...20:38
Tofeok, this is the clean one: https://paste.tofe.me/p/ziOgfm.log20:39
malis that mainline kernel? or something else?20:40
Tofemal it's a near mainlline, picked up from postmarketos: github.com/msm8974-mainline/linux.git branch=qcom-msm8974-6.9.y20:42
malTofe: how does that illuminance input value change?20:47
Tofeit's the last read value, varies typically from 0 to 15 or so20:48
Tofetherefore I think have the _raw value is probably a trivial patch20:49
Tofehaving*20:49
Tofebut I'll have some sleep, and continue this tomorrow20:50
T42_<edp_17> Tofe: What exactly are you working on the hammerhead?21:34

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