# Anki zooms out after awaking laptop from sleep

**URL:** <https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547>\
**Category:** Help\
**Created:** [January 18, 2025, 3:02pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547 "2025-01-18T15:02:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 18, 2025, 3:02pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/1 "2025-01-18T15:02:08Z")

</div>

If I close the lid of my laptop when Anki is open, I find that the UI is sometimes zoomed out when I open the lid back. It is more likely to occur if I awake it after a longer period. Anki is still usable in this state, only the UI is small. To fix the issue, I have to restart Anki.

 ![Screenshot](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/2/a/2a4c7fc4873a9139d68b688755eab24e629b30ab.png)  
 ![Screenshot](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/d/2/d2fa82925834d5689e78485eb3db00096e6d486c.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/f/c/fcfcc9acff68487cfbdff5304a6c2ef6b1b36925.png)

This issue is reproduced on both Anki 24.11 and Anki 25.01 beta. I tried different video drivers. The issue happens with Direct3D, OpenGL and Vulkan. It doesn’t happen with Software, but I noticed some performance regression while using Software.

Platform: Windows-11-10.0.26100-SP0

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [January 18, 2025, 3:30pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/2 "2025-01-18T15:30:53Z")

</div>

I think just resizing the window is enough to solve it, at least for me.

On debian linux I can reproduce something like that very easily like this:

1. Open anki.
2. Press Ctrl+Shift+P to switch profile.
3. Choose a profile and press _open_.  
Result:  
 ![anki](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/4/6/463933a6a6773d5682abd3d98b940d484792e0c2.png)

**Edit:** If I use _software_ instead of _opengl_ I get the same behavior, except that the black part of the window gets transparent (so I can see the windows underneath anki).

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 18, 2025, 3:57pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/3 "2025-01-18T15:57:17Z")

</div>

Quite interesting. Switching profiles don’t reproduce the issue on my computer.  
Also, I just discovered that pressing `Ctrl + Shift + P` or `Ctrl + Shift + I` doesn’t do anything on my computer. Maybe a 25.01 bug?

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [January 18, 2025, 4:07pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/4 "2025-01-18T16:07:49Z")

</div>

> [@vaibhav](#):
>
> Quite interesting. Switching profiles don’t reproduce the issue on my computer.

If I do it in a vm (debian sid) instead of debian oldstable then this issue doesn’t appear for me either. Here, the window will just resize to what I showed in the picture above, so that the window has the size of the displayed square without the black parts of it. I hope this explaination makes sense.

> [@vaibhav](#):
>
> Also, I just discovered that pressing `Ctrl + Shift + P` or `Ctrl + Shift + I` doesn’t do anything on my computer. Maybe a 25.01 bug?

It works perfectly fine on my end (debian sid).

1. If you look in the file menu, what shortcuts does it say there for you?
2. Does it still not work if anki is in safemode?
3. There have been issues for a long time with different keyboard layouts. Maybe you’re experiencing that? Although it would be weird if current stable works for you.

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [January 18, 2025, 4:12pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/5 "2025-01-18T16:12:57Z")

</div>

Forwarded this thread to [Anki 25.01 Beta - #24 by NameLessGO](https://forums.ankiweb.net/t/anki-25-01-beta/54490/24)

Please discuss there since it involves the beta version, this helps gathering bug reports on one post

Can’t replicate on mac 15.2, tried Software, OpenGL and Metal with the closing the lid and changing profile methods

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 18, 2025, 4:48pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/6 "2025-01-18T16:48:13Z")

</div>

> [@NameLessGO](#):
>
> Please discuss there since it involves the beta version, this helps gathering bug reports on one post

Since the main bug is not specific to the beta (I will confirm the keyboard shortcut issue), I don’t think that this needs to be reported there. Anyways, you have already reported.

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 18, 2025, 4:54pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/7 "2025-01-18T16:54:09Z")

</div>

I confirmed that the `Ctrl + Shift + P` and `Ctrl + Shift + I` shortcuts don’t work for me on 24.11 either, even without add-ons. And the `File` menu mentions the same shortcuts.

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [January 18, 2025, 5:10pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/8 "2025-01-18T17:10:04Z")

</div>

~~Try others shortcuts, seems like a Linux issue, are you using the anki version from the ankiweb/Github website, compiling from source, or alternative app stores such as flathub/snapcraft?~~

Edit: Oops my bad

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [January 18, 2025, 5:10pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/9 "2025-01-18T17:10:53Z")

</div>

> [@NameLessGO](#):
>
> seems like a Linux issue

@vaibhav is using windows. It works fine in linux.

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 18, 2025, 5:18pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/10 "2025-01-18T17:18:43Z")

</div>

I just remembered that I had remapped these shortcut keys using AutoHotKey for some other purpose. So, the keyboard shortcut issue is not an Anki issue per se. Sorry for the trouble.

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [January 18, 2025, 5:21pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/11 "2025-01-18T17:21:22Z")

</div>

I had no idea that they stay remapped even after booting to safemode. Very good to know!

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 18, 2025, 5:28pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/12 "2025-01-18T17:28:59Z")

</div>

> [@Anon\_0000](#):
>
> booting to safemode

Do you mean booting Windows in safe mode? I didn’t try that. That will most probably undo the remapping because AHK needs to be running in the background to remap the shortcuts. I just tried to launch Anki while holding `Shift`.

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [January 18, 2025, 5:34pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/13 "2025-01-18T17:34:52Z")

</div>

> [@vaibhav](#):
>
> I just tried to launch Anki while holding `Shift`.

Yes, that’s ankis safemode that I was talking about. It just didn’t occur to me that the modified shortcut keys would work if the extension isn’t loaded.

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 18, 2025, 5:37pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/14 "2025-01-18T17:37:38Z")

</div>

AHK is an OS-level software, not an Anki add-on. It’s a very popular tool among power users on Windows, but since you are on Linux, I am not very surprised that you are not aware about it.

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [January 18, 2025, 5:39pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/15 "2025-01-18T17:39:26Z")

</div>

Oh, I see. Thanks for clarification!

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 24, 2025, 2:44pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/16 "2025-01-24T14:44:56Z")

</div>

> [@Anon\_0000](#):
>
> I think just resizing the window is enough to solve it, at least for me.

For me, resizing the window removes the black borders but the UI still remains zoomed out. Resetting zoom doesn’t help.

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [January 24, 2025, 3:37pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/17 "2025-01-24T15:37:04Z")

</div>

Interesting. I wonder why that happens though.

I don’t think it is a firmware or driver issue, since switching to _software_ also causes issues. But is it an issue with anki or with qt? Or maybe something entirely different?

I’d like to do more testing on this but have no idea where to start. It’s also triggered inconsistently for the both of us:

- I do not experience issues after waking up from sleep but you do.
- For me resizing the window solves it, for you it doesn’t.
- I can reproduce this easily on debian oldstable by switching profiles. You cannot reproduce it on windows and I cannot reproduce it in debian sid (which is much newer but also in a vm, maybe that interferes somehow).

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [January 24, 2025, 4:17pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/18 "2025-01-24T16:17:32Z")

</div>

> [@Anon\_0000](#):
>
> since switching to _software_ also causes issues.

For me, the issue resolves when using Software but there is a performance regression. But, for you, using Software doesn’t solve the issue (as you mentioned earlier), which is yet another inconsistency.

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [February 10, 2025, 2:05pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/19 "2025-02-10T14:05:14Z")

</div>

Another observation:  
When the issue happens, closing and opening the lid again resolves the issue.

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [February 10, 2025, 5:48pm UTC](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547/20 "2025-02-10T17:48:22Z")

</div>

As said above, I do not have this issue after waking up. I did produce something visually similar though (as described above) and tried if it disappears for me after closing and opening the lid – it doesn’t. Yet another inconsistency that I wish I knew how to debug.

[Next page](https://forums.ankiweb.net/t/anki-zooms-out-after-awaking-laptop-from-sleep/54547.md?page=2)
