| View previous topic :: View next topic |
| Author |
Message |
Jaglover Advocate


Joined: 29 May 2005 Posts: 3404 Location: Saint Amant, Acadiana
|
Posted: Sat Jan 21, 2012 12:56 pm Post subject: |
|
|
mrl4n,
you added nvivia-settings to the failsafe section of your xinitrc, it is not executed there. Put it on top where it gets executed every time. _________________ Please learn how to denote units correctly! |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Sat Jan 21, 2012 5:24 pm Post subject: |
|
|
No, I've modified three times the xinitrc and these is the last.
I put the line in the top after #bin-sh line and in the middle after # start some nice programs
Nothing...always the same problem... |
|
| Back to top |
|
 |
sera Developer

Joined: 29 Feb 2008 Posts: 939 Location: CEST
|
Posted: Mon Jan 23, 2012 10:50 am Post subject: |
|
|
You can use nvidia-settings or use standard mechanisms to set it up. If you can get the results you want with nvidia-settings stick to it. I can't help you with that one though.
If you want to use xorg instead make sure nvidia-settings and ~/.xinitrc don't mess with you.
I came across a wiki page witch explains the steps to a custom modeline much better than I did and has links to further info.
See http://www.mythtv.org/wiki/Working_with_Modelines
The important part is to start out with a _valid_ modeline for your monitor. Invalid modelines usually result in your tv switching to 600x480.
Anyway, here a basic xorg.conf whitch assumes you use udev and evdev to setup your keyboard layout (the mouse and kdb drivers are long deprecated). For that copy /usr/share/X11/xorg.conf.d/10-evdev.conf to /etc/X11/xorg.conf.d/10-evdev.conf and change it to "it". Usually this also fixes all those special/multimedia keys on your keyboard.
| Code: | Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Ancor Communications Inc ASUS 24T1E"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 560 Ti"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1680x1050"
EndSubSection
EndSection |
As you can see I used 1680x1050 as this is what your TV likely has without overscan. |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Mon Jan 23, 2012 5:14 pm Post subject: |
|
|
Thanks for your help but the question is not really simple...
I've copied /usr/share/X11/xorg.conf.d/10-evdev.conf to /etc/X11/xorg.conf.d/10-evdev.conf and modified the xorg.conf as you suggest, then rebooted.
The keyboard and mouse works fine with evdev and udev, the monitor resolution is 1650x1050 OVERSCANNED again.
I'm ready to launch my monitor out of the window.
I'm using a HDMI cable and not a VGA, I want to try with a normal VGA cable. |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
Posted: Tue Jan 24, 2012 2:45 am Post subject: |
|
|
Try that :
| Code: | nvidia-settings -a [gpu:0]/GPUScaling[DFP-0]=1,1
nvidia-settings -a [gpu:0]/OverscanCompensation[DFP-0]=50
|
Or replace 50 with the value you wish.
If it work, just put that in your startup. |
|
| Back to top |
|
 |
Jaglover Advocate


