LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-06-2018, 11:58 AM   #1
Gordie
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 348

Rep: Reputation: 94
Watch movie and now display was stretched


We used my Laptop to watch a movie the other night. A vga cable connects it to the tv. Afterwards the display on my monitor was stretched too wide. I tried messing with fonts, icon size, conky settings, cairo-dock settings, chromium settings all in an effort to return my display to normal

Was chatting with my son about it and he asked if the cable was still attached. It was.
Disconnect cable, logout, restart x and now is OK.

Is there some other way to gain control?
 
Old 01-06-2018, 12:10 PM   #2
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 29

Rep: Reputation: Disabled
Uou can use xrandr to change all of that. I used to do the same thing with my laptop, so I just wrote a script to change the resolutions automatically.
 
1 members found this post helpful.
Old 01-06-2018, 03:50 PM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 1,777

Rep: Reputation: 1662Reputation: 1662Reputation: 1662Reputation: 1662Reputation: 1662Reputation: 1662Reputation: 1662Reputation: 1662Reputation: 1662Reputation: 1662Reputation: 1662
While xrander can certainly do the job, there are possibly other tools you might find easier and quicker to use. This is especially true for nvidia graphics since it has both cli and gui versions of it's nvida-settings which can not only establish and reset resolutions and other characteristics but can write such settings to either an rc file or directly to xorg.conf. Could you find and give info on your laptop model and/or graphics chipset?
 
Old 01-06-2018, 10:38 PM   #4
Gordie
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 348

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by enorbet View Post
While xrander can certainly do the job, there are possibly other tools you might find easier and quicker to use. This is especially true for nvidia graphics since it has both cli and gui versions of it's nvida-settings which can not only establish and reset resolutions and other characteristics but can write such settings to either an rc file or directly to xorg.conf. Could you find and give info on your laptop model and/or graphics chipset?
Code:
description: Notebook
    product: 4391B49
    vendor: LENOVO
    version: ThinkPad W510
    serial: R9AGTWD
    width: 4294967295 bits
    capabilities: smbios-2.6 dmi-2.6 smp vsyscall32
    configuration: administrator_password=disabled boot=normal chassis=notebook family=ThinkPad W510 frontpanel_password=unknown keyboard_password=disabled power-on_password=disabled uuid=5BB08400-1B54-11E0-BB76-D8C3C8C81D29
  *-core
       description: Motherboard
       product: 4391B49
       vendor: LENOVO
       physical id: 0
       version: Not Available
       serial: 1ZJ9Y1162E8
     *-firmware
          description: BIOS
          vendor: LENOVO
          physical id: 0
          version: 6NET84WW (1.45 )
          date: 10/03/2012
          size: 128KiB
          capacity: 8128KiB
          capabilities: pci pcmcia pnp upgrade shadowing escd cdboot bootselect edd int13floppy720 int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i7 CPU       Q 720  @ 1.60GHz
          vendor: Intel Corp.
          physical id: 6
          bus info: cpu@0
          version: Intel(R) Core(TM) i7 CPU       Q 720  @ 1.60GHz
          slot: None
          size: 1600MHz
          capacity: 1600MHz
          width: 64 bits
          clock: 133MHz
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dtherm tpr_shadow vnmi flexpriority ept vpid cpufreq
          configuration: cores=4 enabledcores=4 threads=8
        *-cache:0
             description: L1 cache
             physical id: c
             slot: Internal L1 Cache
             size: 32KiB
             capacity: 32KiB
             capabilities: asynchronous internal write-through data
             configuration: level=1
        *-cache:1
             description: L2 cache
             physical id: d
             slot: Internal L2 Cache
             size: 256KiB
             capacity: 256KiB
             capabilities: burst internal write-through unified
             configuration: level=2
        *-cache:2
             description: L3 cache
             physical id: e
             slot: Internal L3 Cache
             size: 6MiB
             capacity: 8MiB
             capabilities: burst internal write-back
             configuration: level=3
     *-memory
          description: System Memory
          physical id: 2c
          slot: System board or motherboard
          size: 8GiB
        *-bank:0
             description: SODIMM DDR3 Synchronous 1066 MHz (0.9 ns)
             product: HMT325S6BFR8C-G7
             vendor: Hynix Semiconductor (Hyundai Electronics)
             physical id: 0
             serial: 5966C5DD
             slot: DIMM 1
             size: 2GiB
             width: 64 bits
             clock: 1066MHz (0.9ns)
        *-bank:1
             description: SODIMM DDR3 Synchronous 1334 MHz (0.7 ns)
             product: HMT351S6BFR8C-H9
             vendor: Hynix Semiconductor (Hyundai Electronics)
             physical id: 1
             serial: 6335B118
             slot: DIMM 2
             size: 4GiB
             width: 64 bits
             clock: 1334MHz (0.7ns)
        *-bank:2
             description: SODIMM Synchronous [empty]
             physical id: 2
             slot: DIMM 3
        *-bank:3
             description: SODIMM DDR3 Synchronous 1066 MHz (0.9 ns)
             product: M471B5673EH1-CF8
             vendor: Samsung
             physical id: 3
             serial: 8773E998
             slot: DIMM 4
             size: 2GiB
             width: 64 bits
             clock: 1066MHz (0.9ns)
     *-pci:0
          description: Host bridge
          product: Core Processor DMI
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 11
          width: 32 bits
          clock: 33MHz
        *-pci:0
             description: PCI bridge
             product: Core Processor PCI Express Root Port 1
             vendor: Intel Corporation
             physical id: 3
             bus info: pci@0000:00:03.0
             version: 11
             width: 32 bits
             clock: 33MHz
             capabilities: pci msi pciexpress pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:16 ioport:2000(size=4096) memory:cc000000-cdefffff ioport:ce000000(size=301989888)
           *-display
                description: VGA compatible controller
                product: GT216GLM [Quadro FX 880M]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                version: a2
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
                configuration: driver=nouveau latency=0
                resources: irq:42 memory:cc000000-ccffffff memory:d0000000-dfffffff memory:ce000000-cfffffff ioport:2000(size=128) memory:cd000000-cd07ffff
           *-multimedia
                description: Audio device
                product: GT216 HDMI Audio Controller
                vendor: NVIDIA Corporation
                physical id: 0.1
                bus info: pci@0000:01:00.1
                version: a1
                width: 32 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list
                configuration: driver=snd_hda_intel latency=0
                resources: irq:16 memory:cdefc000-cdefffff
        *-generic:0 UNCLAIMED
             description: System peripheral
             product: Core Processor System Management Registers
             vendor: Intel Corporation
             physical id: 8
             bus info: pci@0000:00:08.0
             version: 11
             width: 32 bits
             clock: 33MHz
             capabilities: pciexpress cap_list
             configuration: latency=0
        *-generic:1 UNCLAIMED
             description: System peripheral
             product: Core Processor Semaphore and Scratchpad Registers
             vendor: Intel Corporation
             physical id: 8.1
             bus info: pci@0000:00:08.1
             version: 11
             width: 32 bits
             clock: 33MHz
             capabilities: pciexpress cap_list
             configuration: latency=0
        *-generic:2 UNCLAIMED
             description: System peripheral
             product: Core Processor System Control and Status Registers
             vendor: Intel Corporation
             physical id: 8.2
             bus info: pci@0000:00:08.2
             version: 11
             width: 32 bits
             clock: 33MHz
             capabilities: pciexpress cap_list
             configuration: latency=0
        *-generic:3 UNCLAIMED
             description: System peripheral
             product: Core Processor Miscellaneous Registers
             vendor: Intel Corporation
             physical id: 8.3
             bus info: pci@0000:00:08.3
             version: 11
             width: 32 bits
             clock: 33MHz
             configuration: latency=0
        *-generic:4 UNCLAIMED
             description: System peripheral
             product: Core Processor QPI Link
             vendor: Intel Corporation
             physical id: 10
             bus info: pci@0000:00:10.0
             version: 11
             width: 32 bits
             clock: 33MHz
             configuration: latency=0
        *-generic:5 UNCLAIMED
             description: System peripheral
             product: Core Processor QPI Routing and Protocol Registers
             vendor: Intel Corporation
             physical id: 10.1
             bus info: pci@0000:00:10.1
             version: 11
             width: 32 bits
             clock: 33MHz
             configuration: latency=0
        *-communication:0
             description: Communication controller
             product: 5 Series/3400 Series Chipset HECI Controller
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 06
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:31 memory:f2627800-f262780f
        *-communication:1
             description: Serial controller
             product: 5 Series/3400 Series Chipset KT Controller
             vendor: Intel Corporation
             physical id: 16.3
             bus info: pci@0000:00:16.3
             version: 06
             width: 32 bits
             clock: 66MHz
             capabilities: pm msi 16550 cap_list
             configuration: driver=serial latency=0
             resources: irq:17 ioport:1800(size=8) memory:f2624000-f2624fff
        *-network
             description: Ethernet interface
             product: 82577LM Gigabit Network Connection
             vendor: Intel Corporation
             physical id: 19
             bus info: pci@0000:00:19.0
             logical name: eth0
             version: 06
             serial: f0:de:f1:3a:78:3c
             capacity: 1Gbit/s
             width: 32 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
             configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.12-1 latency=0 link=no multicast=yes port=twisted pair
             resources: irq:32 memory:f2600000-f261ffff memory:f2625000-f2625fff ioport:1820(size=32)
        *-usb:0
             description: USB controller
             product: 5 Series/3400 Series Chipset USB2 Enhanced Host Controller
             vendor: Intel Corporation
             physical id: 1a
             bus info: pci@0000:00:1a.0
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:23 memory:f2628000-f26283ff
        *-multimedia
             description: Audio device
             product: 5 Series/3400 Series Chipset High Definition Audio
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 06
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:30 memory:f2620000-f2623fff
        *-pci:1
             description: PCI bridge
             product: 5 Series/3400 Series Chipset PCI Express Root Port 1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:20
        *-pci:2
             description: PCI bridge
             product: 5 Series/3400 Series Chipset PCI Express Root Port 2
             vendor: Intel Corporation
             physical id: 1c.1
             bus info: pci@0000:00:1c.1
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:21 memory:f2000000-f20fffff
           *-network
                description: Wireless interface
                product: Centrino Ultimate-N 6300
                vendor: Intel Corporation
                physical id: 0
                bus info: pci@0000:03:00.0
                logical name: wlan0
                version: 35
                serial: 00:24:d7:86:d6:4c
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=4.4.38 firmware=9.221.4.1 build 25532 ip=192.168.35.10 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
                resources: irq:41 memory:f2000000-f2001fff
        *-pci:3
             description: PCI bridge
             product: 5 Series/3400 Series Chipset PCI Express Root Port 4
             vendor: Intel Corporation
             physical id: 1c.3
             bus info: pci@0000:00:1c.3
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:23 ioport:3000(size=4096) memory:f0000000-f1ffffff ioport:f2700000(size=1048576)
        *-pci:4
             description: PCI bridge
             product: 5 Series/3400 Series Chipset PCI Express Root Port 5
             vendor: Intel Corporation
             physical id: 1c.4
             bus info: pci@0000:00:1c.4
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:20 memory:f2100000-f21fffff
           *-generic:0
                description: SD Host controller
                product: MMC/SD Host Controller
                vendor: Ricoh Co Ltd
                physical id: 0
                bus info: pci@0000:0d:00.0
                version: 01
                width: 32 bits
                clock: 33MHz
                capabilities: msi pm pciexpress bus_master cap_list
                configuration: driver=sdhci-pci latency=0
                resources: irq:16 memory:f2100000-f21000ff
           *-generic:1 UNCLAIMED
                description: System peripheral
                product: R5U2xx (R5U230 / R5U231 / R5U241) [Memory Stick Host Controller]
                vendor: Ricoh Co Ltd
                physical id: 0.1
                bus info: pci@0000:0d:00.1
                version: 01
                width: 32 bits
                clock: 33MHz
                capabilities: msi pm pciexpress bus_master cap_list
                configuration: latency=0
                resources: memory:f2100400-f21004ff
        *-pci:5
             description: PCI bridge
             product: 5 Series/3400 Series Chipset PCI Express Root Port 7
             vendor: Intel Corporation
             physical id: 1c.6
             bus info: pci@0000:00:1c.6
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:22 memory:f2200000-f22fffff
           *-usb
                description: USB controller
                product: uPD720200 USB 3.0 Host Controller
                vendor: NEC Corporation
                physical id: 0
                bus info: pci@0000:0f:00.0
                version: 03
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi msix pciexpress xhci bus_master cap_list
                configuration: driver=xhci_hcd latency=0
                resources: irq:18 memory:f2200000-f2201fff
        *-pci:6
             description: PCI bridge
             product: 5 Series/3400 Series Chipset PCI Express Root Port 8
             vendor: Intel Corporation
             physical id: 1c.7
             bus info: pci@0000:00:1c.7
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:23 memory:f2300000-f23fffff
           *-generic
                description: SD Host controller
                product: MMC/SD Host Controller
                vendor: Ricoh Co Ltd
                physical id: 0
                bus info: pci@0000:17:00.0
                version: 01
                width: 32 bits
                clock: 33MHz
                capabilities: msi pm pciexpress bus_master cap_list
                configuration: driver=sdhci-pci latency=0
                resources: irq:19 memory:f2300000-f23000ff
           *-firewire
                description: FireWire (IEEE 1394)
                product: R5C832 PCIe IEEE 1394 Controller
                vendor: Ricoh Co Ltd
                physical id: 0.3
                bus info: pci@0000:17:00.3
                version: 01
                width: 32 bits
                clock: 33MHz
                capabilities: msi pm pciexpress ohci bus_master cap_list
                configuration: driver=firewire_ohci latency=0
                resources: irq:18 memory:f2300800-f2300fff
        *-usb:1
             description: USB controller
             product: 5 Series/3400 Series Chipset USB2 Enhanced Host Controller
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:19 memory:f2628400-f26287ff
        *-pci:7
             description: PCI bridge
             product: 82801 Mobile PCI Bridge
             vendor: Intel Corporation
             physical id: 1e
             bus info: pci@0000:00:1e.0
             version: a6
             width: 32 bits
             clock: 33MHz
             capabilities: pci subtractive_decode bus_master cap_list
        *-isa
             description: ISA bridge
             product: QM57 Chipset LPC Interface Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 06
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: driver=lpc_ich latency=0
             resources: irq:0
        *-storage
             description: SATA controller
             product: 5 Series/3400 Series Chipset 6 port SATA AHCI Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 06
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi pm ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:29 ioport:1818(size=8) ioport:180c(size=4) ioport:1810(size=8) ioport:1808(size=4) ioport:1840(size=32) memory:f2627000-f26277ff
        *-serial
             description: SMBus
             product: 5 Series/3400 Series Chipset SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 06
             width: 64 bits
             clock: 33MHz
             configuration: driver=i801_smbus latency=0
             resources: irq:23 memory:f2628800-f26288ff ioport:1860(size=32)
     *-pci:1
          description: Host bridge
          product: Core Processor QuickPath Architecture Generic Non-Core Registers
          vendor: Intel Corporation
          physical id: 101
          bus info: pci@0000:ff:00.0
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:2
          description: Host bridge
          product: Core Processor QuickPath Architecture System Address Decoder
          vendor: Intel Corporation
          physical id: 102
          bus info: pci@0000:ff:00.1
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:3
          description: Host bridge
          product: Core Processor QPI Link 0
          vendor: Intel Corporation
          physical id: 103
          bus info: pci@0000:ff:02.0
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:4
          description: Host bridge
          product: Core Processor QPI Physical 0
          vendor: Intel Corporation
          physical id: 104
          bus info: pci@0000:ff:02.1
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:5
          description: Host bridge
          product: Core Processor Integrated Memory Controller
          vendor: Intel Corporation
          physical id: 105
          bus info: pci@0000:ff:03.0
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:6
          description: Host bridge
          product: Core Processor Integrated Memory Controller Target Address Decoder
          vendor: Intel Corporation
          physical id: 106
          bus info: pci@0000:ff:03.1
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:7
          description: Host bridge
          product: Core Processor Integrated Memory Controller Test Registers
          vendor: Intel Corporation
          physical id: 107
          bus info: pci@0000:ff:03.4
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:8
          description: Host bridge
          product: Core Processor Integrated Memory Controller Channel 0 Control Registers
          vendor: Intel Corporation
          physical id: 108
          bus info: pci@0000:ff:04.0
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:9
          description: Host bridge
          product: Core Processor Integrated Memory Controller Channel 0 Address Registers
          vendor: Intel Corporation
          physical id: 109
          bus info: pci@0000:ff:04.1
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:10
          description: Host bridge
          product: Core Processor Integrated Memory Controller Channel 0 Rank Registers
          vendor: Intel Corporation
          physical id: 10a
          bus info: pci@0000:ff:04.2
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:11
          description: Host bridge
          product: Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers
          vendor: Intel Corporation
          physical id: 10b
          bus info: pci@0000:ff:04.3
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:12
          description: Host bridge
          product: Core Processor Integrated Memory Controller Channel 1 Control Registers
          vendor: Intel Corporation
          physical id: 10c
          bus info: pci@0000:ff:05.0
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:13
          description: Host bridge
          product: Core Processor Integrated Memory Controller Channel 1 Address Registers
          vendor: Intel Corporation
          physical id: 10d
          bus info: pci@0000:ff:05.1
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:14
          description: Host bridge
          product: Core Processor Integrated Memory Controller Channel 1 Rank Registers
          vendor: Intel Corporation
          physical id: 10e
          bus info: pci@0000:ff:05.2
          version: 04
          width: 32 bits
          clock: 33MHz
     *-pci:15
          description: Host bridge
          product: Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers
          vendor: Intel Corporation
          physical id: 10f
          bus info: pci@0000:ff:05.3
          version: 04
          width: 32 bits
          clock: 33MHz
  *-battery
       product: 42T4911
       vendor: LGC
       physical id: 1
       slot: Rear
       capacity: 56160mWh
       configuration: voltage=10.8V
 
