lpereira / hardinfo

System profiler and benchmark tool for Linux systems
http://hardinfo.org
GNU General Public License v2.0
765 stars 130 forks source link

App resolution is too high and does not follow system settings #712

Closed sang-shelton closed 6 months ago

sang-shelton commented 6 months ago

I have mentioned this issue here and the same is happening with hardinfo.

hardinfo version: 0.6-alpha

When i run hardinfo, i see this:

Screenshot_2024-04-04_06-38-13

mckaygerhard commented 6 months ago
  1. from where you install hardinfo
  2. so then based on 1 the gtk version you run hardinfo
  3. so then the gtk theme applied to the env that hardinfo runs

all of those will cause your vehabiour.. without such info we can guess what happened @sang-shelton

sang-shelton commented 6 months ago

from where you install hardinfo

From the official debian repos on MX Linux.

so then based on 1 the gtk version you run hardinfo

System info

``` System: Kernel: 6.7.11-1-liquorix-amd64 [6.7-17~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0 intel_pstate=disable rcupdate.rcu_expedited=1 BOOT_IMAGE=/vmlinuz-6.7.11-1-liquorix-amd64 root=UUID= ro quiet splash Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7 dm: LightDM v: 1.26.0 Distro: MX-23.2_ahs_x64 Libretto January 21 2024 base: Debian GNU/Linux 12 (bookworm) Machine: Type: Laptop System: ASUSTeK product: ROG Strix G614JU_G614JU v: 1.0 serial: Mobo: ASUSTeK model: G614JU v: 1.0 serial: UEFI: American Megatrends LLC. v: G614JU.321 date: 10/24/2023 Battery: ID-1: BAT0 charge: 82.6 Wh (100.0%) condition: 82.6/90.0 Wh (91.8%) volts: 17.3 min: 16.0 model: AS3GYFG3KC R220358 type: Unknown serial: status: full CPU: Info: model: 13th Gen Intel Core i9-13980HX bits: 64 type: MST AMCP arch: Raptor Lake gen: core 13 level: v3 note: check built: 2022+ process: Intel 7 (10nm) family: 6 model-id: 0xB7 (183) stepping: 1 microcode: 0x11D Topology: cpus: 1x cores: 24 mt: 8 tpc: 2 st: 16 threads: 32 smt: enabled cache: L1: 2.1 MiB desc: d-16x32 KiB, 8x48 KiB; i-8x32 KiB, 16x64 KiB L2: 32 MiB desc: 8x2 MiB, 4x4 MiB L3: 36 MiB desc: 1x36 MiB Speed (MHz): avg: 968 high: 1500 min/max: 800/2401 boost: enabled scaling: driver: acpi-cpufreq governor: ondemand cores: 1: 1400 2: 800 3: 1295 4: 800 5: 1400 6: 1300 7: 1500 8: 800 9: 1500 10: 1445 11: 1066 12: 800 13: 1300 14: 800 15: 1000 16: 979 17: 800 18: 800 19: 800 20: 800 21: 800 22: 800 23: 800 24: 800 25: 800 26: 800 27: 800 28: 800 29: 800 30: 800 31: 800 32: 800 bogomips: 154828 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx Vulnerabilities: Type: gather_data_sampling status: Not affected Type: itlb_multihit status: Not affected Type: l1tf status: Not affected Type: mds status: Not affected Type: meltdown status: Not affected Type: mmio_stale_data status: Not affected Type: reg_file_data_sampling status: Vulnerable: No microcode Type: retbleed status: Not affected Type: spec_rstack_overflow status: Not affected Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW sequence Type: srbds status: Not affected Type: tsx_async_abort status: Not affected Graphics: Device-1: Intel Raptor Lake-S UHD Graphics vendor: ASUSTeK driver: i915 v: kernel arch: Gen-13 process: Intel 7 (10nm) built: 2022+ ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 0000:00:02.0 chip-ID: 8086:a788 class-ID: 0300 Device-2: NVIDIA AD107M [GeForce RTX 4050 Max-Q / Mobile] vendor: ASUSTeK GN21-X2 driver: nvidia v: 525.147.05 non-free: 530.xx+ status: current (as of 2023-03) arch: Lovelace code: AD1xx process: TSMC n4 (5nm) built: 2022-23+ bus-ID: 0000:01:00.0 chip-ID: 10de:28e1 class-ID: 0300 Device-3: Sonix USB2.0 HD UVC WebCam type: USB driver: uvcvideo bus-ID: 1-8:3 chip-ID: 322e:2122 class-ID: 0e02 Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X: loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa alternate: nv dri: iris gpu: i915 display-ID: :0.0 screens: 1 Screen-1: 0 s-res: 2560x1600 s-dpi: 96 s-size: 677x423mm (26.65x16.65") s-diag: 798mm (31.43") Monitor-1: eDP-1 model: TL160ADMP03-0 built: 2022 res: 2560x1600 hz: 240 dpi: 188 gamma: 1.2 size: 345x215mm (13.58x8.46") diag: 407mm (16") ratio: 16:10 modes: 2560x1600 API: OpenGL v: 4.6 Mesa 23.1.2-1~mx23ahs renderer: Mesa Intel Graphics (RPL-S) direct-render: Yes Audio: Device-1: Intel vendor: ASUSTeK driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 0000:00:1f.3 chip-ID: 8086:7a50 class-ID: 0403 Device-2: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:22be class-ID: 0403 API: ALSA v: k6.7.11-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl Network: Device-1: Intel driver: iwlwifi v: kernel modules: wl port: N/A bus-ID: 0000:00:14.3 chip-ID: 8086:7a70 class-ID: 0280 IF: wlan0 state: up mac: Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 v: kernel port: 4000 bus-ID: 0000:6c:00.0 chip-ID: 10ec:8168 class-ID: 0200 IF: eth0 state: down mac: Bluetooth: Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0033 class-ID: e001 Report: hciconfig ID: hci0 rfk-id: 1 state: up address: Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff link-mode: peripheral accept service-classes: rendering, capturing, object transfer, audio, telephony RAID: Hardware-1: Intel Volume Management Device NVMe RAID Controller Intel driver: vmd v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:a77f rev: class-ID: 0104 Drives: Local Storage: total: 953.87 GiB used: 80.77 GiB (8.5%) SMART Message: Unable to run smartctl. Root privileges required. ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Micron model: 2400 MTFDKBA1T0QFM size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: rev: V3MA003 temp: 44.9 C scheme: GPT Partition: ID-1: / raw-size: 952.6 GiB size: 936.58 GiB (98.32%) used: 80.54 GiB (8.6%) fs: ext4 dev: /dev/dm-0 maj-min: 253:0 mapped: luks- ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 225.5 MiB (23.2%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 ID-3: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 Swap: Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) ID-1: swap-1 type: file size: 6 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap Sensors: System Temperatures: cpu: 46.0 C mobo: N/A Fan Speeds (RPM): cpu: 1900 Repos: Packages: pm: dpkg pkgs: 2387 libs: 1297 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm pkgs: 0 No active apt repos in: /etc/apt/sources.list Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 1: deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware Active apt repos in: /etc/apt/sources.list.d/debian.list 1: deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware 2: deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware 3: deb-src http://deb.debian.org/debian/ bookworm non-free-firmware non-free contrib main Active apt repos in: /etc/apt/sources.list.d/mx.list 1: deb https://mirrors.aliyun.com/mxlinux/mx/repo/ bookworm main non-free 2: deb https://mirrors.aliyun.com/mxlinux/mx/repo/ bookworm ahs Active apt repos in: /etc/apt/sources.list.d/vscode.list 1: deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code/ stable main Active apt repos in: /etc/apt/sources.list.d/zulip-desktop.list 1: deb https://download.zulip.com/desktop/apt/ stable main Info: Processes: 594 Uptime: 56m wakeups: 3 Memory: 30.97 GiB used: 5.42 GiB (17.5%) Init: SysVinit v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12 Client: shell wrapper v: 5.2.15-release inxi: 3.3.26 Boot Mode: UEFI ```

