Skip to content
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

Lock screen fractional scaling issue #10998

Open
tvdmitrii opened this issue Aug 3, 2022 · 7 comments
Open

Lock screen fractional scaling issue #10998

tvdmitrii opened this issue Aug 3, 2022 · 7 comments

Comments

@tvdmitrii
Copy link

 * Cinnamon 5.4.9
   - NOT daily builds PPA (sorry, I did not have time to test that)
 * Linux Mint 21
 * Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (Intel Core i7-1165G7) *and* i915 driver
 * 64 bit

Issue
The display flashes and resizes / re-scales abruptly when going to and from lock screen. I believe the fractional scaling that I am using is the problem. If 150% display scaling is used the lock screen will be scaled to 200%. As a result, when locking and unlocking the computer the image abruptly resizes as it jumps from 150% to 200% scaling and back. Not a big deal, but definitely distracting. If 100% or 200% display scaling is used -- lock screen also uses 100% or 200% respectively. Any fractional scaling like 125%, 150%, 175% results in the same problem.

Steps to reproduce

  1. Setup 150% fractional scaling by going to System Settings > Display
  2. Lock the screen (for example, using Ctrl + Alt + L shortcut)
  3. Observe how the screen flashes and resizes. Lock screen is at 200% scaling.
  4. Type in the password and login
  5. Observe how the screen image becomes smaller than the screen, and then abruptly resizes to fit the screen

Expected behaviour
If the scaling is either 100% or 200% the transition to and from lock screen is smooth. I would expect the same smooth transition with fractional display scaling.

@archisman-panigrahi
Copy link

Same issue here. Fractional scaling resets to 100% after closing the lid. This issue is present in Mint 21 Cinnamon. However, Mint 20 Cinnamon did not have this issue (in the same laptop).

Here is my system information. I would be happy to provide any other information.

System:
  Kernel: 5.15.0-41-generic x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Cinnamon 5.4.9
    tk: GTK 3.24.33 wm: Mutter dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: HP 250 G5 Notebook PC v: Type1ProductConfigId
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 81EB v: 61.41 serial: <superuser required> UEFI: Insyde v: F.24
    date: 01/05/2017
Battery:
  ID-1: BAT1 charge: 15.6 Wh (43.9%) condition: 35.5/32.1 Wh (110.4%) volts: 14.3 min: 14.6
    model: Hewlett-Packard PABAS0241231 serial: <filter> status: Discharging
CPU:
  Info: dual core model: Intel Core i3-6006U bits: 64 type: MT MCP arch: Skylake rev: 3 cache:
    L1: 128 KiB L2: 512 KiB L3: 3 MiB
  Speed (MHz): avg: 1800 min/max: 400/2000 cores: 1: 1800 2: 1800 3: 1800 4: 1800
    bogomips: 15999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Hewlett-Packard driver: i915 v: kernel
    ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:1916
  Device-2: Chicony HP TrueVision HD type: USB driver: uvcvideo bus-ID: 1-5:3 chip-ID: 04f2:b56c
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting unloaded: fbdev,vesa
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3072x1728 s-dpi: 120
  Monitor-1: eDP-1 model: BOE Display res: 3072x1728 dpi: 227 diag: 394mm (15.5")
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9d70
  Sound Server-1: ALSA v: k5.15.0-41-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 01:00.0
    chip-ID: 10ec:8168
  IF: eno1 state: down mac: <filter>
  Device-2: Intel Wireless 3165 driver: iwlwifi v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:3165
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 1-4:2
    chip-ID: 8087:0a2a
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 2.1 lmp-v: 4.2
    sub-v: 1000
Drives:
  Local Storage: total: 931.51 GiB used: 572.45 GiB (61.5%)
  ID-1: /dev/sda vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB speed: 6.0 Gb/s
    serial: <filter>
Partition:
  ID-1: / size: 86.73 GiB used: 19.44 GiB (22.4%) fs: ext4 dev: /dev/sda3
  ID-2: /boot/efi size: 256 MiB used: 73.4 MiB (28.7%) fs: vfat dev: /dev/sda1
Swap:
  ID-1: swap-1 type: zram size: 6 GiB used: 0 KiB (0.0%) priority: 15 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 29.8 C pch: 36.5 C mobo: 27.8 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2636 apt: 2630 flatpak: 6
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/apandada1-foliate-daily-jammy.list
    1: deb http: //ppa.launchpad.net/apandada1/foliate-daily/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/github-cli.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https: //cli.github.com/packages stable main
  Active apt repos in: /etc/apt/sources.list.d/mati75-gimp30-jammy.list
    1: deb http: //ppa.launchpad.net/mati75/gimp30/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com vanessa main upstream import backport
    2: deb http: //mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu jammy main restricted universe multiverse
    3: deb http: //mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 290 Uptime: 12h 55m Memory: 11.58 GiB used: 3.08 GiB (26.6%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.2.0 alt: 11 Client: Cinnamon v: 5.4.9 inxi: 3.3.13

@Iriamu19
Copy link

Iriamu19 commented Oct 3, 2022

I also have this issue. I set the fractional scaling to 125% but it resets to 100% on the logging screen. It goes back to 125% after login.

Here's my config

System:
  Kernel: 5.15.0-48-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: Cinnamon 5.4.12 Distro: Linux Mint 21 Vanessa
    base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: Acer product: Swift SF314-54 v: V1.17
    serial: <superuser required>
  Mobo: KBL model: Strongbow_KL v: V1.17 serial: <superuser required>
    UEFI: Insyde v: 1.17 date: 04/16/2021
Battery:
  ID-1: BAT0 charge: 42.2 Wh (82.3%) condition: 51.3/50.8 Wh (101.1%)
    volts: 16.0 min: 15.3 model: SMP-SDI3320 AC14B7K status: Discharging
CPU:
  Info: dual core model: Intel Core i3-7020U bits: 64 type: MT MCP
    arch: Coffee Lake rev: A cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB
  Speed (MHz): avg: 2170 high: 2300 min/max: 400/2300 cores: 1: 1783
    2: 2300 3: 2300 4: 2300 bogomips: 18399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Acer Incorporated ALI driver: i915
    v: kernel bus-ID: 00:02.0
  Device-2: Sunplus Innovation HD User Facing type: USB driver: uvcvideo
    bus-ID: 1-7:3
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 3072x1728~60Hz
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.5
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
    driver: snd_soc_skl v: kernel bus-ID: 00:1f.3
  Sound Server-1: ALSA v: k5.15.0-48-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel bus-ID: 02:00.0
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-5:2
  Report: hciconfig ID: hci0 rfk-id: 1 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 bus-ID: 00:17.0
Drives:
  Local Storage: total: 119.24 GiB used: 19.92 GiB (16.7%)
  ID-1: /dev/sda vendor: SK Hynix model: HFS128G39TND-N210A
    size: 119.24 GiB
Partition:
  ID-1: / size: 81.15 GiB used: 19.86 GiB (24.5%) fs: ext4 dev: /dev/sda5
  ID-2: /boot/efi size: 96 MiB used: 55.1 MiB (57.4%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 4 GiB used: 28.8 MiB (0.7%) file: /swapfile
Info:
  Processes: 270 Uptime: 1h 42m Memory: 7.65 GiB used: 5.26 GiB (68.7%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.2.0 Packages: 2428 Shell: Zsh
  v: 5.8.1 inxi: 3.3.13

@yiyayamaya
Copy link

yiyayamaya commented Oct 14, 2022

same here...

mint 21 cinnamon

@mtwebster
Copy link
Member

Hi please have a look here:
linuxmint/cinnamon-screensaver#416 (comment)

@tvdmitrii
Copy link
Author

Hi please have a look here: linuxmint/cinnamon-screensaver#416 (comment)

This fix did not seem to help. I would just get a black screen instead of screensaver and login prompt.

@d-adamson
Copy link

I've been having the same issue.
Black screen with cursor visible after resume from suspend. However, I could still enter the password and login.
I suspect now the resolution was so far off that the login prompt was "off screen"

See thread below. I had a work-around for Intel graphics, but now I've decided to wait for an official fix.
https://forums.linuxmint.com/viewtopic.php?p=2297454#p2297454

mtwebster added a commit to linuxmint/cinnamon-screensaver that referenced this issue May 10, 2023
Even though the scale is already accounted for in Gtk/Gdk functions,
muffin can be confused during configuration events like power
management and monitor hotplugging causing breaks in screen coverage.

ref: linuxmint/cinnamon#10879
ref: linuxmint/cinnamon#10998
@archisman-panigrahi
Copy link

Seems to be fixed in Mint 21.2 Victoria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants