-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not always scale at startup #922
Comments
Well i'm out of my depth on both Wayland and systemd. I would have guessed that luakit would be |
The really strange thing is that it does scale properly much of the time. Today, I've launched luakit numerous times and it always scaled properly. Last week, it was a bit more variable. This is the strange thing and why I suspected a delay would help. I finally was able to read through the link you sent. I may have gotten the gist of it, but I think what I am doing is a bit different to sway-wayland. To answer your questions: Luakit is launched via our php UI from a remote browser or frmo a running service after everything else is up. There are no 'login' users other than root. That is why we are using user 'http' for both weston and luakit. We may want to adjust from this but it is how we are running xorg and we are duplicating it for weston. When we call the luakit.service file, weston is not up, or should not be, and the intent is that the 'After=weston.service' just commands systemd to start weston first before it tries to start luakit. Otherwise there is nowhere to display it. I have tried playing with the sleep times and it does not seem to have any effect I added the 'sleep 1s' and it started working then I deleted it and it worked then failed again. It does not do it all the time. The simple systemd service I wrote to launch weston when this luakit service is called is attached in case that may be helpful. My weston.service is a bit screwy as weston is designed to be launched as by a (logged in) user. Since we don't have one except root, I had to set it up this way. I have to first launch weston then chown its PID and pipe to http:http so that luakit can also be launched and run as http in weston and displayed on the local screen. Maybe a bit convoluted, but it was how I was able to make it work. Any suggestions appreciated.
|
Hi all, I have a similar (same?) issue. The difference is that I use Arch on x86, and start luakit as a regular desktop app.
Often I see that zoom level is just not applied when opening a new page. It does not seem to matter if I open a website in a new tab or in the same tab. Even if I open the same site in the same tab, zoom level is still reset to 100. At the same time it always properly applied after I reload the page. Upd: the default zoom setting is also often not respected when following links (that is, there seems to be no difference vs opening a page via :o). It can be really weird, i.e.:
Environment:
|
One more observation on my setup, that might be useful. When following a link (and the issue reproduces), the previous page is updated one last time with zoom level 100. This happens immediately before opening a new page. |
I still get this on occasion. Usually a restart of luakit fixes it. It is strange that it does not seem to read the config at startup every time or if it does, it just ignores the scaling but not anything else. It always goes to the |
Well, I can't make this manifest under X, so i'm very much spitballing. (I believe that) there can be a race condition with settings in tab creation (which may cause #965).
Even if this patch alleviates the problem, it may bot be the best solution. |
I will try this patch. I still see this under X11 and Weston. It is not all the time. But I saw it 2x yesterday and probably 4x it started fine. I've never seen it re-scale, but I never wait for it. If it comes up full scale (100), I cannot access all the screen picks, so I have to restart it. |
Just built and tried it. It does not appear that this patch causes luakit to do anything differently. I still get the 100% scaling periodically even though I have the scale set to 50. If it does start at 100, if I shut it down and restart it, it usually fixes itself. |
OK. Thanks for trying. It was a bit of a long shot. I had been under the impression that this only happened under Weston, As an aside, i'm pretty sure it was not happening on the rpi until i upgraded a bunch of things (Raspbian Stretch -> Debian Sid) so that i could build the current Complicating things slightly for me are presumably unrelated and idiosyncratic dysfunctions on my rpi install,
https://google.com and https://en.wikipedia.org load fine and allow me to test the zoom_level. Based on the play i've had, I see the following: When this issue doesn't manifest, setting the zoom_level with When i see this issue manifest, Creating new tabs seems to maintain whichever state (zoom_level correct or incorrect) luakit started in. Contrary to the original post, i have seen this is issue manifest on two successive startups. My observations that neither loading new tabs nor navigating/reloading within a tab |
I'll need some hand holding to actually check these things as I do not know how or where you are going to check them. My screen is a 3.5" spi connected screen. I can add a mouse and a keyboard if needed to troubleshoot, but will need pretty specific instructions. |
Ok.. With the keyboard connected, you should also be able to test loading new tabs ( If it's more convenient, you may be able to ssh to the rpi from a keyboard and X11 (or maybe Weston) enabled machine and launch luakit from the command line, which is what i'm doing. |
I had a few minutes today and can confirm that when it starts at a the zoom level from the userconf.lua that the 'zoom_level' is greyed out. When I change the zoom by |
I just got it to start at 100%. From this state, when I type |
Current Behavior:
Intermittent problem. Sometimes when luakit is launched, it does not appear to read the scaling setting. Restarting the browser will cause it to read and scale appropriately. It may be related to the fact that weston is started by the service file before luakit (After and Wants in the systemd service file). If I start weston and ensure it is runing and 'up'. luakit appears to scale appropriately at start, but I am not 100% convinced of this as the scaling issue is intermittent. I cannot figure a set of constraints to make it happen every time.
Desired Behavior:
Scale appropriately each launch.
How can we reproduce it (step by step):
I use a scaling less than 100%. This does not happen every time and if started once and the scale is 100% and restarted, it scales appropriately, I have tried adding a delay after weston starts in the service file, but this did not seem to make any change in behavior. Most regularly, but not always, if I reboot the RPi it will display at 100% scale the first time but when restarted it will scale appropriately as in the userconf file.
Environment:
RPi 3B+ under Weston
Linux Distribution & Version:
Arch Arm AArch64 Kernel 5.10.27
Output of
luakit --version
:.config/luakit/userconf.lua
I launch it with a service file local-browser-w.service:
Note about webkit issues:
If you're reporting a rendering issue, please test it with the gnome
browser ephiphany as well. If the issue occurs there too, we're very
likely not able to help. These issues should be reported to webkit:
https://bugs.webkit.org
The text was updated successfully, but these errors were encountered: