libera/#maemo-leste/ Thursday, 2022-09-15

norayri need to say this lapdock is amazing and unbelievable.00:23
norayri just watched two videos by johnny harris00:23
norayrunder android.00:23
norayrneed to try to get an image with wmaker00:23
rafael2ktoday I brought my PP to the office09:23
rafael2kI plan to run some tests09:23
Evil_Bob_big PP?09:34
rafael2kphone calls keep working09:35
rafael2k: )09:35
rafael2kEvil_Bob_: PinePhone 109:35
uvos__norayr: yeah it was pretty neat, especcaly at the time09:37
uvos__norayr: having your phone boot to xorg and be able to run random linux applications while transforming into a laptop with looooong battery life09:37
uvos__the atrix like this was also the first mass market arm laptop you could just buy, beating the first chromebook by about half a year09:39
rafael2kcool, bt keyboard and mouse working with maemo on the PP10:33
Guest224rafael2k: Pinephone keyboard also works with Maemo and it is cool...What PinePhone 1 exact model you have? On box there is model sku like PPHONE-BE2 or something.10:53
rafael2kwhen I scroll the mouse button, I hear the system sound for every wheel spin... may be the system sounds could be left just for left, center and right mouse clicks?10:55
rafael2kGuest224: hey, I know, I added support for the PP keyboard in the kernel. I have a PP 1.210:56
Guest224:)10:57
rafael2k: )11:05
rafael2kare you using Maemo in the PP too?11:05
Guest224yes, but I have "old" 20220731 image..so have to make new installation.11:09
Guest224rafael2k: Have you tested Docking Bar with PP?11:13
rafael2kYou can just apt-get update / apt-get dist-upgrade11:14
rafael2kin order to keep the distro upgraded11:14
rafael2kI did not tested the Docking bar yet. Let us know if you test it!11:15
rafael2kin theory, it should work out-of-the-box11:15
Guest224I just wondering should I put usb-charger to docking bar at all when I have Pinephone with Pinephone keyboard...stupid question, but I want to be sure, because keyboard manual says only charge phone thru keyboard charge connector.11:22
rafael2kdon't!11:22
rafael2konly plug it to the keyboard11:22
Guest224do you know actual reason for that?11:23
rafael2klong history short - a hardware limitation11:25
Guest224can pinephone give enough power for usb ports of docking bar, or should I have powered hub after that?11:30
rafael2kIt should provide enough power, yes11:36
rafael2kWizzup: I can confirm the USB in the PP can change to host mode automatically (I just plugged a USB mouse on it)11:38
Guest224ok..I make some tests, but not today.11:38
Wizzuprafael2k: ok, but we don't wnat that, we probably want to rely on otg to decide if it's slave or host11:38
rafael2klet us know the results, plz11:38
rafael2kI want that11:38
rafael2k:P11:38
Wizzupmaemo leste doesn't, since it has dialog to allow people to connect their phone to the computer to transfer files11:39
rafael2kit dynamically decides11:39
Wizzupwell it doesn't clearly11:39
Wizzupunless the kernel paths changed11:39
rafael2kcan you check this?11:39
rafael2kreading the kernel logs, it seems all good11:39
Wizzupactually I have to do it all with the vkb since I have no way to access the phone11:39
Wizzupno serial, wifi doesn't work11:40
Wizzupand no usbnet11:40
Wizzupso it's a bit painful atm for me on the braveheart11:40
rafael2kbut why wifi is not working?11:40
Wizzupdon't know, it is also related to kernel upgrade I think11:40
rafael2kdefinitelly not11:40
rafael2klatest kernel upgrade was like... 3 months ago?11:41
Wizzupyes, it stopped working since then11:41
rafael2khum11:41
Wizzupif I flash the old image, it works, then upgade, I think it breaks11:41
WizzupI will have to test that again though11:41
Wizzupmaybe the wifi only worked some of the times11:41
rafael2kso may be can be an issue with braveheart11:41
WizzupI'll check later today...11:41
rafael2kindeed, there are some hardware differences11:41
rafael2kjust like the one freemangordon was complaining11:41
rafael2kbut for me (and may be others?) with a PP >= 1.2, it is all good11:42
rafael2k:/11:42
rafael2klemme know if I can help11:42
rafael2k(hey, just get a USB keyboard and stuff to the PP, or a bt kbd, it works!)11:43
Wizzupwell, plug it in to your pc and see if the dialog comes up and usbnet comes up11:43
Wizzupif it doesn't there's a problem11:43
rafael2kI prefer not to have usbnet than not to have telephony...11:45
rafael2kno, it does not work11:45
WizzupI don't think we need to choose between usbnet and telephony?11:45
Guest224Reason why switched N950 to N900 was that I could use USB-memorysticks with N900...so would it be could good that there is USB-settings how user want use USB.11:45
rafael2kI'm just saying in the past usbnet was working, but many things were not11:45
Wizzupwell don't take it personal...11:46
WizzupI'll see if it's userspace that changed, but I bet it's just missing config options11:46
rafael2klemme know which piece of software sets up the usbnet dev11:46
Wizzuphildon-usb-gadgets package11:47
rafael2kneed to have a checklist for every kernel upgrade11:47
rafael2ktks11:48
Wizzupand then this will act on udev events and actually run those binaries https://github.com/maemo-leste/ke-recv-extra11:49
Wizzupno sorry, not -exra11:49
Wizzupnot -extra11:49
Wizzupthis one https://github.com/maemo-leste/ke-recv/blob/master/src/udev-helper.c11:49
rafael2kok11:50
rafael2kusbnet module is there11:50
Wizzupok, let me get the phone now11:51
rafael2kbut it is not working indeed11:51
rafael2kI'll try to find the paths11:53
rafael2kI can see the kernel modules are there, trying to compare to older kernels12:01
Wizzupwhat if you run the programs from hildon-usb-gadgets ?12:01
rafael2kmodprobe g_ether12:19
rafael2kgave me usb0 device back12:19
Wizzuplet me see if I can get wifi to work12:22
rafael2kyay12:24
rafael2kusb0 is back12:24
rafael2kjust make user g_ether is in /etc/modules12:24
rafael2k*make sure12:24
rafael2kso it prolly was Y instead of M12:25
rafael2kping 192.168.42.2 192.168.42.2 (192.168.42.2) 56(84) bytes of data.12:26
rafael2k64 bytes from 192.168.42.2: icmp_seq=1 ttl=64 time=0.577 ms12:26
rafael2kit works12:26
rafael2kuff, that was easy12:27
Wizzuphmm12:32
Wizzuprafael2k: this is not it12:33
Wizzupg_ether is just some hardcoded config, what is needed if configfs and stuff12:33
Wizzupmy pp is booting now12:33
rafael2kI don't get it12:34
Wizzupmodprobing g_ether has a lot of unwanted effects12:34
Wizzuplike you can't expose other composite modules12:34
Wizzupafaik12:34
Wizzupmy pp battery is too low so it's not booting all the way atm12:35
rafael2kanyway, kernel side is all good12:35
Wizzuprafael2k: basically there's a whole kernel interface to configure composite otg gadgets12:35
Wizzuprafael2k: can you grep for CONFIG_USB_CONFIGFS12:36
rafael2ksure12:37
Wizzupand probably CONFIG_CONFIGFS_FS12:37
rafael2kCONFIG_USB_CONFIGFS=m12:37
rafael2kCONFIG_CONFIGFS_FS=m12:38
Wizzupthere's a lot of sub options12:38
rafael2kindeed12:38
Wizzupare they all on?12:38
Wizzupi.e.12:38
WizzupCONFIG_USB_CONFIGFS_SERIAL=y12:38
WizzupCONFIG_USB_CONFIGFS_ACM=y12:38
WizzupCONFIG_USB_CONFIGFS_OBEX=y12:38
WizzupCONFIG_USB_CONFIGFS_NCM=y12:38
WizzupCONFIG_USB_CONFIGFS_ECM=y12:38
Wizzup(..>)12:38
Wizzup(and more)12:38
rafael2kall y12:38
rafael2kapart of:12:38
Wizzupbtw /sbin/ifconfig -a gives no wlan0 on my pp12:38
rafael2k# CONFIG_USB_CONFIGFS_PHONET is not set12:39
rafael2k# CONFIG_USB_CONFIGFS_F_LB_SS is not set12:39
rafael2k# CONFIG_USB_CONFIGFS_F_UAC1_LEGACY is not set12:39
rafael2k# CONFIG_USB_CONFIGFS_F_MIDI is not set12:39
rafael2k# CONFIG_USB_CONFIGFS_F_UVC is not set12:39
rafael2k# CONFIG_USB_CONFIGFS_F_PRINTER is not set12:39
rafael2k# CONFIG_USB_CONFIGFS_F_TCM is not set12:39
Wizzupmaybe it's the physical switch12:39
WizzupI have to check what some of those F are, but I -tink- they do not matter12:39
Wizzuphm now wifi works12:42
rafael2k: )12:42
Wizzup(just rebooting)12:43
Wizzupso maybe it's a random boot fial12:43
Wizzup# /usr/sbin/hildon-usb-gadget-network12:43
Wizzupusbg_init()  No such file or directory: couldn't init gadget state12:43
WizzupIn: usbg_init("/sys/kernel/config", &state) (Function: gadget_init)12:43
WizzupError: USBG_ERROR_NOT_FOUND : Not found (file or directory removed)12:43
WizzupIn: usbg_create_gadget(state, "g1", &g_attrs, &g_strs, &g) (Function: network_gadget)12:43
WizzupError: USBG_ERROR_INVALID_PARAM : Invalid parameter12:43
Wizzup/sys/kernel/config is empty12:43
Wizzupmount -t configfs none /sys/kernel/config/12:47
Wizzuprafael2k: I wonder what happens if CONFIG_CONFIGFS_FS=y12:49
Wizzupit looks like /sys/kernel/config is not being mounted12:49
WizzupI don't know what is supposed to mount it12:49
Wizzup/etc/init.d/mountkernfs.sh:        domount "$MNTMODE" configfs "" /sys/kernel/config configfs ""12:49
Wizzupprobably this, and when the module it not loaded, it doesn't mount at the right time12:49
Wizzuprafael2k: yep that's it12:56
Wizzupif I add this in /etc/init.d/ke-recv:12:56
Wizzuperr12:56
Wizzupmount -t configfs none /sys/kernel/config/12:56
Wizzupbelow12:56
Wizzupmodprobe usb_f_mass_storage12:57
Wizzupthen it works12:57
Wizzuprafael2k: can we set it to =Y?12:57
rafael2kyay, just entered a meeting, gimme half hour13:01
rafael2kmount -t configfs none /sys/kernel/config/13:11
rafael2k: )13:11
Wizzuphm?13:11
rafael2kthis made  /usr/sbin/hildon-usb-gadget-network run13:12
Wizzupyes13:12
Wizzupit this only gets mounted during early boot13:12
Wizzupwhen it's a module, it is not loaded yet13:12
Wizzupand then it is not mounted13:12
rafael2kwhich module did you suggest to Y?13:12
rafael2kwe can change, no problem13:13
rafael2kso knowing all this, I'd stick with our current kernel version until we have all the features working, before jumping to another newer kernel version then13:13
WizzupCONFIG_CONFIGFS_FS13:14
rafael2kok13:14
uvos__just make shure to do the mounts after modprobe or?14:09
uvos__seams like a problem in our setup more than the kernel14:10
Wizzupuvos__: it's a devuan init script that runs on boot14:17
Wizzupso we can fork the init script I suppose14:18
uvos__or complain upstrea14:18
uvos__m14:18
uvos__it should have a depends no?14:18
Wizzupyup, or keep a sane and synced kernel config for all our devices14:18
uvos__i mean different devices need different config14:22
uvos__so this kind of config sensetivity is going to bite people over and over again14:22
uvos__i strongly doubt we will ever manage to have all devices run the mapphone kernel14:23
uvos__as good as that would be14:23
Wizzupthis is just a core kernel config feature not being build in14:24
Wizzupfeel free to file a bug upstream but I don't want to spend time on that atm14:24
uvos__ok ok i get it Wizzup is annyoed with this problem14:24
uvos__and just wants it gohne14:24
Wizzupnope, I'm saying that I won't file bugs with devuan for this, since I don't think there's an easy method available at all to mount filesystems on module insertion at any point in the system14:25
Wizzupbut you're welcome to do it14:25
Wizzupand that's right, having bugs fixed and distractions gone is definitely important14:26
freemangordonWizzup: I have wifi not working issue as well, it happens when battery is low :)14:30
freemangordonas soon as you charge a bit it starts working14:30
Wizzupah...14:30
uvos__neat hw bug14:30
freemangordonyeah14:30
Wizzupwell it's braveheart :)14:30
freemangordonyeah14:30
freemangordoncould you try to run some io-intensive task and check iowait?14:31
freemangordonlike apt-get upgrade or something14:31
freemangordonthat runs for more then lets say 30 seconds14:31
freemangordon*than14:31
WizzupI upgraded already :(14:31
freemangordondowngrade of the kernel?14:31
freemangordonit takes 5 minutes here14:32
Wizzupgot a command to do that?14:32
freemangordontime apt-get install linux-image-pine64=5.15.21-1+2m7.114:32
freemangordonassuming you are on 5014:32
freemangordon5.15.50 that is14:32
Wizzupyeah I am14:33
freemangordonstart another ssh session with iostat -k 114:33
Wizzupwhat package is iostat in?14:33
freemangordonsysstat14:33
Wizzupdowngrading atm14:34
WizzupSetting up linux-image-pine64 (5.15.21-1+2m7.1) ...14:36
Wizzupreal0m41.047s14:36
Wizzupuser0m23.147s14:36
Wizzupsys0m5.997s14:36
freemangordonweird14:36
freemangordontakes 5 minutes here14:36
Wizzupbad sd card?14:36
Wizzupor does it also happen on other sd cards14:36
Wizzupwell I guess you said older kernle is fine14:37
freemangordonyes14:37
freemangordonthe same card works fine with .21 and on my laptop and on my pc14:37
rafael2kfreemangordon: I'll do the test here too15:06
rafael2kI don't seem to have the same problem15:14
rafael2k:/15:14
rafael2kbut there definitely are changes in the patch set between .21 and .5015:16
rafael2kke-recv is a maemo package?15:24
rafael2kso the mount can be there, right, and no need to diverge even more from upstream kernel15:24
rafael2kforget about15:29
rafael2kI'm commiting the change to CONFIGFS_FS=Y15:29
rafael2kWizzup: https://github.com/maemo-leste/pine64-kernel/pull/815:34
rafael2kindeed, Mobian pachset this this change... defconfig was Y instead of M15:35
rafael2kfreemangordon: your problem thou seems a bit trickier15:35
Wizzuprafael2k: right thanks15:37
rafael2kno problem15:38
rafael2kI wish we could find a "stable" upstream kernel fork for the PP16:00
rafael2kI know it seems unrelated, but could you try upgrading the anx7688 firmware: https://forum.pine64.org/showthread.php?tid=1300116:19
rafael2kthermalobject_suface.so is not found on boot in the PP, is that ok?16:21
Wizzup yup16:21
rafael2kok16:21
rafael2kjust realized I new Quectel firmware: https://github.com/Biktorgj/quectel_eg25_recovery16:25
Wizzuprafael2k: does your pp speaker mode work in sphone?16:26
rafael2kpp speaker mode?16:27
Wizzupif you call with sphone16:27
Wizzupand click the speaker button16:27
rafael2klemme test16:27
Wizzupdo you hear the call audio over the speaker?16:27
rafael2knope16:30
rafael2kit just does not change16:30
Wizzupyeah, seeing the same16:30
rafael2kI keep hearing the audio from the handset speaker16:30
Wizzupyup16:30
rafael2kuvos: ping16:31
WizzupI can help here16:31
rafael2kcool16:32
rafael2kI'm going home now16:32
Wizzupwe probably want to check UCM/pa names16:32
Wizzupok16:32
Wizzupttyl16:32
rafael2kuhum, most likely16:32
freemangordonrafael2k: :(16:32
rafael2ksms alerts thou are loud and clear tru the speakers16:32
freemangordonmaybe you could give 6.xx a chance in -experimental repo16:34
rafael2kfreemangordon: taking a look here: https://gitlab.com/mobian1/devices/sunxi64-linux/-/commits/mobian-5.15 I could not find the regression easily16:34
rafael2kyeap sure16:34
rafael2knext week I can work on it16:34
freemangordoncool16:34
freemangordonrafael2k: this https://gitlab.com/mobian1/devices/sunxi64-linux/-/commit/9d95f9b3990734dcfa55c1eee4aa3ff876e083c8 loocs suspicious16:35
rafael2kyay, good catch!16:36
freemangordonwell, they talk about suspend16:37
freemangordonbut...16:37
freemangordonwhat is "upstreamed" supposed to mean in that context?16:37
freemangordonyeah, it is there https://gitlab.com/mobian1/devices/sunxi64-linux/-/commit/dbe7bf9b6fc8fefbbbc207c1a07fe890605fe07c16:39
freemangordonmaybe it is upstream bug16:41
rafael2khttps://lore.kernel.org/all/20220115121447.641524-1-andrej.skvortzov@gmail.com/16:41
freemangordonmhm16:42
rafael2kSo I think we'll bump to 5.15.5916:42
freemangordonyes, please16:43
rafael2kbut I'd prefer Wizzup to test the PR I did, see if we solved the usbnet issue, then we rebase to 5.15.59 with this fix16:43
freemangordonbut I think this patch is already in 5.15.51, unless I am missing something16:44
rafael2kThe PR is simple enough we can just roll it out and release a new 5.15.5016:44
freemangordonhttps://gitlab.com/mobian1/devices/sunxi64-linux/-/commit/dbe7bf9b6fc8fefbbbc207c1a07fe890605fe07c16:44
rafael2kthen if all good, we bump to 5.5.5916:44
Wizzupdidn't realise there was a PR already, will check momentarily16:44
rafael2khttps://github.com/maemo-leste/pine64-kernel/pull/816:45
rafael2kright, need to go, tomorrow I can prepare the 5.15.5916:45
Wizzupok, ttyl16:45
rafael2kWizzup: I think I forgot to bump the package version16:47
Wizzupok16:47
norayri just tried booting droid3 to the android, and remembered that is broken - it always hangs. and it draws energy, not sure it is charging though.19:17
norayrso droid3 and bionic is the same hw, but one has keyboard?19:17
norayrit:19:17
norayr'19:17
norayrit's inteesting what makes droid3 so unstable. compared to droid4.19:17
Wizzupif you boot android on a phone you installed leste on, I don't think it will boot.19:31
Wizzupphone -> droid 419:31
Wizzuperrr19:31
Wizzupphone -> droid 319:31
freemangordonWizzup: for some reason pidgin cannot connect by using SSL20:57
Wizzup to what?20:57
freemangordonoftc20:58
freemangordonwill try if leste can do :)20:58
freemangordonno21:03
freemangordonugh, port is 669721:04
freemangordonyeah, PEBKAC21:06
freemangordonConnected securely via TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256-12821:06
uvoswhy was i pinged22:27
norayri am porting another package to leste right now.22:40
norayrmstardict. let's hope it'll be ok.22:40
norayri need it, i use stardict dictionaries a lot.22:40
norayrand meanwhile i wonder, if hildon is so seriously broken, since it probably sees one screen? or maybe two screens? maybe there should be a simple hack i can use, even if i hardcode something, to be able to run hildon on a lapdock screen.22:41
norayrmaybe i need to hardcode the device name.22:41
norayrthis lapdock is so amazing, i am in love with it. so pity i cannot run hildon on it.22:41
norayrWizzup: yes android doesn't boot on droid3 but boots on droid4. and i don't understand why, since the android is there, and the loader is there. interesting what prevents it to boot?22:47
norayrwell, i'd prefer it to not boot, but to have leste on it, anyway.22:47
norayrleste boots but i cannot even start typing dmesg when it reboots.22:48
uvosnorayr: you can run hidon on the lapdock sceen23:24
uvosjust ensure the screen is configured and the only one available before hildon start23:25
uvoss23:25

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