Board index FlightGear Support Hardware

FG on HiDPI

Joysticks, pedals, monitors.

FG on HiDPI

Postby pixel24 » Tue Mar 09, 2021 8:01 pm

Hi@all,

I am currently testing FG on various platforms. I can't find an option for the resolution. I have a HiDPI display with a resolution of 3840x2160. The display is very very small. Can I adjust this somewhere?

with best
pixel24
pixel24
 
Posts: 16
Joined: Tue Mar 09, 2021 1:48 pm

Re: FG on HiDPI

Postby zakalawe » Tue Mar 09, 2021 11:15 pm

Depending on which OS and version of FlightGear, there are some different possibilities for this. Also there's separate settings for the launcher and the main window, which makes things even more complicated. Can you elaborate, which platforms you're testing, which version, and which pieces are a problem?
zakalawe
 
Posts: 1259
Joined: Sat Jul 19, 2008 5:48 pm
Location: Edinburgh, Scotland
Callsign: G-ZKLW
Version: next
OS: Mac

Re: FG on HiDPI

Postby pixel24 » Wed Mar 10, 2021 6:58 am

I use Linuxmint 20.1:
Code: Select all
System:    Kernel: 5.4.0-66-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6
           wm: muffin dm: LightDM Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal
Machine:   Type: Laptop System: HP product: HP ZBook Studio G5 v: N/A serial: <filter> Chassis:
           type: 10 serial: <filter>
           Mobo: HP model: 8427 v: KBC Version 16.48.00 serial: <filter> UEFI: HP
           v: Q71 Ver. 01.12.00 date: 07/29/2020
Battery:   ID-1: BAT0 charge: 70.1 Wh condition: 77.1/77.1 Wh (100%) volts: 10.9/11.6
           model: Hewlett-Packard Primary serial: <filter> status: Discharging
           Device-1: hid-00:1f:20:fa:7e:e5-battery model: Bluetooth Mouse M336/M337/M535
           serial: N/A charge: N/A status: Discharging
CPU:       Topology: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Kaby Lake
           rev: A L2 cache: 9216 KiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 52799
           Speed: 1221 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 1221 2: 1853 3: 1216
           4: 1373 5: 1686 6: 2229 7: 1448 8: 1379 9: 1783 10: 986 11: 1215 12: 963
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Hewlett-Packard driver: i915 v: kernel
           bus ID: 00:02.0 chip ID: 8086:3e9b
           Device-2: NVIDIA GP107GLM [Quadro P1000 Mobile] vendor: Hewlett-Packard driver: nvidia
           v: 460.39 bus ID: 01:00.0 chip ID: 10de:1cbb
           Display: x11 server: X.Org 1.20.9 driver: modesetting,nvidia
           unloaded: fbdev,nouveau,vesa resolution: 3840x2160~60Hz
           OpenGL: renderer: Quadro P1000/PCIe/SSE2 v: 4.6.0 NVIDIA 460.39 direct render: Yes
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard driver: snd_hda_intel
           v: kernel bus ID: 00:1f.3 chip ID: 8086:a348
           Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel v: kernel
           bus ID: 01:00.1 chip ID: 10de:0fb9
           Sound Server: ALSA v: k5.4.0-66-generic
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel port: 5000
           bus ID: 00:14.3 chip ID: 8086:a370
           IF: wlp0s20f3 state: up mac: <filter>
           IF-ID-1: virbr0 state: down mac: <filter>
           IF-ID-2: virbr0-nic state: down mac: <filter>
Drives:    Local Storage: total: 476.94 GiB used: 316.44 GiB (66.3%)
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HAJQ-000H1 size: 476.94 GiB
           speed: 31.6 Gb/s lanes: 4 serial: <filter>
Partition: ID-1: / size: 476.59 GiB used: 316.43 GiB (66.4%) fs: xfs dev: /dev/nvme0n1p2
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 chip ID: 1d6b:0002
           Device-1: 1-7:2 info: Cheng Uei Precision Industry (Foxlink) HP HD Camera type: Video
           driver: uvcvideo rev: 2.0 chip ID: 05c8:03b1
           Device-2: 1-14:3 info: Intel type: Bluetooth driver: btusb rev: 2.0 chip ID: 8087:0aaa
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 10 rev: 3.1 chip ID: 1d6b:0003
Sensors:   System Temperatures: cpu: 55.0 C mobo: 51.0 C gpu: nvidia temp: 48 C
           Fan Speeds (RPM): N/A
Repos:     No active apt repos in: /etc/apt/sources.list
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
           1: deb http: //packages.linuxmint.com ulyssa main upstream import backport
           2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/saiarcot895-flightgear-focal.list
           1: deb http: //ppa.launchpad.net/saiarcot895/flightgear/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
           1: deb [arch=amd64] https: //updates.signal.org/desktop/apt xenial main
           Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
           1: deb https: //linux.teamviewer.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/tomtomtom-woeusb-focal.list
           1: deb http: //ppa.launchpad.net/tomtomtom/woeusb/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/ubuntuhandbook1-darktable-focal.list
           1: deb http: //ppa.launchpad.net/ubuntuhandbook1/darktable/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/wfg-0ad_dev-focal.list
           1: deb http: //ppa.launchpad.net/wfg/0ad.dev/ubuntu focal main
Info:      Processes: 341 Uptime: 19m Memory: 14.99 GiB used: 3.40 GiB (22.7%) Init: systemd
           v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Client: Unknown python3.8 client
           inxi: 3.0.38


FG from PPA:
Code: Select all
root@lt001:/home/s.gehr# dpkg -l |grep flightgear
ii  flightgear                                 1:2020.3.1-0ubuntu1~ppa1~20.04.1      amd64        FlightGear
ii  flightgear-data-ai                         1:2020.3.1+dfsg-0ubuntu1~ppa1         all          FlightGear Flight Simulator -- standard AI data
ii  flightgear-data-all                        1:2020.3.1+dfsg-0ubuntu1~ppa1         all          FlightGear Flight Simulator - virtual package
ii  flightgear-data-base                       1:2020.3.1+dfsg-0ubuntu1~ppa1         all          FlightGear Flight Simulator -- base files
ii  flightgear-data-models                     1:2020.3.1+dfsg-0ubuntu1~ppa1         all          FlightGear Flight Simulator -- standard models
ii  flightgear-phi


When I start FG, I get to the overview window. I assume this is the launcher?
All the icons and menus here are so small that it is very difficult for me to use them.

If I then start a flight, the menus at the top are also so small that they cannot be operated without a magnifying glass.

So the problem is actually everywhere.
pixel24
 
Posts: 16
Joined: Tue Mar 09, 2021 1:48 pm

Re: FG on HiDPI

Postby wkitty42 » Wed Mar 10, 2021 1:53 pm

pixel24 wrote in Tue Mar 09, 2021 8:01 pm:I have a HiDPI display with a resolution of 3840x2160. The display is very very small. Can I adjust this somewhere?

i have a 4K monitor, too... i can't say that i've thought about it as a HiDPI but i guess maybe it is... Acer KG281K...

i've not done anything, really... for me the launcher is "ok" for the most part... i run my FG at 2560x1600 in a window... i did this in the settings tab in the launcher in the "View & Window" section... i run in a window mainly for streaming purposes so i can see my chat and OBS while flying...

i think if you set the resolution and also enable the full screen switch, FG should rescale everything to the chosen resolution but projected in native resolution... but i may be misunderstanding since there is a note below the resolution selection box that says "Select the initial size of the window (this has no effect in full-screen more)." which makes me think that full screen mode is always native resolution... if that's now a proper understanding on my part, it kinda hurts and i feel that it should be changed so everything is rescaled to the selected resolution when in fullscreen mode... personally speaking, though, i have to leave that someone else to do...

i have had instances where something did actually switch my monitor resolution but that lead to the painful rearrangement of everything on my desktop... i was not a happy camper when that happened... i don't recall if FG did this or not, though... i'm also running Kubuntu 20.04 for my OS...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: FG on HiDPI

Postby zakalawe » Thu Mar 11, 2021 2:41 pm

You can fix the launcher by setting 'QT_AUTO_SCREEN_SCALE_FACTOR=1' in the environment. 2020.3.7 should also do the same as this automatically (on Linux)

Within FlightGear, we do not have (yet) a good way to set a whole-application scaling, to fix the small menus+text. There are some changes coming in this area but nothing that's available in a stable release, unfortunately.
zakalawe
 
Posts: 1259
Joined: Sat Jul 19, 2008 5:48 pm
Location: Edinburgh, Scotland
Callsign: G-ZKLW
Version: next
OS: Mac

Re: FG on HiDPI

Postby wkitty42 » Thu Mar 11, 2021 4:15 pm

zakalawe wrote in Thu Mar 11, 2021 2:41 pm:You can fix the launcher by setting 'QT_AUTO_SCREEN_SCALE_FACTOR=1' in the environment. 2020.3.7 should also do the same as this automatically (on Linux)

i just added this to my startup script on my Kubuntu 20.04 setup running self-compiled FG next and wow! that's nice!
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests