Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys. A while back I switched from the proprietary nvidia driver to nouveau due to a mode switching nuisance when switching between HDMI inputs. It's been fine since then except my desktop is stuck at 1920x1080. For the most part it's not a problem after adjusting font sizes.
Recently I have tried a couple of games, and when attempting to run in 1280x720 or 1366x768 fullscreen it goes blank and my monitor shows its unsupported video mode message. 4:3 modes such as 1024x768 will work in fullscreen, though. The 720p modes are listed in xrandr and they worked with the nvidia driver, and they work now in Windows when I dual boot.
The reason I'd like to change the mode is because, although this is a 1080p monitor, it is only a 19in. Some games that run in 1080 fullscreen or windowed at 1024x768 are hard to see some text and details.
Are you using the nouveau display driver too, or only the nouveau kernel and dri drivers? Using the modesetting display driver, 1280x720 on a 1920x1080 TV is not a problem here:
Teckk, That worked for desktop and window manager fonts, and I have an Xft.dpi line in my .Xdefaults. My problem is games or other things that would run in a window. On a 19" tv set to 1920x1080 a 640x480 window is very small. For example, when playing Diablo1 with devilutionx running fullscreen in 1080p items and monsters are too small to see. 720p fullscreen is comfortable, but in a window it is still very small, and if I try to make it fullscreen the described problem occurs.
mrmazda, I believe I am using the modesetting driver. This is my Graphics section of my inxi output:
To test if it's a fault of the games/programs I tried using the xrandr command from a terminal with no other programs opened. The same thing happened. I see a glimpse of my desktop with the bottom half covered in horizontal stripes for just a second then it goes blank.
You are using the modesetting. That inxi doesn't follow showing in either unloaded or alternate with nouveau suggests that the nouveau display driver is not installed. You may try installing it to see if it helps after an Xorg restart or a reboot. Upstream's package name is xf86-video-nouveau, but some distros package it under other names, such as xserver-xorg-video-nouveau in Debian and derivatives.
It's possible that modesetting is explicitly configured as "Driver" in /etc/X11/xorg.conf or in one of the files in /etc/X11/xorg.conf.d/, where it would need to be switched, or that file containing it removed. It's also possible such a file could be there forcing 1920x1080, so check that out with any plain text file viewer. Any such files there related to graphics are normally not needed, but proprietary NVidia driver installation typically creates one or some that shouldn't remain if their driver is uninstalled, yet they often do.
I have the xf86-video-nouveau package installed, I'm not using a xorg.conf, and /etc/X11/xorg.conf.d is empty. I browsed my Xorg.o.log for clues but nothing stands out to me. Here is the portions about modules and display and modesetting, with a bunch of the low res modelines cut to improve readability.
Would I need to create a xorg.conf file to force or override something?
Code:
X.Org X Server 1.20.14
X Protocol Version 11, Revision 0
[ 3866.922] Build Operating System: Slackware 15.0 Slackware Linux Project
...
[ 3866.926] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 25 08:40:01 2023
[ 3866.926] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 3866.927] (==) No Layout section. Using the first Screen section.
[ 3866.927] (==) No screen section available. Using defaults.
[ 3866.927] (**) |-->Screen "Default Screen Section" (0)
[ 3866.927] (**) | |-->Monitor "<default monitor>"
[ 3866.927] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 3866.927] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 3866.927] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 3866.927] (II) Loader magic: 0x619c80
[ 3866.927] (II) Module ABI versions:
[ 3866.927] X.Org ANSI C Emulation: 0.4
[ 3866.927] X.Org Video Driver: 24.1
[ 3866.927] X.Org XInput driver : 24.1
[ 3866.927] X.Org Server Extension : 10.0
[ 3866.927] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 3866.930] (--) PCI:*(1@0:0:0) 10de:1380:10de:105f rev 162, Mem @ 0xfd000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[ 3866.930] (II) Open ACPI successful (/var/run/acpid.socket)
[ 3866.930] (II) LoadModule: "glx"
[ 3866.930] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 3866.931] (II) Module glx: vendor="X.Org Foundation"
[ 3866.931] compiled for 1.20.14, module version = 1.0.0
[ 3866.931] ABI class: X.Org Server Extension, version 10.0
[ 3867.059] (==) Matched modesetting as autoconfigured driver 0
[ 3867.059] (==) Matched fbdev as autoconfigured driver 1
[ 3867.059] (==) Matched vesa as autoconfigured driver 2
[ 3867.059] (==) Assigned the driver to the xf86ConfigLayout
[ 3867.059] (II) LoadModule: "modesetting"
[ 3867.060] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 3867.061] (II) Module modesetting: vendor="X.Org Foundation"
[ 3867.061] compiled for 1.20.14, module version = 1.20.14
[ 3867.061] Module class: X.Org Video Driver
[ 3867.061] ABI class: X.Org Video Driver, version 24.1
[ 3867.061] (II) LoadModule: "fbdev"
[ 3867.062] (WW) Warning, couldn't open module fbdev
[ 3867.062] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 3867.062] (II) LoadModule: "vesa"
[ 3867.063] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[ 3867.063] (II) Module vesa: vendor="X.Org Foundation"
[ 3867.063] compiled for 1.20.10, module version = 2.5.0
[ 3867.063] Module class: X.Org Video Driver
[ 3867.063] ABI class: X.Org Video Driver, version 24.1
[ 3867.063] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 3867.063] (II) VESA: driver for VESA chipsets: vesa
[ 3867.063] (++) using VT number 1
[ 3867.063] (II) modeset(0): using drv /dev/dri/card0
[ 3867.064] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 3867.064] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 3867.064] (==) modeset(0): RGB weight 888
[ 3867.064] (==) modeset(0): Default visual is TrueColor
[ 3867.064] (II) Loading sub module "glamoregl"
[ 3867.064] (II) LoadModule: "glamoregl"
[ 3867.064] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 3867.069] (II) Module glamoregl: vendor="X.Org Foundation"
[ 3867.069] compiled for 1.20.14, module version = 1.0.1
[ 3867.069] ABI class: X.Org ANSI C Emulation, version 0.4
[ 3867.161] (II) modeset(0): glamor X acceleration enabled on NV117
[ 3867.161] (II) modeset(0): glamor initialized
[ 3867.173] (II) modeset(0): Output DVI-I-1 has no monitor section
[ 3867.174] (II) modeset(0): Output DVI-D-1 has no monitor section
[ 3867.244] (II) modeset(0): Output HDMI-1 has no monitor section
[ 3867.257] (II) modeset(0): EDID for output DVI-I-1
[ 3867.258] (II) modeset(0): EDID for output DVI-D-1
[ 3867.327] (II) modeset(0): EDID for output HDMI-1
[ 3867.327] (II) modeset(0): Manufacturer: TSB Model: 206 Serial#: 16843009
[ 3867.327] (II) modeset(0): Year: 2012 Week: 1
[ 3867.327] (II) modeset(0): EDID Version: 1.3
[ 3867.327] (II) modeset(0): Digital Display Input
[ 3867.327] (II) modeset(0): Max Image Size [cm]: horiz.: 160 vert.: 90
[ 3867.327] (II) modeset(0): Gamma: 2.20
[ 3867.327] (II) modeset(0): No DPMS capabilities specified
[ 3867.327] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[ 3867.327] (II) modeset(0): First detailed timing is preferred mode
[ 3867.327] (II) modeset(0): redX: 0.640 redY: 0.335 greenX: 0.285 greenY: 0.605
[ 3867.327] (II) modeset(0): blueX: 0.150 blueY: 0.060 whiteX: 0.280 whiteY: 0.290
[ 3867.327] (II) modeset(0): Supported established timings:
[ 3867.327] (II) modeset(0): 640x480@60Hz
[ 3867.327] (II) modeset(0): 800x600@60Hz
[ 3867.327] (II) modeset(0): 1024x768@60Hz
[ 3867.327] (II) modeset(0): Manufacturer's mask: 0
[ 3867.328] (II) modeset(0): Supported standard timings:
[ 3867.328] (II) modeset(0): #0: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
[ 3867.328] (II) modeset(0): #1: hsize: 1360 vsize 765 refresh: 60 vid: 49291
[ 3867.328] (II) modeset(0): Supported detailed timing:
[ 3867.328] (II) modeset(0): clock: 148.5 MHz Image Size: 1600 x 900 mm
[ 3867.328] (II) modeset(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 3867.328] (II) modeset(0): v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0
[ 3867.328] (II) modeset(0): Supported detailed timing:
[ 3867.328] (II) modeset(0): clock: 85.5 MHz Image Size: 1600 x 900 mm
[ 3867.328] (II) modeset(0): h_active: 1360 h_sync: 1424 h_sync_end 1536 h_blank_end 1792 h_border: 0
[ 3867.328] (II) modeset(0): v_active: 768 v_sync: 771 v_sync_end 777 v_blanking: 795 v_border: 0
[ 3867.328] (II) modeset(0): Monitor name: TOSHIBA-TV
[ 3867.328] (II) modeset(0): Ranges: V min: 23 V max: 61 Hz, H min: 15 H max: 68 kHz, PixClock max 155 MHz
[ 3867.328] (II) modeset(0): Supported detailed timing:
[ 3867.328] (II) modeset(0): clock: 74.2 MHz Image Size: 1600 x 900 mm
[ 3867.328] (II) modeset(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 3867.328] (II) modeset(0): v_active: 540 v_sync: 542 v_sync_end 547 v_blanking: 562 v_border: 0
[ 3867.328] (II) modeset(0): Supported detailed timing:
[ 3867.328] (II) modeset(0): clock: 74.2 MHz Image Size: 1600 x 900 mm
[ 3867.328] (II) modeset(0): h_active: 1280 h_sync: 1390 h_sync_end 1430 h_blank_end 1650 h_border: 0
[ 3867.328] (II) modeset(0): v_active: 720 v_sync: 725 v_sync_end 730 v_blanking: 750 v_border: 0
[ 3867.328] (II) modeset(0): Supported detailed timing:
[ 3867.328] (II) modeset(0): clock: 27.0 MHz Image Size: 1200 x 900 mm
[ 3867.328] (II) modeset(0): h_active: 720 h_sync: 736 h_sync_end 798 h_blank_end 858 h_border: 0
[ 3867.328] (II) modeset(0): v_active: 480 v_sync: 489 v_sync_end 495 v_blanking: 525 v_border: 0
[ 3867.328] (II) modeset(0): Supported detailed timing:
[ 3867.328] (II) modeset(0): clock: 27.0 MHz Image Size: 1200 x 900 mm
[ 3867.328] (II) modeset(0): h_active: 1440 h_sync: 1478 h_sync_end 1602 h_blank_end 1716 h_border: 0
[ 3867.328] (II) modeset(0): v_active: 240 v_sync: 244 v_sync_end 247 v_blanking: 262 v_border: 0
[ 3867.328] (II) modeset(0): Number of EDID sections to follow: 1
[ 3867.328] (II) modeset(0): EDID (in hex):
[ 3867.328] (II) modeset(0): 00ffffffffffff005262060201010101
[ 3867.328] (II) modeset(0): 0116010380a05a780af09da355499b26
[ 3867.328] (II) modeset(0): 0f474a21080081808bc0010101010101
[ 3867.328] (II) modeset(0): 010101010101023a801871382d40582c
[ 3867.328] (II) modeset(0): 450040846300001e662150b051001b30
[ 3867.328] (II) modeset(0): 4070360040846300001e000000fc0054
[ 3867.328] (II) modeset(0): 4f53484942412d54560a2020000000fd
[ 3867.328] (II) modeset(0): 00173d0f440f000a2020202020200194
[ 3867.328] (II) modeset(0): 02032671499001020304050607202609
[ 3867.328] (II) modeset(0): 0707110718830100006c030c00130000
[ 3867.329] (II) modeset(0): 21c015151f1f011d8018711c1620582c
[ 3867.329] (II) modeset(0): 250040846300009e011d007251d01e20
[ 3867.329] (II) modeset(0): 6e28550040846300001e8c0ad08a20e0
[ 3867.329] (II) modeset(0): 2d10103e9600b084430000188c0aa014
[ 3867.329] (II) modeset(0): 51f01600267c4300b084430000980000
[ 3867.329] (II) modeset(0): 0000000000000000000000000000004c
[ 3867.329] (--) modeset(0): HDMI max TMDS frequency 165000KHz
[ 3867.329] (II) modeset(0): Not using default mode "1920x1080" (bad mode clock/interlace/doublescan)
[ 3867.329] (II) modeset(0): Not using default mode "1440x810" (bad mode clock/interlace/doublescan)
[ 3867.329] (II) modeset(0): Not using default mode "1600x900" (bad mode clock/interlace/doublescan)
[ 3867.329] (II) modeset(0): Not using default mode "1600x900" (bad mode clock/interlace/doublescan)
[ 3867.329] (II) modeset(0): Not using default mode "1920x1080" (bad mode clock/interlace/doublescan)
[ 3867.329] (II) modeset(0): Not using default mode "1280x800" (bad mode clock/interlace/doublescan)
[ 3867.329] (II) modeset(0): Printing probed modes for output HDMI-1
[ 3867.329] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[ 3867.330] (II) modeset(0): Modeline "1920x1080"x59.9 148.35 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[ 3867.330] (II) modeset(0): Modeline "1920x1080"x59.9 138.50 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync (66.6 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1920x1080i"x60.0 74.25 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[ 3867.330] (II) modeset(0): Modeline "1920x1080"x24.0 74.25 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[ 3867.330] (II) modeset(0): Modeline "1920x1080i"x59.9 74.18 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.7 kHz e)
[ 3867.330] (II) modeset(0): Modeline "1920x1080"x24.0 74.18 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
...
[ 3867.330] (II) modeset(0): Modeline "1368x768"x59.9 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync (47.8 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1368x768"x59.9 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync (47.3 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1360x768"x59.9 84.96 1366 1431 1567 1776 768 771 781 798 -hsync +vsync (47.8 kHz)
[ 3867.330] (II) modeset(0): Modeline "1360x768"x60.0 85.50 1360 1424 1536 1792 768 771 777 795 +hsync +vsync (47.7 kHz e)
[ 3867.330] (II) modeset(0): Modeline "1280x800"x60.0 134.25 1280 1304 1320 1360 800 801 804 823 doublescan +hsync -vsync (98.7 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1280x800"x59.8 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync (49.7 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1280x800"x59.9 71.00 1280 1328 1360 1440 800 803 809 823 +hsync -vsync (49.3 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1280x720"x60.0 156.12 1280 1376 1512 1744 720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1280x720"x60.0 120.75 1280 1304 1320 1360 720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1280x720"x59.9 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync (44.8 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1280x720"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 3867.330] (II) modeset(0): Modeline "1280x720"x59.9 74.18 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 3867.330] (II) modeset(0): Modeline "1280x720"x59.7 63.75 1280 1328 1360 1440 720 723 728 741 +hsync -vsync (44.3 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1024x768"x60.0 133.47 1024 1100 1212 1400 768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[ 3867.330] (II) modeset(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
...
[ 3867.332] (II) modeset(0): Output DVI-I-1 disconnected
[ 3867.332] (II) modeset(0): Output DVI-D-1 disconnected
[ 3867.332] (II) modeset(0): Output HDMI-1 connected
[ 3867.332] (II) modeset(0): Using exact sizes for initial modes
[ 3867.332] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +0+0
[ 3867.332] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 3867.332] (++) modeset(0): DPI set to (92, 92)
[ 3867.332] (II) Loading sub module "fb"
[ 3867.332] (II) LoadModule: "fb"
[ 3867.333] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 3867.333] (II) Module fb: vendor="X.Org Foundation"
[ 3867.333] compiled for 1.20.14, module version = 1.0.0
[ 3867.333] ABI class: X.Org ANSI C Emulation, version 0.4
[ 3867.333] (II) UnloadModule: "vesa"
[ 3867.333] (II) Unloading vesa
[ 3867.377] (==) modeset(0): Backing store enabled
[ 3867.377] (==) modeset(0): Silken mouse enabled
[ 3867.389] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[ 3867.390] (==) modeset(0): DPMS enabled
[ 3867.390] (II) modeset(0): [DRI2] Setup complete
[ 3867.390] (II) modeset(0): [DRI2] DRI driver: nouveau
[ 3867.390] (II) modeset(0): [DRI2] VDPAU driver: nouveau
[ 3867.390] (II) Initializing extension Generic Event Extension
[ 3867.390] (II) Initializing extension SHAPE
[ 3867.390] (II) Initializing extension MIT-SHM
[ 3867.390] (II) Initializing extension XInputExtension
[ 3867.390] (II) Initializing extension XTEST
[ 3867.390] (II) Initializing extension BIG-REQUESTS
[ 3867.390] (II) Initializing extension SYNC
[ 3867.390] (II) Initializing extension XKEYBOARD
[ 3867.390] (II) Initializing extension XC-MISC
[ 3867.390] (II) Initializing extension XFIXES
[ 3867.390] (II) Initializing extension RENDER
[ 3867.390] (II) Initializing extension RANDR
[ 3867.390] (II) Initializing extension COMPOSITE
[ 3867.390] (II) Initializing extension DAMAGE
[ 3867.391] (II) Initializing extension MIT-SCREEN-SAVER
[ 3867.391] (II) Initializing extension DOUBLE-BUFFER
[ 3867.391] (II) Initializing extension RECORD
[ 3867.391] (II) Initializing extension DPMS
[ 3867.391] (II) Initializing extension Present
[ 3867.391] (II) Initializing extension DRI3
[ 3867.391] (II) Initializing extension X-Resource
[ 3867.391] (II) Initializing extension XVideo
[ 3867.391] (II) Initializing extension XVideo-MotionCompensation
[ 3867.391] (II) Initializing extension GLX
[ 3867.397] (II) AIGLX: Loaded and initialized nouveau
[ 3867.397] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 3867.397] (II) Initializing extension XFree86-VidModeExtension
[ 3867.397] (II) Initializing extension XFree86-DGA
[ 3867.397] (II) Initializing extension XFree86-DRI
[ 3867.397] (II) Initializing extension DRI2
[ 3867.398] (II) modeset(0): Damage tracking initialized
[ 3867.398] (II) modeset(0): Setting screen physical size to 530 x 298
Edit: Just decided to try the 768 resolutions with xrandr from a terminal. 1360 works but 1368 does not.
With 1360x768 working from a terminal I would take it and be happy rather than pursuing further. It may be your TV has a bug preventing 1280x720. TVs often use 136Nx768 to show 720p programs from ABC and Fox. CBS, NBC and PBS normally use 1080i. Nevertheless, nouveau display driver ought to be given a chance. Create file /etc/X11/xorg.conf.d/50-device.conf containing:
mrmazda, as always, you are a fount of wisdom. I agree that 1360x768 will satisfy, and the next time I boot into Windows I will double-check my resolution there. Per your advice I checked my tv/monitor's details with hwinfo (after installing it), and if I understand the output it means the only supported 720p res is the 1360.
if I understand the output it means the only supported 720p res is the 1360.
That hwinfo list only includes the preset modes. Obviously since Windows can do 1280x720, so should Linux be able to. Something in Slackware must be causing it to only select from among the presets even though xrandr makes it clear 1280x720 as well as several others not in that hwinfo list are supported. The suggested files in /etc/X11/ might still get you there.
With the suggested xorg files X still started in 1920x1080 but using xrandr to set 1280x720 actually worked. After some more Googling and trial-and-error it turns out I also needed a file for the Screen section to include the desired modes in order of preference.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.