libera/#maemo-leste/ Thursday, 2024-01-18

diejuseHello everyone00:58
* gnarface waves01:00
Wizzuphi01:04
Wizzupdiejuse: welcome back01:05
diejusethanks Wizzup01:06
diejuseI have something new in mind01:06
Wizzupdiejuse: what is that?01:56
diejuseI emulated Maemo on Android with the chroot technique for rooted Android smartphones. Now I want to try to emulate Maemo with the proot technique for non-rooted smartphones.02:14
diejuseI think it's a good idea to make Maemo more popular since most people don't root their smartphones. Thus it would be installable on any Android smartphone so that people can try it on their phone.02:16
WizzupI think your guide was also for beowulf, so some people might struggle with the new version02:27
Wizzupmaybe we can make it a bit easier too02:27
diejuseI recently updated my github and reduced the steps to make the installation a little faster.02:29
diejuseRegarding proot. I have successfully tried emulating Maemo on my unrootable Blackberry Key1.02:30
diejuseIt has also worked on another smartphone that I have with the Android 7 version. But however, on more modern smartphones it gives me problems and I need your help.02:31
Wizzupah, great to know @ updated github02:35
WizzupWhat kind of problems? (I might go to sleep soon though)02:35
diejuseMy problem is with /etc/init.d/dbus start. On my phones with Android 7 there is no problem. But in the most modern ones I get the error "[: lt: unexpected operator" so it does not create the /run/dbus/system_bus_socket.02:37
diejuse(Yes, I have to go to sleep soon too.)02:39
Wizzupseems the shell being used it not compatible02:44
Wizzupthe script uses /bin/sh, maybe it is not compatible with the android sh02:44
diejuseI thought so, and changed it to /bin/bash but it didn't fix the problem. I don't understand why it works on older Android phones and not more modern ones. Could it be because of the kernel?02:47
Wizzupnot likely, maybe check if /bin/bash is actually bash02:48
diejuseBut I do exactly the same thing on all the smartphones I have but it only fails on those with a more modern version of Android. Mmm02:55
Wizzupmaybe check what version /bin/sh is02:55
Wizzuplike /bin/sh --version02:56
diejuseIn both cases it says "GNU Bash, version 5.0.3(1)-release (aarch64-unknown-linux-gnu).03:03
diejuseSearching on pages like this https://forum.proxmox.com/threads/pve7to8-broken-kernel.130989/ about the error "[: lt: unexpected operator" they talk about it being solved by reinstalling another kernel.03:05
diejuseWith the command "uname -a" on my old smartphone I get "Linux localhost 3.18.31-perf-g625ad6d" and on the modern one "Linux localhost 5.15.137-BKLYN-Kalama-Gki-Kernel-1.0.5"03:13
Wizzupdiejuse: I don't know if it matters, but what about /usr/bin/[ --version10:44
Wizzupuvos: looks like charge mode works on mz61710:48
uvos__Wizzup: more like discharge mode given that it only takes 500ma max there11:31
Wizzuplol11:33
Wizzupuvos__: should still be enough since with screen off it doesn't use more than 100mA or so11:34
Wizzup(because it doesn't idle yet)11:34
Wizzupbut yeah can't we change the input current limit in dts?11:35
uvos__isent safe to do because youll crash devices that cant supply11:35
Wizzupok11:35
uvos__charging 14Ah battery at 400mA11:35
uvos__weee11:35
Wizzupwell it just needs enough to boot to leste proper11:36
Wizzupbtw, I also booted my xt912 to leste now (for the first time) and I indeed also see the screen issue that you are seeing11:36
Wizzupand now I need to go to the store to get more sd cards :)11:36
uvos__not achiveing hsync  yeah11:37
Wizzupright11:38
uvos__one could try diffing the omap-dss regs to see what to change there11:39
Wizzupsame tool as for droid 3?11:39
uvos__probubly some timeing is configured slightly differently somehow11:39
uvos__no this is omap reg11:40
uvos__so you need rwram for android11:40
uvos__the other tool is for reading cpcap regs via the stock kernels custom interface11:40
tmlindfyi, you can set the charge limit with something like echo 900000 > /sys/class/power_supply/usb/input_current_limit for 900mA11:41
uvos__yeah we do that11:41
tmlindwon't work with all chargers as the detection is missing11:41
tmlindok11:41
uvos__not early in boot however11:41
freemangordontmlind: in that regard - what is the proper way to implement cpcap-extcon?11:42
freemangordonbecause we need that for charger detection11:43
Wizzupuvos__: I can try to get the now on leste and android, iirc I will need the reg addrs?11:44
uvos__the now on leste?11:44
Wizzupthem11:45
Wizzupthe regs11:45
Wizzupassuming you wanted to diff them11:45
Wizzupor do you just need them on android?11:45
uvos__the reg addresses you will find in the omap datasheet ofc11:45
tmlindfreemangordon: not sure if a separate driver is needed or if the iio driver can also implement that11:45
uvos__i would just diff the whole dss region and try to understand the differences11:46
uvos__tmlind: any better ideas about this problem?11:46
freemangordontmlind: hmm11:47
freemangordonis it ok to have one driver multiple subsystems?11:47
Wizzupuvos__: quick check, it looks like leste-config-razr doesn't depend on leste-config-mapphone which seems wrong, or rather mapphone doesn't depend on leste-config-razr, shall I fix that?11:47
uvos__i have seen several drivers do this11:47
Wizzupalso do we want to split razr into razr-xt910 and razr-xt91211:47
freemangordonuvos__: ok11:48
uvos__not sure if reccomende behavor tho11:48
uvos__Wizzup: yes, spi modem11:48
uvos__but maybe have xt91x.dtsi11:48
WizzupI will fix up the meta in a bit then11:48
WizzupI mean just leste pkg wise11:48
uvos__oh11:48
uvos__no11:48
uvos__they can share with bionic even i think11:48
uvos__same with atrix211:48
Wizzupdoesn't this config what gets written to boot.cfg and thus the dtb that is being loaded11:49
Wizzupor am I wrong and boot.cfg never gets touched11:49
* Wizzup checks11:49
uvos__we have a special package for that11:49
uvos__this one needs all variants11:49
Wizzupit looks like boot.cfg isn't written, that's fine then11:50
uvos__it is11:50
uvos__we have a pacakge for that11:50
Wizzupmaemo-kernel-config ?11:50
tmlindfreemangordon: git grep extcon drivers/iio does not show such things, maybe you can implement an drivers/extcon driver that just uses the iio calls as the voltages etc should be already available via iio11:50
uvos__Wizzup: not sure what its called11:50
uvos__but i remember makeing it with parazyd11:50
WizzupI made maemo-kernel-config for n900 postinst mostly11:50
Wizzupdpkg -S doesn't claim that anyone owns boot.cfg11:51
uvos__no no theres a kexecboot config package11:51
uvos__i sware it owns the boot.cfg11:51
Wizzupthis is new to me11:51
uvos__or should anyhow11:51
Wizzupdroid4-kexecboot-config - boot.cfg file for Motorola Droid4 kexecboot11:51
uvos__we did this to add charge mode11:51
freemangordontmlind: back then I extended phy-cpcap-usb11:51
Wizzupuvos__: yes, looks like it11:51
tmlindfreemangordon: ok makes sense if no other use for it11:51
Wizzupuvos__: well then we still need separate meta's for the devices anyway11:51
uvos__ok11:52
freemangordontmlind: 'it'?11:52
tmlindfreemangordon: no other use for the extcon driver beyond the charger detection11:52
Wizzupuvos__: https://github.com/maemo-leste/mapphone-kexecboot-config11:52
uvos__looks like i even allready added support for xt91x11:53
Wizzupthere is no pkg for it on my system11:53
Wizzupuvos__: I don't see it btw, just bionic/droid3/droid411:53
Wizzupin any case this is trivial I will look at it11:53
freemangordonhmm, ok, I will try to dig what I have done back then and maybe resume the work11:54
Wizzupregarding the regs, uhh :)11:54
Wizzupuvos__: oh maemo/chimaera is not in sync with master it looks like11:56
tmlindfreemangordon: sounds good to me :) especially the tablets need to max out the cpcap charger until we have the cpcap-gpio operated charger implemented..11:56
freemangordontmlind: oh, no, I wrote extcon-cpcap driver, and  just fixed a bug in phy driver :)11:57
freemangordonmaybe I will send RFC patch11:57
freemangordonunless someone wants to take over11:58
freemangordontmlind: ^^^11:58
Wizzupuvos__: apart from finding the regs, I guess I need to run this with the screen on11:58
Wizzupdoes the brightness matter11:58
freemangordonit is just that I won;t have time to work on that soon11:58
uvos__Wizzup: brightness is in no way related to dss so no11:58
uvos__yes dss needs to be active11:59
uvos__else nonsene11:59
uvos__*nonsense11:59
Wizzupok, well I can try to do this but you'll have to feed me the locations/addrs12:00
uvos__pretty busy rn, maybe later12:00
Wizzupok12:00
uvos__maybe look at d3 cpcap first should not need me for that12:01
Wizzupmhm12:01
tmlindfreemangordon: i'm pretty limited on time for the infinite future..12:04
tmlindcan't commit to anything right now beyond trying to get the mz617 patches upstream and the usb oops fixed12:05
diejuseWizzup /usr/bin/[ --version  the same output inside proot, both on the old and new smartphone12:08
freemangordontmlind: ok12:09
Wizzupdiejuse: ok, not sure then12:11
Wizzupbrb12:11
diejuseOn my modern smartphone Maemo does work with chroot but not with proot. By doing "echo $SHELL" , inside chroot it gives an output of "/system/bin/sh" while inside proot it gives an output of "/bin/bash". I think this is a good clue.12:25
Wizzupdiejuse: yes12:31
humanbetaIs there any hints how get Pinephone get connected to TV...Docking Bar has HDMI-out put is that usb-c port actually USB2.0+displayport combination? So can it work cheap usb–c to displayport adapter?12:58
humanbetaHas anybody ever connected Pinephone with Maemo to external display?13:05
humanbetahardware itself should support up to 4K resolution.13:08
Wizzuphumanbeta: I haven't done that yet13:15
WizzupI do have some usb hub that I got with it that has a hdmi port13:15
humanbetaIs yours USB-C Docking Bar that come with every new Pinephone these days (Beta Edition with Convergence Package)?13:21
xmnI've use the PP with external monitors extensively, but this was not use Leste. In the past some folks had challenges with the docks. But it could be the cable, if the monitor need too much power or if its a dock that didn't come with the PP then it could be that dock may not work with it for some reason.13:23
xmnI have 2 dock and both worked with the PP hardware.13:24
Wizzuphumanbeta: I don't know, I got it with the pre braveheart13:26
humanbetaxmn: what OS support it?13:35
xmnI can only say the ones I used or tested, which is not extensive :). I tried mobian, manjaro phosh & plasma. I never thought to plug it in when trying maemo, but have used an ext monitor with my n900 before (which was only mirrored.13:37
Wizzupuvos__: working on the d3 but it takes a bit since I have to root the device again, and I did it using sigmakey last time13:40
humanbetaxmn: so if it working with mobian, then it should not be too hard to get work with Maemo...what have to do with mobian to setup hdmi on?13:42
Wizzuppretty sure you can just turn it on with xrandr13:43
Wizzupbut maemo's hildon-desktop doesn't really support multi monitor13:43
Wizzupthe real question is, what do you want to do with the external monitor13:43
humanbetajust mirroring to big screen..more easy to show more than one people.13:45
Wizzupthis should work ok with xrandr13:45
xmnNot sure how it is in Leste, and I haven't used xrandr before ... but hildon on n900 mirror at a low resolution. Basically it was like a giant phone screen ... lol. It does give more room or change aspect ratio. The smart guys in the Leste project may have changed that, but I haven't tested that. But would be curious to know.13:52
xmnFor me mirror is not so useful. I think I used it only a few time with n900 over 10 + years of daily driving it. But maybe it could be for you.13:53
xmnWizzup xrandr seems like a cool little solution. Thanks for sharing that.13:54
humanbetaWizzup: Pinephone detected TV!, chatting now at 1920x180 with Pinephone!13:59
humanbeta*1920x10814:00
humanbeta*1920x108014:00
xmnnice14:00
humanbetaand display of Pinephone shows upper part of that resolution14:01
humanbetasame time14:01
humanbetatouch act  strange14:03
humanbetait seems that it try to be scale some how14:05
Wizzupyou can scale with xrandr14:05
xmnbut are you doing this in maemo?14:05
Wizzupor just change the resolution of the tv/hdmi with xrandr14:05
humanbetayes I do this with Maemo14:06
xmnnice14:09
humanbetaPinephone touch screen works if I choose 1280x720 to HDMI, but If I choose 1920x1080 it scale touch and show upper part of screen on Pinephone, but looks good on TV.14:12
Wizzupif you want to mirro the screen you must have the hdmi as the same res as native phone14:12
Wizzupor set some scaling14:12
Wizzupeverything else is probably a nightmare14:13
humanbetaIt mirror by default.14:14
xmn humanbeta it seems like you have it working, so how does this relate to your original questions "Pinephone get connected to TV ... "14:17
Wizzupuvos__: btw looks like just booting android to charge also wipes data14:17
Wizzup(and cache, and preinstall)14:17
humanbetaxmn: So question is answered, thanks to you and Wizzup.14:18
humanbetait was easier than I though.14:19
xmnheh, ah cool. And I would say it was Wizzup :D.14:20
xmnGlade to hear you got it figured out.14:21
Wizzupmaybe document it somewhere on the wiki14:22
xmn^14:23
bencohWizzup: why would it wipe data/14:25
bencoh?14:25
bencohoh, because btrfs/unknown fs?14:25
humanbetaPut example to wiki: xrandr --output HDMI-1 --mode 1280x72014:26
Wizzupbencoh: yes14:29
humanbetaif somebody know better xrandr can try better settings and widening desktop to both screen.14:29
Wizzupthis does not exist other than xrandr fractional scaling14:29
humanbetaok14:30
freemangordonhumanbeta: hmm, how does it mirror if resolutions on both displays differ?14:31
freemangordonisn;t it better to set hdmi on the same resolution as panel?14:32
humanbetafreemangordon: If hdmi has higher resolution than on Pinephone, then Pinephone crop, but it seems that hdmi crop when using lower resolution than on Pinephone.14:33
humanbetabut touch scaling..so touch not usable if bigger resolution on HDMI.14:35
humanbetaI have connect mouse if using 1920x1080.14:35
freemangordonhumanbeta: exactly that's why you should have same resolution on both displays, by adjusting HDMI to match internal panel14:38
humanbetaMy test display doesn't support 1440x720..so that is why using 1280x720.14:41
uvoswith glamor one could use a xrandr transformation matrix to fit any resolution onto the internal display14:42
humanbetaimpressive is that I tought internal display use 720x1440 with software rotate and still HDMI output work right away.14:45
humanbetabtw..HDMI audio does not work.14:51
humanbetaanyway..if somebody can program TV-output Settings to Settings like was in Maemo 5, it would be nice ;)14:59
gnarfaceso far i haven't heard anyone claim they were able to get HDMI audio working on pine64 hardware16:20
gnarfacethat's an outstanding issue that is probably not maemo's fault16:20
gnarfacedisplay out; yes, though finicky. but not audio.16:21
gnarface(and not isolated to just the phones either)16:22
gnarfaceand it doesn't seem to be clear whether it's a kernel issue or a hardware issue. nobody actually knows enough about the hardware.16:45

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