• Opret dig
  • Glemt adgangskode

User account menu

  • Artikler
  • Forside
  • Forum
  • Nyheder
  • Log ind
Hjem
LinuxIN.dk

Snak med

Opret dig!

Af frogmaster | 14.08.2018 09:49

Skærmstørrelse i KDE

Hjælp generelt
Efter sidste kerne opgradering i Mint 18 KDE, kunne xrandr ikke opretholde skærmstørrelsen 1920 1080.
Derfor blev det nødvendigt at oprette en newmode for at udnytte hele skærmen.

Hvis du oplever problemet, bør det kunne løses med nedenstående. Blot husk at læse advarslerne og ændre display name, som nævnt i scriptet.

#!/bin/bash

# First we need to get the modeline string for xrandr
# Luckily, the tool `gtf` will help you calculate it.
# All you have to do is to pass the resolution & the-
# refresh-rate as the command parameters:
gtf 1920 1080 60

# In this case, the horizontal resolution is 1920px the
# vertical resolution is 1080px & refresh-rate is 60Hz.
# IMPORTANT: BE SURE THE MONITOR SUPPORTS THE RESOLUTION

# Typically, it outputs a line starting with "Modeline"
# e.g. "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
# Copy this entire string (except for the starting "Modeline")

# Now, use `xrandr` to make the system recognize a new
# display mode. Pass the copied string as the parameter
# to the --newmode option:
xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync

# Well, the string within the quotes is the nick/alias
# of the display mode - you can as well pass something
# as "MyAwesomeHDResolution". But, careful! :-|

# "Virtual1" below in the next command is the display name, it might differ for you.
# Run `xrandr` without any parameters to be sure.
# The last parameter is the mode-alias/name which
# you've set in the previous command (--newmode)

# Then all you have to do is to add the new mode to the
# display you want to apply, like this:
xrandr --addmode Virtual1 "1920x1080_60.00"

# It should add the new mode to the display & apply it.
# Usually unlikely, but if it doesn't apply automatically
# then force it with this command:
xrandr --output Virtual1 --mode "1920x1080_60.00"

# However, next time you restart, the resolution goes back to default.
# This is good in case you add a non supported resolution but annoying if it works.
# To make the newmode persistent, add this bash to "Autostart", or whatever it's called within your KDE.

  • Log ind eller opret dig for at tilføje kommentarer

Kommentarer

Svar søges

Nu kan man skrive private beskeder 0
KDE overgår indsamlingsmålet for 2025 med rekordstor støtte fra lokalsamfundet 0
Zypper Package Manager brugervejledning til openSUSE brugere og deres derivater 0
KDE Spectacle tilføjer OCR understøttelse for at kopiere tekst direkte fra skærmbilleder 0
Deaktiverer alle AI-funktioner i Firefox Web Browser 0

Seneste aktivitet

Mbox mail import til Thunderbird 7
FOSS i Færdselsstyrelsen 2
Program ala Dreamweaver 2
Test af forum 5
Kunstig inteligens 1
Flatpak og hvorfor 1
Har brugt GLF OS, en NixOS-baseret distribution lavet i Frankrig. 2
Crontab 2
[ LØST ] Flere genveje på Firefox skrivebordet 5
Linuxin er nu migreret til Drupal 11 15
Dansk distro til software udviklere 3
Driver til min scanner? 3
Affinity V3 2
copy hvordan 1
Sortering af filer - sort of... 4
Det der ikke må galt gik galt 5
VPN — 8 tests, 1 klar vinder i 2025 3
Lidt nostalgi 1
Forum. 1
BigLinux 1

© 2025 Linuxin og de respektive skribenter

Oprettet og drevet af nørder siden 2004 !