libera/#maemo-leste/ Thursday, 2021-06-10

mighty17[m]<uvos "these patches must be of resonab"> about that, umm i have a wip smb136 (ie charger)07:47
mighty17[m]uvos: https://github.com/MightyM17/droid4-linux/tree/droid4-pending-v5.11 i suppose thats all i need08:39
mighty17[m]check the commits08:39
uvosmighty17[m]: no those patches have no change of inclusion in the mainline kernel as is so are not of "sufficant quality"10:40
uvosmighty17[m]: for instance you need to split "Added espresso" into  patch with the mms114 changes and a patch with the dtsi and a patch with the defconfig changes10:42
mighty17[m]<uvos "mighty17: no those patches have "> wdym, i added dts,twl6032 (which is indeed wip) and mms136 (https://lore.kernel.org/linux-input/YHFARSiYaaz%2FgaHE@google.com/T/)10:42
mighty17[m]what changed do you suggest?10:42
uvosright that patch is fine10:42
uvosbut the ones on the tree are not10:42
mighty17[m]<uvos "mighty17: for instance you need "> for the patches yes, each one will have a seperate .patch file, i thought u meant the code quality10:43
uvoswell there is some issues there too10:43
uvoslike you dts contains way to long lines10:43
mighty17[m]those are comments?10:43
uvosyeah comments count10:44
uvosdont exceed 110 lines10:44
uvosuse the check_patch script10:44
uvosshunt-resistor-micro-ohms = <24000000>; /* 24 kOhm https://github.com/Unlegacy-Android/android_device_samsung_espresso/blob/aosp-6.0/libsensors/LightSensor.cpp */10:44
uvosthis is not ok10:44
uvosalso please add whatever extra modules you device needs to omap2_defconfig10:45
uvosinstead of addin a new one10:45
uvosso we need10:45
mighty17[m]<uvos "shunt-resistor-micro-ohms = <240"> that will get removed anyways, light sensor isnt working somehow10:45
uvosa branch with the: Input: mms114 - Support MMS136 patch as applied to the mainline tree backported to 5.11, a patch that adds the dts and a patch that adds the needed modules to  omap2_defconfig10:46
uvosand $subject, passing check_patch script and long form description for all of them10:47
mighty17[m]i can get a mms136 patch as well, that way the tree is clean10:47
mighty17[m]also my defconfig is loosely based on omap2plus so that should be easy10:47
uvosyeah just diff it and add whatever you added as =m to the omap2plus one10:47
mighty17[m]okay!10:48
uvoswe need to be able to build a signle kernel with support for all our devices, ie we need it in one defconfig10:48
uvosgreat work btw :)10:49
diejuseany way to keep portrait mode both when I enter and when I exit the apps? I am testing MLeste on a blackberry and when I put a screen resolution with width higher than width it crashes.10:57
diejuse*width higher than height10:57
diejuse*height higher than width, pardon10:57
uvosby brain also crashes wen you try usign a screen resolution with width higher than width10:58
freemangordonuvos: Wizzup: I think I have a reliable way of repro the "no saved connections available" bug in the VM, which I think is the same as "never succeeds until you close dialog and start over"10:59
freemangordonwhen connecting from easy-wlan dialog, just enter wrong ssid of a hidden AP, so it will fail (assuming the patch ^^^), Then try to connect to some saved connection from the same dialog: "no saved..."11:00
uvosbtw Wizzup freemangordon: https://github.com/libsdl-org/sdl12-compat <-- this has the potential to solve our sdl1.2 problems11:03
uvosno more grabs with that11:03
mighty17[m]<uvos "we need to be able to build a si"> wont the kernel get too big, or are we just gonna use =m?11:03
uvosmighty17[m]: =m ofc11:03
diejuseuvos: my only solution is to put an almost square resolution with a pixel more width than height. On the Titan mobile it is perfect but on other mobiles it is not suitable.11:04
mighty17[m]that'll need quite some work then on my end11:04
uvosdiejuse: you can make it stay portrait by chainging /usr/share/hildon-desktop/trainsition.ini11:04
uvosi dont recall what the flag is called exacly11:05
mighty17[m]why isnt PREEMPT enabled in omap2plus, thats necessary for powervr afaik11:05
uvosbut its something like force protraitable11:05
uvosmighty17[m]: because the pvr branch changes that ofc11:05
mighty17[m]so should i include it in my patch or nor11:05
mighty17[m]not*11:06
uvosno11:06
uvosyour patches must be appropriate for mainline kernel11:06
mighty17[m]cool thanks :D11:06
uvosany pvr stuff at all or support changes for pvr are not welcome11:06
mighty17[m]`CONFIG_CMDLINE="root=/dev/mmcblk0p2 rootwait console=ttyO2,115200"` will need to be changed ig this is for uart in omap2plus11:08
uvoshmm ok11:09
uvosyou have no way of not forcing the cmdline11:09
uvos?11:09
diejuseuvos: I'm going to try it11:10
uvosstting CONFIG_CMDLINE if ofc not acceptable in the common kernel11:11
mighty17[m]what other way?11:11
mighty17[m]i used to use `CONFIG_CMDLINE="console=tty0 ignore_loglevel" `11:11
uvosright you set the cmdline in kconfig11:11
uvosthats a problem since it would break the other devices11:11
uvosthe other devices get cmdline from the bootloader11:12
uvosi gues this might be a sticking point11:12
uvosi assume your bootloader dosent let you change the cmdline...11:12
mighty17[m]i guess so11:13
mighty17[m]been a while since i tried something non pmOS11:13
uvoswell i gues you could have a initramfs that mounts root11:13
uvosand otherwise no cmdline11:14
Wizzupfreemangordon: that sounds like the same bug yeah11:14
uvosnot ideal11:14
uvosor you could boot kexecboot first11:14
Wizzupuvos: that looks great @ libsdl12-compat11:14
uvosand then have a bootloader that allows you to change cmdline (and multiboot)11:14
mighty17[m]<uvos "or you could boot kexecboot firs"> i dont think i have kexecboot11:14
uvosmighty17[m]: right11:14
uvosmighty17[m]: i gues this would be easiest11:14
mighty17[m]yes11:14
uvosand then you can have boot pmos and leste installed ;)11:15
uvoss/boot/11:15
Wizzupdiejuse: regarding portrait mode when entering and exiting apps, I am not sure at the moment, what exactly are you seeing?11:16
Wizzupah looks like uvos answered11:16
uvosmighty17[m]: so https://github.com/tmlind/droid4-kexecboot/blob/master/2021-01-28/droid4-kexecboot.img should mosly work11:17
Wizzupuvos: btw, does BP also crash for you when you click 'practice'11:17
uvosmighty17[m]: you could flash that image to sdcard or some partiton on the device that it dosent need11:17
mighty17[m]<uvos "and then you can have boot pmos "> i mean yes, but lets try with no cmdline and hope bootloader sets it, afaik in downstream it sets it to some werid thing11:17
uvosmighty17[m]: and then compile a kernel that sits in boot with a forced cmdline to boot that partition11:17
mighty17[m]<uvos "mighty17: you could flash that i"> yeah!!11:17
mighty17[m]best way :D11:17
uvosand then you have a real bootloader that can set cmdline and stuch11:18
uvos"real"11:18
mighty17[m]xD11:18
uvosandroid bootloaders are annoying :(11:19
mighty17[m]indeed :(11:19
mighty17[m]i also need `CONFIG_B43` for wifi/bt11:19
mighty17[m]bcm433011:19
uvosmighty17[m]: sure add whatever modules you need to omap2plus11:20
lelparazyd opened an issue: https://github.com/maemo-leste/bugtracker/issues/546 (Check out sdl1.2-compat)11:20
mighty17[m]:D11:20
lelparazyd labeled an issue: https://github.com/maemo-leste/bugtracker/issues/546 (Check out sdl1.2-compat)11:20
parazyduvos: Thanks for linking this :)11:20
parazydLooks ideal, if it works as intended11:21
diejuseWizzup: it crashes when I press the top left to see all applications11:21
Wizzupdiejuse: what crashes exactly?11:22
diejuseWizzup: Goes to black screen11:23
diejuseand everything stops working.11:24
uvosWizzup: BP segfaults all the time if you try and use it11:25
uvosi ran it in valgrind its not pretty11:25
diejuseWizzup: That this works perfectly is essential to port ML to other mobiles because portrait mode is the usual thing.11:26
uvosdiejuse: portrait only works perfecly fine on xt875 not saying that there is no bug, but it might also be your xserver doing something funny11:28
Wizzupdiejuse: yeah, what uvos says might make sense, we rotate the screen with xrandr for portrait mode based on accelerometer11:29
Wizzupit could be a problem in your X, is it modesetting?11:29
uvosits xsdl11:30
Wizzuphm11:30
uvoshttps://play.google.com/store/apps/details?id=x.org.server&hl=en_US&gl=US11:30
Wizzupwonder if it runs in anbox ;-)11:32
diejuseWizzup: uvos: yes, that is the app I use11:32
uvosps no :D11:32
uvosWizzup: *pls no :D11:33
Wizzup:p11:33
parazydlol11:33
uvosyeah im not sure rotation works ok on xsdl11:34
diejuseWizzup: Magic Dosbox is the better for Android hehe11:34
uvosdiejuse: you might have to try and see if xrandr works ok generally11:34
uvoslike with just i3wm or something11:35
uvosor twm11:35
diejuseuvos: rotation does work.11:35
uvosso you can start i3wm11:35
uvosand rotate back an fouth with xrandr?11:35
uvoswithout it breaking?11:35
diejuseuvos: no ... xrandr will only work if I add a layer  with Xephyr11:37
uvosdiejuse: well theres your problem11:37
uvoshildon will try and use xrandr and fail11:37
diejuseuvos: I understand :(11:37
uvosthere is not mutch we can do about it11:37
uvosi gues we could a option in transition.ini to tell hildon to never touch xrandr11:37
uvosbut mostly you need to complain to the xsdl dev that xrandr is broken :)11:38
diejuseuvos: It would be good. In any case I'm going to try the Xephyr trick.11:38
parazydAdded 18 new languages for translations13:11
parazydPrep for an update of ~2300 packages13:11
* parazyd hides13:12
lelparazyd created a repository: https://github.com/maemo-leste-extras/gpxsee13:16
lelparazyd closed an issue: https://github.com/maemo-leste-extras/bugtracker/issues/21 ([REQ] gpxsee)13:19
dreamerWizzup: hmm, looking a bit at this cargo thing. I see the version on leste wiki is about ~3 years outdated13:29
dreamerwould be nice to have it ~current so at least I can follow the docs :#13:30
dreamerand you may want to add https://www.mediawiki.org/wiki/Extension:Page_Forms although I supposed there won't be that many devices added at a time (so can be manually currated pages)13:30
parazyddreamer: You mean updating the mediawiki?13:31
dreamerspecifically https://www.mediawiki.org/wiki/Extension:Cargo13:32
dreamerbut entire MW and extensions up to date would be best ofcourse13:33
parazydYeah I already prepped the upgrade tarball some days ago, but need to read the docs well first.13:37
dreamer<313:37
parazydI don't recall we installed any extensions13:43
dreamerI dunno13:43
dreamerhttps://leste.maemo.org/Special:Version13:44
parazydah ok13:44
parazydNice page :D13:44
dreamersome are built in apparently13:44
dreameryes, very handy :)13:44
dreamerevery except Cargo comes with latest MW it seems hehe13:45
parazydok13:45
parazydI'll try to get around to it tonight if I can13:45
dreamerthnx!13:45
dreamerwas just preparing by reading some docs13:45
dreamerwould be nice to make a first version with this this month13:46
dreamerso the frontpage can have a table instead of link to `Category:Device`13:46
parazyd++13:46
Wizzupparazyd: dreamer: thanks14:03
diejuseuvos Wizzup: I've been testing and there are no crashes with Xephyr. I get to rotate using "xrandr" from osso-xterm but when I click on the top left corner Hildon desktop returns to landscape mode.15:41
diejuseNow that xrandr is not a problem, I need to find some way to put Hildon desktop in portrait mode.15:42
uvosdiejuse: you need to turn off rotation in android15:43
uvosand get the accelerometer to mce somehow15:43
diejuseuvos: Android rotation is off15:44
uvosdiejuse: right so now you need to get the accel to mce15:44
uvosdiejuse: if your kernel provides the sensor as a iio device this is easy15:44
uvosyou just need to install iio-sensor-proxy15:45
uvosand load the iio-accelerometer mce module15:45
uvosand you need to have /dev/ mounted in the chroot15:45
uvoser i meant /sys15:45
diejuseiio-sensor-proxy is already installed15:46
diejuse/dev/ is already mounted too15:46
uvosi ment sys15:46
uvosand check monitor-sensor15:46
uvosand see if its picking up the accel15:46
uvosand create a file like this15:47
uvoshttps://github.com/maemo-leste/leste-config/blob/master/leste-config-bionic/etc/mce/mce.ini.d/70-bionic.ini.leste15:47
uvosbut remove everthing except the ModuleDevice line15:47
diejuseuvos: I am going to try. The Blackberry community will appreciate this if I am successful. It is a very closed phone and they are very enthusiastic about the news. hehe15:49
diejuseuvos: I have error when mounting /sys. In any case Maemo accel seems working because screen is inverted when rotating it (with  Android rotate off).16:22
parazydUpdated d4/bionic kernel in -devel. Let me know if there are issues.16:27
diejuseuvos: I have added some applications to portrait mode whitelist and works. If I launch apps from terminal they are opened in portrait mode. Problem is when I exit to home, landscape mode is back.16:48
Wizzupparazyd: ok, will try in a bit @ kernel16:59
parazydCool :)17:01
parazydPrep for 2k package updates :D17:01
Wizzuphehe17:02
WizzupI'll look at the locale.gen stuff later today, after my work mtgs17:03
parazydAppreciate it. lmk if you need a hand on the apt side17:11
Palifreemangordon: Hi!19:05
PaliI would like to know if you had some time to look at usb part of n900 u-boot...19:06
uvosparazyd: you dident add the discussed changes for fixing usb plugged in boot right?19:06
Wizzupparazyd: did the kernel build? I think I pulled it but it says 5.11.2219:13
Wizzupnot 5.13 or so19:13
uvosshould be 5.11.2219:13
uvoswhy would you expect 5.13 the xorg problem is still in place19:13
Wizzupuvos: sorry, what xorg problem are you talking about?19:17
uvosddk1.17 + modesetting?19:17
uvosis Wizzup awake? :P19:17
Wizzupuvos: is ddk1.9 not working with 5.13?19:18
uvosno19:18
Wizzuphmmm I did miss that19:18
uvosit stoped working with 5.1219:18
Wizzupok, I see19:18
uvosthats why we are a relese behind allready19:18
uvosanyhow19:18
uvosparazyd: please add http://uvos.xyz/maserati/uart-with-charger.patch and https://patchwork.kernel.org/project/linux-omap/patch/20210522050759.52815-1-tony@atomide.com/ when/if you have the time19:19
uvosthe latter together with cmdline changes works around the problem with the device hanging if you boot with usb plugged in and the former fixes the d4 randomly ideling at 300mw (maybe hopefully hasend happend to me since)19:20
Wizzupuvos: ok, weird that I missed that entirely wrt ddk 1.919:21
parazyduvos: Will do19:22
* parazyd bbl19:22
uvosWizzup: vat? we even made the descission to stick with 5.10 lts for stable, for this reason, together.19:26
Wizzupuvos: hrm19:31
diejuseuvos Wizzup: portraid mode works finally! :D19:32
uvosdiejuse: great19:33
uvosdid you get iio-sensor-proxy to work?19:33
diejuseuvos: I created the mce.ini.d file19:34
diejuseand "dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_orientation_ind string:'portrait' "19:34
diejuseresult: works19:34
uvosyeah sure that works, but its not right19:34
uvosstart monitor-sensor in terminal19:34
uvosand see if it reports any sensors19:34
uvosif they are sensor orientation values wrong you have to add a rotation matrix to your udev files19:35
uvoslook at the leste-config for the bionic on how to do this19:35
diejuseuvos: ok, I take note19:37
diejuseat the moment It works very well. I'm more impressed to see it work on my Blackberry Key1 than on my Titan.19:38
freemangordonPali: no, sorry :(. I will do my best to find some the next week.21:49
Paliok!21:49
Wizzupfreemangordon: I brought my n900 serial with me, and the lab psu should arrive on wednesday, so I could do some testing for you later next week if required21:49
freemangordonok, thanks21:50
parazyduvos: Is the patch fine for both 5.11 and 5.10?22:18
uvosparazyd: should be fine22:21
uvosbut i did not try22:21
uvosmaybe just apply to devel for now.22:21
parazydok22:21
uvosWizzup: where you at? if i may ask22:21
parazydI didn't update the 5.10 yet22:21
Wizzupuvos: currently in rijeka (city) with my gf, but going to korcula (island)22:26
uvosWizzup: nice :)22:27
uvosWizzup: brining along the lab supply is dedication :P22:27
PaliL29Ah: Hi! Do you want to play with eMMC flashing via 0xFFFF again :-)? https://github.com/pali/0xFFFF/issues/622:28
PaliI have updated documentation about data blocks: https://github.com/pali/0xFFFF/blob/master/doc/fiasco22:28
Paliseems that these fiasco data blocks are used for all stuff22:28
Wizzupuvos: my parents are actually visiting by car, they will bring it22:30
parazyduvos: I added the patches, needed only to remove fuzz22:31
uvosWizzup: conveniant ^^22:31
parazydBuilding now22:31
uvoswhat dose fuzz fail on?22:32
parazydJust some line offset is wrong so I "rebased" it. This is a problem for jenkins as it decides to not proceed.22:34
parazydIt doesn't happen with our other packages, but kernel builds are a bit special.22:35
uvosparazyd: ok22:36
L29AhPali: not yet, i still don't have a spare n900 for playing22:40
L29AhPali: ask gordon122:40
uvosparazyd: installing bionic-kexecboot-config will fail if /boot/boot dir dosent exist22:56
uvosconisder adding a install -d22:56
parazyduh no, not really22:59
uvoshmm?22:59
parazydhttps://github.com/maemo-leste/mapphone-kexecboot-config/blob/master/Makefile22:59
parazydIt's supposed to be there23:00
parazydUnpack the deb23:00
parazydThere should be /boot/boot23:00
uvos new bionic-kexecboot-config package pre-installation script subprocess returned error exit status 123:00
uvosthis is the problem23:00
uvosthats before it gets created23:00
parazydah23:00
parazydSorry forgot it's preinst23:01
parazydYeah23:01
uvospreinst should just doing nothing if dir dosent exist23:01
uvos*do23:01
parazydDeal23:01
uvosthanks :)23:02
parazyduvos: btw. is the weekly irc log working out for you?23:10
uvosparazyd: yeah its great, allways use this to read backlog23:11
parazydCool23:11
parazyddreamer: I will update the mediawiki tomorrow afternoon23:11
parazydI think I understand the process now23:11
parazyduvos: Updated kexecboot-config in devel23:13
uvosparazyd: ok ill delete /boot/boot reboot and try upgrade on the bionic as soon as its finished with the current 800+ package upgrade23:14
parazyd:D23:15
parazydok23:15
parazydThis was the last mass batch btw23:15
parazyd40 languages now :)23:15
sunshavitesting. ignore it23:16
parazydworks23:16
parazyd:p23:16

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