so then the gtk theme applied to the env that hardinfo runs

Yes i think so, most apps have the same theme. Also apps like "Backups" are displaying correctly:

Screenshot_2024-04-04_18-09-01

I think it has to do with the GTK version used in creating the app.

Also i have GTK scaling set to 2 automatically and many other gtk apps display correctly:

Screenshot_2024-04-04_18-10-34

mckaygerhard commented 6 months ago

your hardinfo seems builds in different gtk theme that's all.. it happened to me also.. by example when i runs in lxde runs fine.. but not in mate until i set property the theme..

this is not a hardinfo issue.. is a gtk sync issue due gtk2/gtk3 mixture or theme mixture ...

sang-shelton commented 6 months ago

your hardinfo seems builds in different gtk theme that's all.. it happened to me also.. by example when i runs in lxde runs fine.. but not in mate until i set property the theme..

this is not a hardinfo issue.. is a gtk sync issue due gtk2/gtk3 mixture or theme mixture ...

I posted on MX Linux forum and the developer told me that not all apps support gtk3 scaling, this means that the developer of hardinfo has to upgrade the app to use gtk3. I hope when this happens, the app will appear in it's desired size.

mckaygerhard commented 6 months ago

@sang-shelton i guess you miscunderstand.. it means that is not hardinfo problem.. gtk3 scaling is bad but if you wants to try .. just recompile hardinfo with GTK3 .. but i already do in the past and this issue is already happened.. gtk3 is not the best, author already give up vote to new hardinfo2, please post there https://github.com/hardinfo2/hardinfo2 that by default already uses gtk3 but i already uses and gives me same problem

please remmebered post feedback and close the issue if any

lpereira commented 6 months ago

Hardinfo is now being developed at @hardinfo2/hardinfo2. Please ask your distro to package that instead. It should support GTK3, although GTK2 is still the default AFAIK.

On Thu, Apr 4, 2024, at 3:06 PM, Sang Shelton wrote:

your hardinfo seems builds in different gtk theme that's all.. it happened to me also.. by example when i runs in lxde runs fine.. but not in mate until i set property the theme..

this is not a hardinfo issue.. is a gtk sync issue due gtk2/gtk3 mixture or theme mixture ...

I posted on MX Linux forum https://forum.mxlinux.org/viewtopic.php?p=771836#top and the developer told me that not all apps support gtk3 scaling, this means that the developer of hardinfo has to upgrade the app to use gtk3. I hope when this happens, the app will appear in it's desired size.

— Reply to this email directly, view it on GitHub https://github.com/lpereira/hardinfo/issues/712#issuecomment-2037999535, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGOGB2XJF5OYWCEJRY3Y3WQCZAVCNFSM6AAAAABFWO7P3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZXHE4TSNJTGU. You are receiving this because you are subscribed to this thread.Message ID: @.***>

sang-shelton commented 6 months ago

I compiled and installed the deb package for hardinfo2 and it worked and displayed fine:

Screenshot_2024-04-05_18-56-57

compared to hardinfo:

319433273-2ebf1b56-2107-4d55-b5fe-7f2b9363859b

Thanks for help