Old 01-06-2018, 10:57 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 / Slackware 14.2 current / Void Linux / Peppermint Eight
Posts: 5,959

Rep: Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123
gives instructions on how to set xrandr

https://wiki.archlinux.org/index.php/xrandr
and
https://wiki.ubuntu.com/X/Config/Resolution
 
Old 01-07-2018, 05:06 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,054

Rep: Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213
I saw a YouTube video that recommended this. I haven't tried it myself.

https://slackbuilds.org/repository/1...?search=arandr
 
Old 01-07-2018, 06:46 PM   #7
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 170

Rep: Reputation: 24
I am running nvidia here and could not get xrandr to work correctly. After a lot of faffing i got the nvidia cli tool working, tied it to a keyboard shortcut that turns the TV on de-mutes my pc and starts kodi and when its invoked again resets everything.

The nvidia gui app is more than capable and will reset every thing with little effort. However if you need to reset it often then the commands I use are below and may help, don't forget to adjust DFP-0 and DFP-2 to the correct names and set the correct resolution before running them!


Just the monitor
Code:
nvidia-settings --assign CurrentMetaMode="DFP-0: nvidia-auto-select +0+0,"
With the TV (The view port in and out fixes overscan issues with my TV)
Code:
nvidia-settings --assign CurrentMetaMode="DFP-0:nvidia-auto-select+0+0,DFP-2:nvidia-auto-select+1920+0{ViewPortIn=1920x1080,ViewPortOut=1820x1022+50+29}"
 
Old 01-07-2018, 07:09 PM   #8
Gordie
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 348

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by SavoTU View Post
I am running nvidia here and could not get xrandr to work correctly. After a lot of faffing i got the nvidia cli tool working, tied it to a keyboard shortcut that turns the TV on de-mutes my pc and starts kodi and when its invoked again resets everything.

The nvidia gui app is more than capable and will reset every thing with little effort. However if you need to reset it often then the commands I use are below and may help, don't forget to adjust DFP-0 and DFP-2 to the correct names and set the correct resolution before running them!


Just the monitor
Code:
nvidia-settings --assign CurrentMetaMode="DFP-0: nvidia-auto-select +0+0,"
With the TV (The view port in and out fixes overscan issues with my TV)
Code:
nvidia-settings --assign CurrentMetaMode="DFP-0:nvidia-auto-select+0+0,DFP-2:nvidia-auto-select+1920+0{ViewPortIn=1920x1080,ViewPortOut=1820x1022+50+29}"
Slackware detected and setup my graphics card and provided a driver OOTB. I have not installed a driver for nvidia
 
Old 01-07-2018, 07:59 PM   #9
montagdude
Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 897

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
The first thing I would try is:

Code:
xrandr -q
From that output, determine the name of your display. For example, mine is LVDS1. Then:

Code:
xrandr --output ${NAME_OF_DISPLAY} --auto
If that doesn't work, look into the --pos, --scale, and/or --scale-from options.
 
1 members found this post helpful.
Old 01-07-2018, 09:21 PM   #10
Gordie
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 348

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by montagdude View Post
The first thing I would try is:

Code:
xrandr -q
From that output, determine the name of your display. For example, mine is LVDS1. Then:

Code:
xrandr --output ${NAME_OF_DISPLAY} --auto
If that doesn't work, look into the --pos, --scale, and/or --scale-from options.
Code:
bash-4.3$ xrandr -q
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768      60.00*+
   1024x768      59.92  
   800x600       59.86  
   640x480       59.38  
   720x400       59.55  
   640x400       59.95  
   640x350       59.77  
VGA-1 connected (normal left inverted right x axis y axis)
   1024x768      60.00  
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
bash-4.3$
 
Old 01-07-2018, 09:48 PM   #11
montagdude
Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 897

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Is this with the VGA monitor attached? It looks like it is (or it thinks it is) based on the xrandr output. Here is what I do to manage an external display. Note that mine is HDMI1 instead of VGA-1, and my main display is LVDS1, so modify this to suit your system.

After plugging in the external monitor, I run this:
Code:
xrandr -q
sleep 3s
xrandr --output HDMI1 --auto --left-of LVDS1
(I don't honestly remember what the xrandr -q and sleep commands are for. I'm guessing it's to make sure that it sees the external monitor.)

When I am about to disconnect the external monitor, I run this first:
Code:
xrandr --output HDMI1 --off
This turns off the external monitor and ensures that no weirdness occurs after I unplug it. Though I should mention, I have not needed to run this script for VGA displays, just the HDMI, and I haven't connected to the HDMI in a long time, so the situation may have changed. But anyway, you may need to do something like this, since it appears that your system gets confused when the VGA monitor is unplugged.

Last edited by montagdude; 01-07-2018 at 09:49 PM.
 
1 members found this post helpful.
Old 01-07-2018, 10:33 PM   #12
Gordie
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 348

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by montagdude View Post
Is this with the VGA monitor attached? It looks like it is (or it thinks it is) based on the xrandr output. Here is what I do to manage an external display. Note that mine is HDMI1 instead of VGA-1, and my main display is LVDS1, so modify this to suit your system.

After plugging in the external monitor, I run this:
Code:
xrandr -q
sleep 3s
xrandr --output HDMI1 --auto --left-of LVDS1
(I don't honestly remember what the xrandr -q and sleep commands are for. I'm guessing it's to make sure that it sees the external monitor.)

When I am about to disconnect the external monitor, I run this first:
Code:
xrandr --output HDMI1 --off
This turns off the external monitor and ensures that no weirdness occurs after I unplug it. Though I should mention, I have not needed to run this script for VGA displays, just the HDMI, and I haven't connected to the HDMI in a long time, so the situation may have changed. But anyway, you may need to do something like this, since it appears that your system gets confused when the VGA monitor is unplugged.
LOL my system gets confused when I plug it in and then it gets even more confused when I watch a movie. It stays confused until I restart x.

Anyway here is what I did
Code:
xrandr -q
sleep 3s
xrandr --output VGA-1 --auto --left-of LVDS-1
that made my resolutions change and stretch wider.

Before unplugging I did
Code:
xrandr --output VGA-1 --off
and nothing happened. Here is what I did then. Nothing to loose right?
since nothing happened I ran the first commend again and VOILA all returned to normal. Not at all what I expected but sure is sweet
 
Old 01-07-2018, 10:39 PM   #13
montagdude
Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 897

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
That's strange. My guess is that it's some shortcoming of the nouveau driver. If you haven't already and you think it is worth the trouble, you might give the nVidia proprietary driver a try. I don't have much experience with nVidia stuff myself.
 
Old 01-07-2018, 10:45 PM   #14
Gordie
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 348

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by montagdude View Post
That's strange. My guess is that it's some shortcoming of the nouveau driver. If you haven't already and you think it is worth the trouble, you might give the nVidia proprietary driver a try. I don't have much experience with nVidia stuff myself.
Well, I could give it a try. SBO has an nvidia driver for my system. Maybe it will work.

Thank you so much for the help and for a solution. I am going to mark this tread solved. Thanks again and thanks also to all who responded to my post
 
Old 01-20-2018, 05:07 PM   #15
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,054

Rep: Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213
If your setup uses xrandr and a single monitor, then the following will automatically set your video mode to the correct one:

Code:
xrandr \
	--output "$(xrandr -q | awk '$2 == "connected" {print $1}')" \
	--preferred

Last edited by dugan; 01-20-2018 at 05:57 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration