libera/#maemo-leste/ Thursday, 2024-02-22

duuudeWizzup: the battery remains "charging" when it is full00:58
Wizzuphm?01:37
duuudeWizzup: hm?03:30
duuudeleste also reconnects to wifi on its own, whereas I had disconnected it03:30
tmlindfreemangordon: hmm yeah the wakeirq should be for each port06:06
tmlindanyways it should be one of the pins from padconftodts | grep usbb1_ulpitll | grep -v gpio_06:08
tmlindi think one of the pins should be enough..06:09
tmlindfreemangordon: maybe omap-usb-host.c should have an instance per port, the ti-sysc might be enough for a generic parent driver06:12
tmlindfreemangordon: so for example dts wakeirq for pad 0x4a1000d0 usbb1_ulpitll_dat3.usbb1_mm_rxrcv is at <&omap4_pmx_core 0x90>, where 0x90 is 0xd0 - 0x40 padconf start offset06:19
freemangordontmlind: ok, but I don;t understand why it does not wokr now, given that USB supports remote wake-up by design07:25
freemangordonand OHCI in dts is set as  remote-wakeup-connected;07:26
freemangordonso, my understanding is that modem is connected to ohci using 4 pin configuration07:27
freemangordonfrom the TRM:07:28
freemangordonThe FSUSB host controller interface asserts wakeup from suspend when the wake-up conditions occur (such as remote signaling on port, device connect/disconnect) and the FSUSB host controller is in idle mode.07:29
freemangordonhmm, lemme check something07:32
freemangordontmlind: what is https://elixir.bootlin.com/linux/latest/source/drivers/bus/ti-sysc.c#L2936 ?08:00
freemangordonand why is it not used?08:03
freemangordontmlind: I think the requirements in 23.13.4.2.2 IDLE Protocol are not fulfilled, I am not able to find who sets HCOCPSYS IDLE_MODE bits08:22
freemangordonand there are no ti,sysc entries in DTS for the ports, if that's even possibel08:23
arno11duuude: you should check your settings in Internet connections: 'connect automatically' and 'Search interval'10:49
arno11and for the battery, no worries, just a bug in the applet. charging is ok10:51
freemangordontmlind: wait, I thing we're approaching that wrong14:52
freemangordon*thin14:52
freemangordonthink14:52
freemangordonit is the modem itself that needs autosuspend disabled14:53
freemangordonnot ohci or whatever14:53
diejuseI'm testing a KDE application, the Kate text editor specifically. In kde applications some submenus are displayed and seen correctly and others are not. That doesn't happen if I open the same application in another environment other than Maemo Leste. Any solution?16:48
gnarfacesounds like a graphics driver issue16:49
gnarfacei don't really know though, stick around someone might16:49
gnarfacemake sure to mention your phone model16:49
gnarface(it's probably specific to that one phone)16:50
diejuseit is not a phone model problem, for sure16:51
diejuseyou can try it installing kate, for example16:51
gnarfaceyou're seeing it on other phone models too?16:52
gnarfacemy theory was that it's specific to the graphics driver on your particular phone, not the phone hardware itself, but i don't actually know, it was just a guess16:52
diejuseYeah. Furthermore, if I open the same application on another desktop other than Hildon, there is no such problem.16:53
diejuseAlso, the submenus open correctly in Maemo if I open the app with Xephyr.16:57
gnarfacehmm, strange16:59
gnarfacemaybe it's a problem with the xorg build16:59
gnarfaceit's using xorg, not wayland, right?16:59
diejuseTo identify the issue, it's best for you to test it yourself to see if you encounter the same problem on your native Maemo. I'm confident that you will experience the same issue, and it's independent of the phone model.17:04
Wizzupit might make sense to specify exactly what the problem is that you are seeing17:05
freemangordonI don;t think we support sub-menus17:05
diejuseI open 'kate' -> I click on 'tools' (for example) in the menu -> it expands correctly -> I click on another submenu within 'tools' -> nothing is displayed.17:07
diejuseBut if I open 'kate' within Xephyr or in another desktop environment that is not Hildon, everything works fine17:09
Wizzupyes, submenus are not supported17:09
WizzupI think diejuse is saying 'works fine' means it's the regular qt menu render17:09
Wizzupnot that maemo does submenus17:10
diejuseOh, I didn't know it didn't support "submenus". Do you not use applications that use submenus on your phones with Maemo (Nokia N900, Droid4)?17:11
freemangordonnative applications have different UI than desktop ones17:12
diejuseI understand. But I imagine that you will use other applications that are not native. It's annoying not being able to access the submenus.17:14
diejuseThe workaround I have found is to open them through Xephyr.17:15
diejuseSorry if my English is not understood many times.17:16
Wizzupyou can disable the qt platform plugin in the env var and it will work like desktop17:19
diejuseQT_QPA_PLATFORM= ?17:22
freemangordonQT_QPA_PLATFORM=xcb17:23
freemangordonWizzup: right?17:23
gnarfacediejuse: sorry, i didn't realize any of this17:24
diejuseWith QT_QPA_PLATFORM=xcb the submenus are still not shown.17:29
freemangordontry windows or some other17:29
diejuseOk, I'll try combinations.17:33
Wizzupyou can just unset it, but you also need to stop the theme17:39
Wizzupstop as in, also remove it form env17:39
diejuseI think doing what you say still doesn't work. Try it if you have time.17:42
Wizzup$ env|grep QT17:46
WizzupQT_STYLE_OVERRIDE=maemo517:46
WizzupQT_QPA_PLATFORM=maemo17:46
Wizzupunset QT_STYLE_OVERRIDE17:46
Wizzupunset QT_QPA_PLATFORM17:46
Wizzuprun your program17:46
diejuseYes, I had already done it and I just did it again. Kate's submenus are still not showing17:49
diejuseI will show it shortly in a video17:50
diejusehttps://drive.google.com/file/d/1cbnk3Yp3wprEFGATDNzgTE0Jcpeutoaa/view?usp=sharing17:53
gnarfacewould these variables not need to be set in the environment before the window server starts?17:54
siceloduuude: arno11: would you like to test a patch for the 'charging-when-full' problem? https://paste.debian.net/1308252/  ... let me know if it works. my working N900 has a broken USB port, else I'd test for myself. others (Wizzup, etc. can also review). i can submit proper MR if it does work17:55
diejusegnarface No, it is not necessary.17:57
siceloduuude: arno11: the patch is against https://github.com/maemo-leste-upstream-forks/upower/  ... not upstream upower :-)18:04
sicelocheckout the maemo/chimaera branch18:07
arno11sicelo: ok i can try during the week-end18:52
sicelosure. as far as i understand it, we have this problem on N900 because 'full' status is fully under the control of the fuel gauage, and has very specific requirements that are difficult to meet with our present consumption pattern. i don't know if other devices are affected18:59
arno11is it working on D4 btw ?19:01
siceloi think it does (because i seem to recall seeing the 'charge full. disconnect charger' message). of course d4 always has the green LED shining during charge, so you can't use that to tell19:03
arno11ok19:03
sicelomaybe i'll build this soon and share the deb ... now i'm itching to know if it solves the problem or not (naturally, i think it does)19:06
arno11ok (currently charging N900 + download and build upower)19:14
sicelosure. you may want to kill upower afterwards so you're sure it's really running the new one19:15
arno11ok19:18
arno11sicelo: installing dependencies and build19:31
arno11*building19:36
arno11sicelo: what is the clean way to kill upower btw ?19:37
sicelojust pkill -f upowerd should be fine. it'll autostart19:40
arno11ah ok cool19:41
arno11(still installing dependencies, quite a lot)19:42
arno11building now19:43
arno11(battery @89% :P )19:44
sicelooh lucky day, haha. you'll soon be at 100%19:46
siceloor we might even have to set the trigger to slightly less ... i think i saw somewhere they do around 96-97%19:46
arno11sicelo: installing package(s)20:06
arno11arhg..killing upower crashed the device20:07
arno11booting20:08
siceloah, sorry :P20:14
arno11boot ok, let's go to 100%20:15
arno11sicelo: got 'fully charged @96-97% :)20:47
siceloreally? green LED?20:49
arno11no green led, i'm waiting a bit20:50
sicelowhat says fully charged?20:50
arno11the battery applet20:50
arno11now i'm @100%20:51
arno111529/1529 (polarcell)20:51
sicelogreen LED?20:53
sicelobtw charging full green led only appears when screen is off, iirc20:53
arno11still no green led and fully charged message disappeard @1528/1529 lol20:54
arno11for green led, yes i know20:54
arno11still the orange one20:54
sicelo cat /sys/class/power_supply/bq27200-0/uevent20:54
arno11time to full now=0 capacity level full20:57
siceloi'm interested in capacity20:59
arno11capacity=10020:59
sicelocan you ssh into it, then turn off display.21:00
siceloshow output of `upower -d` afterwards21:00
arno11ok21:01
arno11battery21:02
arno11    present:             yes21:02
arno11    state:               discharging21:02
arno11    warning-level:       none21:02
arno11    energy:              5.37426 Wh21:02
arno11    energy-full:         6.14207 Wh21:02
arno11    energy-rate:         1.42496 W21:02
arno11    time to empty:       3.8 hours21:02
arno11    percentage:          87.4991%21:02
arno11and 'calibration required' in uvent21:03
sicelosuper weird stuff going on there :P21:04
arno11yes21:04
sicelomind showing the full output, in a pastebin?21:04
siceloN900 has many 'battery' devices21:04
sicelomaybe the confusion comes from there21:04
arno11ah maybe21:04
arno11sorry i can't continue the troubleshooting now :(21:06
sicelook. no rush :-)21:06
arno11ttyl21:07

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