You are not logged in.

#1 2020-06-15 11:15:29

thishan
Member
Registered: 2020-06-15
Posts: 3

[Solved] Unable to change screen resolution

Hi all, Im unable to change the screen resolution after an update
Earlier it used to be 1440x900 60.00 , Im unable to reset it to the original configuration.

xrandr outputs  " Failed to get size of gamma for output default "  for all its options

xrandr output

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768
default connected primary 1024x768+0+0 0mm x 0mm
   1024x768       0.00* 
   800x600        0.00  
   640x480        0.00 

Info about Graphics

01:00.0 VGA compatible controller: NVIDIA Corporation GT218M [NVS 3100M] (rev a2) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 040a
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at e2000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at e0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 7000 [size=128]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel modules: nouveau, nvidia_drm, nvidia

used this post to set resolution using xrandr, but it also didnt work.


 sudo pacman -Qs ^xf86-video
local/xf86-video-nouveau 1.0.16-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards
local/xf86-video-vesa 2.4.0-3 (xorg-drivers xorg)
    X.org vesa video driver
$cvt 1440 900 
# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync

$ xrandr --newmode "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
xrandr: Failed to get size of gamma for output default


$ xrandr --addmode default 1440x900_60.00
xrandr: Failed to get size of gamma for output default


$xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768
default connected primary 1024x768+0+0 0mm x 0mm
   1024x768       0.00* 
   800x600        0.00  
   640x480        0.00  
   1440x900_60.00  59.89  


$xrandr --output default --mode 1440x900_60.00
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed

anyhelp would be appreciated. I have been stuck on this for the past 4 days.

Last edited by thishan (2020-06-15 16:05:30)

Offline

#2 2020-06-15 11:43:15

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: [Solved] Unable to change screen resolution

compare "lsmod" / "lspci -k" and the xorg log.
I bet your right arm that you've the nvidia module loaded, but in absence of the Xorg driver run on the vesa driver.

Offline

#3 2020-06-15 13:06:25

thishan
Member
Registered: 2020-06-15
Posts: 3

Re: [Solved] Unable to change screen resolution

Thanks Seth, I checked the lsmod output for nvidia , nvidia was not found,
i tried modprobe command , im was getting no such device error.

# modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': No such device
 #modprobe nvidia -vv
modprobe: INFO: custom logging function 0x5622233e1f50 registered
insmod /lib/modules/5.7.2-arch1-1/extramodules/nvidia.ko.xz 
modprobe: INFO: Failed to insert module '/lib/modules/5.7.2-arch1-1/extramodules/nvidia.ko.xz': No such device
modprobe: ERROR: could not insert 'nvidia': No such device
modprobe: INFO: context 0x562224ce3440 released

dmesg output

[ 4080.549651] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[ 4080.551154] NVRM: The NVIDIA NVS 3100M GPU installed in this system is
               NVRM:  supported through the NVIDIA 340.xx Legacy drivers. Please
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
               NVRM:  information.  The 440.82 NVIDIA driver will ignore
               NVRM:  this GPU.  Continuing probe...
[ 4080.551164] NVRM: No NVIDIA graphics adapter found!
[ 4080.551448] nvidia-nvlink: Unregistered the Nvlink Core, major device number 236

from this dmesg output , I found out that the problem was with nvidia 440 driver, I unistalled it and installed the 340driver from AUR, voila the resolution changed back to normal and xrandr shows the output.

$xrandr
Screen 0: minimum 8 x 8, current 1440 x 900, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 303mm x 190mm
   1440x900      60.00*+  40.00  
DP-4 disconnected (normal left inverted right x axis y axis)

From now on, i will keep in mind to check dmesg outputs.
Is there a way to prevent nvidia driver from upgrading when doing a system upgrade ?

Offline

#4 2020-06-15 13:18:22

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: [Solved] Unable to change screen resolution

The AUR driver won't update anyway, you *have* to do this unless you installed the dkms package (in which case it will be rebuild with kernel updates)
As for the "nvidia" package in the repos, just don't install it (since it doesn't support your GPU)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Ps: sorry about your arm ;-)

Offline

#5 2020-06-15 16:04:41

thishan
Member
Registered: 2020-06-15
Posts: 3

Re: [Solved] Unable to change screen resolution

Thanks a lot ..

Offline

Board footer

Powered by FluxBB