libera/#maemo-leste/ Tuesday, 2021-12-07

calebtheythem[m]ajr: and UART diagram- https://wiki.postmarketos.org/wiki/Serial_debugging:Cable_schematics#Motorola_Photon_Q_.28asanti_.2F_xt897.2902:58
dsc_would be nice of maemo by default would pick qt5 as the installation of choice, i.e this does not work:08:54
dsc_s/of/if/08:54
dsc_# qmake08:55
dsc_qmake: could not find a Qt installation of ''08:55
dsc_while this works:08:55
dsc_# QT_SELECT=5 qmake -v08:55
dsc_QMake version 3.108:55
dsc_without env. variable, it will check these locations for a config file: $USER/.config/qtchooser/, /etc/xdg/qtchooser/, /usr/share/qtchooser/, /usr/lib/x86_64-linux-gnu/qtchooser/, /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/08:56
dsc_none of these places exist08:56
dsc_perhaps the package `qtchooser` should be responsible for providing that config file so that you can use `qmake` (and friends) without manually specifying the presence of a Qt installation09:00
dsc_during compilation I want to use the binary `qmlcachegen` (via CMake's `qtquick_compiler_add_resources()`) and that binary like `qmake` also relies on either the env. variable being present or the config file to point to a Qt installation (CMake is appearantly not smart enough to call this process with the required Qt5 installation that was discovered from an earlier `find_package(Qt5 ...)`)09:08
* dsc_ cries in CMake09:09
dsc_ehhh.. /usr/lib/x86_64-linux-gnu/qt5/qt.conf does exist09:19
dsc_and /usr/share/qtchooser/qt5-x86_64-linux-gnu.conf also exists09:21
dsc_but yeah would be nice of `qmake` and `qmlcachegen` would work without manually having to specify the Qt version to use09:23
Wizzuphmm09:57
Wizzupdsc_: didn't even realise it still supported qt4 btw10:06
dsc_Wizzup: Yeah I noticed that hehe10:06
lelsanderfoobar opened a pull request: https://github.com/maemo-leste/conversations/pull/6 (precompile QML)10:22
Wizzupdsc_: btw i think you can depend on a package that makes qt5 the default12:16
Wizzupdsc_: qt5-default12:27
Wizzupdsc_: maybe just add that to build-depends12:27
dsc_Wizzup: ahhh12:41
dsc_there we go12:41
lelsanderfoobar synchronize a pull request: https://github.com/maemo-leste/conversations/pull/6 (precompile QML)12:46
lelsanderfoobar synchronize a pull request: https://github.com/maemo-leste/conversations/pull/6 (precompile QML)12:47
lelsanderfoobar closed a pull request: https://github.com/maemo-leste/conversations/pull/6 (precompile QML)12:48
lelsanderfoobar closed an issue: https://github.com/maemo-leste/conversations/issues/5 (Precompile QML)12:48
uvosdsc_: neat, how mutch dose that help startup times?13:11
uvosmaybe dont pr on packages you own yourself and use branches instead gets pretty spammy otherwise.13:11
uvosor maybe parazyd can add a exception to lel13:11
WizzupI don't think it's super spammy atm13:12
Wizzupcalebtheythem[m]: btw I might have missed something but I didn't see any 'ajr'13:13
dsc_uvos: not sure tbh but it skips runtime QML compilation, surely it will help a bit13:17
dsc_ill just push to master </yolo>13:22
WizzupI think the PRs are nice, also for the news posts13:22
uvosIm fine with it, if Wizzup wants them. but please, not too manny.13:23
dsc_would be nice if lel used NOTICE instead of PRIVMSG13:23
WizzupI probably spam 50x more every day than the PRs ;P13:23
bencohyeah, /notice would be better13:35
bencoh(although I know some (misconfigured?) clients show notices as highlights, which is worse for their users)13:35
lelDastan-glitch opened a pull request: https://github.com/maemo-leste/liblocation/pull/1 (More readable code + factors)14:23
mighty17[m]<mighty17[m]> "Is the twl6030/6032 gpadc..." <- bump anyone knows?17:23
uvosmighty17[m]: did you grep in kernel for a user?17:28
mighty17[m]uvos: for a user?17:29
uvosa user of the dts bindings17:29
mighty17[m]https://github.com/torvalds/linux/blob/master/drivers/iio/adc/twl6030-gpadc.c#L85217:29
uvosright and greping for the compatibile dosent get you some other board that uses this pmic feature to use as an example?17:30
uvosor am i missunderstanding what you need17:31
mighty17[m]uvos: nope17:32
uvoshmm17:32
mighty17[m]only twl6030.dtsi (which ofc has it)17:32
uvosi dont understand what the problem is then17:33
uvoswhats wrong with the node in twl603017:33
mighty17[m]https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/ste-ux500-samsung-janice.dts#L292-L298 i need to so smth like here17:35
uvosmighty17[m]: the mainline driver dosent support conversion of some adc channel to a current via giveing it a shunt value17:38
uvosto my knowlage this kind of calculation is frowned upon in upstream iio drivers17:39
uvos(but this "rule" is often violated)17:39
mighty17[m]but well i do need to get my light+proximity sensor working :(17:39
uvosyou need to add this feature to the driver (looks very easy at glance)17:39
uvosor do the conversion in userspace17:39
mighty17[m]https://github.com/torvalds/linux/commit/754718a5b43c851546c3bb70e8d41bf81cb42b30 like here?17:40
uvosmighty17[m]: so wait17:40
uvosyou have a light sensor17:40
uvosthats just a photodiode?17:40
uvosand the adc reads it?17:40
uvosin this case17:40
uvosyou need to write a new iio driver17:40
uvosthat uses the adc in kernel17:40
uvosto provide the lux value17:41
mighty17[m]i have https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/iio/light/sharp,gp2ap002.yaml#L2017:41
MartijnBraam[m]can maemo leste run on armel?17:41
mighty17[m]uvos: so i need to make a new driver for the gpadc, why for the iio?17:42
MartijnBraam[m]specifically ARMv6 softfloat17:42
uvosMartijnBraam[m]: no17:42
uvosMartijnBraam[m]: you could build it yourself ofc17:42
MartijnBraam[m]rip17:42
MartijnBraam[m]well ofcourse, no softfloat device has maemo support so would require some porting17:42
uvoswe only build amd64, arm64 and armhf17:43
* MartijnBraam[m] uploaded an image: (1076KiB) < https://libera.ems.host/_matrix/media/r0/download/brixit.nl/oOxbsuxLatJcfiiDcgDojRFF/PXL_20211207_162735988%20(1).jpg >17:43
uvost-mobile g117:43
uvosuff :P17:43
uvos192mb ram no?17:43
MartijnBraam[m]something like that yes17:45
MartijnBraam[m]pretty nice keyboard17:45
uvosuh17:45
uvosi hated it17:45
uvosbut ok17:45
uvosmighty17[m]: you dont have to write a new driver17:45
uvosim still not sure what the problem is17:45
MartijnBraam[m]I've used way worse keyboards, it's not as good as the n900 one17:45
uvoslooks like gp2ap002a00f outputs a voltage17:45
mighty17[m]uvos: even i dont know, the driver outputs nothing, but hwtest says its broken17:46
uvosand you sould be able to specify the adc channel no problem17:46
uvosim not sure why they want to mesure the current of some shunt in the linked dts17:46
uvosbut then again idk how your hw works17:46
uvosbut this seams wrong17:46
mighty17[m]uvos: well only 2 devices use that gp2ap002a00f and both do it like that17:47
mighty17[m]https://github.com/torvalds/linux/commit/7c558af511d01ef0ab0fe1692517f80d27e17cc317:47
uvosah ok dts is wrong and that  sensor outputs a current17:47
uvos*dts documentation17:48
mighty17[m]ow :o17:49
uvosmighty17[m]: but then you just need https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/iio/afe/current-sense-shunt.yaml17:50
uvosno?17:50
uvosits a driver that takes a iio voltage adc channel17:50
uvosand converts it to current17:50
uvosand you get a current adc channel17:50
uvosthat you can give the driver17:51
mighty17[m]thats what i did17:51
mighty17[m]but it doesnt want to work17:51
uvosright ok17:52
uvosim up to speed then :P17:52
mighty17[m]https://paste.debian.net/1222454/17:52
mighty17[m]:D17:52
uvosso what dosent work exactly17:54
uvosdose just haveing the current-sense-shunt wihtout the als chip17:54
uvosgive you an iio device?17:54
uvosalso do you get the adc channel that you expect17:56
uvosas an iio device17:56
mighty17[m]wait wait wait17:57
mighty17[m]uvos: that should be in /dev/iio?17:57
uvosmighty17[m]: yeah sure the adc device shoule be created at /sys/bus/iio/devices17:59
uvosyou should have at least in_voltage*_raw for eatch channel18:00
mighty17[m]`in_current0_raw    in_current0_scale  name               of_node            power              subsystem          uevent`18:00
mighty17[m]it is in `/sys/devices/platform/current-sense-shunt/iio:device3`18:00
uvosmighty17[m]: so the current shut works fine18:00
uvosso everything up to this point is fine18:00
uvosi suspect18:00
uvos(check if the number change when you change the light)18:00
uvos(dont forget the enable pin of the als if any)18:01
mighty17[m]i dunno what app to use18:01
uvoscat18:01
uvosyou can just cat in_current0_raw18:01
mighty17[m]uvos: done, the int pin18:01
uvosso with the enable pin pulled high/low (whatever is active) dose cat in_current0_raw work fine?18:02
uvosand reflect the light?18:02
mighty17[m]uvos: i get no output with `cat in_current0_raw`18:02
mighty17[m]`cat: read error: Operation timed out`18:03
uvosok so move up a device18:03
uvosdose the same error occure if you read in_voltage14_raw on the adc?18:03
mighty17[m]uvos: yes18:05
uvosonly for this channel?18:05
uvosor all channels?18:05
mighty17[m]uvos: `in_temp1_raw        in_voltage10_input  in_voltage2_input   in_voltage6_input   in_voltage9_input   power18:06
mighty17[m]in_temp4_raw        in_voltage11_raw    in_voltage3_input   in_voltage7_input   name                subsystem18:06
mighty17[m]in_voltage0_input   in_voltage14_input  in_voltage5_input   in_voltage8_input   of_node             uevent`18:06
mighty17[m]14_raw doesnt exist?18:06
mighty17[m]uvos: and yes `in_temp1_raw` also times out18:07
uvosok so your adc dosent work at all18:08
uvosmaybe the conversion intterupt line is wrong18:08
uvosconversion finished that is18:08
uvosalso you have a slightly different pmic no?18:08
uvosmaybe some registers are different18:08
uvoscheck differences in datasheet if you have it18:09
mighty17[m]uvos: twl6030-gpadc driver doesnt complain in dmesg tho :(18:10
uvosit would not if the intterupt is wrong18:10
mighty17[m]uvos: yeah but it is supported by twl6030-gpadc https://github.com/torvalds/linux/blob/master/drivers/iio/adc/twl6030-gpadc.c#L85818:10
mighty17[m]:o but interrupt is correct afaik18:11
mighty17[m]wait u mean the gpadc also needs an interrupt? i only have the ALS_INT18:11
uvosmighty17[m]: sure https://github.com/torvalds/linux/blob/cd8c917a56f20f48748dd43d9ae3caff51d5b987/drivers/iio/adc/twl6030-gpadc.c#L91118:13
uvosit has a conversion finished irq18:13
uvosclearly its not fireing18:13
uvosso you have to figure out why18:13
mighty17[m]<mighty17[m]> "https://paste.debian.net/1222454..." <- this is correct right?18:15
mighty17[m]does no device use twl6030 gpadc? damn18:31
mighty17[m]ok definitely something wrong in enabling twl6032-gpadc, how do i debug it? am i missing some reg for it?18:59
devrtz[m]Hey there, just wanted to let you know that there is now a CfP for the FOSS on mobile devroom @FOSDEM: https://fosdem.org/2022/schedule/track/foss_on_mobile_devices/19:02
uvosgreat20:20
WizzupMartijnBraam[m]: we had armel builds before20:35
WizzupMartijnBraam[m]: it wouldn't be too hard to add again I suppose20:35
WizzupI mean, it would be quite some work, but not hard work20:36
Wizzupthe photon q slides differently than the d420:47
Wizzupit feels more like the n90020:47
uvosyeah20:48
uvosalso the display is miles better20:48
uvos(when it dosent break that is)20:48
MartijnBraam[m]the photon q looks so nice, so unavailable though20:49
Wizzupalso 20 xt610 arrived20:51
* Wizzup puts them away for later20:51
Wizzup... in like a year20:51
MartijnBraam[m]droid pro20:51
MartijnBraam[m]what's that20:51
MartijnBraam[m]oh with the blackberry style keyboard20:51
MartijnBraam[m]POWERVR20:51
uvosdroid 1 in a blackbarry formfactor20:51
Wizzupyeah20:52
uvosdroid 1 is like n900 essantaly a omap3 referance implementation20:52
uvosso they are are exteamly samey20:52
Wizzupmhm21:09
Wizzupthey're light21:09
Wizzup(without battery)21:09
calebtheythem[m]all this photon Q talk oo22:10
bencohphoton q features a snapdragon though ...23:26
Wizzupyeah23:26
bencohwith a modem-in-soc design, iirc23:27
Wizzupmhm23:47
Wizzupbut it slides nice :)23:47

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