linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.55k stars 740 forks source link

chromium fullscreen uses a quarter of a hidpi monitor #9091

Open Kidlike opened 4 years ago

Kidlike commented 4 years ago
 * Cinnamon version (cinnamon --version)
> Cinnamon 4.4.5

   - Please specify if you are using the daily builds PPA
> no

 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...)
> Fedora 31

 * Graphics hardware *and* driver used
> Quadro M2200 / NVidia 440.44

 * 32 or 64 bit
> 64bit

 * Attach /home/<username>/.xsession-errors, or /var/log/syslog

Issue When using the full-screen feature of chromium (or any derivative) on a hidpi monitor (3840 x 2160), it takes only the top-left quarter of the monitor (one fourth).

Notes:

Steps to reproduce

  1. Open browser on any website or just empty tab
  2. Press F11 to go full-screen

Expected behaviour For chromium to utilize 100% of the monitor.

Other information

Screenshot from 2020-01-04 11-56-13

Workaround 1

  1. Demaximize the window and then press F11

Workaround 2

  1. Set the system's UI scaling to "Normal" instead of "Double"

Workaround 3

  1. Set cinnamon's panel(s) to "always show"

Workaround 4

  1. Open chromium settings
  2. Enable Use system title bars and borders
  3. Press F11 to go full-screen (it looks broken, worse than before)
  4. Press F11 to leave full-screen
  5. Disable Use system title bars and borders
  6. Press F11 to go full-screen again (this time it works properly, but only once...)
leigh123linux commented 4 years ago

I can't reproduce the issue here with or without hidpi scaling.

https://leigh123linux.fedorapeople.org/pub/video/Cinnamon-Jan-04-2020_11:30:08am.mkv

$ inxi -Fzi
System:
  Host: leigh Kernel: 5.4.5-300.fc31.x86_64 x86_64 bits: 64 
  Desktop: Cinnamon 4.4.6 Distro: Fedora release 31 (Thirty One) 
Machine:
  Type: Desktop System: Gigabyte product: N/A v: N/A serial: <filter> 
  Mobo: Gigabyte model: GA-990X-Gaming SLI-CF v: x.x serial: <filter> 
  BIOS: American Megatrends v: F1 date: 01/28/2016 
CPU:
  Topology: 8-Core model: AMD FX-8350 bits: 64 type: MCP L2 cache: 2048 KiB 
  Speed: 1401 MHz min/max: 1400/4400 MHz Core speeds (MHz): 1: 1401 2: 1405 
  3: 1458 4: 1425 5: 1404 6: 1404 7: 1402 8: 1405 
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 440.44 
  Display: x11 server: Fedora Project X.org 1.20.6 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 3840x2160~60Hz 
  OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 440.44 
Audio:
  Device-1: AMD SBx00 Azalia driver: snd_hda_intel 
  Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k5.4.5-300.fc31.x86_64 
Network:
  Device-1: Intel Wireless 7260 driver: iwlwifi 
  IF: wlp2s0 state: down mac: <filter> 
  Device-2: Realtek RTL8169 PCI Gigabit Ethernet driver: r8169 
  IF: enp5s7 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-3: Intel I211 Gigabit Network driver: igb 
  IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  IF-ID-1: macvtap0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  WAN IP: <filter> 
Drives:
  Local Storage: total: 3.53 TiB used: 1.45 TiB (41.1%) 
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLW256HEHP-00000 
  size: 238.47 GiB 
  ID-2: /dev/sda vendor: Samsung model: SSD 830 Series size: 119.24 GiB 
  ID-3: /dev/sdb vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB 
  ID-4: /dev/sdc vendor: Western Digital model: WD30EZRX-00SPEB0 
  size: 2.73 TiB 
Partition:
  ID-1: / size: 38.32 GiB used: 28.56 GiB (74.5%) fs: ext4 
  dev: /dev/nvme0n1p2 
  ID-2: /home size: 80.61 GiB used: 33.22 GiB (41.2%) fs: ext4 
  dev: /dev/sdb2 
Sensors:
  System Temperatures: cpu: 35.0 C mobo: 32.0 C gpu: nvidia temp: 35 C 
  Fan Speeds (RPM): cpu: 902 fan-2: 931 fan-3: 0 fan-4: 0 fan-5: 0 
  gpu: nvidia fan: 48% 
Info:
  Processes: 281 Uptime: 5d 4h 11m Memory: 31.32 GiB used: 9.18 GiB (29.3%) 
  Shell: bash inxi: 3.0.37 
Kidlike commented 4 years ago

In case this helps:

System:    Host: firefly Kernel: 5.3.16-300.fc31.x86_64 x86_64 bits: 64 Desktop: Cinnamon 4.4.5 
           Distro: Fedora release 31 (Thirty One) 
Machine:   Type: Laptop System: LENOVO product: 20HH001RMZ v: ThinkPad P51 serial: <root required> 
           Mobo: LENOVO model: 20HH001RMZ v: SDK0J40697 WIN serial: <root required> UEFI: LENOVO v: N1UET40W (1.14 ) 
           date: 09/28/2017 