Joined: 29 May 2005 Posts: 3404 Location: Saint Amant, Acadiana
|
Posted: Tue Jan 24, 2012 3:37 am Post subject: |
|
|
I'm not familiar with fancy login managers, may it be ~/.xinitrc is not sourced? As I understand mrl4n practically had it working with nvidia-settings, it just didn't work automatically. _________________ Please learn how to denote units correctly! |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
Posted: Tue Jan 24, 2012 9:06 am Post subject: |
|
|
I tell him that, because even my screen work with nvidia-settings, i too cannot make it work automatically because of gpuscalling setting that nvidia-settings refuse to save its state.
This manual setting just tell nvidia-settings to disable it (this stuff let the gpu resize the screen for your screen, with it disable, the screen now need to resize the picture itself : and if you use your screen in its native resolution their is simply no benefits to let your gpu resize the screen for it, and this bug the screen as it don't see your picture as its native resolution, maybe some bugs in nvidia when it give the screen size or something).
You can see this thread for more http://forums.gentoo.org/viewtopic-t-894978-highlight-.html
I would then setup the screen "as it should" in xorg and disable the gpuscalling to see if the screen can work the resolution by itself.
The second command is just setting the overscan to 50 as the user wish at first. |
|
| Back to top |
|
 |
Jaglover Advocate


Joined: 29 May 2005 Posts: 3404 Location: Saint Amant, Acadiana
|
Posted: Tue Jan 24, 2012 11:20 am Post subject: |
|
|
| Jaglover wrote: | OK, then what happens if you restart X, use the GUI applet to set overscan, open a terminal and do | Code: | | nvidia-settings --config=~/.nvidia-settings-rc --rewrite-config-file | Now, if you restart X and do | Code: | | nvidia-settings --config=~/.nvidia-settings-rc --load-config-only | does it look better?. |
It seems there is ~/.nvidia-settings-rc which actually has all settings in it, they just are not saved unless you save it by hand and they are not loaded unless you load it. OP had correct picture after following my advice above, he just couldn't load it from ~/.xixnitrc. Which made me think his setup ignores ~/.xixnitrc. _________________ Please learn how to denote units correctly! |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Tue Jan 24, 2012 1:21 pm Post subject: |
|
|
| Jaglover wrote: | | I'm not familiar with fancy login managers, may it be ~/.xinitrc is not sourced? | Probably, the commands that I've write in, don't works.
| krinn wrote: | | Code: | | nvidia-settings -a [gpu:0]/GPUScaling[DFP-0]=1,1 | If it work, just put that in your startup. |
It works as the command | Code: | | nvidia-settings --config=~/.nvidia-settings-rc --load-config-only | but I can't write it in the xinitrc because don't works there.
I've disabled GPU scaling: nothing same problem.
I've read the post http://forums.gentoo.org/viewtopic-t-894978-highlight-.html and follow the instruction.
My edid.bin | Code: | # parse-edid < edid.bin
parse-edid: parse-edid version 2.0.0
parse-edid: EDID checksum passed.
# EDID version 1 revision 3
Section "Monitor"
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
Identifier "ASUS 24T1E"
VendorName "ACI"
ModelName "ASUS 24T1E"
# Block type: 2:0 3:fd
HorizSync 31-83
VertRefresh 56-76
# Max dot clock (video bandwidth) 170 MHz
# Block type: 2:0 3:fc
# Block type: 2:0 3:ff
# DPMS capabilities: Active off:yes Suspend:yes Standby:yes
Mode "1920x1080" # vfreq 60.000Hz, hfreq 67.500kHz
DotClock 148.500000
HTimings 1920 2008 2052 2200
VTimings 1080 1084 1089 1125
Flags "-HSync" "+VSync"
EndMode
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
# Block type: 2:0 3:ff
EndSection
|
I've modified the xorg.conf | Code: | Section "Monitor"
Identifier "Monitor0"
VendorName "ACI"
ModelName "ASUS 24T1E"
HorizSync 31.0 - 83.0
VertRefresh 56.0 - 76.0
Option "dpms"
# 24T1E 1920x1080 vfreq 60.000Hz, hfreq 67.500kHz
Modeline "1920x1080_60" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 -HSync +VSync
EndSection
Section "Screen"
Option "MetaModes" "1920x1080_60"
SubSection "Display"
Depth 24
EndSubSection |
xorg.conf error | Code: | [ 32.632]
X.Org X Server 1.11.2
Release Date: 2011-11-04
[ 32.632] X Protocol Version 11, Revision 0
[ 32.632] Build Operating System: Linux 3.0.6-gentoo x86_64 Gentoo
[ 32.632] Current Operating System: Linux web&hardware 3.1.6-gentoo #1 SMP Mon Jan 23 21:57:07 GMT 2012 x86_64
[ 32.632] Kernel command line: root=/dev/ram0 real_root=/dev/sdc3 rootfstype=ext3 video=uvesafb:mtrr,ywrap:3,1280x1024-32@50
[ 32.632] Build Date: 01 January 2012 08:51:05PM
[ 32.632]
[ 32.632] Current version of pixman: 0.24.0
[ 32.632] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 32.632] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 32.632] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 24 13:52:05 2012
[ 32.632] (==) Using config file: "/etc/X11/xorg.conf"
[ 32.632] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 32.632] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 32.632] Parse error on line 29 of section Screen in file /etc/X11/xorg.conf
This section must have an Identifier line.
[ 32.632] (EE) Problem parsing the config file
[ 32.632] (EE) Error parsing the config file
[ 32.632]
Fatal server error:
[ 32.632] no screens found
[ 32.632]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 32.632] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 32.632]
[ 32.632] Server terminated with error (1). Closing log file. |
as I've writed a mistake...  |
|
| Back to top |
|
 |
Jaglover Advocate


Joined: 29 May 2005 Posts: 3404 Location: Saint Amant, Acadiana
|
Posted: Tue Jan 24, 2012 1:55 pm Post subject: |
|
|
Alright it does not work from ~/.xinitrc, why don't you put it into a proper place for your WM/DE? Every WM has some sort of mechanism to execute commands at startup. _________________ Please learn how to denote units correctly! |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Tue Jan 24, 2012 2:42 pm Post subject: |
|
|
I'm on gnome.
I've add in the system/preferences/start applications the two commands | Code: | | nvidia-settings --config=~/.nvidia-settings-rc --load-config-only | and | Code: | | nvidia-settings -a [gpu:0]/GPUScaling[DFP-1]=1,1 |
that from the shell works fine.
Would you guess the result?
I don't believe it...I'm living a very bad dream. |
|
| Back to top |
|
 |
sera Developer

Joined: 29 Feb 2008 Posts: 939 Location: CEST
|
Posted: Wed Jan 25, 2012 10:13 am Post subject: |
|
|
| mrl4n wrote: | | I'm using a HDMI cable and not a VGA, I want to try with a normal VGA cable. |
Very likely using the VGA port will behave differently. At least my TV does overscan using DVI using the defaults but behaves like a normal monitor using VGA. Unfortunately VGA wasn't designed with such resolutions in mind and the loss of picture quality can be clearly seen.
| mrl4n wrote: | | Code: | Section "Screen"
Option "MetaModes" "1920x1080_60"
SubSection "Display"
Depth 24
EndSubSection |
|
That is obviously wrong as the Section EndSection don't match. Also don't set MetaModes, this has a different meaning.
Use the xorg.conf I posted earlier and only change the "Modes" in the Screen section to 1920x1080_60 and add the Modeline to the Monitor section. No further changes. Generally any wrong setting in xorg.conf can cause issues and as such you really should only set what is needed and nothing else.
If that works you have a _valid_ modeline which you can start tweaking. |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
|
| Back to top |
|
 |
sera Developer

Joined: 29 Feb 2008 Posts: 939 Location: CEST
|
Posted: Wed Jan 25, 2012 2:43 pm Post subject: |
|
|
Sections you open need a corresponding close similar to xml. The one posted in the other topic might have been corrupted while posting.
Metamodes is for TwinView and is meant to be defined in the Device section. |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Wed Jan 25, 2012 7:18 pm Post subject: |
|
|
Probably, this is a good modeline for my monitor/tv | Code: | # 24T1E 1920x1080 vfreq 60.000Hz, hfreq 67.500kHz
Modeline "1920x1080_60" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 -HSync +VSync |
from the edid.bin file | Code: | # parse-edid < edid.bin
parse-edid: parse-edid version 2.0.0
parse-edid: EDID checksum passed.
# EDID version 1 revision 3
Section "Monitor"
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
Identifier "ASUS 24T1E"
VendorName "ACI"
ModelName "ASUS 24T1E"
# Block type: 2:0 3:fd
HorizSync 31-83
VertRefresh 56-76
# Max dot clock (video bandwidth) 170 MHz
# Block type: 2:0 3:fc
# Block type: 2:0 3:ff
# DPMS capabilities: Active off:yes Suspend:yes Standby:yes
Mode "1920x1080" # vfreq 60.000Hz, hfreq 67.500kHz
DotClock 148.500000
HTimings 1920 2008 2052 2200
VTimings 1080 1084 1089 1125
Flags "-HSync" "+VSync"
EndMode
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
# Block type: 2:0 3:ff
EndSection |
My new xorg.conf | Code: | Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Ancor Communications Inc ASUS 24T1E"
Option "DPMS"
# 24T1E 1920x1080 vfreq 60.000Hz, hfreq 67.500kHz
Modeline "1920x1080_56" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 -HSync +VSync
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 560 Ti"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "19200x1080_56"
EndSubSection
EndSection
|
When reboot, the monitor is set to 1920x1080 always overscanned , and not to 640x480.  |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
Posted: Wed Jan 25, 2012 7:26 pm Post subject: |
|
|
It's of course EndSection and not EndSubSection (that i use in my own config). I'll fix that, even it look obivious.
But i confirm the screen section is legit place for nvidia options : device or screen could be use (it depend what you are trying to do)
| http://fr.download.nvidia.com/XFree86/Linux-x86/290.10/README/xconfigoptions.html wrote: | | They may be specified either in the Screen or Device sections of the X config file. |
metamodes is not limit to twinview, metamodes extend modes and as such use the same syntax as modes (but add new keywords allowing to target a specific screen and add ability to handle more than one monitor), but metamodes can work just like modes (using only one monitor with the syntax use in modes) |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
Posted: Wed Jan 25, 2012 7:30 pm Post subject: |
|
|
you said you use gnome, just add your nvidia settings to gnome autostart, here's one of my desktop entry
| Code: | [Desktop Entry]
Type=Application
Exec=nvidia-settings -a [gpu:0]/GPUScaling[DFP-2]=1,1
Hidden=false
X-GNOME-Autostart-enabled=true
Name[fr_FR]=nvidia settings DFP-1
Name=nvidia settings DFP-1
Comment[fr_FR]=
Comment=
|
Just put the file in ~/.config/autostart (and of course change Exec= with the one you need) |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Wed Jan 25, 2012 9:00 pm Post subject: |
|
|
I've created a file | Code: | [Desktop Entry]
Type=Application
Exec=nvidia-settings --config=~/.nvidia-settings-rc --load-config-only
Hidden=false
X-GNOME-Autostart-enabled=true
Name[it_IT]=nvidia settings DFP-1
Name=nvidia settings DFP-1
Comment[it_IT]=
Comment= |
The last two questions...I hope
Can I use any names for the file?
Need an extension .conf or similar?
P.S. | Code: | | nvidia-settings --config=~/.nvidia-settings-rc --load-config-only |
works only as root
| Code: | | nvidia-settings -a [gpu:0]/GPUScaling[DFP-1]=1,1 |
with this xorg.conf, don't works. |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
Posted: Thu Jan 26, 2012 12:44 am Post subject: |
|
|
| mrl4n wrote: |
Can I use any names for the file?
Need an extension .conf or similar?
|
i_think_any_name.desktop
| mrl4n wrote: |
P.S. | Code: | | nvidia-settings --config=~/.nvidia-settings-rc --load-config-only |
works only as root
|
Then try direct query like i do, if your user can do it, it will work
| mrl4n wrote: | | Code: | | nvidia-settings -a [gpu:0]/GPUScaling[DFP-1]=1,1 |
with this xorg.conf, don't works. |
Of course it doesn't work for you, this try to disable gpuscaling for monitor name DFP-1, this is my own setting, i said change Exec= for that, and change it with setting you wish, i suppose you should goes for
| Code: | | Exec=nvidia-settings -a [gpu:0]/OverscanCompensation[DFP-0]=50 |
As you have 1 monitor only, logic says your should be name DFP-0, if in doubt you can get its name in your xorg.log, gpu:0 should be ok if you have only one gpu. |
|
| Back to top |
|
 |
sera Developer

Joined: 29 Feb 2008 Posts: 939 Location: CEST
|
Posted: Thu Jan 26, 2012 10:10 am Post subject: |
|
|
| Quote: | My new xorg.conf | Code: | Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Ancor Communications Inc ASUS 24T1E"
Option "DPMS"
# 24T1E 1920x1080 vfreq 60.000Hz, hfreq 67.500kHz
Modeline "1920x1080_56" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 -HSync +VSync
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 560 Ti"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "19200x1080_56"
EndSubSection
EndSection
|
When reboot, the monitor is set to 1920x1080 always overscanned , and not to 640x480.  |
That's good news as you now have a _valid_ modeline. Now all that's left is to adjust it according to the link posted earlier. Btw, you don't have to reboot, restarting X between your tries is sufficient.
The advantage of this setup is you can switch your DE at will or change to the nv driver and it will still work. |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Thu Jan 26, 2012 2:04 pm Post subject: |
|
|
| krinn wrote: | | Code: | | nvidia-settings --config=~/.nvidia-settings-rc --load-config-only |
works only as root
Then try direct query like i do, if your user can do it, it will work |
This line command, for me works only as root-user, in the *.desktop file in .config/autostart don't works in any way as normal user.
| sera wrote: | | That's good news as you now have a _valid_ modeline. Now all that's left is to adjust it according to the link posted earlier |
I've tried to reduce the parameters | Code: | | 1920 2008 2052 2200 1080 1084 1089 1125 |
many times but nothing succeded; the resolution is always 1920x1080 overscanned.  |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
Posted: Thu Jan 26, 2012 3:06 pm Post subject: |
|
|
| and your user is in video group ? |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Thu Jan 26, 2012 4:09 pm Post subject: |
|
|
| Obivious...unfortunately |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3204
|
Posted: Fri Jan 27, 2012 12:18 am Post subject: |
|
|
Well, i don't know then, i think you do something bad or i don't understand you.
If your user cannot manage to run nvidia-settings, then running the nvidia-settings gui shouldn't work too. A non-sense there. |
|
| Back to top |
|
 |
mrl4n Guru


Joined: 08 Apr 2009 Posts: 538
|
Posted: Sat Jan 28, 2012 11:17 am Post subject: |
|
|
My user can use the nvidia gui from the panel and it works; if launch the command | Code: | | nvidia-settings --config=~/.nvidia-settings-rc --load-config-only |
in the shell works only as root
| Code: | web&hardware cr4sh # groups cr4sh
wheel audio video users games scanner plugdev |
The conf.desktop file in the .config/autostart | Code: | [Desktop Entry]
Type=Application
Exec=nvidia-settings --config=~/.nvidia-settings-rc --load-config-only
Hidden=false
X-GNOME-Autostart-enabled=true
Name[it_IT]=nvidia settings DFP-1
Name=nvidia settings DFP-1
Comment[it_IT]=
Comment= |
What I do bad?
EDIT: with a new user the command works fine. |
|
| Back to top |
|
 |
|