Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

A few change for the script#17

Open
wildtruc wants to merge 1 commit intobosim:masterfrom
wildtruc:patch-1
Open

A few change for the script#17
wildtruc wants to merge 1 commit intobosim:masterfrom
wildtruc:patch-1

Conversation

@wildtruc
Copy link

@wildtruc wildtruc commented Aug 6, 2016

Hi,
I first contact Bo to pull and give my vision of your script. He redirected me to you.
So I pull my change to GIT and you will do what you want to do with it.

The big change in my way is that the script is not Fedora only.
It permit to use the actual displays xrandr configuration for xinitrc
and to set permanently the display to Nvidia on each start.
It also use complete xorg conf for each card and optional config file for custon nvidia install
or for other distro.

I thought to create an alternate project, maybe a better way to not pollute yours.

Tell me your thoughts.

My only big issue was I didn't nicely manage the white space for the xrandr screen list.
If your have a better way, be welcome (line 81 to 84)

Have a nice day.

Hi,
I first contact Bo to pull and give my vision of your script. He redirected me to you.
So I pull my change to GIT and you will do what you want to do with it.

The big change in my way is that the script is not Fedora only.
It permit to use the actual displays xrandr configuration for xinitrc
and to set permanently the display to Nvidia on each start.
It also use complete xorg conf for each card and optional config file for custon nvidia install
or for other distro.

I thought to create an alternate project, maybe a better way to not pollute yours.

Tell me your thoughts.

My only big issue was I didn't nicely manage the white space for the xrandr screen list.
If your have a better way, be welcome (line 81 to 84)

Have a nice day.
@wildtruc
Copy link
Author

Hi again,
I've made my onw GIT for the project in the particular purpose to be multi distro.
https://github.com/wildtruc/nvidia-prime-select
I made a few fix also.

printf "xrandr" >> $install_dir/xinitrc.$conf
else
printf "xrandr" > $install_dir/xinitrc.$conf
fi
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be not necessary because xinitrc.intel doesn't like to have xrandr source configured when Intel starts.
So :

if [[ $conf == nvidia ]]; then
        xrandr_source='NVIDIA-0'
        xrandr_sink='modesetting'
fi

is maybe enough.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants