Sony GVC-JS160J screen resolution

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Sony GVC-JS160J screen resolution

Post by Tommy G »

Please help, A beautiful machine rendered useless. Need work around. "Evidently the display EDID chip is presenting wrong info, causing the X.Org server to choose the wrong resolution."
See background and info here: viewtopic.php?t=249739
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Sony GVC-JS160J screen resolution

Post by roblm »

I suggest testing a custom xorg.conf file. Use this command to create it:

Code: Select all

gksudo xed /etc/X11/xorg.conf
In the opened empty file, add these lines:

Code: Select all

Section "ServerLayout"
   Identifier   "Layout0"
   Screen   0 "Screen0" 0 0 
EndSection

Section "Monitor"
   Identifier    "Monitor0"
   HorizSync       24.0 - 94.0	   
   VertRefresh     24.0 - 76.0
   Modeline "1680x1050R"  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync
   Option "PreferredMode" "1680x1050R" 
EndSection

Section "Device"
   Identifier   "Device0"
   Driver   "intel"   			
   Option "Monitor-LVDS1" "Monitor0"
EndSection

Section "Screen"
   Identifier   "Screen0"
   Device   "Device0"
   Monitor   "Monitor0"
   DefaultDepth   24
EndSection
Log out and back in. If the display is not correct, then open Preferences > Display and check for the 1680x1050 resolution.
If that method fails, then open the xorg.conf file with the same command used to create it and change these two lines:

Code: Select all

Modeline "1680x1050R"  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync
Option "PreferredMode" "1680x1050R"
To these:

Code: Select all

Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
Option "PreferredMode" "1680x1050"
If there is a problem getting back to the desktop, then press Ctrl+Alt+F1 to enter the virtual console tty1. Login and then type this command to remove the xorg.conf file:

Code: Select all

sudo rm /etc/X11/xorg.conf
Then type: sudo reboot
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Great instructions but the resolution did not change nor was it added as a selection for display. I did save the xorg.conf file each time before logging out/rebooting.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Sony GVC-JS160J screen resolution

Post by roblm »

1. Is your system a dual-boot with Windows?

2. Add this line to the Monitor section of the xorg.conf file and then test both Modelines again:

Code: Select all

DisplaySize  443 249
If that fails, then try using this command after testing the first Modeline:

Code: Select all

xrandr --output LVDS1 --mode 1680x1050R
Use this command after testing the second Modeline:

Code: Select all

xrandr --output LVDS1 --mode 1680x1050
3. Sometimes Linux has a problem displaying a resolution if it is not a multiple of 8. Try using these lines in the Monitor section of the xorg.conf file:

Code: Select all

Modeline "1680x1048R"  118.75  1680 1728 1760 1840  1048 1051 1061 1078 +hsync -vsync
Option "PreferredMode" "1680x1048R"
f that fails, then try using this command:

Code: Select all

xrandr --output LVDS1 --mode 1680x1048R
If that fails, then try these lines:

Code: Select all

Modeline "1680x1048_60.00"  146.00  1680 1784 1960 2240  1048 1051 1061 1087 -hsync +vsync
Option "PreferredMode" "1680x1048"
If that fails, then try using this command:

Code: Select all

xrandr --output LVDS1 --mode 1680x1048
4. If that fails, then restart your PC and at the GRUB boot menu select the correct line but don’t press Enter. Press the “E” key to edit. If no menu shows, then hold down the shift key while starting. Use the Down arrow key to go down to the line that starts with:
linux /boot/vmlinuz.............ro quiet splash $vt_handoff

Press the End key to go to the end of the line. Add a space and then type this kernel parameter:

Code: Select all

drm_kms_helper.edid_firmware=edid/1680x1050.bin
Press F10 to start your system.
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Before I got into this next set I went back and tried the first solutions again; This time closed the editor after saving the xorg.conf file before logging out. I immediately got errors in the terminal. Should I ignore and continue?

Tried origional 1st modline got below errors:

** (xed:4124): WARNING **: Set document metadata failed: Setting attribute metadata::xed-spell-language not supported
** (xed:4124): WARNING **: Set document metadata failed: Setting attribute metadata::xed-encoding not supported
** (xed:4124): WARNING **: Set document metadata failed: Setting attribute metadata::xed-position not supported

Tried origional 2st modline got below errors:

** (xed:4175): WARNING **: Set document metadata failed: Setting attribute metadata::xed-spell-language not supported
** (xed:4175): WARNING **: Set document metadata failed: Setting attribute metadata::xed-encoding not supported
** (xed:4175): WARNING **: Set document metadata failed: Setting attribute metadata::xed-position not supported

tried origional 2nd modline with added line, DisplaySize 443 249, at bottom of section, got below errors:

** (xed:4209): WARNING **: Set document metadata failed: Setting attribute metadata::xed-spell-language not supported
** (xed:4209): WARNING **: Set document metadata failed: Setting attribute metadata::xed-encoding not supported
** (xed:4209): WARNING **: Set document metadata failed: Setting attribute metadata::xed-position not supported

tried origional 1st modline with added line, DisplaySize 443 249, at bottom of section, got below errors:

** (xed:4233): WARNING **: Set document metadata failed: Setting attribute metadata::xed-spell-language not supported
** (xed:4233): WARNING **: Set document metadata failed: Setting attribute metadata::xed-encoding not supported
** (xed:4233): WARNING **: Set document metadata failed: Setting attribute metadata::xed-position not supported
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Sony GVC-JS160J screen resolution

Post by roblm »

I don't remember seeing those error messages. Did you perhaps use the command sudo xed /etc/X11/xorg.conf this time, instead of gksudo xed /etc/X11/xorg.conf, because it worked in your previous post.

If that doesn't work, then use this command in the Terminal to open the file:

Code: Select all

sudo nano -t /etc/X11/xorg.conf
Use the Arrow keys to move the cursor. After editing the file, press Ctrl+X to save
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Used, sudo nano -t /etc/X11/xorg.conf, to edit and went through all steps and no errors but unfortunately no change. I did leave the line, DisplaySize 443 249, in the xorg.conf durrimg the steps that followed.
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

I had hopes the last step would trump all and work. Question, last step referenced 1680x1050.bin but the last xorg.conf was with 1680x1048. Could this be an issue? I will introduce original xorg.conf changes and see if they can work. Otherwise seems xorg.conf is being ignored.
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Oh, confirmed that I do get the WARNINGS after modifying the xorg.conf by editing from the command gksudo xed /etc/X11/xorg.conf
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

IT'S WORKING! IT'S WORKING! IT'S WORKING!
Repeated the last step of adding the kernel parameter.
Is there anything I should do to insure this is permanent?
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Working but every time I boot I must add the kernel parameter.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Sony GVC-JS160J screen resolution

Post by roblm »

Use this command to remove the xorg.conf file:

Code: Select all

sudo rm /etc/X11/xorg.conf
You can make the kernel parameter to be executed automatically by editing the grub file. Use this command to open the file:

Code: Select all

gksudo xed /etc/default/grub
If that doesn't work, then use the nano text editor again:

Code: Select all

sudo nano -t /etc/default/grub
Change this line:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To this:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash drm_kms_helper.edid_firmware=edid/1680x1050.bin"
Press Ctrl+X to save the file and then use this command to update grub:

Code: Select all

sudo update-grub
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Working great now. Many thanks to you and the forum members that got me to this point. A great community. However, I have another problem. Power options are set to Suspend when inactive for 10 min. This works but it will not wake up. It tries but the screen never comes back. Should I make this a new Subject?
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Sony GVC-JS160J screen resolution

Post by roblm »

You may want to first try updating the kernel to 4.10 in the Update Manager > View > Linux kernels. If that doesn't help, then start a new topic.
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Thanks again but says I am currently using the latest 4.10.0-28.
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

HELP! Just wiped drive with fresh install of 20.2 and same problem. Tried to replicate steps but failed to fix.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Sony GVC-JS160J screen resolution

Post by roblm »

You can expect problems with your very old system. It was able to run Mint 18 but now you’re using a lot newer kernel, X display server and graphics driver. Also, the kernel parameter you previously used successfully may not work now on your system because of changes made by the Linux developers.

Use this command in the Terminal to get more info:
inxi -Fxrz; echo +; xrandr --verbose; echo +; ls /sys/class/drm/

In the Menu at the top, select Edit > Select All and then Edit > Copy

Open the Mint Forum reply window and select </> at the top. Press Ctrl+V to paste the copied lines into a code display window.
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Code: Select all

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ann@SonyVIAO-JS160J:~$ inxi -Fxrz; echo +; xrandr --verbose; echo +; ls /sys/class/drm/
System:
  Kernel: 5.4.0-74-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 5.0.4 Distro: Linux Mint 20.2 Uma 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop System: Sony product: VGC-JS160J v: C6U06ZKS 
  serial: <filter> 
  Mobo: Sony model: VAIO serial: <filter> 
  BIOS: American Megatrends v: R0201T4 date: 08/29/2008 
CPU:
  Topology: Dual Core model: Pentium E5200 bits: 64 type: MCP 
  arch: Penryn rev: A L2 cache: 2048 KiB 
  flags: lm nx pae sse sse2 sse3 ssse3 bogomips: 9975 
  Speed: 1197 MHz min/max: 1203/2500 MHz Core speeds (MHz): 
  1: 1197 2: 1197 
Graphics:
  Device-1: Intel 4 Series Integrated Graphics vendor: Sony 
  driver: i915 v: kernel bus ID: 00:02.0 
  Display: x11 server: X.Org 1.20.9 driver: modesetting 
  unloaded: fbdev,vesa resolution: 1600x1200~60Hz, 1024x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel G45/G43 (ELK) 
  v: 2.1 Mesa 20.2.6 direct render: Yes 
Audio:
  Device-1: Intel 82801JI HD Audio vendor: Sony 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Sound Server: ALSA v: k5.4.0-74-generic 
Network:
  Device-1: Intel 82567V-2 Gigabit Network vendor: Sony 
  driver: e1000e v: 3.2.6-k port: e880 bus ID: 00:19.0 
  IF: enp0s25 state: down mac: <filter> 
  Device-2: Qualcomm Atheros AR928X Wireless Network Adapter 
  vendor: Foxconn driver: ath9k v: kernel port: 0400 
  bus ID: 01:00.0 
  IF: wlp1s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 465.76 GiB used: 8.56 GiB (1.8%) 
  ID-1: /dev/sda vendor: Western Digital model: WD5000AAJS-55A8B0 
  size: 465.76 GiB 
Partition:
  ID-1: / size: 456.95 GiB used: 8.56 GiB (1.9%) fs: ext4 
  dev: /dev/sda5 
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
  Processes: 188 Uptime: 4m Memory: 3.66 GiB 
  used: 1.07 GiB (29.2%) Init: systemd runlevel: 5 Compilers: 
  gcc: 9.3.0 Shell: bash v: 5.0.17 inxi: 3.0.38 
+
Screen 0: minimum 320 x 200, current 2624 x 1200, maximum 8192 x 8192
LVDS-1 connected primary 1600x1200+1024+0 (0x44) normal (normal left inverted right x axis y axis) 0mm x 0mm
	Identifier: 0x41
	Timestamp:  74044
	Subpixel:   horizontal rgb
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       0
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 58 
		supported: 58
	non-desktop: 0 
		range: (0, 1)
  1600x1200 (0x44) 162.000MHz -HSync -VSync *current +preferred
        h: width  1600 start 1664 end 1856 total 2160 skew    0 clock  75.00KHz
        v: height 1200 start 1201 end 1204 total 1250           clock  60.00Hz
VGA-1 connected 1024x768+0+0 (0x45) normal (normal left inverted right x axis y axis) 0mm x 0mm
	Identifier: 0x42
	Timestamp:  74044
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       1
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	link-status: Good 
		supported: Good, Bad
	CONNECTOR_ID: 55 
		supported: 55
	non-desktop: 0 
		range: (0, 1)
  1024x768 (0x45) 65.000MHz -HSync -VSync *current
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x46) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x47) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  848x480 (0x48) 33.750MHz +HSync +VSync
        h: width   848 start  864 end  976 total 1088 skew    0 clock  31.02KHz
        v: height  480 start  486 end  494 total  517           clock  60.00Hz
  640x480 (0x49) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
+
card0  card0-LVDS-1  card0-VGA-1  renderD128  version
ann@SonyVIAO-JS160J:~$ 
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Sony GVC-JS160J screen resolution

Post by roblm »

Your system’s Intel GPU was being driven by the intel driver in your previous Mint 18.2 installation, but now the modesetting driver is loaded. Try this method to load the intel driver.
Create an xorg.conf file: sudo touch /etc/X11/xorg.conf

Open the file for editing: xed admin:///etc/X11/xorg.conf

Add these lines:

Code: Select all

Section "Device"
   Identifier   "Device0"
   Driver   "intel"   			
EndSection
Also, the VGA-1 connector listed in the xrandr output does not exist, which you mentioned in your other topic. Add the parameter video=VGA-1:d to disable it. So the line in the grub file will now look like this:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=VGA-1:d drm.edid_firmware=edid/1680x1050.bin"
Update grub and reboot.
Tommy G
Level 1
Level 1
Posts: 29
Joined: Sat Jul 15, 2017 10:11 pm

Re: Sony GVC-JS160J screen resolution

Post by Tommy G »

Not Working, below are my steps:

After the command:
xed admin:///etc/X11/xorg.conf
I get this:
** (xed:4884): WARNING **: 11:50:00.118: The specified location is not mounted

Created and saved xorg.conf file with the only contents being:
Section "Device"
Identifier "Device0"
Driver "intel"
EndSection

used this command to edit grub: sudo nano -t /etc/default/grub
Edited and saved by Ctrl X then used command sudo update-grub

Rebooted and no change. So opened and checked Grub file:

sudo nano -t /etc/default/grub If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=VGA-1:d drm.edid_firmware=edid/1680x1050.bin"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console



Opened and checked the xorg.conf file and see only this as contents:
Section "Device"
Identifier "Device0"
Driver "intel"
EndSection
Locked

Return to “Hardware Support”