Battery:   ID-1: BAT0 charge: 74.0 Wh condition: 78.3/90.0 Wh (87%) 
CPU:       Topology: Quad Core model: Intel Core i7-7820HQ bits: 64 type: MCP L2 cache: 8192 KiB 
           Speed: 1000 MHz min/max: 800/2900 MHz Core speeds (MHz): 1: 1000 2: 1000 3: 1000 4: 1000 
Graphics:  Device-1: NVIDIA GM206GLM [Quadro M2200 Mobile] driver: nvidia v: 440.44 
           Display: x11 server: Fedora Project X.org 1.20.6 driver: nvidia resolution: 3840x2160~60Hz 
           OpenGL: renderer: Quadro M2200/PCIe/SSE2 v: 4.6.0 NVIDIA 440.44 
Audio:     Device-1: Intel CM238 HD Audio driver: snd_hda_intel 
           Device-2: NVIDIA GM206 High Definition Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k5.3.16-300.fc31.x86_64 
Network:   Device-1: Intel Ethernet I219-LM driver: e1000e 
           IF: enp0s31f6 state: down mac: 54:e1:ad:c4:32:f3 
           Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi 
           IF: wlp4s0 state: up mac: 44:03:2c:7f:a7:47 
           IF-ID-1: virbr0 state: down mac: 52:54:00:7a:0d:b5 
           IF-ID-2: virbr0-nic state: down mac: 52:54:00:7a:0d:b5 
Drives:    Local Storage: total: 476.94 GiB used: 186.75 GiB (39.2%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HAJQ-000L7 size: 476.94 GiB 
Partition: ID-1: / size: 48.97 GiB used: 35.54 GiB (72.6%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 975.9 MiB used: 326.2 MiB (33.4%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-3: /home size: 410.42 GiB used: 150.87 GiB (36.8%) fs: ext4 dev: /dev/dm-3 
           ID-4: swap-1 size: 7.76 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
Sensors:   System Temperatures: cpu: 48.0 C mobo: 44.0 C gpu: nvidia temp: 44 C 
           Fan Speeds (RPM): cpu: 2262 
Info:      Processes: 309 Uptime: 22m Memory: 15.43 GiB used: 2.70 GiB (17.5%) Shell: bash inxi: 3.0.37
Kidlike commented 4 years ago

how can I try cinnamon 4.4.6 ? maybe it's fixed there...

leigh123linux commented 4 years ago

how can I try cinnamon 4.4.6 ? maybe it's fixed there...

I haven't built it for f31 and f30 yet due to bodhi (bodhi is the fedora update system) failure.

muffin build https://koji.fedoraproject.org/koji/buildinfo?buildID=1426186 cinnamon build https://koji.fedoraproject.org/koji/buildinfo?buildID=1426188

Kidlike commented 4 years ago

Is there anything else I could try? or somehow find more info?

Kidlike commented 4 years ago

hm... if I set the system's UI scaling to "Normal" instead of "Double", then full-screen works fine in chromium.

LinuxOnTheDesktop commented 4 years ago

I have had the same problem, in Chrome and Vivaldi, for a couple of weeks. The workaround is to demaximise the window before going full screen. I too find that if I disable HiDPI scaling then the problem goes away. So seemingly this is a HiDPI problem.

OS: Linux Mint 19.3 Tricia x86_64 Host: 20KHCTO1WW ThinkPad X1 Carbon 6th Kernel: 5.3.18-050318-generic Uptime: 2 hours, 54 mins Resolution: 2560x1440 @ 60.01Hz DE: Cinnamon 4.4.6 WM: Mutter (Muffin) GPU: Intel UHD Graphics 620

Chrome: Version 79.0.3945.88 (Official Build) (64-bit)

Kidlike commented 4 years ago

Thank you @LinuxOnTheDesktop that workaround is awesome :)

LinuxOnTheDesktop commented 4 years ago

I think it is the dreaded Grouped Window List (GWL) - which is on the panel by default, perhaps (I'm unsure) - that causes this. I dropped GWL, having tired of its repeated serious bugs, and replaced it with the dock called 'plank'. And now full screen in Chrome works again.

Kidlike commented 4 years ago

I was never using GWL, I always had a custom panel. At least in my case it's not GWL causing this.

But, you pointed in a direction that I found something more... My panel is set to "intelligently hide". If I change it to "always show", then chromium behaves properly.

(added as a workaround to original post)

LinuxOnTheDesktop commented 4 years ago

Ah. Perhaps then more than one thing suffices for the problem, though that seems unlikely. Another alternative is that the problem has something to do with panel or theme.

EDIT: about the auto-hiding - oh. My panel was set to 'autohide' (and I still had the problem). Relatedly: Plank has autohide and 'intelligently hide' options (amongst others) - and using either of those options, Chrome fullscreens correctly.

LinuxOnTheDesktop commented 4 years ago

I have not experienced this problem for a long time. Yesterday I created a bottom panel (I did not have one before) with its hiding set to 'auto hide'. Then the problem started again, immediately. The problem persists if I set the panel to 'hide intelligently'. Once I set the panel to always show, then the problem is gone.

Inference: this problem is caused by the conjunction of HiDPI and a panel set to hide. It is a shame because, just as I had found Grouped Window List to have become usable, I am going to have to go back to using the dock called Plank - in order to avoid this problem.