LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
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 Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

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,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
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: 199

Rep: Reputation: 40
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
Posts: 4,784

Original Poster
Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
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



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 05:20 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
Open Source Consulting | Domain Registration