Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run script without login in tty #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hlechner
Copy link

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.

	modified:   nvidia-xrun
	new file:   nvidia-xrun-core
@Witko
Copy link
Owner

Witko commented Dec 20, 2016

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!

@hlechner
Copy link
Author

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.

@Witko Witko force-pushed the master branch 2 times, most recently from 21c146d to 55ef8f6 Compare December 8, 2017 21:04
@romanlex
Copy link

Hello, why it's PR not merged?

@Witko
Copy link
Owner

Witko commented May 14, 2018

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

@neurodiverseEsoteric
Copy link

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...

@ruifm
Copy link

ruifm commented Sep 27, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate functionality without login to separate tty
5 participants