LinuxQuestions.org
Visit Jeremy's Blog.
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 02-21-2016, 06:47 AM   #1
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 1,923

Rep: Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819
Confusion over nVidia's Handling of CTRL DISPLAY


Maybe it's just that it's now 5:30 AM but I can't seem to get clear on NVidia's treatment of CTRL DISPLAY. Numerous apps give me the following error -

Code:
 root@homebase3:~# nvidia-settings --query Monitor
Invalid MIT-MAGIC-COOKIE-1 key
ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.
I got there because lately I can't get nvidia-settings to run as root whether I temp set the EnVar or employ "kdesu nvidia-settings", which used to work.

I've tried variations of
Code:
  setCTRLDisplay DFP-0
Worse, though this (from nvidia-settings --help) seems to be somewhat true or nothing would work
Code:
  -c CTRL-DISPLAY, --ctrl-display=CTRL-DISPLAY
      Control the specified X display.  If this option is not given, then nvidia-settings will control the display spe
      cified by '--display'; if that is not given, then the $DISPLAY environment variable is used.
nevertheless, it remain undefined and I still get errors saying CTRL DISPLAY is undefined.

but either my syntax is bad or I'm unsure if it prefers, say :0.0 over DFP-0.

In addition, while I realize graphics settings have more than one effective location (I made a $HOME/.nvidia-settings.rc file) and as good as much of nVidia's docs are, I just can't see the best option nor how to implement it...yet. Any assistance much appreciated.

Last edited by enorbet; 02-21-2016 at 06:53 AM.
 
Old 02-21-2016, 06:54 AM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,311

Rep: Reputation: Disabled
Not sure what you are doing there. You run X as user and you configure X as user, root has nothing to do with it, except if you run proprietary drivers then you need to create a four-line xorg.conf as root.
 
Old 02-21-2016, 07:50 AM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,523
Blog Entries: 3

Rep: Reputation: 439Reputation: 439Reputation: 439Reputation: 439Reputation: 439
if you cant get nvidia settings to run at root. Come on "enorbet" just kidding.
you may have a stale tmp file that is not getting cleaned up at start. and you may have a stale /var/run/ ?
I had a stale /tmp/kde-root socket etc etc that was not getting cleared.
I had to do it manually.
you may need to find out why it is unable to write to the /root/.nvidia-settings-rc
 
Old 02-23-2016, 03:40 AM   #4
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 1,923

Original Poster
Rep: Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819
Thanks Drakeo. Good advice based on experience. I will check that out.

Thanks Emerson but I wouldn't have a $HOME/.nvidia-settings.rc file if I wasn't using the proprietary driver. I haven't bought a single video card in over 20 years exactly because nVidia cares to support so-called "alternative OpSyses. 20+ years ago and up until about 3 years ago I was using nVidia's drivers on IBMs OS/2.

The reason for choosing to run nvidia-settings as root is to avail myself of the convenience of using the radio button for "Write to xorg.conf". I ALWAYS write an xorg.conf for the extra control over Mouse, Monitor, and Graphics Device as well as fonts, although that last one may no longer be actually useful and pure ritual by now.

I'm still not getting to the main issue here of assigning CTRL DISPLAY and would like to in order to solve error messages with "xdpyinfo" and "ncidia-settings" command line usage.
 
Old 02-23-2016, 04:47 AM   #5
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 175

Rep: Reputation: 27
A while back I had loads of issues making sense of the nvidia cli commands.

This syntax works here

Code:
nvidia-settings -c :0
 
Old 02-23-2016, 10:11 PM   #6
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 1,923

Original Poster
Rep: Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819
Quote:
Originally Posted by SavoTU View Post
A while back I had loads of issues making sense of the nvidia cli commands.

This syntax works here

Code:
nvidia-settings -c :0
Now that is truly odd. That exact command, run as User, failed with "ERROR: Unable to load info from any available system" BUT only the first time. I tried adding the ".0" to the ":0" and a few variations and all failed until I hit Enter too fast and did

[code] nvidia-settings -c :0.0 /code]
and that time it launched the GUI! THEN I tried
Code:
 nvidia-settings -c :0
THAT WORKED! that time, and since Geez my Slack has gone mad.

It still won't launch as root, though

Trying
Code:
 kdesu nvidia-settings -c :0.0
I get the same lengthy error set that prompted this thread which seems to be all kdesu problems but it works on every command I've tried EXCEPT ncidia-settingsd

Code:
bash-4.2$ kdesu nvidia-settings -c :0.0
kdesu(19191)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(19191)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(19191)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(19191)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(19191)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/process.cpp : 379 ]  Child pid 19277
kdesu(19191)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/su.cpp : 259 ]  Read line ""
kdesu(19191)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
kdesu(19191)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(19191)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(19191)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/process.cpp : 379 ]  Child pid 19299
kdesu(19191)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/su.cpp : 259 ]  Read line ""
kdesu(19191)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /tmp/kde-build/kdelibs/kdelibs-4.8.5/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
^C
Note, it stalled and the Ctrl-C was entered to get out after a 2 minute waiting period. I know it used to work and I can't recall having done anything even related to the graphics system.
 
  


Reply

Tags
ctrl display, nvidia, nvidia-settings, nvidia-settings.rc


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] command line/tty/terminal delete/cut operations confusion (ctrl+u,ctrl+y etc) NeoLux Linux - Newbie 4 12-16-2012 11:33 AM
Video Display Size Confusion widda Linux - Newbie 23 04-07-2010 11:34 PM
signal handling and ctrl d indivisibleatom Programming 3 01-17-2008 09:38 AM
handling ctrl D and signals chimpu Programming 1 09-19-2005 08:43 AM
VNC vs Remote Desktop: display confusion klandingham Linux - Newbie 0 11-03-2004 11:27 AM

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

All times are GMT -5. The time now is 07:01 PM.

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