| tanriol | Hi. I'm observing problems with roaming in Japan and don't quite understand whether to blame these on Sailfish, Xperia 10 III, local carriers or my home carrier. Are there any well-known problems expected with such a combination and/or well-known troubleshooting steps? | 02:20 |
|---|---|---|
| Renaud[m] | <tanriol> "Hi. I'm observing problems..." <- I did not use roaming but I had a lot of trouble using a prepaid sim card in Japan. It would often fail to connect with the error "denied". By disabling and reenabling the sim card in the settings I could get it to connect eventually. | 07:01 |
| tanriol | Thanks. The pattern I see is that after turning off flight mode it seems to connect (with VoLTE registration toggle still blinking), then after some half a minute it goes to "searching..." and stays in that state for a long time. | 07:50 |
| mia | Keto: hi, i’d like to request an OBS account | 12:00 |
| nephros_ | mal, piggz[m], (AffeNull[m]?) and anyone who knows about Wayland: Would you kindly check my code here? | 13:41 |
| nephros_ | https://codeberg.org/nephros/sailfish-sdl3-minidemo | 13:41 |
| nephros_ | I tried to condense it into as little code to read as I could. | 13:42 |
| piggz[m] | you have confused me with someone who knows about wayland :D | 14:20 |
| nephros_ | piggz[m]: :) ok sorry- didn't want to insinuate! | 14:58 |
| mia | nephros_: i’m not terribly familiar with wayland yet but i can take a look at it later. is there anything in particular you want me to pay attention? | 15:07 |
| mia | +to | 15:07 |
| nephros_ | mia: blatant incompetence in c++ maybe? | 15:36 |
| mia | nephros_: oh alright, so i’ll just check that it looks correct and see if i have any suggestions | 16:09 |
| nephros_ | mia: much appreciated | 16:11 |
| mia | nephros_: so creating and attaching the shm buffer should not be necessary. SDL should handle this already, and it wouldn’t get used for gl/vulkan surfaces anyway | 17:25 |
| mia | (line 125 in the .cpp) | 17:25 |
| nephros_ | mia: ah, nice to have that confirmed, thx! | 17:27 |
| mia | not sure if you care with this being a simple example but in general i think it’d be good practice to manage resources returned by e.g. SDL_Create* functions with a class so that you can benefit from RAII (i.e., call cleanup functions automatically on scope exit). if this were modern C, you could just use defer (there are simple ways to make this available with old gcc, just not sure HOW old) | 17:29 |
| nephros_ | mia: yeah, in the end i'd like it to be a tool to make porting/adapting games easy. | 17:31 |
| nephros_ | as in: clone game repo, copy two sailfish helper files, replace the creatwindow stuff and done. | 17:32 |
| nephros_ | heh. | 17:32 |
| mia | also this reminds me… i might start maintaining a meson package in Chum because i have zero good things to say about cmake :> | 17:32 |
| nephros_ | mia: well, all build systems suck. | 17:32 |
| nephros_ | at least cmake has decent docs, qmake otoh... | 17:33 |
| mia | depends on the use case. meson gets more things right than most | 17:33 |
| mia | cmake does not have decent docs, and to begin with it is not really a build system as much as it is a replacement for microsoft batch. stone age tech, literally does not even have a list type | 17:34 |
| nephros_ | what i like about meson, as a packager its quick and easy to see all the options | 17:34 |
| mia | the thing i like about meson as both a dev and a packager is that it is very clear about what the correct way to use it looks like | 17:35 |
| mia | being all declarative really helps. cmake leaves everything to the user and the results tend to be disastrous | 17:35 |
| mia | qt’s lack of docs for the cmake macros also doesn’t help… meson doesn’t support some things yet, like static plugins or shader resources, so a while ago i ported some of that to meson targets (not proper support in the qt module yet). close to 90k lines of macro code(!!!), most of it dealing with cmake shortcomings, and i was able to do the same thing in meson with just over a hundred lines | 17:40 |
| mia | utter madness that this is what everyone in the industry decided to force on each other. i would have started questioning my life choices 500 lines in, but somehow there are hundreds of thousands 😵 | 17:42 |
| nephros_ | mia: right. added a meson.build file to the project above ;) | 18:08 |
| poetaster | cmake ate my lunch. then it killed the ssd. | 18:33 |
| nephros_ | one annoying thing about cmake is that it cannot cope with the colons in OBS projects. | 18:35 |
| nephros_ | so you have to move or symlink your files around. | 18:35 |
| nephros_ | poetaster: sounds like building Android. | 18:35 |
| poetaster | actually, smaller project and presumably the SSD had had the crap beat out of it. | 18:37 |
| poetaster | nephros_, there is no way to escape the names? | 18:38 |
| poetaster | nephros_, what are you building? | 18:39 |
| mia | there are MANY build systems that still stuff paths into strings with separators instead of… just having list types. maven also does this, and some of google’s build systems as well (e.g. protobuf compiler, which also has no way to escape anything) | 18:52 |
| poetaster | most build systems are inferior to bash. | 19:02 |
| poetaster | thankfully, most of my projects are small enough that I can even use cmake, even if it's icky. | 19:03 |
| nephros_ | poetaster: what am I building? I move from thing to thing, currently testing SDL. | 19:06 |
| nephros_ | Got a bit stuck on my Nephrozilla project. | 19:06 |
| nephros_ | Though WPE WebKit is really cool in a way. | 19:07 |
| poetaster | nephros_, ok, so tool building. | 19:07 |
| poetaster | I've lost trackl. What's wpe webkit? | 19:07 |
| nephros_ | You can render a web page and stream the output through gstreamer ;P | 19:07 |
| nephros_ | poetaster: Safari's web engine, for embedded devices. | 19:08 |
| poetaster | oh. that is so strange. Isn't Safari like the LEAST capable web browser? | 19:08 |
| nephros_ | it it? | 19:08 |
| poetaster | It lacks stuff that moz does, like access to serial ports and is even behind moz in some basics (CSS3 like foo). | 19:10 |
| nephros_ | AFAICS it has support for manifesr v2 and v3 extensions, you can write plugins for its render process, it has its own content filter, and supports user css and user script. | 19:10 |
| poetaster | I dunno. I think it makes sense to use chrome and just rip out the telemetry. | 19:10 |
| poetaster | Ok, I actually only use chrome for one page, but in THEORY.... | 19:12 |
| poetaster | nephros_, but you have it running on sfos, so I guess I should just try it? | 19:14 |
| nephros_ | it is running but very feature incomplete. And you need a custom Lipstick compositor build (from that PR). | 19:15 |
| poetaster | ah, living on the edge. | 19:16 |
| nephros_ | oh yea. | 19:16 |
| mia | i’d just use waypipe at that point | 19:16 |
| poetaster | I've just put away 10 hours of hardware hacking. I'm too tired to contemplate the compositor. | 19:17 |
| nephros_ | been running that xdg_shell enabled lipstick for a couple of weeks, works just fine. | 19:17 |
| poetaster | mia, what is waypipe? | 19:17 |
| nephros_ | you can find a OBS build recipy somewhere in my repos. | 19:17 |
| nephros_ | waypipe is x11 forwarding for wayland. | 19:18 |
| mia | it can do wayland forwarding over SSH for example, and it can be fast enough for video games | 19:18 |
| nephros_ | run wl client and wl server on separate machines, tunnel through ssh | 19:18 |
| mia | pretty good stuff | 19:18 |
| nephros_ | it's in Chum. | 19:18 |
| poetaster | ah. I used to x forward mozzila running on an irix in canada when I worked in sweden. | 19:19 |
| nephros_ | hehe i bet it sucked big time | 19:19 |
| poetaster | very slow even on the dedicated black (650mbits) I had at the office at the time. | 19:19 |
| mia | yesterday i used it for freecad running on my server because that was more responsive than working on my aging laptop | 19:19 |
| poetaster | heh. I was recently forced to upgrade though in that position for ages. | 19:20 |
| nephros_ | I once displayed my laptop's KDE on the SFOS phone through waypipe. | 19:21 |
| nephros_ | not that you could use it, but it worked... | 19:21 |
| poetaster | sort of like using mozilla transatlantic in 1999. | 19:22 |
| poetaster | I have to admit, I'm just happy to have a i9-12900KF to finally have something like reasonable compute :) | 19:23 |
| poetaster | what am I talking about. My favourite cpu (dual core) runs at 276mHz. | 19:25 |
| mia | i haven’t been home in over a year and i miss my desktop a bit | 19:26 |
| poetaster | mia, I was just so used to the keyboard on my thinkpad that I hated to switch. | 19:26 |
| mia | well i designed and built my own keyboard so it’s kinda sad it’s not really practical right now | 19:27 |
| mia | but also using a 2014 laptop has radicalized me a bit about how much lag i’m willing to tolerate. if the foot terminal can open in less than a frame on this thing, what is everything else’s excuse? i still use a lot of KDE stuff because it is just that good, but it puts the state of things in a rather sobering perspective. | 19:30 |
| mia | having the same issue with sailfish os too. everything is so incredibly slow | 19:31 |
| poetaster | Until two weeks ago I was using W541 or an X220. So about that old. | 19:31 |
| poetaster | hmmm. which phone? | 19:32 |
| mia | xperia 10 II | 19:34 |
| mia | part of the problem is also that the default animations are way too slow. should see if i can patch the animations to use different curves that work with faster transitions without looking too juddery | 19:36 |
| mia | app startup is a concern though, especially with everything getting OOM killed all the time thanks to appsupport and bad GPU drivers | 19:38 |
| poetaster | ok, i'm spoiled with a good deal faster phone (rephone/volla22). It's snappy. | 20:05 |
| poetaster | but I don't use appsupport and having 6GB ram certainly helps. | 20:06 |
| poetaster | mia, the volla ports did make a a real performance leap from 4.(4,5,x) to 5. piggz[m] managed to get almost everything snappier. | 20:10 |
| mia | that’s good to hear | 20:12 |
| poetaster | I'm off to bed. school night. ahoi! | 20:16 |
| nephros_ | mia: about animation speed: there is already at least two patchmanager patches to configure some of those. | 20:25 |
| mia | yeah, i wrote one of them in 2019 | 20:26 |
| mia | that no longer works of course | 20:27 |
| FireFly | I used to use X11 forwarding sometimes on the N900 from my desktop machine, back around 2010, heh | 20:53 |
| FireFly | mia: my main issue with SFOS on the 10ii (which is my everday phone too) is memory pressure tbh.. quite a lot of apps getting OOM-killed | 20:59 |
| mia | which is crazy to me because my laptop had the same amount of RAM until last year and it wasn’t having such problems at all | 21:05 |
| mia | running a KDE desktop | 21:05 |
| FireFly | yeah, agreed | 21:06 |
| mia | wait a MINUTE why is it using swap on zram instead of zswap | 21:08 |
| mia | no wonder this isn’t running well | 21:08 |
| mia | jesus | 21:09 |
| nephros_ | does the kernel *have* zswap? | 21:13 |
| mia | …don’t tell me it dosen’t | 21:13 |
| nephros_ | zcat /proc/config.gz will tell | 21:13 |
| mia | apparently it doesn’t | 21:15 |
| mia | goddammit jolla | 21:15 |
| mia | this is just not enough RAM for that configuration, and it’s not enough to run without allowing swap to spill to disk | 21:16 |
| nephros_ | https://forum.sailfishos.org/t/12697 | 21:27 |
| mia | i mean the problem here is that memory pressure is that high to begin with. the phone absolutely needs disk swap to be usable, if only to allow zswap (if it had that) to evict LRU pages somewhere | 21:37 |
| nephros_ | you *can* add a regular swap file. not ideal but may help. | 21:38 |
| mia | then i’d also disable zswap because its architecture causes problems with that | 21:38 |
| mia | so… not ideal | 21:38 |
| mia | should i be able to just build zswap as a module | 21:39 |
| mia | err i’d disable zram. | 21:41 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!