libera/#maemo-leste/ Wednesday, 2021-07-28

kshatriyathis article describes (perhaps) what is done to get usb OTG host mode working, while charging both host and peripherals with external power https://blog.workshoptwelve.com/2019/01/04/otg-usb-charge-hub-wtf/04:10
roalyrSo since we are flashing a microSD card, how does using ML affects its lifespan?08:14
roalyrAnd how large of a SD card would you suggest?08:15
parazydsdcards are pretty good these days08:40
parazydI mostly use 32G, but even 8 is decent for Leste08:41
roalyrWell yes, it is not like we have the luxury of using persistence mode like in MX linux with that amount of RAM.08:42
roalyrLooks like I am stuck at "fastboot flash mbm allow-mbmloader-flashing-mbm.bin" step.08:53
roalyrTerminal output is: "target didn't report max-download-size08:53
roalyrAnd it is staying at sending 'mbm' (512 KB)...08:54
roalyrFastboot returns the devices list though.08:55
sicelokshatriya: looks like complicating things ... I thought d4 can charge and host same time ootb, if I recall what uvos said/tried. At least N900, with its hacky/broken otg dies08:56
sicelo*does08:56
roalyrOkay, looks like I have to try different USB ports.08:57
lelparazyd renamed a repository: https://github.com/maemo-leste/tor-network-applet09:00
uvosroalyr needs to use flash:raw09:16
uvosas to why thats nessecary on some d4's no idea, might be old mbm version or a interaction with fastboot version09:16
uvosroalyr: if you come back and read the logs please fastboot --version as well as the mbm version (the nummber displayed on device under AP Fastboot Flash Mode in fastboot mode)09:18
roalyrWhat is the way to oem unlovk D4?09:21
uvosyou cant09:22
uvosthe bootloader is permanently locked09:22
roalyrSo how do I even flash it?09:22
uvoswe use a vunerability in the boot process to essentally boot a second bootloader09:22
uvosthats unlocked09:22
roalyrIn my case flashing mbm hangs and doesn't proceed.09:23
uvosplase provide the information above09:23
uvosplease insure the the allow-mbmloader-mbm.bin is free from defect09:23
uvosits md5sum should be 8875e9a9860522aa99568b15896fa07609:24
roalyrIt is as such.09:25
uvosplaase provide the information requested above09:26
roalyrWhich one? Please re-send the message.09:26
uvos[09:16] <uvos> as to why thats nessecary on some d4's no idea, might be old mbm version or a interaction with fastboot version09:26
uvos[09:18] <uvos> roalyr: if you come back and read the logs please fastboot --version as well as the mbm version (the nummber displayed on device under AP Fastboot Flash Mode in fastboot mode)09:26
roalyrFastboot (Xubuntu 20.10): 1:8.1.0+r23-809:27
roalyrAP: 0A.7709:28
uvosthats really old09:29
uvos(fastboot, mbm is fine)09:29
uvoscould you try with https://developer.android.com/studio/releases/platform-tools?09:29
roalyrI see, got it from standard repo.09:29
uvosi use 30.0 and this works fine09:30
uvosif the fastboot version is not it, then i dont know why some d4s react differently09:30
uvosin this case you have to use flash:raw09:30
uvosbut i dont reccomend this09:30
uvosas it skips some checks and you are flashing a bootloader09:31
uvoswith obvious bricking implications09:31
roalyrLet me try the new fastboot first.09:32
roalyrIt worked!09:33
uvosyay09:33
roalyrPhew. It would have been depressing to get a brick that fast.09:33
uvostmlind: ^^^^^ could you please add a note to kexecboot instructions that at least fastboot v30.0 is needed09:34
uvosclearly some old versions have issue with mbm09:34
roalyrYay, all good.09:36
roalyrBTW, that means I could also flash some more modern android-based OS too... Brings me nostalgic memories of custom ROMs.09:38
uvosthe maximum is android 7.0, mostly because no one cares you could run android 11 on the mainline kernel09:38
uvosor 12 even09:39
roalyrI'd stick for 10.09:39
uvoswell you would have to build it yourself09:39
uvosbut in theory it should work09:40
roalyrI guess.09:40
roalyrIt loads ML!09:45
uvosgreat09:52
roalyrwhat browser should I get?10:01
uvosfirefox-esr10:02
uvosand then set some evvars to allow thumb scrolling10:02
uvosand customize the ui a bit10:02
uvosworks really well10:02
roalyrIs there home folder?10:02
uvoshttp://uvos.xyz/maserati/firefox-demonstration.mp410:02
uvosroalyr: ?10:02
uvosmaemo leste is just debian10:02
uvosso yeah10:02
roalyrAs in for user files.10:02
uvosthere is /home/user10:02
parazydfwiw: https://leste.maemo.org/Tricks#Touchscreen_support_in_Firefox_.28firefox-esr.2910:05
parazydbtw. one caveat to setting Android useragent is that it blocks you from installing certain plugins10:06
roalyrThat's fine.10:09
roalyrHow is battery calibrated?10:09
roalyrAnd how is virtual keypad called?10:09
roalyrOh, figured out thaa it pops up when physical is not deployed.10:10
roalyrOkay, the most important question - how to disable auto-rotation to prevent graphics from dying?10:13
uvosgraphics should not die on rotation10:14
uvoson d410:14
uvoswhat do you mean "die"?10:14
roalyrA few rotation and X server (or whatever server) dies and device reboots.10:15
uvosthis can happen due to a bug in pvr when the virtual keyboard is open10:15
uvosotheriwse it never happens to me10:15
roalyrI see.10:15
roalyrBut I'd still switch the turning off.10:16
uvosyou can download oritation lock applet10:16
uvosand activate that10:16
uvos(name aproximate)10:16
uvosid also recommend the simple brightness widget10:16
uvosgo apt search for them10:16
roalyrAre maemo package mirrors down?10:24
uvosno10:25
uvosyou must apt update first10:25
roalyrOh, I think wifi settinhs didn't work out.10:25
roalyrHow is it enabled?10:35
uvosroalyr: how is what enabled?10:43
siceloLandscape only users are rare. I'm getting curious10:48
siceloroalyr: should be able to bring up the status menu by clicking the time display, then you'll see "Connect" or similar10:50
roalyrI am not seeing neither orientation nor brightness applets. Should be restarting, I guess?10:57
siceloOr restarting the status menu ... I don't use those applets, so I don't know what happens when you install them11:10
roalyrOkay, restarting enabled the notification area applets.11:46
roalyrBut what about droid 4 symbols on physical keyboard/11:47
uvoswhat about them11:48
uvosplease be more specific when asking questions11:48
roalyrWell, as far as I understand by defauly 'sym' key does not enable the access to the symbols11:49
uvosno symb is alt11:50
uvosvarious symbols ar available via ok+ whatever11:50
uvosotherwise you can use vkb11:50
roalyrthere is no alt key.11:51
uvossym==alt11:51
uvoscaps-lock==shift11:51
uvosshift==ctrl11:51
uvoson d4 hwkbd11:51
roalyrOh...11:51
uvosok == sym (sorta)11:52
uvosok+p is pipe for instance11:52
uvosthere are several ok+ for special chars11:52
roalyrWell, it seems like there is no straight way to access the symbols then11:53
uvos?11:53
roalyrOn hw keyboard11:53
uvos?11:54
uvosi just told you11:54
roalyrOk dkey does nothing.11:54
uvosvia ok+ several keys (just try it) you can acess everything11:54
uvosok+o is } for instance11:54
uvosand ok+p is |11:54
uvosand so on11:54
roalyrDoesn't work in my case.11:55
uvosrun as root11:55
uvosudevadm hwdb --update11:55
uvosudevadm trigger11:55
uvosand then hildon-desktop-rotate-touchscreen.sh as normal user11:56
roalyrThis did work;:}|11:57
uvosparazyd: ^^^^ this still happens11:58
roalyrAre the symbols such as plus, underscore, uestion mark mapped12:04
siceloThey work as marked. Alt + symbol, I think12:21
Wizzupmorning12:30
parazydBesides what is currently in leste-config, we could have an apt hook to run this12:49
uvosparazyd: the problem is not apt12:56
uvosparazyd: its that it dosent run on first boot12:56
uvosudev should update the hwdb on first boot12:56
uvosbut apearntly it dosent12:56
uvosmaybe this is caused by the timestamaps from jenkins12:56
uvosvrs the d4 which will have its time a 1. jan 1970 innitally on first boot12:57
parazydCan it run in the image build or it needs to be on-device?12:57
uvosno12:57
uvosit must be on device12:57
parazydok12:57
uvosudev creates the hwdb with info from the kernel12:57
uvosrunning kernel that is12:57
uvosparazyd: could we use fake-hwclock to ensure that the system time is after the build time of the image12:58
uvos(if that is the problem at all)12:58
uvoson first boot12:58
parazydWe could, but I had plans to finish reproducible image builds, so this'd break it12:59
uvoshmm yeah12:59
uvosmaybe we should just run it by hand on first boot12:59
parazydWe already have an initscript that runs on first boot12:59
uvosto force udev to update12:59
uvosregardless of time12:59
parazydzzz something12:59
parazydAlso hildon-base13:00
kshatriyaroalyr: i added a keyboard layout graphic to the wiki https://leste.maemo.org/Motorola_Droid_4#Notes13:18
Wizzupcool13:19
kshatriyaneed to add ` sorry, fixing13:20
Wizzupkshatriya: did you see the ones I autogenerated?13:22
kshatriyai based it off your post https://github.com/maemo-leste/bugtracker/issues/34713:22
Wizzuphttps://github.com/maemo-leste/bugtracker/issues/347#issuecomment-64012735313:22
Wizzupok13:22
Wizzupool13:22
Wizzupcool!13:22
kshatriyai dont understand the * you have on modifier-a13:22
kshatriyafor soem reason the 'serial cable' entry is to the right of the keyboard picture13:26
parazydWizzup: Do you want me to implement a shared lib for generating torrc from gconf so it's also usable in icd?13:27
parazydIt's be part of the applet repo/package13:28
WizzupI don't know, I'd say no for now since I don't know if I need it13:28
uvoskshatriya: loose the left13:28
uvosi think13:28
Wizzuphow about a binary?13:28
parazydThere's a bit more generic code there too, so I could make a nice lib13:28
parazydWizzup: Could do that as well13:28
parazydThen you can actually: gentorrc | tor -f -13:29
parazydGood idea13:29
uvos[[File:Maemo-leste-droid4-kbd-2021-07.png|center|620px|thumb|maemo-leste droid4 keyboard]]13:29
uvoskshatriya ^^^13:29
kshatriyathanks, fixed13:32
uvosaemo-leste droid4 keyboard13:32
uvosis missing a m13:32
kshatriyafixed13:32
parazydIt could also be a shell script13:32
uvos{{center|maemo-leste droid4 keyboard}}13:32
uvosin place of just |maemo-leste droid4 keyboard13:32
uvosis supperior i thin13:32
uvosk13:32
uvosbut is ok as is13:32
kshatriya[[File:Maemo-leste-droid4-kbd-2021-07.png{{center|maemo-leste droid4 keyboard}}]]  doesn't show me a picture in preview13:33
uvos[[File:Maemo-leste-droid4-kbd-2021-07.png|center|620px|thumb|{{center|maemo-leste droid4 keyboard}}]]13:33
kshatriyathat puts a link below pic which says "Template:Center"13:34
uvoshmm13:34
uvosok13:34
uvosnvm then13:34
uvosits not important13:34
kshatriyai just noticed ~ tilde is also on OK+z13:35
kshatriyaunless that's just on mine13:35
uvosno13:35
uvosthats how it is13:36
uvosno idea why13:36
uvosprobubly a mistake13:36
uvosdont document it13:36
kshatriyaok13:36
uvosok+z == XK_Next13:44
uvoswierd13:44
uvosWizzup: ^^^13:44
kshatriyathis shows off h265 HEVC playback on droid4 nicely (8MB) Axel Borg on his flying chair - doubt he'll mind sharing the video http://0x0.st/-Wta.mkv14:04
roalyrHow to properly calibrate the battery?14:23
kshatriyause device until battery is low, then before it shuts off, charge it to full without a reboot14:24
kshatriyadid you see the keyboard layout graphic i made roalyr ?14:25
kshatriyathe battery status monitor could have an uncalibrated mode of operation - where it alarms on low voltage and prompts user to charge to full14:26
kshatriyabut someone would need to code that14:26
roalyrSorry, couldn't keep up, on a lunch in between work now, gotta run soon again. I've explored the Ok+ combos, alas couodn't find the +, ?, * symbols.14:28
kshatriyaplus is shift =14:32
kshatriyaasterisk is shift 814:32
kshatriyaquestion mark is shift /14:32
u0_a482By the way, is hardware acceleration possible? Tried to run a few applications and it outputted that omapdrm_dri is not found. I presume that's the case for a missing mesa library?15:08
u0_a482Or is there more to it?15:08
Wizzuphardware accel for what?15:09
Wizzupopengl?15:09
u0_a482Yes.15:09
Wizzupopengl|es accel is there and working15:09
Wizzupopengl is not supported by the driver but you can look at stuff like gl4es15:09
Wizzup(without opengl|es, hildon-desktop would -not- be smooth)15:09
parazydYeah we have also gl4es  but didn't experiment a lot15:10
u0_a482So I just ignore that error in terminal?15:10
Wizzupu0_a482: no, you might need to do some more work, like ld preload gl4es15:10
Wizzupbrb15:10
u0_a482Okay. Will look into it.15:10
roalyrLooks like working things out will get me to learn linux much more deeply.15:11
parazydhttps://github.com/maemo-leste-upstream-forks/gl4es15:14
parazydThere might be some upstream commits missing15:14
buZzis gl4es apt-getable now?15:31
parazydYeah, but risky afaik15:32
buZzok, i'll refrain for now then :)15:32
parazydI mean, you can always delete kt15:32
parazydI'd be good if someone tries it out though15:32
kshatriyai think sdl will default to opengl if available, not using the -es path15:33
kshatriyaoh i'm installing and deinstalling it all the time15:33
buZzah hmhm15:33
buZzwould it force hildon to work through gl4es then?15:33
Wizzupno15:33
kshatriyano15:33
Wizzupgl4es is LD_PRELOAD only15:33
buZzthen i guess fine :)15:33
buZzahh15:33
Wizzupso it really shouldn't affect system wise15:33
Wizzupwide15:33
uvosgl4es is system wide15:34
Wizzupuvos: wait what15:34
Wizzupdo we install it system wide?15:34
kshatriyadoes it still symlink /usr/lib/arm-linux-gnueabihf/libGL.so to /usr/lib/gl4es/libGL.so.115:34
uvosWizzup: yes15:34
Wizzuphm15:34
uvosthats why its risky15:35
uvosi breaks things15:35
uvosbecause apps that ignore llvmpipe and use es15:35
uvosuse gl4es now15:35
parazydYeah the point was to have gl4es to be a replacement15:35
WizzupI guess it makes some sense15:35
Wizzupok15:35
parazydBut we need to use it and experiment15:35
uvoswe should have glvnd15:35
parazydIt was just a oneshot15:35
parazyduvos: We have it15:35
uvosand switch to gl4es on demand15:35
uvosyeah but gl4es dosent use glvnd atm15:36
uvosso you cant switch it in or out15:36
parazydmhm15:36
parazydIt needs some love15:36
parazydFor Leste we have the newest mesa and glvnd15:37
uvosright15:38
parazydThat's not yet in buster15:38
uvosbut glvnd is useless15:38
uvosbecause we dont have pvr or gl4es as glvnd backend15:38
kshatriyawould it make sense to ask the SDL guys for an environment variable to switch preference of backend GL/GL-es ?15:38
parazydYeah we need a mechanism for this15:38
uvossdl isent really involved in that15:39
parazydGentoo has eselect with is something like what we want15:39
uvosits the app that asks sdl for gl or gles15:39
parazyd(Basically a symlink manager)15:39
kshatriyathx uvos i was thinking wrong15:40
lelclort81 opened an issue: https://github.com/maemo-leste/bugtracker/issues/562 (Droid4 5.11 Fullscreen rendering errors working/nonworking tests.)16:34
roalyrHow to disable the desktop manager and stay in console?18:43
uvoschoose the other option in the bootloader18:44
roalyrThat one just disables the xserver?18:46
uvoson bionic yes, on d4 it boots single user mode18:46
uvosbut you can switch runlevel from there18:47
roalyrThanks.18:52
roalyrHow many cycles does it take to calibrate the battery?18:53
kshatriyathis TI driver isn't even reporting GL_VERSION .  This breaks mpv's opengl-es detection.18:58
kshatriyathere is some talk about newer driver for droid4 maybe?  with fixes?19:00
kshatriyai do get EGL_VERSION = 1.4 build 1.9@225334719:31
kshatriya/mesa-demos-8.4.0/src/egl/opengl has some tests19:32
Wizzupuvos: hm I also have a win7 img around here, well, going to make a xp install anyway23:44
Wizzupuvos: internet mentions this https://gsmserver.com/sigmakey/ - looks interesting23:59
Wizzup(wrt droid 3 unlock)23:59

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