nvidia-xrun icon indicating copy to clipboard operation
nvidia-xrun copied to clipboard

Run script without login in tty

Open hlechner opened this issue 9 years ago • 6 comments

fixes #4

openvt is now required.

Pull Request features:

  • Run with or without root permission (regular user with/without using sudo/su) - the X will remain running only for regular user without root permission
  • Run from X or TTY
  • It will return to the origin vt after the X be terminated
  • Fixed the error with getting the current vt (fgconsole needs root to run)

-- Description: However due to the necessity of openvt running as root and also to load/unload modules but the X itself for safe measure run without root permissions. I divided the script in two files to make it easier and clean code. nvidia-xrun = the script that you execute to run it. nvidia-xrun-core = this script will be called by the first script and it will always run without root permissions.

Feel free to change whatever you want.

hlechner avatar Dec 20 '16 19:12 hlechner

Hi @hlechner sounds like a great stuff! Thanks a lot! I've checked the code briefly and i'd like to test it a bit. In the end i'd prefer adding functions over adding new files as these reside at /usr/bin and the new files are not executable by its own. I'll try to figure out a way how to put it together.

Many Thanks!

Witko avatar Dec 20 '16 22:12 Witko

Sure friend, my primary goal was to provide a functional code of a working functionality.

Feel free to use whatever you want to or just don't use the code at all.

I'll not delete my branch, so you can close this pull request and you will continue accessing the code to test it.

If any question or help needed let me know.

hlechner avatar Dec 21 '16 01:12 hlechner

Hello, why it's PR not merged?

romanlex avatar May 12 '18 14:05 romanlex

Hi @romanlex , i've been investigating the possibilities but it does not work properly with openvt. I have there a clarification ticket: https://github.com/legionus/kbd/issues/9

Witko avatar May 14 '18 11:05 Witko

Hi, for some reason asus P8Z68-V LX motherboards and linux can't work out a way to have more than two monitors plugged in to the igpu display outputs, at least not when intels display drivers are controlling a kde plasma5 session. So perforamcne aside, the only way to have more than two monitors connected (and recognized as such by xrandr) and enabled (for Manjaro 18.0.3, at least), is to have at least one of them plugged into the gpu, which can only happen at the moment by manually going ctrlAltF5orF6orF4, logging in, and running nvidia-xrun startkde about two or three times before the desktop finally loads. So getting this to run automatically before/on/after (whichever the order is) logging in from sddm-greeter without requiring console-only password prompts should be 100% what's being worked on right now, please...

neurodiverseEsoteric avatar Aug 31 '19 00:08 neurodiverseEsoteric

Getting this merged should really be a priority, any update @Witko ?

ruifm avatar Sep 27 '19 02:09 ruifm