libera/#maemo-leste/ Wednesday, 2021-09-08

lelIMbackK opened a pull request: https://github.com/maemo-leste/leste-config/pull/25 (add quirks-mapphone to mapphone mce config)12:11
Wizzupwhat does this do?12:20
uvosdo the SCRN= thing with the display state12:23
uvosand kick ttyUSB3/4 to avoid the pm bug12:23
Wizzupaha12:23
uvosessentaly manage the mapphone modem wierdness12:24
Wizzupuvos: I see you build mce for -devel13:03
uvosyes13:04
Wizzupfor the quircks, we have other scripts in place that kick the modem, don't we?13:04
Wizzupwould we not need to remove those?13:04
uvosno13:04
uvoswas never merged13:04
Wizzupso just my devices have that?13:04
Wizzupbased on the dbus-scripts13:04
uvoshttps://github.com/maemo-leste/droid4-pm/pull/213:04
uvosthis was never merged13:04
Wizzuphm this is for touchscreen13:05
WizzupI meant the scripts to kick the modem13:05
WizzupI thought we had those with dbus-scripts13:05
uvosno its also modem13:05
uvos printf 'U1234AT+SCRN=1\r' > /dev/gsmtty113:05
uvosthis is what mce now dose13:05
uvosregarding head /dev/ttyUSBx that was never added or proposed anywhere afaik13:05
Wizzupok13:09
uvosdbus-scripts in general should be demoted to extras now btw13:09
lelIMbackK closed a pull request: https://github.com/maemo-leste/droid4-pm/pull/2 (Idle the ts while the display is off but the device is not locked)13:13
lelMerlijnWajer renamed a repository: https://github.com/maemo-leste/libicd-tor19:44
Wizzupuvos: tmlind: might be coincidence but I was waiting for quite some time for ofono to acknowledge the data connection was activated, and when I sent myself a sms it was activated as soon as the sms was received19:56
Wizzupuvos: I upgraded to the latest mce, overwrite the config file, and my display no longer blanks on double power key tab20:20
Wizzups/tab/tap/20:20
uvosbut it blanks otherwise?20:21
uvosie power menu option20:21
Wizzupno20:22
WizzupI see the power menu20:22
uvosok20:22
Wizzupbut the display never turns off20:22
uvosplease stop mce via the init script20:22
uvosand run "mce --verbose --verbose"20:22
uvosin a sudo su - env20:22
uvoswith DSIPLAY set to :020:23
Wizzupdid you change anything recently?20:23
WizzupI thought it was just the quircks thing20:23
uvosand give me the log of the startup as well as the power button press20:23
uvosnothing that should have any impact on this20:23
uvosi also added a new module to eventually replace ke-recv20:24
uvosbut its not loaded20:24
Wizzupke-recv has a lot of scripts, but nevermind that for now20:24
uvossure20:24
uvosim just goint to fix the stuff in ke-recv that dosent work (memory interface kbd slide needing gconf etc)20:25
uvosby implmenting that stuff in mce20:25
Wizzuphttps://wizzup.org/log.txt20:25
Wizzupke-recv as in sd card mounting, etc20:25
uvosno20:25
uvosnot that20:25
uvosjust the ke-recv deamon20:25
uvosnot all the other programs in the repo20:25
Wizzupk20:25
uvos(altho some of those need revisiting/ ellimination)20:25
Wizzupke-recv has some dbus interface that is used though, so that'll need care20:26
uvosthe memory interface yeah20:26
uvosalso usb20:26
uvossfos implmented those into mce, im just following here20:27
WizzupI will power off my droid until it can lock for now, I assume you can also test on your d4?20:27
uvosit works on mine which is wierd20:27
uvosanyhow let me read the log20:27
WizzupI don't see any errors there20:27
Wizzupis it your maemo d4, or your mixed one :)20:27
uvosmameo20:27
Wizzupthe only addition to 10-maemo.ini seems to be state-dbus20:28
uvosmce: Failed to load module: battery-upower; skipping <- thats wierd20:28
WizzupI just accepted the package maintainer version20:28
uvos(but would not cause this failure)20:28
uvosok the log dosent appear to show anything ammis20:31
uvosok the log dosent appear to show anything ammiss20:31
uvoslet me delete 90-user.ini and see if the default work20:31
Wizzupso what I did was apt upgrade, and said 'Y' to overriding the config with the maintainer config20:31
Wizzupmy 99-user.ini is only lm3532 configured lights20:31
uvosok yeah there is something ammis with lock-tklock20:35
uvosoh it missing20:41
uvoswtf20:41
uvosmce: Failed to load module: lock-tklock; skipping20:42
uvosor rather it dosent link20:42
uvoshmm20:42
uvoswe are missing a symbol: has_flicker_key20:45
uvosWizzup: have a n900 running?20:48
Wizzupnot next to me, but can in a few hours20:48
konai have one20:48
uvoskona: great20:48
konait's up to date according to apt update && apt upgrade20:48
uvoskona: ok 1 sec20:48
uvosthis path dosent exist right: /sys/devices/platform/gpio-switch/kb_lock/state20:49
uvoskona: please check, but it should not20:49
uvoskona: gpio-switch was renamed gpio_keys in mainline afaik20:49
konals: cannot access '/sys/devices/platform/gpio-switch/kb_lock/state': No such file or directory20:50
uvosthx20:50
konauser@devuan-n900:~$ find /sys -name gpio-keys20:51
kona/sys/bus/platform/drivers/gpio-keys20:51
uvosWizzup: ok its fixed20:54
uvoslet me rebuild20:54
Wizzupuvos: what was the problem?21:07
uvosi removed has_flicker_key in a different module becasue it gets set based on if /sys/devices/platform/gpio-switch/kb_lock/state exists (which is only the case on the n900 vendor kernel)21:09
uvosbut tklock has a nasty habbit of just externing global variables from random other modules21:09
Wizzupaha21:09
uvosso it wouldent link21:09
uvosinto mce when the module loaded21:09
uvoswe should have some automated testing that checks if all the modules load i think21:09
Wizzupis it not possible to get a link error at build time?21:10
uvosno because its extern to a symbol in a different module21:10
uvosand since we build the modules seperatly they dont get linked at compile time21:10
uvoswhich asks a interesting question apearantly systemui wants to know if has_flicker_key is true (it gets this via a dbus interface)21:17
uvosnot sure what the flicker key is21:17
uvosbut we have been sending systemui false regardless of if the key is present or not21:18
uvostklock dosent seam to change its behavior at all regardless of true or false here21:30
uvos(tklock in systemui that is)21:30
uvosWizzup: anyhow im building a mce version that restors the previous behavor now21:32
Wizzupdo you mean without linking problems?21:34
uvosyeah that and allways sends false (even on n900 where that is wrong)21:34
uvoshttps://github.com/maemo-leste/osso-systemui-tklock/blob/12d41017242b9c3ddcf1ba6b1dfb1e5dcc37bcf6/osso-systemui-tklock.c#L20921:39
uvosok dosent matter21:40
uvossystemui-tklock dosent care about the flicker_key in the slightest21:40
uvosand since the only thing lock-tklock dose with flicker_key is send it to systemui via SYSTEMUI_TKLOCK_OPEN_REQ21:40
uvosits totaly vestigial21:41
uvosthats half of lock-tklock in a nutshell :P21:41
Wizzupupgrading now21:51
Wizzupit's nice that the dsmeutil bug is fixed21:51
Wizzupuvos: why does mce no longer get restarted post upgrade?21:52
Wizzupthat's weird21:52
Wizzup(tklock works again)21:52
uvosWizzup:  i just upgraded from repo21:52
uvosand mce got restarted here21:52
uvosyou where running it in a shell as mce --verbose --verbose no?21:53
uvosthen ofc it wont get restarted21:53
uvossince its not under conroll of openrc21:53
Wizzupnah I rebooted the device21:54
WizzupI am sure it didn't restart because tklock didn't work until I restarted it via /etc/init.d/21:54
uvosdid apt complain about something?21:55
Wizzupno21:55
uvoswierd21:55
Wizzupyup21:55

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